Port 2 Data Register (P2Dr)); Port 2 Pull-Up Mos Control Register (P2Pcr); Pin Functions - Renesas H8S/2111B Hardware Manual

Bit single-chip microcomputer h8s family / h8s/2100 series
Table of Contents

Advertisement

7.2.2

Port 2 Data Register (P2DR))

P2DR stores output data for port 2.
Bit
Bit Name
7
P27DR
6
P26DR
5
P25DR
4
P24DR
3
P23DR
2
P22DR
1
P21DR
0
P20DR
7.2.3

Port 2 Pull-Up MOS Control Register (P2PCR)

P2PCR controls the port 2 on-chip input pull-up MOSs.
Bit
Bit Name
7
P27PCR
6
P26PCR
5
P25PCR
4
P24PCR
3
P23PCR
2
P22PCR
1
P21PCR
0
P20PCR
7.2.4

Pin Functions

• P27, P26, P25, P24, P23, P22, P21, P20
The pin function is switched as shown below according to the state of the P2nDDR bit.
P2nDDR
Pin Function
[Legend]
n = 7 to 0
Initial
Value
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
Initial
Value
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
P27 to P20 input pins
Description
If a port 2 read is performed while P2DDR bits are set
to 1, the P2DR values are read directly, regardless of
the actual pin states. If a port 2 read is performed while
P2DDR bits are cleared to 0, the pin states are read.
Description
The input pull-up MOS is turned on when a P2PCR bit
is set to 1 in the input port state.
1
P27 to P20 output pins
Rev. 1.00, 05/04, page 103 of 544

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2111b

Table of Contents