AT91FR40161 ATMEL Corporation, AT91FR40161 Datasheet - Page 73

no-image

AT91FR40161

Manufacturer Part Number
AT91FR40161
Description
The AT91FR40161 Features 136 K Bytes of On-chip SRAM, 2M Bytes of Flash, an External Bus Interface, a 3-channel Timer/Counter, 2 ...
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT91FR40161-CI
Manufacturer:
TI
Quantity:
101
Part Number:
AT91FR40161-CI
Manufacturer:
Atmel
Quantity:
10 000
1354D–ATARM–08/02
Fast Interrupt Sequence
It is assumed that:
When NFIQ is asserted, if the bit F of CPSR is 0, the sequence is:
1. The CPSR is stored in SPSR_fiq, the current value of the Program Counter is
2. The ARM core enters FIQ Mode.
3. When the instruction loaded at address 0x1C is executed, the Program Counter
4. The previous step has effect to branch to the corresponding interrupt service
5. The Interrupt Handler can then proceed as required. It is not necessary to save
6. Finally, the Link Register (r14_fiq) is restored into the PC after decrementing it by
Note:
The Advanced Interrupt Controller has been programmed, AIC_SVR[0] is loaded
with fast interrupt service routine address and the fast interrupt is enabled.
The Instruction at address 0x1C(FIQ exception vector address) is:
ldr pc, [pc, # - &F20].
Nested Fast Interrupts are not needed by the user.
loaded in the FIQ link register (r14_fiq) and the Program Counter (r15) is loaded
with 0x1C. In the following cycle, during fetch at address 0x20, the ARM core
adjusts r14_fiq, decrementing it by 4.
is loaded with the value read in AIC_FVR. Reading the AIC_FVR has effect of
automatically clearing the fast interrupt (source 0 connected to the FIQ line), if it
has been programmed to be edge triggered. In this case only, it de-asserts the
NFIQ line on the processor.
routine. It is not necessary to save the Link Register(r14_fiq) and the
SPSR(SPSR_fiq) if nested fast interrupts are not needed.
registers r8 to r13 because FIQ Mode has its own dedicated registers and the
user r8 to r13 are banked. The other registers, r0 to r7, must be saved before
being used, and restored at the end (before the next step). Note that if the fast
interrupt is programmed to be level sensitive, the source of the interrupt must be
cleared during this phase in order to de-assert the NFIQ line.
4 (with instruction sub pc, lr, #4 for example). This has effect of returning from the
interrupt to whatever was being executed before, and of loading the CPSR with
the SPSR, masking or unmasking the fast interrupt depending on the state saved
in the SPSR.
The F bit in the SPSR is significant. If it is set, it indicates that the ARM core was just
about to mask FIQ interrupts when the mask instruction was interrupted. Hence when
the SPSR is restored, the interrupted instruction is completed (FIQ is masked).
AT91X40 Series
73

Related parts for AT91FR40161