Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

AN1776 Datenblatt(PDF) 11 Page - STMicroelectronics

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

AN1776 Datenblatt(HTML) 11 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
 11 / 13 page
background image
11/13
INTERRUPT HANDLING FOR STR7 MICROCONTROLLERS
EIC_INIT
LDR
r3, =EIC_Base_addr
; Read the EIC base address
LDR
r4, =0xE59F0000
; Read the MSB of the LDR pc,[pc,#offset] opcode
STR
r4, [r3, #IVR_off_addr]; Write the MSB of the LDR pc,[pc,#offset]
; instruction code in IVR[31:16]
; The LDR pc,[pc,#offset] opcode
; is : 0xE59FFxxx, with xxx the
; offset to the address pointing
; the interrupt handler.
; the LSB (Fxxx) will be computed and
; placed in to SIRn[31:16] registers
LDR
r5, =SIR0_off_addr
; Read SIR0 address
LDR
r0, =T0TIMI_Addr
; Read the start address of the IRQs
; address table. The IRQ handlers
; located ibelow the exception vectors,
; All addresses are 32bit long
LDR
r1, =0x00000FFF
AND
r0,r0,r1
SUB
r4,r0,#8
; subtract 8 for prefetch,
LDR
r1, =0xF7E8
; add the offset to the 0x00000000
; address(IVR address + 7E8 = 0x00000000)
; 0xFxxx used to complete the
; LDR pc,[pc,#offset] opcode
LDR
r2, =32
; 32 Channel to initialize
ADD
r1,r4,r1
; compute the jump offset
EIC_INI MOV
r4, r1, LSL #16
; Left shift the result
STR
r4, [r3, r5]
; Store the result in SIRx register
ADD
r1, r1, #4
; Next IRQ address
ADD
r5, r5, #4
; Next SIR
SUBS
r2, r2, #1
; Decrement the number of SIR registers
; to initialize
BNE
EIC_INI
; If more then continue
...
Note: In order to run the examples attached to this application note, the STR71x RAM should be mapped
to address 0x00000000.



Html Pages

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


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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