欢迎访问ic37.com |
会员登录 免费注册
发布采购

ST62T03CN3/CCC 参数 Datasheet PDF下载

ST62T03CN3/CCC图片预览
型号: ST62T03CN3/CCC
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器\n [Microcontroller ]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 104 页 / 649 K
品牌: ETC [ ETC ]
 浏览型号ST62T03CN3/CCC的Datasheet PDF文件第25页浏览型号ST62T03CN3/CCC的Datasheet PDF文件第26页浏览型号ST62T03CN3/CCC的Datasheet PDF文件第27页浏览型号ST62T03CN3/CCC的Datasheet PDF文件第28页浏览型号ST62T03CN3/CCC的Datasheet PDF文件第30页浏览型号ST62T03CN3/CCC的Datasheet PDF文件第31页浏览型号ST62T03CN3/CCC的Datasheet PDF文件第32页浏览型号ST62T03CN3/CCC的Datasheet PDF文件第33页  
ST6200C/ST6201C/ST6203C  
6.6 INTERRUPT HANDLING PROCEDURE  
The interrupt procedure is very similar to a call pro-  
cedure, in fact 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.  
The following list summarizes the interrupt proce-  
dure:  
Figure 18. Interrupt Processing Flow Chart  
INSTRUCTION  
FETCH  
INSTRUCTION  
EXECUTE  
INSTRUCTION  
When an interrupt request occurs, the following  
actions are performed by the MCU automatically:  
LOAD PC FROM  
INTERRUPT VECTOR  
– The core switches from the normal flags to the  
interrupt flags (or the NMI flags).  
– ThePC contents are stored in the top level of the  
stack.  
– The normal interrupt lines are inhibited (NMI still  
active).  
– The internal latch (if any) is cleared.  
WAS  
NO  
THE INSTRUCTION  
A RETI?  
CLEAR  
*)  
INTERNAL LATCH  
YES  
IS THE CORE  
ALREADY IN  
NORMAL MODE?  
YES  
DISABLE  
MASKABLE INTERRUPT  
– Theassociated interruptvectorisloaded inthe PC.  
NO  
When an interrupt request occurs, the following  
actions must be performed by the user software:  
ENABLE  
MASKABLE INTERRUPTS  
PUSH THE  
PC INTO THE STACK  
– User selected registers have to be saved within  
the interrupt service routine (normally on a soft-  
ware stack).  
SELECT  
NORMAL FLAGS  
SELECT  
– The source of the interrupt must be determined  
by polling the interrupt flags (if more than one  
source is associated with the same vector).  
– The RETI (RETurn from Interrupt) instruction  
must end the interrupt service routine.  
INTERRUPT FLAGS  
“POP”  
THE STACKED PC  
After the RETI instruction is executed, the MCU re-  
turns to the main routine.  
NO  
IS THERE AN  
AN INTERRUPT REQUEST  
AND INTERRUPT MASK?  
Caution: When a maskable interrupt occurs while  
the ST6 core is in NORMAL mode and during the  
execution of an “ldi IOR, 00h” instruction (disabling  
all maskable interrupts): if the interrupt request oc-  
curs 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.  
YES  
*) If a latch is present on the interrupt source line  
Table 7. Interrupt Response Time  
Minimum  
Maximum  
6 CPU cycles  
6.6.1 Interrupt Response Time  
11 CPU cycles  
This is defined as the time between the moment  
when the Program Counter is loaded with the in-  
terrupt vector and when the program has jump to  
the interrupt subroutine and is ready to execute  
the code. It depends on when the interrupt occurs  
while the core is processing an instruction.  
One CPU cycle is 13 external clock cycles thus 11  
CPU cycles = 11 x (13 /8M) = 17.875 µs with an 8  
MHz external quartz.  
29/104  
1
 复制成功!