数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1776 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN1776
功能描述  INTERRUPT HANDLING FOR STR7 MICROCONTROLLERS
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1776 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN1776 Datasheet HTML 5Page - STMicroelectronics AN1776 Datasheet HTML 6Page - STMicroelectronics AN1776 Datasheet HTML 7Page - STMicroelectronics AN1776 Datasheet HTML 8Page - STMicroelectronics AN1776 Datasheet HTML 9Page - STMicroelectronics AN1776 Datasheet HTML 10Page - STMicroelectronics AN1776 Datasheet HTML 11Page - STMicroelectronics AN1776 Datasheet HTML 12Page - STMicroelectronics AN1776 Datasheet HTML 13Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 9 / 13 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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