Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

AN1776 Datasheet(PDF) 9 Page - STMicroelectronics

Part # AN1776
Description  INTERRUPT HANDLING FOR STR7 MICROCONTROLLERS
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1776 Datasheet(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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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