Datasheet

2003-2013 Microchip Technology Inc. DS30491D-page 145
PIC18F6585/8585/6680/8680
TABLE 10-13: PORTG FUNCTIONS
TABLE 10-14: SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
Name Bit# Buffer Type Function
RG0/CANTX1 bit 0 ST Input/output port pin or CAN bus transmit output.
RG1/CANTX2 bit 1 ST Input/output port pin, CAN bus complimentary transmit output or CAN
bus bit time clock.
RG2/CANRX bit 2 ST Input/output port pin or CAN bus receive.
RG3 bit 3 ST Input/output port pin.
RG4/P1D bit 4 ST Input/output port pin or ECCP1 PWM output D.
RG5/MCLR
/VPP bit 5 ST Master Clear input or programming voltage input (if MCLR is enabled).
Input only port pin or programming voltage input (if MCLR
is
disabled).
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
—RG5
(1)
Read PORTF pin/Write PORTF Data Latch --0x xxxx --0u 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
Note 1: RG5 is available as an input only when MCLR
is disabled.
18F8680.book Page 145 Tuesday, January 29, 2013 1:32 PM