參數(shù)資料
型號: MPC505
廠商: MOTOROLA INC
元件分類: 微控制器/微處理器
英文描述: Highly Integrated, Low-Power, 32-Bit Microcontroller
中文描述: 32-BIT, RISC MICROCONTROLLER, PQFP16
文件頁數(shù): 7/12頁
文件大小: 68K
代理商: MPC505
Application Note
Exception Context Switch
AN1281
MOTOROLA
7
Exception Context Switch
After an interrupt or any other exception is recognized, the hardware
automatically performs a context switch, which includes the following:
1.
Saves the current state of the machine:
a.
The address of the next instruction is saved in register SRR0
b.
The MSR value is saved in register SRR1
2.
Changes the MSR:
a.
Disables further interrupts by clearing the EE bit
b.
Sets the privilege level to supervisor but clears the PR bit
c.
Clears the RI bit to indicate that the interrupt may not be able
to recover if another exception immediately follows.
3.
Branches to the interrupt exception vector
Key Handler Issues
Where to Store
Local Data
for Handler
Interrupt handlers require at least enough data storage to preserve the
previous state of the machine. Typically storage is allocated on the
stack. Special purpose registers SPRG0:3 can also be used for storage,
but the registers provide only four words of storage, and using them
prevents nesting of exceptions. Since this method makes the interrupt
handler non-reentrant, it can only be used for the highest priority
interrupt.
Assuming the stack is used for storage, care must be taken to ensure
there is enough room on the stack for a worst case of nested exceptions.
All stack manipulation code must also be carefully designed to ensure
that an interrupt during a stack operation does not cause problems.
Some programs use separate stacks for interrupt and non-interrupt
code.
相關(guān)PDF資料
PDF描述
MPC509 Highly Integrated, Low-Power, 32-Bit Microcontroller
MPC5200BV400 MPC5200 Hardware Specifications
MPC5200CBV266 MPC5200 Hardware Specifications
MPC5200CBV400 MPC5200 Hardware Specifications
MPC5200ID MPC5200 Hardware Specifications
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MPC506 制造商:BB 制造商全稱:BB 功能描述:Single-Ended 16-Channel/Differential 8-Channel CMOS ANALOG MULTIPLEXERS
MPC506A 制造商:BB 制造商全稱:BB 功能描述:Single-Ended 16-Channel/Differential 8-Channel CMOS ANALOG MULTIPLEXERS
MPC506AP 功能描述:多路器開關(guān) IC 16Ch Sgl-Ended Input Ana Multipl RoHS:否 制造商:Texas Instruments 通道數(shù)量:1 開關(guān)數(shù)量:4 開啟電阻(最大值):7 Ohms 開啟時間(最大值): 關(guān)閉時間(最大值): 傳播延遲時間:0.25 ns 工作電源電壓:2.3 V to 3.6 V 工作電源電流: 最大工作溫度:+ 85 C 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:UQFN-16
MPC506AP 制造商:BURR-BROWN 功能描述:IC MUX 16CH SP DIP28 506 制造商:Texas Instruments 功能描述:Multiplexer IC
MPC506AP 制造商:Texas Instruments 功能描述:IC MUX 16CH SP DIP28 506 制造商:Texas Instruments 功能描述:IC, MUX 16CH SP, DIP28, 506