
Chapter 3
Port 3 will be configured as input port while in reset condition. Initial value of
IOCE is all “1.”
PCRD
PDRD
Pad
0
1
MUX
PDWR
CLR
PR
Q
D
PR
Q
D
PCWR
CLR
DBUS
3.9.4 Port 4
Port 4 is a common bi-directional port that does not have internal pull-low nor
wake-up function. The pin data is latched in RE (data memory address: 0x0E)
and you can read the input data or write the output data through a memory
access instruction. Note that the I/O direction is controlled by IOCF (I/O
mapped register 0xF).
RE Bit Field:
RE Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Port 4 Pin
P4.7 P4.6 P4.5 P4.4 P4.3 P4.2 P4.1 P4.0
Bit value=0: the relative pin is in “LOW” status.
Bit value=1: the relative pin is in “HIGH” status.
Each bit value reflects the status of its corresponding I/O pin. Because Port 4 is
a bi-directional port, the RE register can be read or written.
IOCF bit field:
IOCF Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Port 4 Pin
P4.7 P4.6 P4.5 P4.4 P4.3 P4.2 P4.1 P4.0
Bit value=0: the relative pin is configured as output pin.
Bit value=1: the relative pin is configured as input pin.
Port 4 will be configured as an input port during a reset condition and the initial
value of IOCF is all “1.”
EM60000 Series User’s Manual
System Control
•
33
Содержание EM60000 series
Страница 8: ...Contents viii Contents EM60000 Series User s Manual ...
Страница 24: ...Chapter 2 16 Architecture EM60000 Series User s Manual ...
Страница 54: ...Chapter 4 46 Special Function Control EM60000Series User s Manual ...
Страница 80: ...Chapter 5 72 Instruction Set EM60000Series User s Manual ...