English
Language : 

MV20556 Datasheet, PDF (11/30 Pages) Mosel Vitelic, Corp – 8 - Bit MCU Mouse Controller
MOSEL VITELIC INC.
Preliminary
MV20556
Interrupt System(Cont'd)
The highest-priority interrupt request gets serviced at
the end of the instruction-in progress unless the
request is made in the last fourteen oscillator periods of
the instruction-in-progress. Under this circumstance,
the next instruction will also execute before the
interrupt's subroutine call is made. The first instruction
of the service program will begin execution twenty-four
oscillator periods (the time required for the hardware
subroutine call) after the completion of the
instruction-in-progress or, under the circumstances
mentioned earlier, twenty-four oscillator periods after
the next instruction.
Thus, the greatest delay in response to an interrupt
request is 86 oscillator periods (approximately 7µsec @
12 MHz). Examples of the best and worst case
conditions are illustrated in right side table.
External Interrupts
The external interrupt request inputs (#INT0 and
#INT1) can be programmed for either transition-
activated or level-activated operation. Control of the
external interrupts is provided by the four low-order bits
of TCON. When IT0 and IT1 are set to one (1),
interrupt requests on #INT0 and #INT1 are
transition-activated (high-to-low); or else they are
low-level activated. IE0 and IE1 are the interrupt
request flags. These flags are set when their
corresponding interrupt request inputs at #INT0 and
#INT1, respectively, are low when sampled by the
MV20556 and the transition activated scheme is
selected by IT0 and IT1. When IT0 and IT1 are
programmed for level-activated interrupts, the IE0 and
IE1 flags are not affected by the inputs #INT0 and
INT1, respectively.
Transition-Activated Interrupts
The external interrupt request inputs (#INT0 and
#INT1) can be programmed for high-to-low
transition-activated operation. For transition-activated
operation, the input must remain low for greater than
twelve oscillator periods, but need not be synchronous
with the oscillator. It is internally latched by the
MV20556 near the falling-edge of ALE during an
instruction's tenth, twenty-second, thirty-fourth and
forty-sixth oscillator periods and, if the input is low, IE0
or IE1 is set.
The upward transition of a transition- activated input
may occur at any time after the twelve oscillator period
latching time, but the input must remain high for twelve
oscillator periods before reactivation.
Level-Activated Interrupt
The external interrupt request inputs (#INT0 and
#INT1)can be programmed for level-activated
operation. The input is sampled by the MV20556 near
the falling-edge of internal signal ALE during the
instruction's tenth (10th), twenty-second (22nd), thirty-
fourteen (34th) and forty-sixth (46th) oscillator periods.
MSB
EA
-
LSB
-
ES ET1 EX1 ET0 EX0
EA
IE.7 Disable all interrupts. If EA=0, no interrupt will be acknowledged. If EA=1, each interrupt source is
individually enabled or disabled by setting or clearing its enable bit. Cleared by software to disable all
interrupts, independent of the state of IE. 4-IE.0
-
IE.6 Reserve for future use.
-
IE.5 Reserve for future use.
ES
IE.4 Enable Serial port control bit. Set/cleared by software to enable/disable interrupts from TI or RI flags.
ET1
IE.3 Enable or disable the timer 1 overflow interrupt. Set/cleared by software to enable/disable interrupts
from timer/counter 1
EX0
IE.2 Reserve for future use. Enable External interrupt 1 control bit. Set/cleared by software to
enable/disable interrupts from INT1.
ET0
IE.1 Enable or disable the timer 0 overflow interrupt. Set/cleared by software to enable/disable interrupts
from timer/counter 0
EX1
IE.0 Enable External interrupt 0 control bit. Set/cleared by software to enable/disable interrupts from INT0
IE definition
Specifications subject to change without notice, contact your sales representatives for the most recent information.
11/27
PID256** 07/97