PIC17C75X
TABLE 10-13: PORTG FUNCTIONS
Name
RG0/AN3
RG1/AN2
RG2/AN1/V
REF
-
RG3/AN0/V
REF
+
RG4/CAP3
RG5/PWM3
RG6/RX2/DT2
RG7/TX2/CK2
Bit
bit0
bit1
bit2
bit3
bit4
bit5
bit6
bit7
Buffer Type
ST
ST
ST
ST
ST
ST
ST
ST
Function
Input/Output or analog input 3.
Input/Output or analog input 2.
Input/Output or analog input 1 or the ground reference voltage
Input/Output or analog input 0 or the positive reference voltage
RG4 can also be the Capture3 input pin.
RG5 can also be the PWM3 output pin.
RG6 can also be selected as the USART2 (SCI) Asynchronous
Receive or USART2 (SCI) Synchronous Data.
RG7 can also be selected as the USART2 (SCI) Asynchronous Trans-
mit or USART2 (SCI) Synchronous Clock.
Legend: ST = Schmitt Trigger input.
TABLE 10-14: REGISTERS/BITS ASSOCIATED WITH PORTG
Address
12h, Bank 5
13h, Bank 5
Name
DDRG
PORTG
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on,
POR,
BOR
1111 1111
RG4/
CAP3
RG3/
AN0
RG2/
AN1
RG1/
AN2
RG0/
AN3
xxxx 0000
Value on all
other resets
(Note1)
1111 1111
uuuu 0000
Data Direction Register for PORTG
RG7/
RG6/
TX2/CK2 RX2/DT2
RG5/
PWM3
Legend:
x
= unknown,
u
= unchanged,
-
= unimplemented read as '0'. Shaded cells are not used by PORTG.
Note 1: Other (non power-up) resets include: external reset through MCLR and the Watchdog Timer Reset.
DS30264A-page 82
Preliminary
漏
1997 Microchip Technology Inc.