ML63611 User’s Manual
Chapter 10 Ports (INPUT, I/O PORT)
10 – 5
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.3 Port 0 External Interrupt Function (External Interrupt 5)
Port 0 has external interrupt 5 allocated as secondary function. Individual bits can be enabled/disabled for external
interrupt 5.
External interrupt generation for each input of port 0 is triggered by the falling edge of either the 128 Hz or 4 kHz
sampling clock from the time base counter.
After the port level changes, interrupt request signal XI5INT is output and external interrupt 5 request flag (QXI5)
is set. The maximum time delay from the change in port level until setting QXI5 is one cycle of the sampling
clock (128 Hz or 4 kHZ).
Because the port 0 external interrupt 5 is set by a level change at any of the port 0 inputs, each bit of the port must
be read to determine which bit of port 0 generated the interrupt.
The interrupt vector address for external interrupt 5 is 001EH.
Figure 10-2 shows an equivalent circuit of external interrupt 5 control.
P0.0
Level change
detection circuit
IE1.3
EXI5
To interrupt
priority encoder
circuit
128 Hz
4 kHz
P0CON1
P0F
Sampling signal
IRQ1
IE1
IRQ1.3
QXI5
XI5INT
P00IE
P01IE
P02IE
P03IE
P0IE
P0.1
P0.2
P0.3
P0PUD
Figure 10-2 Equivalent Circuit of External Interrupt 5 Control
Figure 10-3 shows the timing for generation of external interrupt 5.
(a) P0PUD = “0” (initial value: inputs with pull-down resistors) setting
•
When all P0.0 to P0.3 inputs are at a “L” level
External interrupt 5 is generated when any port 0 input changes to a “H” level.
•
When any of P0.0 to P0.3 inputs is at a “H” level
External interrupt 5 is generated when all the port 0 inputs change to a “L” level.
(b) P0PUD = “1” (inputs with pull-up resistors) setting
•
When all P0.0 to P0.3 inputs are at a “H” level
External interrupt 5 is generated when any port 0 input changes to a “L” level.
•
When any of P0.0 to P0.3 inputs is at a “L” level
External interrupt 5 is generated when all the port 0 inputs change to a “H” level.
Summary of Contents for ML63611
Page 9: ...Chapter 1 Overview...
Page 33: ...Chapter 2 CPU and Memory Spaces...
Page 42: ...Chapter 3 CPU Control Functions...
Page 49: ...Chapter 4 Interrupt INT...
Page 62: ...Chapter 5 Clock Generator Circuit OSC...
Page 71: ...Chapter 6 Time Base Counter TBC...
Page 75: ...Chapter 7 Timers TIMER...
Page 99: ...Chapter 8 100 Hz Timer Counter 100HzTC...
Page 103: ...Chapter 9 Watchdog Timer WDT...
Page 108: ...Chapter 10 Ports INPUT I O PORT...
Page 140: ...Chapter 11 Melody Driver MELODY...
Page 152: ...Chapter 12 Serial Port SIO...
Page 179: ...Chapter 13 LCD Driver LCD...
Page 200: ...Chapter 14 Battery Low Detect Circuit BLD...
Page 204: ...Chapter 15 Power Supply Circuit POWER...
Page 215: ...Chapter 16 A D Converter ADC...
Page 238: ...Appendixes...