265
5.13.2
Register Configuration
Table 5.26 shows the port D register configuration.
Table 5.26
Port D Registers
Name
Abbreviation
R/W
Initial Value
Address
*
Port D data direction register
PDDDR
W
H'00
H'FE2C
Port D data register
PDDR
R/W
H'00
H'FF6C
Port D register
PORTD
R
Undefined
H'FF5C
Port D MOS pull-up control register
PDPCR
R/W
H'00
H'FE39
Note:
*
Lower 16 bits of the address.
Port D Data Direction Register (PDDDR)
Bit
7
6
5
4
3
2
1
0
PD7DDR PD6DDR PD5DDR PD4DDR PD3DDR PD2DDR PD1DDR PD0DDR
Initial value
0
0
0
0
0
0
0
0
Read/Write
W
W
W
W
W
W
W
W
PDDDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port D. PDDDR cannot be read; if it is, an undefined value will be read.
PDDDR is initialized to H'00 by a reset and in hardware standby mode. It retains its prior state in
software standby mode.
•
Modes 1, 2, 4, 5, and 6
The input/output direction specification by PDDDR is ignored, and port D is automatically
designated for data input/output.
•
Mode 7 (when bit EXPE is set to 1 in SYSCR)
The input/output direction specification by PDDDR is ignored, and port D is automatically
designated for data input/output.
•
Mode 7 (when bit EXPE is cleared to 0 in SYSCR)
Port D is an I/O port, and its pin functions can be switched with PDDDR.
Содержание H8S/2670
Страница 5: ......
Страница 9: ......
Страница 199: ...182 ...
Страница 361: ...344 ...
Страница 393: ...376 ...
Страница 647: ...630 ...