參數(shù)資料
型號: M3823AGF-XXXHP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
封裝: 12 X 12 MM, 0.50 MM PITCH, PLASTIC, LQFP-80
文件頁數(shù): 19/76頁
文件大小: 896K
代理商: M3823AGF-XXXHP
Rev.2.02
Jun 19, 2007
page 26 of 73
REJ03B0146-0202
3823 Group
Interrupt Request Generation, Acceptance,
and Handling
Interrupts have the following three phases.
(i) Interrupt Request Generation
An interrupt request is generated by an interrupt source (ex-
ternal interrupt signal input, timer underflow, etc.) and the
corresponding request bit is set to “1”.
(ii) Interrupt Request Acceptance
Based on the interrupt acceptance timing in each instruction
cycle, the interrupt control circuit determines acceptance con-
ditions (interrupt request bit, interrupt enable bit, and interrupt
disable flag) and interrupt priority levels for accepting interrupt
requests. When two or more interrupt requests are generated
simultaneously, the highest priority interrupt is accepted. The
value of interrupt request bit for an unaccepted interrupt re-
mains the same and acceptance is determined at the next
interrupt acceptance timing point.
(iii) Handling of Accepted Interrupt Request
The accepted interrupt request is processed.
Figure 18 shows the time up to execution in the interrupt process-
ing routine, and Figure 19 shows the interrupt sequence.
Figure 20 shows the timing of interrupt request generation, inter-
rupt request bit, and interrupt request acceptance.
Interrupt Handling Execution
When interrupt handling is executed, the following operations are
performed automatically.
(1) Once the currently executing instruction is completed, an inter-
rupt request is accepted.
(2) The contents of the program counters and the processor status
register at this point are pushed onto the stack area in order
from 1 to 3.
1. High-order bits of program counter (PCH)
2. Low-order bits of program counter (PCL)
3. Processor status register (PS)
(3) Concurrently with the push operation, the jump address of the
corresponding interrupt (the start address of the interrupt pro-
cessing routine) is transferred from the interrupt vector to the
program counter.
(4) The interrupt request bit for the corresponding interrupt is set
to “0”. Also, the interrupt disable flag is set to “1” and multiple
interrupts are disabled.
(5) The interrupt routine is executed.
(6) When the RTI instruction is executed, the contents of the reg-
isters pushed onto the stack area are popped off in the order
from 3 to 1. Then, the routine that was before running interrupt
processing resumes.
As described above, it is necessary to set the stack pointer and
the jump address in the vector area corresponding to each inter-
rupt to execute the interrupt processing routine.
■Notes
The interrupt request bit may be set to “1” in the following cases.
When setting the external interrupt active edge
Related registers: Interrupt edge selection register
(address 003A16)
Timer X mode register (address 002716)
Timer Y mode register (address 002816)
If it is not necessary to generate an interrupt synchronized with
these settings, take the following sequence.
(1) Set the corresponding enable bit to “0” (disabled).
(2) Set the interrupt edge selection bit (the active edge switch
bit) or the interrupt source bit.
(3) Set the corresponding interrupt request bit to “0” after one or
more instructions have been executed.
(4) Set the corresponding interrupt enable bit to “1” (enabled).
Fig. 18 Time up to execution in interrupt routine
Fig. 19 Interrupt sequence
Main routine
Interrupt handling
routine
Interrupt request
generated
Interrupt request
acceptance
Interrupt routine
starts
Interrupt sequence
7 cycles
7 to 23 cycles
* When executing DIV instruction
Stack push and
Vector fetch
0 to 16 cycles
*
φ
SYNC
RD
WR
Address bus
Data bus
PC
Not used
S,SPS
S-1,SPS S-2,SPS
BL
BH
AL,AH
PCH
PCL
PS
AL
AH
SYNC :CPU operation code fetch cycle
(This is an internal signal that cannot be observed from the external unit.)
BL, BH: Vector address of each interrupt
AL, AH: Jump destination address of each interrupt
SPS
: “0016” or “0116
([SPS] is a page selected by the stack page selection bit of CPU mode register.)
Push onto stack
Vector fetch
Execute interrupt
routine
相關(guān)PDF資料
PDF描述
M38238G8FP 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
M3823AGFHP 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
M38239GC-XXXFP 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
M38234G4HP 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
M38235G6HP 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M3823AT-RLFS 功能描述:DEV EMULATOR PERSONALITY KIT M38 RoHS:否 類別:編程器,開發(fā)系統(tǒng) >> 配件 系列:- 產(chǎn)品培訓(xùn)模塊:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program RoHS指令信息:IButton RoHS Compliance Plan 標(biāo)準(zhǔn)包裝:1 系列:- 附件類型:USB 至 1-Wire? RJ11 適配器 適用于相關(guān)產(chǎn)品:1-Wire? 設(shè)備 產(chǎn)品目錄頁面:1429 (CN2011-ZH PDF)
M3823-BLACK-1000 制造商:Alpha Wire 功能描述:
M3824 功能描述:電纜固定件和配件 LTSCG 1000 BLACK RoHS:否 制造商:Heyco 類型:Cable Grips, Liquid Tight 材料:Nylon 顏色:Black 安裝方法:Cable 最大光束直徑:11.4 mm 抗拉強(qiáng)度:
M38257E8FP 制造商:Renesas Electronics Corporation 功能描述:8-BIT, OTPROM, 4 MHz, MICROCONTROLLER, PQFP100
M38257E8FS 功能描述:IC 740 MCU OTP 32K 100-PQFP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:740/38000 標(biāo)準(zhǔn)包裝:160 系列:S08 核心處理器:S08 芯體尺寸:8-位 速度:40MHz 連通性:I²C,LIN,SCI,SPI 外圍設(shè)備:LCD,LVD,POR,PWM,WDT 輸入/輸出數(shù):53 程序存儲器容量:32KB(32K x 8) 程序存儲器類型:閃存 EEPROM 大小:- RAM 容量:1.9K x 8 電壓 - 電源 (Vcc/Vdd):2.7 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 12x12b 振蕩器型:內(nèi)部 工作溫度:-40°C ~ 105°C 封裝/外殼:64-LQFP 包裝:托盤