Port 5; Overview; Register Configuration - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

9.6

Port 5

9.6.1

Overview

Port 5 is a 4-bit I/O port. Port 5 pins also function as SCI I/O pins (TxD2, RxD2, and SCK2) and the A/D converter input
pin (ADTRG). Port 5 pin functions are the same in all operating modes. Figure 9-5 shows the port 5 pin configuration.
9.6.2

Register Configuration

Table 9-9 shows the port 5 register configuration.
Table 9-9
Port 5 Registers
Name
Port 5 data direction register
Port 5 data register
Port 5 register
Notes: 1. Lower 16 bits of the address.
2. Value of bits 3 to 0.
Port 5 Data Direction Register (P5DDR)
Bit
:
7
Initial value :
Undefined Undefined Undefined Undefined
R/W
:
P5DDR is an 8-bit write-only register, the individual bits of which specify input or output for the pins of port 5. Bits 7 to 4
are reserved. P5DDR cannot be read; if it is, an undefined value will be read.
Setting a P5DDR bit to 1 makes the corresponding port 5 pin an output pin, while clearing the bit to 0 makes the pin an
input pin.
P5DDR is initialized to H'0 (bits 3 to 0) by a power-on reset, and in hardware standby mode. It retains its prior state after a
manual reset*, and in software standby mode. As the SCI is initialized, the pin states are determined by the P5DDR and
P5DR specifications.
Rev.6.00 Oct.28.2004 page 294 of 1016
REJ09B0138-0600H
Port 5
Figure 9-5 Port 5 Pin Functions
Abbreviation
P5DDR
P5DR
PORT5
6
5
4
Port 5 pins
P5
(I/O)/ADTRG (input)
3
P5
(I/O)/SCK2 (I/O)
2
P5
(I/O)/RxD2 (input)
1
P5
(I/O)/TxD2 (output)
0
R/W
Initial Value*
W
H'0
R/W
H'0
R
Undefined
3
2
P53DDR P52DDR P51DDR P50DDR
0
0
W
W
2
Address*
H'FEB4
H'FF64
H'FF54
1
0
0
0
W
W
1

Advertisement

Table of Contents
loading

Table of Contents