Rev. 1.00, 09/03, page 143 of 704
7.3 Port
2
Port 2 is an 8-bit I/O port. Port 2 pins also function as address bus pins, address/data multiplex bus
pins, and TPU I/O pins. Pin functions change according to the operating mode.
Port 2 has the following registers.
•
Port 2 data direction register (P2DDR)
•
Port 2 data register (P2DR)
•
Port 2 register (PORT2)
•
Port 2 pull-up MOS control register (P2PCR)
7.3.1
Port 2 Data Direction Register (P2DDR)
The individual bits in P2DDR specify input or output for the pins of port 2. The read value is
undefined.
Bit
Bit Name
Initial Value R/W
Description
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
•
In normal extended mode
The corresponding port 2 pin is an address output
when a P2DDR bit is set to 1, and an input port
when cleared to 0.
•
In multiplex extended mode
Operation is not affected.
•
In single-chip mode
While a general I/O port function is selected, the
corresponding port 2 pin is an output port when a
P2DDR bit is set to 1, and an input port when
cleared to 0.
Summary of Contents for H8S/2437
Page 2: ...Rev 1 00 09 03 page ii of xxxviii ...
Page 8: ...Rev 1 00 09 03 page viii of xxxviii ...
Page 32: ...Rev 1 00 09 03 page xxxii of xxxviii ...
Page 38: ...Rev 1 00 09 03 page xxxviii of xxxviii ...
Page 168: ...Rev 1 00 09 03 page 130 of 704 ...
Page 336: ...Rev 1 00 09 03 page 298 of 704 ...
Page 402: ...Rev 1 00 09 03 page 364 of 704 ...
Page 454: ...Rev 1 00 09 03 page 416 of 704 ...
Page 512: ...Rev 1 00 09 03 page 474 of 704 ...
Page 562: ...Rev 1 00 09 03 page 524 of 704 ...
Page 648: ...Rev 1 00 09 03 page 610 of 704 ...
Page 672: ...Rev 1 00 09 03 page 634 of 704 ...
Page 732: ...Rev 1 00 09 03 page 694 of 704 ...
Page 742: ...Rev 1 00 09 03 page 704 of 704 ...
Page 745: ......
Page 746: ...H8S 2437 Group Hardware Manual REJ09B0059 0100Z ...