参数资料
型号: MB89T635P-SH
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 10 MHz, MICROCONTROLLER, PDIP64
封装: SHRINK, DIP-64
文件页数: 30/153页
文件大小: 7326K
代理商: MB89T635P-SH
MB89630 SERIES HARDWARE MANUAL
3-6
3.3 INTERRUPT
If the interrupt controller and CPU are ready to accept interrupts when an interrupt request is output from
the resources or by an external-interrupt input, the CPU temporarily suspends the currently-executing
instruction and executes the interrupt-processing program. Figure 3.3 shows the interrupt-processing flow-
chart.
Fig. 3.17 Interrupt-processing Flowchart
All interrupts are disabled after a reset is cleared. Therefore, initialize interrupts in the main program (1).
Each resource generating interrupts and the interrupt-level-setting registers (ILR1 - ILR3) in the interrupt
controller corresponding to these interrupts are to be initialized. The levels of all interrupts can be set by
the interrupt-level-setting registers (ILR1 - ILR3) in the interrupt controller. The interrupt level can be set
from 1 to 3, where 1 indicates the highest level, and 2 the second highest level. Level 3 indicates that no
interrupt occurs. The interrupt request of this level can be accepted. After initializing the resource regis-
ters, the main program exe cutes various controls (2). Interrupts are generated from the resources (3). The
highest-priority interrupt re quests are identified from those occurring at the same time by the interrupt con-
troller and are transferred to the CPU. The CPU then checks the current interrupt level and the status of
the I-flag (4), and starts the interrupt processing.
The CPU performs the interrupt processing to save the contents of the current PC and PS in the stack (5)
and fetches the entry addresses of the interrupt program from the interrupt vectors. After updating the IL
value in the PS to the required one, the CPU starts executing the interrupt-processing routine.
Clear the interrupt sources (6) and process the interrupts in the user's interrupt-processing routine. Finally,
restore the PC and PS values saved by the RETI instruction in the stack (8) to return to the interrupted
instruc tion.
Note: Unlike the F2MC-8, A and T are not saved in the stack at the interrupt time.
相关PDF资料
PDF描述
MB89195PF 8-BIT, MROM, 4.2 MHz, MICROCONTROLLER, PDSO28
MB89152APF 8-BIT, MROM, MICROCONTROLLER, PQFP80
MB89P155PF-105 8-BIT, OTPROM, MICROCONTROLLER, PQFP80
MD2202-D192 FLASH MEMORY DRIVE CONTROLLER, PDIP32
M38022M4-XXXSP 8-BIT, MROM, MICROCONTROLLER, PDIP64
相关代理商/技术参数
参数描述
MB89T637R-101P-G-SH 制造商:FUJITSU 功能描述:
MB89T637R-102P-G-SH-E1 制造商:FUJITSU 功能描述:
MB89T715APF-G-BND-T 制造商:FUJITSU 功能描述:
MB8A3A2HR 制造商:Kessler-Ellis Products 功能描述:
MB8AA0510RBC-GE1 功能描述:IC 10 GIGABIT ETHER INTER RoHS:是 类别:集成电路 (IC) >> 接口 - 电信 系列:- 产品培训模块:Lead (SnPb) Finish for COTS 产品变化通告:Product Discontinuation 06/Feb/2012 标准包装:750 系列:*