Datasheet

PIC17C7XX
DS30289C-page 88 1998-2013 Microchip Technology Inc.
TABLE 10-13: PORTG FUNCTIONS
TABLE 10-14: REGISTERS/BITS ASSOCIATED WITH PORTG
Name Bit Buffer Type Function
RG0/AN3 bit0 ST Input/output or analog input 3.
RG1/AN2 bit1 ST Input/output or analog input 2.
RG2/AN1/V
REF- bit2 ST Input/output or analog input 1 or the ground reference voltage.
RG3/AN0/V
REF+ bit3 ST Input/output or analog input 0 or the positive reference voltage.
RG4/CAP3 bit4 ST Input/output or the Capture3 input pin.
RG5/PWM3 bit5 ST Input/output or the PWM3 output pin.
RG6/RX2/DT2 bit6 ST Input/output or the USART2 (SCI) Asynchronous Receive or USART2
(SCI) Synchronous Data.
RG7/TX2/CK2 bit7 ST Input/output or the USART2 (SCI) Asynchronous Transmit or USART2
(SCI) Synchronous Clock.
Legend: ST = Schmitt Trigger input
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
POR,
BOR
MCLR, WDT
12h, Bank 5 DDRG Data Direction Register for PORTG
1111 1111 1111 1111
13h, Bank 5 PORTG RG7/
TX2/CK2
RG6/
RX2/DT2
RG5/
PWM3
RG4/
CAP3
RG3/
AN0
RG2/
AN1
RG1/
AN2
RG0/
AN3
xxxx 0000 uuuu 0000
15h, Bank 5 ADCON1
ADCS1 ADCS0 ADFM PCFG3 PCFG2 PCFG1 PCFG0
000- 0000 000- 0000
Legend: x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by PORTG.