Datasheet
PIC17C4X
DS30412C-page 54
1996 Microchip Technology Inc.
FIGURE 9-2: RA2 AND RA3 BLOCK
DIAGRAM
Note: I/O pins have protection diodes to VSS.
Data Bus
WR_PORTA
(Q4)
QD
Q
CK
RD_PORTA
(Q2)
FIGURE 9-3: RA4 AND RA5 BLOCK
DIAGRAM
Note: I/O pins have protection diodes to VDD and VSS.
Data Bus
RD_PORTA
(Q2)
Serial port output signals
Serial port input signal
OE = SPEN,SYNC,TXEN, CREN, SREN for RA4
OE
= SPEN (SYNC+SYNC,CSRC) for RA5
TABLE 9-1: PORTA FUNCTIONS
TABLE 9-2: REGISTERS/BITS ASSOCIATED WITH PORTA
Name Bit0 Buffer Type Function
RA0/INT bit0 ST Input or external interrupt input.
RA1/T0CKI bit1 ST Input or clock input to the TMR0 timer/counter, and/or an external interrupt input.
RA2 bit2 ST Input/Output. Output is open drain type.
RA3 bit3 ST Input/Output. Output is open drain type.
RA4/RX/DT bit4 ST Input or USART Asynchronous Receive or USART Synchronous Data.
RA5/TX/CK bit5 ST Input or USART Asynchronous Transmit or USART Synchronous Clock.
RBPU
bit7 — Control bit for PORTB weak pull-ups.
Legend: ST = Schmitt Trigger input.
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Value on
Power-on
Reset
Value on all
other resets
(Note1)
10h, Bank 0 PORTA
RBPU — RA5 RA4 RA3 RA2 RA1/T0CKI RA0/INT
0-xx xxxx 0-uu uuuu
05h, Unbanked T0STA INTEDG T0SE
T0CS PS3 PS2 PS1 PS0 —
0000 000- 0000 000-
13h, Bank 0 RCSTA SPEN
RC9 SREN CREN — FERR OERR RC9D
0000 -00x 0000 -00u
15h, Bank 0 TXSTA CSRC
TX9 TXEN SYNC — — TRMT TX9D
0000 --1x 0000 --1u
Legend:
x
= unknown,
u
= unchanged,
-
= unimplemented reads as '0'. Shaded cells are not used by PORTA.
Note 1: Other (non power-up) resets include: external reset through MCLR
and the Watchdog Timer Reset.