datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

4501 查看數據表(PDF) - MITSUBISHI ELECTRIC

零件编号
产品描述 (功能)
比赛名单
4501
Mitsubishi
MITSUBISHI ELECTRIC  Mitsubishi
4501 Datasheet PDF : 113 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
MITSUBISHI MICROCOMPUTERS
4501 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
INTERRUPT FUNCTION
The interrupt type is a vectored interrupt branching to an individual
address (interrupt address) according to each interrupt source. An
interrupt occurs when the following 3 conditions are satisfied.
An interrupt activated condition is satisfied (request flag = 1)
Interrupt enable bit is enabled (1)
Interrupt enable flag is enabled (INTE = 1)
Table 3 shows interrupt sources. (Refer to each interrupt request
flag for details of activated conditions.)
(1) Interrupt enable flag (INTE)
The interrupt enable flag (INTE) controls whether the every inter-
rupt enable/disable. Interrupts are enabled when INTE flag is set to
1with the EI instruction and disabled when INTE flag is cleared to
0with the DI instruction. When any interrupt occurs, the INTE flag
is automatically cleared to 0,so that other interrupts are disabled
until the EI instruction is executed.
(2) Interrupt enable bit
Use an interrupt enable bit of interrupt control registers V1 and V2
to select the corresponding interrupt or skip instruction.
Table 4 shows the interrupt request flag, interrupt enable bit and
skip instruction.
Table 5 shows the interrupt enable bit function.
(3) Interrupt request flag
When the activated condition for each interrupt is satisfied, the cor-
responding interrupt request flag is set to 1.Each interrupt
request flag is cleared to 0when either;
an interrupt occurs, or
the next instruction is skipped with a skip instruction.
Each interrupt request flag is set when the activated condition is
satisfied even if the interrupt is disabled by the INTE flag or its in-
terrupt enable bit. Once set, the interrupt request flag retains set
until a clear condition is satisfied.
Accordingly, an interrupt occurs when the interrupt disable state is
released while the interrupt request flag is set.
If more than one interrupt request flag is set when the interrupt dis-
able state is released, the interrupt priority level is as follows
shown in Table 3.
Table 3 Interrupt sources
Priority Interrupt name
level
1 External 0 interrupt
2 Timer 1 interrupt
3 Timer 2 interrupt
4 A-D interrupt
Activated condition
Level change of INT
pin
Timer 1 underflow
Timer 2 underflow
Completion of
A-D conversion
Interrupt
address
Address 0
in page 1
Address 4
in page 1
Address 6
in page 1
Address C
in page 1
Table 4 Interrupt request flag, interrupt enable bit and skip in-
struction
Interrupt name Request flag Skip instruction Enable bit
External 0 interrupt
EXF0
SNZ0
V10
Timer 1 interrupt
T1F
SNZT1
V12
Timer 2 interrupt
T2F
SNZT2
V13
A-D interrupt
ADF
SNZAD
V22
Table 5 Interrupt enable bit function
Interrupt enable bit Occurrence of interrupt
1
Enabled
0
Disabled
Skip instruction
Invalid
Valid
17

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]