Rev. 1.0, 02/00, page 212 of 1141
10.6
Port 4
10.6.1
Overview
Port 4 is an 8-bit I/O port. Table 10.14 shows the port 4 configuration.
Port 4 consists of pins that are used both as standard I/O ports (P47 to P40) and output compare
output (FTOA, FTOB), input capture input (FTIA, FTIB, FTIC, FTID) or 14-bit PWM output
(PWM14). It is switched by port mode register 4 (PRM4), timer output compare control register
(TOCR), and port control register 4 (PCR4).
Table 10.14 Port 4 Configuration
Port
Function
Alternative Function
P47 (standard I/O port)
RPTRG (realtime output port trigger input)
P46 (standard I/O port)
FTOB (timer X1 output compare output)
P45 (standard I/O port)
FTOA (timer X1 output compare output)
P44 (standard I/O port)
FTID (timer X1 input capture input)
P43 (standard I/O port)
FTIC (timer X1 input capture input)
P42 (standard I/O port)
FTIB (timer X1 input capture input)
P41 (standard I/O port)
FTIA (timer X1 input capture input)
Port 4
P40 (standard I/O port)
PWM14 (14-bit PWM output)
10.6.2
Register Configuration
Table 10.15 shows the port 4 register configuration.
Table 10.15 Port 4 Register Configuration
Name
Abbrev.
R/W
Size
Initial Value
Address
*
Port mode register 4
PMR4
R/W
Byte
H'7E
H'FFDB
Port control register 4
PCR4
W
Byte
H'00
H'FFD4
Port data register 4
PDR4
R/W
Byte
H'00
H'FFC4
Note:
*
Lower 16 bits of the address.