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

ST90135M6 参数 Datasheet PDF下载

ST90135M6图片预览
型号: ST90135M6
PDF下载: 下载PDF文件 查看货源
内容描述: 8月16号位微控制器( MCU ), 16至64K的ROM 。 OTP或EPROM 。 512 2K的RAM - ST9 +系列\n [8/16-BIT MICROCONTROLLER (MCU) WITH 16 TO 64K ROM. OTP OR EPROM. 512 TO 2K RAM - ST9 + FAMILY ]
分类和应用: 微控制器可编程只读存储器电动程控只读存储器
文件页数/大小: 199 页 / 2805 K
品牌: ETC [ ETC ]
 浏览型号ST90135M6的Datasheet PDF文件第45页浏览型号ST90135M6的Datasheet PDF文件第46页浏览型号ST90135M6的Datasheet PDF文件第47页浏览型号ST90135M6的Datasheet PDF文件第48页浏览型号ST90135M6的Datasheet PDF文件第50页浏览型号ST90135M6的Datasheet PDF文件第51页浏览型号ST90135M6的Datasheet PDF文件第52页浏览型号ST90135M6的Datasheet PDF文件第53页  
ST90158 - INTERRUPTS  
4.2.2 Segment Paging During Interrupt  
Routines  
4.3 INTERRUPT PRIORITY LEVELS  
The ST9 supports a fully programmable interrupt  
priority structure. Nine priority levels are available  
to define the channel priority relationships:  
The ENCSR bit in the EMR2 register can be used  
to select whether the CSR is saved or not when an  
interrupt occurs.  
– The on-chip peripheral channels and the eight  
external interrupt sources can be programmed  
within eight priority levels. Each channel has a 3-  
bit field, PRL (Priority Level), that defines its pri-  
ority level in the range from 0 (highest priority) to  
7 (lowest priority).  
For a description of the EMR2 register, refer to the  
External Memory Interface Chapter on page 87.  
ENCSR = 0  
If ENCSR is reset, for the duration of the interrupt  
service routine, ISR is used instead of CSR and  
only the PC and Flags are pushed.  
– The 9th level (Top Level Priority) is reserved for  
the Timer/Watchdog or the External Pseudo  
Non-Maskable Interrupt. An Interrupt service  
routine at this level cannot be interrupted in any  
arbitration mode. Its mask can be both maskable  
(TLI) or non-maskable (TLNM).  
This avoids saving the CSR on the stack in the  
event of an interrupt, thus ensuring a faster inter-  
rupt response time.  
It is not possible for an interrupt service routine to  
perform inter-segment calls or jumps: these in-  
structions would update the CSR, which, in this  
case, is not used (ISR is used instead). The code  
segment size for all interrupt service routines is  
thus limited to 64K bytes. This mode ensures com-  
patibiliy with the original ST9.  
4.4 PRIORITY LEVEL ARBITRATION  
The 3 bits of CPL (Current Priority Level) in the  
Central Interrupt Control Register contain the pri-  
ority of the currently running program (CPU priori-  
ty). CPL is set to 7 (lowest priority) upon reset and  
can be modified during program execution either  
by software or automatically by hardware accord-  
ing to the selected Arbitration Mode.  
ENCSR = 1  
If ENCSR is set, ISR is only used to point to the in-  
terrupt vector table and to initialize the CSR at the  
beginning of the interrupt service routine: the old  
CSR is pushed onto the stack together with the PC  
and flags, and CSR is then loaded with the con-  
tents of ISR.  
During every instruction, an arbitration phase  
takes place, during which, for every channel capa-  
ble of generating an Interrupt, each priority level is  
compared to all the other requests (interrupts or  
DMA).  
If the highest priority request is an interrupt, its  
PRL value must be strictly lower (that is, higher pri-  
ority) than the CPL value stored in the CICR regis-  
ter (R230) in order to be acknowledged. The Top  
Level Interrupt overrides every other priority.  
In this case, iretwill also restore CSR from the  
stack. This approach allows interrupt service rou-  
tines to access the entire 4 Mbytes of address  
space. The drawback is that the interrupt response  
time is slightly increased, because of the need to  
also save CSR on the stack.  
4.4.1 Priority level 7 (Lowest)  
Interrupt requests at PRL level 7 cannot be ac-  
knowledged, as this PRL value (the lowest possi-  
ble priority) cannot be strictly lower than the CPL  
value. This can be of use in a fully polled interrupt  
environment.  
Full compatibility with the original ST9 is lost in this  
case, because the interrupt stack frame is differ-  
ent.  
4.4.2 Maximum depth of nesting  
ENCSR Bit  
0
1
Pushed/Popped  
Registers  
PC, FLAGR,  
CSR  
No more than 8 routines can be nested. If an inter-  
rupt routine at level N is being serviced, no other  
Interrupts located at level N can interrupt it. This  
guarantees a maximum number of 8 nested levels  
including the Top Level Interrupt request.  
PC, FLAGR  
Max. Code Size  
for interrupt  
service routine  
64KB  
No limit  
Within 1 segment Across segments  
4.4.3 Simultaneous Interrupts  
If two or more requests occur at the same time and  
at the same priority level, an on-chip daisy chain,  
specific to every ST9 version, selects the channel  
49/199  
9
 复制成功!