275
5.15.2
Register Configuration
Table 5.32 shows the port F register configuration.
Table 5.32
Port F Registers
Name
Abbreviation
R/W
Initial Value
Address
*
1
Port F data direction register
PFDDR
W
H'80/H'00
*
2
H'FE2E
Port F data register
PFDR
R/W
H'00
H'FF6E
Port F register
PORTF
R
Undefined
H'FF5E
Port function control register 2
PFCR2
R/W
H'0E
H'FE34
Notes: 1. Lower 16 bits of the address.
2. Initial value depends on the mode.
Port F Data Direction Register (PFDDR)
Bit
7
6
5
4
3
2
1
0
PF7DDR PF6DDR PF5DDR PF4DDR PF3DDR PF2DDR PF1DDR PF0DDR
Modes 1, 2, 4, 5, 6
Initial value
1
0
0
0
0
0
0
0
Read/Write
W
W
W
W
W
W
W
W
Mode 7
Initial value
0
0
0
0
0
0
0
0
Read/Write
W
W
W
W
W
W
W
W
PFDDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port F. PFDDR cannot be read; if it is, an undefined value will be read.
PFDDR is initialized by a reset and in hardware standby mode, to H'80 in modes 1, 2, 4, 5, and 6,
and to H'00 in mode 7. It retains its prior state in software standby mode. The OPE bit in SBYCR
is used to select whether the bus control output pins retain their output state or become high-
impedance when a transition is made to software standby mode.
•
Modes 1, 2, 4, 5, and 6
Pin PF7 functions as the ø output pin when the corresponding PFDDR bit is set to 1, and as an
input port when the bit is cleared to 0.
Pin PF6 functions as the
AS
output pin when ASOE is set to 1. When ASOE is cleared to 0,
pin PF6 is an I/O port and its function can be switched with PF6DDR.
The input/output direction specification in PFDDR is ignored for pins PF5 and PF4, which are
automatically designated as bus control outputs (
RD
and
HWR
).
Содержание H8S/2670
Страница 5: ......
Страница 9: ......
Страница 199: ...182 ...
Страница 361: ...344 ...
Страница 393: ...376 ...
Страница 647: ...630 ...