PIC18FXX20
TABLE 10-13: PORTG FUNCTIONS
Name Bit# Buffer Type
RG0/CCP3
Function
bit0
bit1
bit2
bit3
bit4
ST
ST
ST
ST
ST
Input/output port pin or Capture3 input/Compare3 output/
PWM3 output.
Input/output port pin, Addressable USART2 Asynchronous Transmit,
or Addressable USART2 Synchronous Clock.
Input/output port pin, Addressable USART2 Asynchronous Receive,
or Addressable USART2 Synchronous Data.
Input/output port pin or Capture4 input/Compare4 output/
RG1/TX2/CK2
RG2/RX2/DT2
RG3/CCP4
PWM4 output.
RG4/CCP5
Input/output port pin or Capture5 input/Compare5 output/
PWM5 output.
Legend: ST = Schmitt Trigger input
TABLE 10-14: SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
Value on
all other
RESETS
Value on
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
POR, BOR
—
—
—
PORTG
LATG
TRISG
Read PORTF pin/Write PORTF Data Latch
LATG Data Output Register
Data Direction Control Register for PORTG
---x xxxx ---u uuuu
---x xxxx ---u uuuu
---1 1111 ---1 1111
—
—
—
—
—
—
Legend: x= unknown, u= unchanged
2003 Microchip Technology Inc.
Advance Information
DS39609A-page 121