
2000 Microchip Technology Inc.
Advanced Information
DS30475A-page 103
PIC18CXX8
TABLE 8-13:
PORTG FUNCTIONS
Note:
Refer to "CAN Module",
Section 17.0 for usage of CAN pin functions.
TABLE 8-14:
SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
Name
Bit#
Buffer Type
Function
RG0/CANTX0
bit0
ST
Input/output port pin or CAN bus transmit output.
RG1/CANTX1
bit1
ST
Input/output port pin or CAN bus complimentary transmit output or CAN
bus bit time clock.
RG2/CANRX
bit2
ST
Input/output port pin or CAN bus receive input.
RG3
bit3
ST
Input/output port pin.
RG4
bit4
ST
Input/output port pin.
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
TRISG
PORTG Data Direction Control Register
---1 1111
PORTG
Read PORTG pin / Write PORTG Data Latch
---x xxxx
---u uuuu
LATG
Read PORTG Data Latch/Write PORTG Data Latch
---x xxxx
---u uuuu
CIOCON
TX1SRC
TX1EN
ENDRHI
CANCAP
—
0000 ----
Legend: x = unknown, u = unchanged