English
Language : 

PIC18F6520-I Datasheet, PDF (123/380 Pages) Micrel Semiconductor – 64/80-Pin High-Performance, 256 Kbit to 1 Mbit Enhanced Flash Microcontrollers with A/D
PIC18F6520/8520/6620/8620/6720/8720
TABLE 10-13: PORTG FUNCTIONS
Name
Bit# Buffer Type
Function
RG0/CCP3
bit 0
RG1/TX2/CK2 bit 1
RG2/RX2/DT2 bit 2
ST
Input/output port pin or Capture3 input/Compare3 output/PWM3 output.
ST
Input/output port pin, addressable USART2 asynchronous transmit or
addressable USART2 synchronous clock.
ST
Input/output port pin, addressable USART2 asynchronous receive or
addressable USART2 synchronous data.
RG3/CCP4
bit 3
ST
RG4/CCP5
bit 4
ST
Legend: ST = Schmitt Trigger input
Input/output port pin or Capture4 input/Compare4 output/PWM4 output.
Input/output port pin or Capture5 input/Compare5 output/PWM5 output.
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
—
—
— Read PORTF pin/Write PORTF Data Latch
LATG
—
—
— LATG Data Output Register
TRISG
—
—
— Data Direction Control Register for PORTG
Legend: x = unknown, u = unchanged
Value on
POR, BOR
Value on
all other
Resets
---x xxxx
---x xxxx
---1 1111
---u uuuu
---u uuuu
---1 1111
 2004 Microchip Technology Inc.
DS39609B-page 121