247
5.10.2
Register Configuration
Table 5.17 shows the port A register configuration.
Table 5.17
Port A Registers
Name
Abbreviation
R/W
Initial Value
Address
*
Port A data direction register
PADDR
W
H'00
H'FE29
Port A data register
PADR
R/W
H'00
H'FF69
Port A register
PORTA
R
Undefined
H'FF59
Port A MOS pull-up control register
PAPCR
R/W
H'00
H'FE36
Port A open-drain control register
PAODR
R/W
H'00
H'FE3D
Port function control register 1
PFCR1
R/W
H'FF
H'FE33
Note:
*
Lower 16 bits of the address.
Port A Data Direction Register (PADDR)
Bit
7
6
5
4
3
2
1
0
PA7DDR PA6DDR PA5DDR PA4DDR PA3DDR PA2DDR PA1DDR PA0DDR
Initial value
0
0
0
0
0
0
0
0
Read/Write
W
W
W
W
W
W
W
W
PADDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port A. PADDR cannot be read; if it is, an undefined value will be read.
PADDR is initialized to H'00 by a reset and in hardware standby mode. It retains its prior state in
software standby mode. The OPE bit in SBYCR is used to select whether the address output pins
retain their output state or become high-impedance when a transition is made to software standby
mode.
•
Modes 1, 2, 5, and 6
Pins PA4 to PA0 are address outputs regardless of the PADDR settings.
For pins PA7 to PA5, when the corresponding bit of A23E to A21E is set to 1, setting a
PADDR bit to 1 makes the corresponding port A pin an address output, while clearing the bit
to 0 makes the pin an input port. Clearing one of bits A23E to A21E to 0 makes the
corresponding port A pin an I/O port, and its function can be switched with PADDR.
Содержание H8S/2670
Страница 5: ......
Страница 9: ......
Страница 199: ...182 ...
Страница 361: ...344 ...
Страница 393: ...376 ...
Страница 647: ...630 ...