欢迎访问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文件第46页浏览型号ST90135M6的Datasheet PDF文件第47页浏览型号ST90135M6的Datasheet PDF文件第48页浏览型号ST90135M6的Datasheet PDF文件第49页浏览型号ST90135M6的Datasheet PDF文件第51页浏览型号ST90135M6的Datasheet PDF文件第52页浏览型号ST90135M6的Datasheet PDF文件第53页浏览型号ST90135M6的Datasheet PDF文件第54页  
ST90158 - INTERRUPTS  
with the highest position in the chain, as shown in  
Figure 9  
Table 9. Daisy Chain Priority  
The IAM control bit in the CICR Register selects  
Concurrent Arbitration mode or Nested Arbitration  
Mode.  
4.5.1 Concurrent Mode  
Highest Position  
INTA0  
INTA1  
INTB0  
INTB1  
INTC0  
INTC1  
INTD0  
INTD1  
TIMER0  
SCI0  
INT0/WDT  
INT1  
INT2/SPI  
INT3  
INT4/STIM  
INT5  
INT6/RCCU  
INT7  
This mode is selected when the IAM bit is cleared  
(reset condition). The arbitration phase, performed  
during every instruction, selects the request with  
the highest priority level. The CPL value is not  
modified in this mode.  
Start of Interrupt Routine  
The interrupt cycle performs the following steps:  
– All maskable interrupt requests are disabled by  
clearing CICR.IEN.  
SCI1  
A/D  
TIMER3  
TIMER1  
– The PC low byte is pushed onto system stack.  
– The PC high byte is pushed onto system stack.  
Lowest Position  
– If ENCSR is set, CSR is pushed onto system  
stack.  
4.4.4 Dynamic Priority Level Modification  
– The Flag register is pushed onto system stack.  
The main program and routines can be specifically  
prioritized. Since the CPL is represented by 3 bits  
in a read/write register, it is possible to modify dy-  
namically the current priority value during program  
execution. This means that a critical section can  
have a higher priority with respect to other inter-  
rupt requests. Furthermore it is possible to priori-  
tize even the Main Program execution by modify-  
ing the CPL during its execution. See Figure 20  
– The PC is loaded with the 16-bit vector stored in  
the Vector Table, pointed to by the IVR.  
– If ENCSR is set, CSR is loaded with ISR con-  
tents; otherwise ISR is used in place of CSR until  
iretinstruction.  
End of Interrupt Routine  
The Interrupt Service Routine must be ended with  
the iret instruction. The iret instruction exe-  
cutes the following operations:  
Figure 20. Example of Dynamic priority  
level modification in Nested Mode  
– The Flag register is popped from system stack.  
INTERRUPT 6 HAS PRIORITY LEVEL 6  
Priority Level  
– If ENCSR is set, CSR is popped from system  
stack.  
CPL is set to 7  
by MAIN program  
4
– The PC high byte is popped from system stack.  
– The PC low byte is popped from system stack.  
ei  
INT6  
5
6
7
– All unmasked Interrupts are enabled by setting  
the CICR.IEN bit.  
MAIN  
CPL is set to 5  
– If ENCSR is reset, CSR is used instead of ISR.  
CPL6 > CPL5:  
INT6 pending  
INT 6  
Normal program execution thus resumes at the in-  
terrupted instruction. All pending interrupts remain  
pending until the next ei instruction (even if it is  
executed during the interrupt service routine).  
CPL=6  
MAIN  
CPL=7  
Note: In Concurrent mode, the source priority level  
is only useful during the arbitration phase, where it  
is compared with all other priority levels and with  
the CPL. No trace is kept of its value during the  
ISR. If other requests are issued during the inter-  
rupt service routine, once the global CICR.IEN is  
re-enabled, they will be acknowledged regardless  
of the interrupt service routine’s priority. This may  
cause undesirable interrupt response sequences.  
4.5 ARBITRATION MODES  
The ST9 provides two interrupt arbitration modes:  
Concurrent mode and Nested mode. Concurrent  
mode is the standard interrupt arbitration mode.  
Nested mode improves the effective interrupt re-  
sponse time when service routine nesting is re-  
quired, depending on the request priority levels.  
50/199  
9
 复制成功!