Datasheet

Table Of Contents
2011-2013 Microchip Technology Inc. DS41458C-page 137
PIC16(L)F1526/7
REGISTER 12-30: LATG: PORTG DATA LATCH REGISTER
U-0 U-0 U-0 R/W-x/u R/W-x/u R/W-x/u R/W-x/u R/W-x/u
LATG4 LATG3 LATG2 LATG1 LATG0
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
u = Bit is unchanged x = Bit is unknown -n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set ‘0’ = Bit is cleared
bit 7-5 Unimplemented: Read as ‘0
bit 4-0 LATG<4:0>: PORTG Output Latch Value bits
(1)
Note 1: Writes to PORTG are actually written to corresponding LATG register. Reads from PORTG register is
return of actual I/O pin values.
REGISTER 12-31: ANSELG: PORTG ANALOG SELECT REGISTER
U-0 U-0 U-0 R/W-1 R/W-1 R/W-1 R/W-1 U-0
ANSG4 ANSG3 ANSG2 ANSG1
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
u = bit is unchanged x = Bit is unknown -n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set ‘0’ = Bit is cleared
bit 7-5 Unimplemented: Read as ‘0
bit 4-1 ANSG<4:1>: Analog Select between Analog or Digital Function on Pins RG<4:1>, respectively
1 = Analog input. Pin is assigned as analog input
(1)
. Digital input buffer disabled.
0 = Digital I/O. Pin is assigned to port or digital special function.
bit 0 Unimplemented: Read as ‘0
Note 1: When setting a pin to an analog input, the corresponding TRIS bit must be set to Input mode in order to
allow external control of the voltage on the pin.