Datasheet

PIC12(L)F1571/2
DS40001723D-page 114 2013-2015 Microchip Technology Inc.
REGISTER 11-4: LATA: PORTA DATA LATCH REGISTER
U-0 U-0 R/W-x/u R/W-x/u U-0 R/W-x/u R/W-x/u R/W-x/u
—LATA<5:4>
(1)
—LATA<2:0>
(1)
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit
u = Bit is unchanged x = Bit is unknown U = Unimplemented bit, read as ‘0’
‘1’ = Bit is set ‘0’ = Bit is cleared -n/n = Value at POR and BOR/Value at all other Resets
bit 7-6 Unimplemented: Read as ‘0
bit 5-4 LATA<5:4>: RA<5:4> Output Latch Value bits
(1)
bit 3 Unimplemented: Read as ‘0
bit 2-0 LATA<2:0>: RA<2:0> Output Latch Value bits
(1)
Note 1: Writes to PORTA are actually written to corresponding LATA register. Reads from the PORTA register are
the return of actual I/O pin values.
REGISTER 11-5: ANSELA: PORTA ANALOG SELECT REGISTER
U-0 U-0 U-0 R/W-1/1 U-0 R/W-1/1 R/W-1/1 R/W-1/1
ANSA4 ANSA<2:0>
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit
u = Bit is unchanged x = Bit is unknown U = Unimplemented bit, read as ‘0’
‘1’ = Bit is set ‘0’ = Bit is cleared -n/n = Value at POR and BOR/Value at all other Resets
bit 7-5 Unimplemented: Read as ‘0
bit 4 ANSA4: Analog Select Between Analog or Digital Function on RA4 Pins (respectively) bit
1 = Analog input; pin is assigned as analog input, digital input buffer is disabled
(1)
0 = Digital I/O; pin is assigned to port or digital special function
bit 3 Unimplemented: Read as ‘0
bit 2-0 ANSA<2:0>: Analog Select Between Analog or Digital Function on RA<2:0> pins (respectively) bits
1 = Analog input; pin is assigned as analog input, digital input buffer is disabled
(1)
0 = Digital I/O; pin is assigned to port or digital special function
Note 1: When setting a pin to an analog input, the corresponding TRISx bit must be set to Input mode in order to
allow external control of the voltage on the pin.