| Electronic Components Datasheet Search |
|
PIC16F913 Datasheet(PDF) 62 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F913 Datasheet(HTML) 62 Page - Microchip Technology |
|
62 / 272 page ![]() PIC16F917/916/914/913 DS41250E-page 60 Preliminary © 2005 Microchip Technology Inc. 3.5 PORTD and TRISD Registers PORTD is an 8-bit port with Schmitt Trigger input buffers. Each pin is individually configured as an input or output. PORTD is only available on the PIC16F914 and PIC16F917. EXAMPLE 3-4: INITIALIZING PORTD REGISTER 3-9: PORTD – PORTD REGISTER (ADDRESS: 08h) REGISTER 3-10: TRISD – PORTD TRI-STATE REGISTER (ADDRESS: 88h) Note: Analog lines that carry LCD signals (i.e., SEGx, COMy, where x and y are seg- ment and common identifiers) are shown as direct connections to the device pins. The signals are outputs from the LCD module and may be tri-stated, depending on the configuration of the LCD module. BCF STATUS,RP0 ;Bank 0 BCF STATUS,RP1 ; CLRF PORTD ;Init PORTD BSF STATUS,RP0 ;Bank 1 BCF STATUS,RP1 ; MOVLW FFh ;Set RD<7:0> as inputs MOVWF TRISD ; BCF STATUS,RP0 ;Bank 0 BCF STATUS,RP1 ; R/W-x R/W-x R/W-x R/W-x R/W-x R/W-x R/W-x R/W-x RD7 RD6 RD5 RD4 RD3 RD2 RD1 RD0 bit 7 bit 0 bit 7-0 RD<7:0>: PORTD I/O Pin bits 1 = Port pin is >VIH 0 = Port pin is <VIL Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ - n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 TRISD7 TRISD6 TRISD5 TRISD4 TRISD3 TRISD2 TRISD1 TRISD0 bit 7 bit 0 bit 7-0 TRISD<7:0>: PORTD Tri-State Control bits 1 = PORTD pin configured as an input (tri-stated) 0 = PORTD pin configured as an output Note: TRISD<7:6> always reads ‘1’ in XT, HS and LP OSC modes. Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’ - n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |