ML63611 User’s Manual
Chapter 10 Ports (INPUT, I/O PORT)
10 – 17
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.5.3 Port B External Interrupt Function (External Interrupt 0)
Port B has external interrupt 0 allocated as secondary function. Individual bits can be enabled/disabled for
external interrupt 0.
External interrupt generation for port B is triggered by the falling edge of the 128 Hz or 4 kHz time base counter,
which is the sampling clock.
After the port level changes, the interrupt request signal (XI0INT) is output, and the interrupt request flag (QXI0)
is set. The maximum delay for this sequence is one cycle of the sampling clock (128 Hz or 4 kHz).
Because the port B external interrupt is set by a level change at any of the port B inputs, each bit of the port must
be read to determine which bit of port B generated the interrupt.
The interrupt start address for external interrupt 0 is 0014H.
Figure 10-8 shows the equivalent circuit for external interrupt 0 control.
Level change
detect circuit
128 Hz
4 kHz
PBMOD
PBF
PB0IE
PB1IE
PB2IE
PB3IE
PBIE
PB.0
PB.1
PB.2
PB.3
IE0.2
EXI0
to interrupt priority
encoder
IRQ0
IE0
IRQ0.2
QXI0
XI0INT
PB0MD1
PB1MD1
PB2MD1
PB3MD1
PBCON0, PBCON1
Figure 10-8 External Interrupt 0 Control Equivalent Circuit
Figure 10-9 shows the external interrupt 0 generation timing.
(a) PB0MD1 to PB3MD1 = “0” (initial value: inputs with pull-down resistors or high impedance input)
setting
•
When all PB.0 to PB.3 inputs are at a “L” level
External interrupt 0 is generated when any port B input changes to a “H” level.
•
When any of PB.0 to PB.3 inputs is at a “H” level
External interrupt 0 is generated when all the port B inputs change to a “L” level.
(b) PB0MD1 and PB1MD1 = “0” and PB2MD1 and PB3MD1 = “1” (PB.0 and PB.1 selected as inputs with
pull-down resistors or high impedance input; PB.2 and PB.3 selected as inputs with pull-up resistors or
high impedance input) setting
•
When both PB.0 and PB.1 inputs are at a “L” level AND both PB.2 and PB.3 inputs are at a “H”
level
External interrupt 0 is generated when either PB.0 or PB.1 input changes to a “H” level
(alternatively, when either PB.2 or PB.3 input changes to a “L” level).
•
When either PB.0 or PB.1 input is at a “H” level OR either PB.2 or PB.3 input is at a “L” level
External interrupt 0 is generated when both PB.0 and PB.1 inputs change to a “L” level AND both
PB.2 and PB.3 inputs change to a “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...