Port 5; Overview; Register Configuration - Hitachi H8S/2678 Series Reference Manual

16-bit single-chip microcomputer
Table of Contents

Advertisement

5.6

Port 5

5.6.1

Overview

Port 5 comprises a 4-bit I/O port (P53 to P50) and a 4-bit input-only port (P57 to P54). Port 5 pins
also function as SCI input/output pins (TxD2, RxD2, and SCK2), the A/D converter input pin
(ADTRG), A/D converter analog input pins (AN12 to AN15), D/A converter analog output pins
(DA2 and DA3), and interrupt input pins (IRQ7 to IRQ0). Port 5 pin functions are the same in all
operating modes.
Figure 5.5 shows the port 5 pin configuration.
Port 5
5.6.2

Register Configuration

Table 5.9 shows the port 5 register configuration. Bits 7 to 4 of port 5 are input-only ports, and do
not have corresponding data direction register or data register bits.
Table 5.9
Port 5 Registers
Name
Port 5 data direction register
Port 5 data register
Port 5 register
Note: * Lower 16 bits of the address.
222
Port 5 pins
P57 (input) / AN15 (input)
P56 (input) / AN14 (input)
P55 (input) / AN13 (input)
P54 (input) / AN12 (input)
/ ADTRG (input) / IRQ3 (input)
P53 (I/O)
P52 (I/O)
/ SCK2 (I/O)
P51 (I/O)
/ RxD2 (input)
/ TxD2 (output) / IRQ0 (input)
P50 (I/O)
Figure 5.5 Port 5 Pin Functions
Abbreviation
P5DDR
P5DR
PORT5
/ DA3 (output) / IRQ7 (input)
/ DA2 (output) / IRQ6 (input)
/ IRQ5 (input)
/ IRQ4 (input)
/ IRQ2 (input)
/ IRQ1 (input)
R/W
Initial Value
W
H'00
R/W
H'00
R
Undefined
Address*
H'FE24
H'FF64
H'FF54

Advertisement

Table of Contents
loading

Table of Contents