English
Language : 

H8S2189R Datasheet, PDF (171/812 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8S Family / H8S/2100 Series
Section 7 I/O Ports
7.2 Port 2
Port 2 is an 8-bit I/O port. Port 2 pins also functions as PWM output pins. Port 2 has a built-in
input pull-up MOS that can be controlled by software. Port 2 has the following registers.
• Port 2 data direction register (P2DDR)
• Port 2 data register (P2DR)
• Port 2 pull-up MOS control register (P2PCR)
7.2.1 Port 2 Data Direction Register (P2DDR)
The individual bits of P2DDR specify input or output for the pins of port 2.
Bit Bit Name Initial Value R/W
7
P27DDR 0
W
6
P26DDR 0
W
5
P25DDR 0
W
4
P24DDR 0
W
3
P23DDR 0
W
2
P22DDR 0
W
1
P21DDR 0
W
0
P20DDR 0
W
Description
The corresponding port 2 pins are output ports or
PWM outputs when the P2DDR bits are set to 1,
and input ports when cleared to 0.
Rev. 2.00 Aug. 03, 2005 Page 129 of 766
REJ09B0223-0200