参数资料
型号: ST6280BQ6/XXX
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP100
封装: PLASTIC, QFP-100
文件页数: 21/80页
文件大小: 934K
代理商: ST6280BQ6/XXX
Obsolete
Product(s)
- Obsolete
Product(s)
28/80
ST62T80B/E80B
INTERRUPTS (Cont’d)
3.4.2 Interrupt Procedure
The interrupt procedure is very similar to a call pro-
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 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.
– The associated interrupt vector is loaded in the PC.
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).
– The source of the interrupt is found by polling 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 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 identify-
ing 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
WAS
THE INSTRUCTION
A RETI
?
CLEAR
INTERRUPT MASK
SELECT
PROGRAM FLAGS
"POP"
THE STACKED PC
?
CHECK IF THERE IS
AN INTERRUPT REQUEST
AND INTERRUPT MASK
SELECT
INTERNAL MODE FLAG
PUSH THE
PC INTO THE STACK
LOAD PC FROM
INTERRUPT VECTOR
(FFC/FFD)
SET
INTERRUPT MASK
NO
YES
IS THE CORE
ALREADY IN
NORMAL MODE?
VA000014
YES
NO
YES
28
相关PDF资料
PDF描述
ST6285Q6/XX 8-BIT, MROM, 8.4 MHz, MICROCONTROLLER, PQFP80
ST62E25CF1 8-BIT, UVPROM, 8 MHz, MICROCONTROLLER, CDIP28
ST62P15CB3 MICROCONTROLLER, PDIP28
ST6215CB3/CCC MICROCONTROLLER, PDIP28
ST62P15CM3 MICROCONTROLLER, PDSO28
相关代理商/技术参数
参数描述
ST6280-EMU2 功能描述:开发板和工具包 - 其他处理器 ST62 Emulator Board RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
ST6280-P/QFP 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:REAL TIME EMULATION DEVELOPMENT TOOLS FOR ST6 MCU FAMILY
ST6280Q1/XX 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
ST6280Q6/XX 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller
ST6281T6/HEA/TR 制造商:STMicroelectronics 功能描述: