Section 8 I/O Ports
Rev. 7.00 Mar 10, 2005 page 211 of 652
REJ09B0042-0700
8.4.3 Pin Functions
Table 8.9 shows the port 4 pin functions.
Table 8.9 Port 4 Pin Functions
Pin Pin Functions and Selection Method
P4
3
/
IRQ
0
The pin function depends on bit IRQ0 in PMR2.
IRQ0 0 1
Pin function P4
3
input pin
IRQ
0
input pin
P4
2
/TXD
32
The pin function depends on bit TE in SCR3, bit SPC32 in SPCR, and bit PCR4
2
in PCR4.
SPC32 0 1
TE 0 1
PCR4
2
01*
Pin function P4
2
input pin P4
2
output pin TXD
32
output pin
P4
1
/RXD
32
The pin function depends on bit RE in SCR3 and bit PCR4
1
in PCR4.
RE 0 1
PCR4
1
01*
Pin function P4
1
input pin P4
1
output pin RXD
32
input pin
P4
0
/SCK
32
The pin function depends on bit CKE1 and CKE0 in SCR3, bit COM in SMR3,
and bit PCR4
0
in PCR4.
CKE1 0 1
CKE0 0 1 *
COM 0 1 **
PCR4
0
01**
Pin function P4
0
input pin P4
0
output pin SCK
32
output
pin
SCK
32
input
pin
*: Don’t care