English
Language : 

PIC18F6585 Datasheet, PDF (147/496 Pages) Microchip Technology – 64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with ECAN Module
PIC18F6585/8585/6680/8680
TABLE 10-13: PORTG FUNCTIONS
Name
Bit# Buffer Type
Function
RG0/CANTX1
bit 0
RG1/CANTX2
bit 1
RG2/CANRX
bit 2
RG3
bit 3
RG4/P1D
bit 4
ST
Input/output port pin or CAN bus transmit output.
ST
Input/output port pin, CAN bus complimentary transmit output or CAN
bus bit time clock.
ST
Input/output port pin or CAN bus receive.
ST
Input/output port pin.
ST
Input/output port pin or ECCP1 PWM output D.
RG5/MCLR/VPP
bit 5
ST
Legend: ST = Schmitt Trigger input
Master Clear input or programming voltage input (if MCLR is enabled).
Input only port pin or programming voltage input (if MCLR is
disabled).
TABLE 10-14: SUMMARY OF REGISTERS ASSOCIATED WITH PORTG
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
PORTG
—
— RG5(1) Read PORTF pin/Write PORTF Data Latch
LATG
—
—
— LATG Data Output Register
TRISG
—
—
— Data Direction Control Register for PORTG
Legend: x = unknown, u = unchanged
Note 1: RG5 is available as an input only when MCLR is disabled.
Value on
POR, BOR
Value on
all other
Resets
--0x xxxx
---x xxxx
---1 1111
--0u uuuu
---u uuuu
---1 1111
 2004 Microchip Technology Inc.
DS30491C-page 145