Hitachi H8S/2199 Hardware Manual page 226

Single-chip microcomputer
Table of Contents

Advertisement

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
Port 4
P47 (standard I/O port)
P46 (standard I/O port)
P45 (standard I/O port)
P44 (standard I/O port)
P43 (standard I/O port)
P42 (standard I/O port)
P41 (standard I/O port)
P40 (standard I/O port)
10.6.2
Register Configuration
Table 10.15 shows the port 4 register configuration.
Table 10.15 Port 4 Register Configuration
Name
Port mode register 4
Port control register 4
Port data register 4
Note: * Lower 16 bits of the address.
Rev. 1.0, 02/00, page 212 of 1141
Abbrev.
R/W
PMR4
R/W
PCR4
W
PDR4
R/W
Alternative Function
RPTRG (realtime output port trigger input)
FTOB (timer X1 output compare output)
FTOA (timer X1 output compare output)
FTID (timer X1 input capture input)
FTIC (timer X1 input capture input)
FTIB (timer X1 input capture input)
FTIA (timer X1 input capture input)
PWM14 (14-bit PWM output)
Size
Initial Value
Byte
H'7E
Byte
H'00
Byte
H'00
Address*
H'FFDB
H'FFD4
H'FFC4

Advertisement

Table of Contents
loading

Table of Contents