參數(shù)資料
型號: ST623X-EMU2
廠商: 意法半導(dǎo)體
英文描述: REAL TIME EMULATION DEVELOPMENT TOOLS FOR ST6 MCU FAMILY
中文描述: 實時仿真開發(fā)工具,ST6單片機系列
文件頁數(shù): 30/86頁
文件大?。?/td> 531K
代理商: ST623X-EMU2
30/86
ST62T30B ST62E30B
INTERRUPTS
(Cont’d)
3.4.2 Interrupt Procedure
The interrupt procedure is very similar to a callpro-
cedure, indeed the user can consider the interrupt
as an asynchronous call procedure. As this is an
asynchronous event, the user cannot know the
context and the time at which it occurred. As a re-
sult, the user should save all Data space registers
which may be used within the interrupt routines.
There are separate setsof processor flags for nor-
mal, interrupt and non-maskable interrupt modes,
which are automatically switched and so do not
need to be saved.
The following list summarizes the interrupt proce-
dure:
MCU
– The interrupt is detected.
– The C and Z flags are replaced by the interrupt
flags (or by the NMI flags).
– The PC contents are stored in the first level of
the stack.
– The normalinterrupt lines are inhibited (NMI still
active).
– The first internal latch is cleared.
– TheassociatedinterruptvectorisloadedinthePC.
WARNING:
In some circumstances, when a
maskable interrupt occurs while the ST6 core is in
NORMAL mode and especially during the execu-
tion of an ”ldi IOR, 00h” instruction (disabling all
maskable interrupts): if the interrupt arrives during
the first 3 cycles of the ”ldi” instruction (which is a
4-cycle instruction) the core will switch to interrupt
mode BUT the flags CN and ZN will NOT switch to
the interrupt pair CI and ZI.
User
– User selected registers are saved within the in-
terrupt service routine (normally on a software
stack).
– Thesource ofthe interruptis found bypolling the
interrupt flags (if more than one source is associ-
ated with the same vector).
– The interrupt is serviced.
– Return from interrupt (RETI)
MCU
– Automatically theMCU switches back to the nor-
mal flag set (or the interrupt flag set) and pops
the previous PC value from the stack.
The interrupt routine usually begins by the identify-
ing the device which generated the interrupt re-
quest (by polling). The user should save the regis-
ters which are usedwithin theinterrupt routine in a
software stack. After the RETI instruction is exe-
cuted, the MCU returns to the main routine.
Figure 19. Interrupt Processing Flow Chart
INSTRUCTION
FETCH
INSTRUCTION
EXECUTE
INSTRUCTION
THE IWAS
A RETI
CLEAR
INTERRUPT MASK
SELECT
PROGRAM FLAGS
”POP”
THE STACKED PC
CHECK IF THERE IS
AN INTERRUPT REQUEST
AND INTERRUPTMASK
SELECT
INTERNALMODE FLAG
PUSH THE
PC INTO THE STACK
LOAD PC FROM
INTERRUPT VECTOR
(FFC/FFD)
SET
INTERRUPT MASK
NO
NO
YES
IS THE CORE
NALREADY IN
VA000014
YES
NO
YES
相關(guān)PDF資料
PDF描述
ST62T65BB3 8-BIT MICROCONTROLLER
ST62T65BB6 8-BIT MICROCONTROLLER
ST62T65BM3 8-BIT MICROCONTROLLER
ST62T65BM6 8-BIT MICROCONTROLLER
ST62E65BF1 8-BIT MICROCONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST623X-KIT 制造商:未知廠家 制造商全稱:未知廠家 功能描述:STARTER KIT DATASHEET FOR ST6230
ST623X-KIT/110 功能描述:開發(fā)板和工具包 - 其他處理器 ST623X Starter Kit RoHS:否 制造商:Freescale Semiconductor 產(chǎn)品:Development Systems 工具用于評估:P3041 核心:e500mc 接口類型:I2C, SPI, USB 工作電源電壓:
ST623X-KIT/220 制造商:STMicroelectronics 功能描述:ST Development Kit, Including ST623X Starter Kit, Development Software CD-ROM, Parallel Cable, Power Supply, Window Development Devices ST62E30BF1, ST (More...)
ST623X-KIT/UK 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:STARTER KIT AB 8K BYTE
ST-6-24 功能描述:XFRMR PWR 115V 12VAC 1.6A RoHS:是 類別:變壓器 >> 功率 系列:ST 標(biāo)準(zhǔn)包裝:1 系列:260 類型:標(biāo)準(zhǔn) 最大功率:65 VA 主線圈:雙 副線圈:三路,中心抽頭 在某電流時的串聯(lián)輸出電壓:500 VAC @ 85mA,5 VAC @ 2A,6.3 VAC @ 2A 在某電流時的并聯(lián)輸出電壓:- 安裝類型:底座安裝 尺寸/尺寸:102.36mm L x 67.31mm W 高度 - 座高(最大):66.80mm 端接類型:導(dǎo)線引線