Datasheet

2003-2013 Microchip Technology Inc. DS39609C-page 121
PIC18F6520/8520/6620/8620/6720/8720
TABLE 10-13: PORTG FUNCTIONS
TABLE 10-14: SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
Name Bit# Buffer Type Function
RG0/CCP3 bit 0 ST Input/output port pin or Capture3 input/Compare3 output/PWM3 output.
RG1/TX2/CK2 bit 1 ST Input/output port pin, addressable USART2 asynchronous transmit or
addressable USART2 synchronous clock.
RG2/RX2/DT2 bit 2 ST Input/output port pin, addressable USART2 asynchronous receive or
addressable USART2 synchronous data.
RG3/CCP4 bit 3 ST Input/output port pin or Capture4 input/Compare4 output/PWM4 output.
RG4/CCP5 bit 4 ST Input/output port pin or Capture5 input/Compare5 output/PWM5 output.
Legend: ST = Schmitt Trigger input
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
POR, BOR
Value on
all other
Resets
PORTG Read PORTF pin/Write PORTF Data Latch ---x xxxx ---u uuuu
LATG
LATG Data Output Register ---x xxxx ---u uuuu
TRISG Data Direction Control Register for PORTG ---1 1111 ---1 1111
Legend: x = unknown, u = unchanged