參數(shù)資料
型號(hào): ST6235BQ1
廠商: 意法半導(dǎo)體
英文描述: 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
中文描述: 8位檢察官辦公室/存儲(chǔ)器與阿微控制器/ D轉(zhuǎn)換器,16位自動(dòng)重加載定時(shí)器,EEPROM中,SPI和UART
文件頁(yè)數(shù): 26/82頁(yè)
文件大?。?/td> 617K
代理商: ST6235BQ1
26/82
ST62T35B/E35B
IINTERRUPTS
(Cont’d)
3.3.2 Interrupt Procedure
The interrupt procedure is very similar to a call
procedure, indeed the user can consider the inter-
rupt 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 sets of 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 normal interrupt 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 willNOT 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).
– The source ofthe interrupt isfound by polling the
interrupt flags (if more than one source is asso-
ciated with the same vector).
– The interrupt is serviced.
– Return from interrupt (RETI)
MCU
– Automatically the MCU 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 identi-
fying the device which generated the interrupt re-
quest (by polling). The user should save the regis-
ters which are used within the interrupt routine in a
software stack. After the RETI instruction is exe-
cuted, the MCU returns to the main routine.
Figure 16.Interrupt Processing Flow Chart
INSTRUCTION
FETCH
INSTRUCTION
EXECUTE
INSTRUCTION
THE IWAS
A RETI
CLEAR
INTERRUPT MASK
SELECT
PROGRAM FLAGS
”P(pán)OP”
THE STACKED PC
CHECK IF THERE IS
AN INTERRUPT REQUEST
AND INTERRUPTMASK
SELECT
INTERNAL MODE FLAG
PUSH THE
PC INTO THE STACK
LOAD PC FROM
INTERRUPT VECTOR
(FFC/FFD)
SET
INTERRUPTMASK
NO
NO
YES
IS THE CORE
NALREADY IN
VA000014
YES
NO
YES
25
相關(guān)PDF資料
PDF描述
ST62T35B 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST62E35B 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ3 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ6 8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST623x-EMU2 Real Time Emulation Development Tools for ST6218/ST6228/ST623x MCUs(ST6218/6228/623x的實(shí)時(shí)開(kāi)發(fā)工具)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST6235BQ1/XXX 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:8-Bit Microcontroller
ST6235BQ3 制造商:STMICROELECTRONICS 制造商全稱(chēng):STMicroelectronics 功能描述:8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ3/XXX 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:8-Bit Microcontroller
ST6235BQ6 制造商:STMICROELECTRONICS 制造商全稱(chēng):STMicroelectronics 功能描述:8-BIT OTP/EPROM MCUs WITH A/D CONVERTER, 16-BIT AUTO-RELOAD TIMER, EEPROM, SPI AND UART
ST6235BQ6/XXX 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:8-Bit Microcontroller