7
CAPEVT0
CAPEVTSRC0[6:0]
7
CAPEVT1
CAPEVTSRC1[6:0]
INT_REQ0
INT_REQ1
INT_REQ94
INT_REQ95
INT_REQ0
INT_REQ1
INT_REQ94
INT_REQ95
To RTI
To RTI
Capture Event Sources
523
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
Vectored Interrupt Manager (VIM) Module
15.6 Capture Event Sources
The VIM can select any of the 96 interrupt requests to generate up to two capture events for the real-time
interrupt (RTI) module (see
). The value in REQENASET/REQENACLR does NOT impact the
capture event. Two registers (
) are available, one for each capture event source.
Figure 15-10. Capture Event Sources
15.7 Examples
The following sections provide examples about the operation of the VIM.
15.7.1 Examples - Configure CPU To Receive Interrupts
shows how to set the vector enable (VE) bit in the CP15 R1 register to enable the hardware
vector interrupt.
shows how to enable/disable the IRQ and FIQ through CPSR. As a
convention, the program who calls these subroutines shall preserve register R1 if needed.
can ONLY run in privileged mode. However, in USER mode, the application software can force the
program into software interrupt by instruction SWI. Then, in the software interrupt service routine, user can
write register SPSR, which is the copy of CPSR in this exception mode.
Example 15-1. Enable Hardware Vector Interrupt (IRQ Only)
_HW_Vec_Init
MRC p15 ,#0 ,R1 ,c1 ,c0 ,#0
ORR R1 ,R1 ,#0x01000000
; Mask 0-31 bits except bit 24 in Sys
; Ctrl Reg of CORTEX-R4
MCR p15 ,#0 ,R1 ,c1 ,c0 ,#0
; Enable bit 24
MOV PC, LR