AN201
Rev 1.5 | 85/91
www.cmostek.com
16.3.3 PORTA4/PA4
PA4 can be configured as the following functional port:
GPIO
The internal circuit architecture of the port is shown in the below figure.
D
CLK
Q
Q
_
RD
TRISA
WR
WPUA
Data
Bus
VDD
D
CLK
Q
Q
_
D
CLK
Q
Q
_
RD
WPUA
WR
PORTA
/RAPU
VDD
WR
TRISA
RD
PORTA
D
CLK
Q
Q
_
WR
IOCA
RD
IOCA
Interrupt
On Change
D
Q
Q
_
D
Q
Q
_
RD
PORTA
Qn
ATEST0 EN
ATEST0 EN
IR MODE
IR DATA
IR MODE
IR MODE
Figure 31. PA4 Architecture
Notes:
1.
ATEST0 and IR are used for internal test, but not for users. Users can ignore them.