Pin Functions - Renesas H8 Series Hardware Manual

8-bit single-chip microcomputer
Hide thumbs Also See for H8 Series:
Table of Contents

Advertisement

Section 8 I/O Ports
PDR9 is an 8-bit register that stores data for port 9 pins P9
bits are set to 1, the values stored in PDR9 are read, regardless of the actual pin states. If port 9 is
read while PCR9 bits are cleared to 0, the pin states are read.
Upon reset, PDR9 is initialized to H'C0.
Port Control Register 9 (PCR9)
Bit
Initial value
Read/Write
PCR9 controls whether each of the port 9 pins P9
Setting a PCR9 bit to 1 makes the corresponding pin an output pin, while clearing the bit to 0
makes the pin an input pin.
Upon reset, PCR9 is initialized to H'C0.
PCR9 is a write-only register, which is always reads as all 1.
8.9.3

Pin Functions

Table 8.24 shows the port 9 pin functions.
Table 8.24 Port 9 Pin Functions
Pin
Pin Functions and Selection Method
P9
The pin function depends on bit PCR9
n
PCR9
Pin function
Rev. 6.00 Sep 12, 2006 page 200 of 526
REJ09B0326-0600
7
6
5
0
0
0
n
to P9
. If port 9 is read while PCR9
4
0
4
3
PCR9
PCR9
4
3
0
0
W
W
to P9
functions as an input pin or output pin.
4
0
in PCR9.
n
0
P9
input pin
n
2
1
PCR9
PCR9
PCR9
2
1
0
0
W
W
(n = 4 to 0)
1
P9
output pin
n
0
0
0
W

Advertisement

Table of Contents
loading

Table of Contents