| 전자부품 데이터시트 검색엔진 |
|
AN1776 데이터시트(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1776 데이터시트(HTML) 9 Page - STMicroelectronics |
|
9 / 13 page ![]() 9/13 INTERRUPT HANDLING FOR STR7 MICROCONTROLLERS Figure 1. Interrupt Handling 6.5 EIC INITIALIZATION The EIC initialization depends on the used EIC method. Source files are provided with this ap- plication note for the address method, Branch method and LDR PC method. The following top level assembler example shows how to configure the EIC for the LDR PC method. ;******************************************************************************* ; Exception vectors ;******************************************************************************* LDR PC, Reset_Addr LDR PC, Undefined_Addr LDR PC, SWI_Addr LDR PC, Prefetch_Addr LDR PC, Abort_Addr NOP ; Reserved vector LDR PC, IRQ_Addr user program ’SYS/USR mode’ Instruction IRQHandler ’IRQ mode’ subtract 4 from lr_irq Save r[0:12] lr_irq and spsr_irq registers Execute the instruction located in IVR TIM0IRQHandler Switch to SYS mode to allow other IRQ interrupts Branch with link to TIM0_IRQHandler Switch to IRQ mode TIM0 IRQ handler C code TIM0_IRQHandler ’SYS mode’ Get the current IRQ channel number Clear the pending bit Restore spsr_irq Restore r[0:12] regis- ters and lr_irq cpsr <- spsr_irq IRQ request 71x_vect.s 71x_it.c LDR pc,TIM0_IRQAddress IVR Instruction Instruction LDR pc,IRQ_Addr 0x18 |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |