PKP
VS1000 P
ROGRAMMER
’
S
G
UIDE
VSMPG
15
Interrupt Controller
v1.0 2002-04-23
The interrupt controller is used to forward interrupt requests from peripherals to VSDSP.
The 32 interrupt sources are vectorized, i.e. the VS_DSP core jumps to a different
address according to the 5-bit interrupt vector value. There are three levels of priority
for simulteneous requests and a global disable available for all of the sources.
For an interrupt handler written in C, an assembly language stub that re-enables inter-
rupts before RETI, should be written. The assembly language stub should call the C
language handler routine.
Enable
Reg 0
IRQ Source 0
Int
Origin 0
Global Enable Write
Global Disable Write
upint
Vector
Generation
and
Interrrupt
Request
Logic
5
Int_vector
ack
IRQ Source 31
Enable
Reg 31
Int
origin 31
Global
Intr
Enable
Figure 9: Interrupt Controller Block Diagram
15.1
Registers
Interrupt Controller registers, prefix INT_
Reg
Type
Reset
Abbrev
Description
0
r/w
0
ENABLEL0
Interrupt Enable Low 0
1
r/w
0
ENABLEL1
Interrupt Enable Low 1
2
r/w
0
ENABLEH0
Interrupt Enable High 0
3
r/w
0
ENABLEH1
Interrupt Enable High 1
4
r/w
0
ORIGIN0
Interrupt Origin 0
5
r/w
0
ORIGIN1
Interrupt Origin 1
6
r
0
VECTOR[4:0]
Interrupt Vector
7
r/w
0
ENCOUNT[2:0]
Interrupt Enable Counter
8
w
0
GLOB_DIS[-]
Interrupt Global Disable
9
w
0
GLOB_EN[-]
Interrupt Global Enable
Rev. 0.20
2011-10-04
Page