Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

AN3129 Arkusz danych(PDF) 4 Page - STMicroelectronics

Numer części AN3129
Szczegółowy opis  Real-time performance using FIQ interrupt handling in SPEAr MPUs
PDF  12 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3129 Arkusz danych(HTML) 4 Page - STMicroelectronics

  AN3129 Datasheet HTML 1Page - STMicroelectronics AN3129 Datasheet HTML 2Page - STMicroelectronics AN3129 Datasheet HTML 3Page - STMicroelectronics AN3129 Datasheet HTML 4Page - STMicroelectronics AN3129 Datasheet HTML 5Page - STMicroelectronics AN3129 Datasheet HTML 6Page - STMicroelectronics AN3129 Datasheet HTML 7Page - STMicroelectronics AN3129 Datasheet HTML 8Page - STMicroelectronics AN3129 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 4 / 12 page
background image
FIQ handler environment
AN3129
4/12
Doc ID 16927 Rev 1
3
FIQ handler environment
The FIQ registration, the ISR function and the runtime environment of a FIQ handler are
different from a standard IRQ handler. A working example of an FIQ handler can be found in
latency measurement module in Section 4: IRQ latency measurement.
3.1
FIQ registration
For FIQ registration ‘set_fiq_handler’ API is used.
The two arguments of this API are:
●
Function pointer
●
Size of handler function in bytes
This handler function is copied to the FIQ vector reserved area. The FIQ vector area is last
in the memory area reserved for interrupt vectors. About five hundred (500) bytes are
available in this area for copying the ISR.
In the SPEAr Linux Support Package (LSP), the following API must be used to select the
configuration of the IRQ source:
●
vic_unmask_irq(int number) – enables interrupt source on VIC as IRQ
●
vic_select_fiq(int number) – selects interrupt source on VIC as FIQ instead of IRQ
3.2
FIQ mode registers setup
When the FIQ handler runs, it utilizes FIQ mode-specific registers (r8-r14) and general
mode registers (r0-r7). This set of FIQ mode registers is exclusive to FIQ mode and not
available to other handlers.
To pass any information to the FIQ handler, the FIQ mode registers have to be set using the
call: ‘set_fiq_regs’.
3.3
Return from FIQ mode
To return from FIQ mode on completion of the code, use the following assembly instruction:
subs
pc, lr, #4;
This command restores the instruction pointer to the original location it was before FIQ
arrived.
3.4
FIQ ISR in C
Writing the FIQ handler function in ARM assembly language can be cumbersome, so it is
highly recommended to use C language instead. This is especially true for large functions
when the handler function is larger than the maximum size available for FIQ vector (500
bytes). In such cases branching to the C function can be possible. This involves saving of
the register context (r0-r12 general mode registers) and initialization of the function frame
pointer.



Html Pages

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


Arkusz danych Pobierz

Go To PDF Page


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


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