| Zakładka z wyszukiwarką danych komponentów |
|
AN1776 Arkusz danych(PDF) 8 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1776 Arkusz danych(HTML) 8 Page - STMicroelectronics |
|
8 / 13 page ![]() 8/13 INTERRUPT HANDLING FOR STR7 MICROCONTROLLERS the IRQ interrupt vector is executed and branches to the IRQhandler subroutine. During this time, IRQs are not allowed. The IRQ handler starts by adjusting the lr_irq, then saves registers from 0 to 12, the spsr_irq and the lr_irq register to the IRQ stack, before executing the instruction located in the IVR, a return address is saved to the lr_irq. The IVR content is executed by pointing the PC to IVR register address. The instruction in the IVR in this example calls the Timer0 Interrupt Handler (T0TIMIIRQHandler) where the mode is switched back into system mode to allow other IRQ interrupts once again. The full handler user code written in C, in this example is the T0TIMI_IRQHandler subroutine which can now be branched to. Now the core is in SYS mode so that the registers in IRQ mode are preserved. Once this has finished, the processor returns and the core is switched back to IRQ mode, which once again disables other IRQs. Then the processor returns to the IRQHandler routine, the pending bit is cleared in the EIC_IPR register, the saved registers are restored, the pro- gram counter is restored from the link register and finally the cpsr is restored from the spsr of the IRQ mode. Normal operation can then resume back in the user program with SYS/USR mode restored. |
|
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |