參數(shù)資料
型號: MB89636RP-SH
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PDIP64
封裝: SHRINK, DIP-64
文件頁數(shù): 30/153頁
文件大?。?/td> 7326K
代理商: MB89636RP-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.
相關(guān)PDF資料
PDF描述
MB89635RP-SH 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PDIP64
MB89635RPF 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP64
MB89PV950CF 8-BIT, 5 MHz, MICROCONTROLLER, CQFP64
MB89951PFM 8-BIT, MROM, 5 MHz, MICROCONTROLLER, PQFP64
MB89T623PFM 8-BIT, 10 MHz, MICROCONTROLLER, PQFP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MB89637 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89637PF 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89637PFM 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89637P-SH 制造商:FUJITSU 制造商全稱:Fujitsu Component Limited. 功能描述:8-bit Proprietary Microcontroller
MB89637R 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-bit Proprietary Microcontroller