| Electronic Components Datasheet Search |
|
PIC16F913 Datasheet(PDF) 67 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F913 Datasheet(HTML) 67 Page - Microchip Technology |
|
67 / 272 page ![]() © 2005 Microchip Technology Inc. Preliminary DS41250E-page 65 PIC16F917/916/914/913 3.6 PORTE and TRISE Registers PORTE is a 4-bit port with Schmitt Trigger input buffers. RE<2:0> are individually configured as inputs or out- puts. RE3 is only available as an input if MCLRE is ‘0’ in Configuration Word (Register 16-1). RE<2:0> are only available on the PIC16F914 and PIC16F917. EXAMPLE 3-5: INITIALIZING PORTE REGISTER 3-11: PORTE – PORTE REGISTER (ADDRESS: 09h) REGISTER 3-12: TRISE – PORTE TRI-STATE REGISTER (ADDRESS: 89h) Note: Analog lines that carry LCD signals (i.e., SEGx, where x are segment identifi- ers) 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 PORTE ;Init PORTE BSF STATUS,RP0 ;Bank 1 BCF STATUS,RP1 ; MOVLW 0Fh ;Set RE<3:0> as inputs MOVWF TRISE ; CLRF ANSEL ;Make RE<2:0> as I/O’s BCF STATUS,RP0 ;Bank 0 BCF STATUS,RP1 ; U-0 U-0 U-0 U-0 R/W-x R/W-x R/W-x R/W-x — — — — RE3 RE2 RE1 RE0 bit 7 bit 0 bit 7-4 Unimplemented: Read as ‘0’ bit 3-0 RE<3:0>: PORTE 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 U-0 U-0 U-0 U-0 R-1 R/W-1 R/W-1 R/W-1 — — — — TRISE3 TRISE2 TRISE1 TRISE0 bit 7 bit 0 bit 7-4 Unimplemented: Read as ‘0’ bit 3 TRISE3: Data Direction bit. RE3 is always an input, so this bit always reads as a ‘1’ bit 2-0 TRISE<2:0>: Data Direction bits 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 |