Datasheet

Table Of Contents
PIC16(L)F1526/7
DS41458C-page 136 2011-2013 Microchip Technology Inc.
12.16 Register Definitions: PORTG
REGISTER 12-28: PORTG: PORTG REGISTER
U-0 U-0 R-x/u R/W-x/u R/W-x/u R/W-x/u R/W-x/u R/W-x/u
RG5 RG4 RG3 RG2 RG1 RG0
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-6 Unimplemented: Read as ‘0
bit 5-0 RG<5:0>: PORTG I/O Pin bits
(1)
1 = Port pin is > VIH
0 = Port pin is < VIL
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-29: TRISG: PORTG TRI-STATE REGISTER
U-0 U-0 U-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1
(1)
TRISG4 TRISG3 TRISG2 TRISG1 TRISG0
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-6 Unimplemented: Read as ‘0
bit 5 Unimplemented: Read as ‘1
bit 4-0 TRISG<4:0>: RG<4:0> Tri-State Control bits
(1)
1 = PORTG pin configured as an input (tri-stated)
0 = PORTG pin configured as an output
Note 1: Unimplemented, read as ‘1’.