
Chapter 3
3.9.1 Port 1
Port 1 is an input port with internal pull-low and wake-up functions. The pin
data is latched in RB (data memory address: 0x0B). You can read the input data
through a memory access instruction. The pull-low function is controlled by
R8. Refer to
System Control Registers
in Section 3.2 for the detailed
description of pull-low and wake-up functions.
RB Bit Field:
RB Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Port 1 Pin
P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.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 input pin. Because Port 1
is an input port, the RB register cannot be written.
PDRD
Pull-low
Control
DBUS
NOTE
Port 1 wake-up function is always enabled and the pull-low function is controlled by R8.
Hence, you must set Port 1 to pull-low before entering into sleep mode.
3.9.2 Port 2
Port 2 is a bi-directional port with internal pull-low and wake-up functions. The
pin data is latched in RC (data memory address: 0x0C). You can read the input
data or write the output data through a memory access instruction. The pull-low
function is controlled by R8. Refer to the
System Control Registers
in Section
3.2 for more detailed description. The I/O direction is controlled by IOCD (I/O
mapped register 0xD).
RC Bit Field:
RC Bit
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Port 2 Pin
P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.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 2 is
a bi-directional port, the RC register can be read or written.
EM60000 Series User’s Manual
System Control
•
31
Содержание 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 ...