ML63611 User’s Manual
Chapter 10 Ports (INPUT, I/O PORT)
10 – 2
OPTION B (D): 1.5 V (3.0 V), With regulator
circuit for LCD bias
OPTION A (C): 1.5 V (3.0 V), Without regulator
circuit for LCD bias
10.3
Port 0 (P0.0–P0.3)
The ML63611 has Port 0, a 4-bit input-only port.
Apart from the input port function, Port 0 has the functions of external interrupts and the function of transfer to
system reset due to simultaneous key depression.
10.3.1 Port 0 Configuration
For the input port functions, there are the input modes of input with pull-up resistor, input with pull-down resistor,
and high impedance, which can be selected by the Port 0 control registers 0/1 (P0CON0 and P0CON1). Among
the external interrupt functions, the external 5 interrupt function has been assigned to this port which detects the
OR result of the four input bits. It is possible to set the interrupt enabling and disabling for each bit using the Port
0 interrupt enable register (P0IE).
The function of transfer to system reset due to simultaneous key depression is the function of transferring to the
system reset mode when there is simultaneous key depression of 2 bits, 3 bits, or 4 bits, as specified by the mask
option, for a period of more than about 2 to 3 seconds. For details, see Section 3.2, “System Reset Mode (RST)”.
Figure 10-1 shows the configuration of port 0.
Figure 10-1 Input-Only Port (Port 0) Configuration
10.3.2 Port 0 Registers
The following registers are used to control port 0:
(1)
Port 0 data register (P0D)
(2)
Port 0 control registers 0/1 (P0CON0, P0CON1)
(3)
Port 0 interrupt enable register (P0IE)
(1) Port 0 data register (P0D)
P0D is a 4-bit read-only special function register (SFR) used to read the pin level of each bit of port 0.
Pull-up/
pull-down
control
P0CON0
P0CON1
4
4
V
DD
4
V
SS
Read P0D
4
4
P0.0–P0.3
(to external interrupt 5
control circuit)
Data bus
P0.0–P0.3
P03
P02
P01
P00
P0D (000H)
(R)
bit 3
bit 2
bit 1
bit 0
Pin level of each bit of port 0
0: “L” level (initial value)
1: “H” level
Содержание ML63611
Страница 9: ...Chapter 1 Overview...
Страница 33: ...Chapter 2 CPU and Memory Spaces...
Страница 42: ...Chapter 3 CPU Control Functions...
Страница 49: ...Chapter 4 Interrupt INT...
Страница 62: ...Chapter 5 Clock Generator Circuit OSC...
Страница 71: ...Chapter 6 Time Base Counter TBC...
Страница 75: ...Chapter 7 Timers TIMER...
Страница 99: ...Chapter 8 100 Hz Timer Counter 100HzTC...
Страница 103: ...Chapter 9 Watchdog Timer WDT...
Страница 108: ...Chapter 10 Ports INPUT I O PORT...
Страница 140: ...Chapter 11 Melody Driver MELODY...
Страница 152: ...Chapter 12 Serial Port SIO...
Страница 179: ...Chapter 13 LCD Driver LCD...
Страница 200: ...Chapter 14 Battery Low Detect Circuit BLD...
Страница 204: ...Chapter 15 Power Supply Circuit POWER...
Страница 215: ...Chapter 16 A D Converter ADC...
Страница 238: ...Appendixes...
Страница 271: ...ML63611 User s Manual First Edition May 2001 Second Edition June 2001 2001 Oki Electric Industry Co Ltd PEUL63611 02...