参数资料
型号: M34571GD-XXXFP
元件分类: 微控制器/微处理器
英文描述: 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO24
封装: 5.30 X 10.10 MM, 0.80 MM PITCH, PLASTIC, SSOP-24
文件页数: 13/33页
文件大小: 1526K
代理商: M34571GD-XXXFP
Rev.1.02
May 25, 2007
Page 18 of 124
REJ03B0179-0102
4571 Group
(4) Internal state during an interrupt
The internal state of the microcomputer during an interrupt is as
follows (Figure 20).
Program counter (PC)
An interrupt address is set in program counter. The address to
b e ex ec u t e d wh e n re t u rn in g to the mai n rout ine is
automatically stored in the stack register (SK).
Interrupt enable flag (INTE)
INTE flag is cleared to “0” so that interrupts are disabled.
Interrupt request flag
Only the request flag for the current interrupt source is cleared
to “0” (the voltage drop detection circuit interrupt request flag
is excluded)
Data pointer, carry flag, skip flag, registers A and B
The contents of these registers and flags are stored
automatically in the interrupt stack register (SDP).
(5) Interrupt processing
When an interrupt occurs, a program at an interrupt address is
executed after branching a data store sequence to stack register.
Write the branch instruction to an interrupt service routine at an
interrupt address. Use the RTI instruction to return from an
interrupt service routine.
Interrupt enabled by executing the EI instruction is performed
after executing 1 instruction (just after the next instruction is
executed). Accordingly, when the EI instruction is executed just
before the RTI instruction, interrupts are enabled after returning
the main routine. (Refer to Figure 19)
Fig 19. Program example of interrupt processing
Fig 20. Internal state when interrupt occurs
Fig 21. Interrupt system diagram
Main
routine
Interrupt
occurs
Interrupt is
enabled
Interrupt
service routine
EI
RTI
: Interrupt enabled state
: Interrupt disabled state
Each interrupt address
Program counter (PC)
The address of main routine to be
executed when returning
Stack register (SK)
0 (Interrupt disabled)
Interrupt enable flag (INTE)
0 (excluding voltage drop detection interrupt request flag)
Interrupt request flag (only the flag for the current interrupt
source)
Stored in the interrupt stack register (SDP)
automatically
Data pointer, carry flag, registers A and B, skip flag
EXF0
Request flag
(state retained)
V10
Enable bit
Enable flag
Address 0
in page 1
INT0 pin interrupt
waveform input
Timer 2
underflow
T1F
V12
Address 4
in page 1
Timer 1
underflow
T2F
V13
Address 6
in page 1
T3F
V20
Address 8
in page 1
Activated
condition
INTE
Timer 3
underflow
EXF1
V11
Address 2
in page 1
INT1 pin interrupt
waveform input
VDF
V23
Address E
in page 1
when supply voltage
goes lower than
specified value
相关PDF资料
PDF描述
M34571G6-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO24
M34571GDFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO24
M34571G4FP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO24
M34571G6FP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO24
M35015-XXXSP 24 X 10 CHARACTERS CRT CHAR DSPL CTLR, PDIP20
相关代理商/技术参数
参数描述
M3458 功能描述:电缆固定件和配件 RLTCG 3/8 NPT BLACK NO NUT RoHS:否 制造商:Heyco 类型:Cable Grips, Liquid Tight 材料:Nylon 颜色:Black 安装方法:Cable 最大光束直径:11.4 mm 抗拉强度:
M34583EDFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34583MD-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34584EDFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34584MD-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER