VS1005g Datasheet
10 VS1005 PERIPHERALS AND REGISTERS
10.4 Interrupt Controller
Vs1005 has 28 maskable interrupt vectors and 33 interrupt sources. The interrupt controller is
external to DSP and it prioritizes the requests before forwarding them to the DSP. //
Interrupt controller has three levels of priority for simultaneous requests and a global dis-
able/enable for all of the sources. Interrupt sources are divided so that interrupt sources 15-0
are mapped to low registers and 27-16 to high registers.
For an interrupt handler written in C, an assembly language stub that re-enables interrupts be-
fore RETI, should be written. The assembly language stub should call the C language handler
routine.
VS1005 interrupt vectors
Interrupt vector IRQ Interrupt device
Interrupt
source
INT_SAR
INT_PWM
INT_REGU
INT_STX
INT_SRX
INT_RDS
INT_RTC
INT_OSET
INT_SRC
INT_FM
27
26
25
23
22
21
20
19
18
17
16
32 10-bit ADC (SAR)
31 Pulse width modulator
30 Power button
28 S/PDIF transmitter
27 S/PDIF receiver
26 FM RDS
25 RTC time alarm
24 DAC offset
23 DAC sample rate converter
22 FM interrupt (192kHz)
21 Timer 2
INT_TIM2
VS1005 interrupt vectors (continued)
Interrupt vector IRQ Interrupt device
Interrupt
source
INT_TIM1
INT_TIM0
INT_RX
INT_TX
INT_I2S
INT_MAC2
INT_GPIO2
INT_GPIO1
INT_GPIO0
INT_MAC0
INT_MAC1
INT_SPI1
15
14
13
12
11
10
9
8
7
6
5
4
3
2
2
2
2
2
2
20 Timer 1
19 Timer 0
18 Uart receive
17 Uart transmit
16 I2S transmitter/receiver
15 A/D 3 (mono AD)
14 Gpio port 2
13 Gpio port 1
12 Gpio port 0
11 A/D 1/2 (stereo AD)
10 FM decimation filter
9
8
7
6
5
4
3
2
1
0
SPI 1
SPI 0
INT_SPI0
INT_XPERIP
INT_XPERIP
INT_XPERIP
INT_XPERIP
INT_XPERIP
INT_XPERIP
INT_USB
Reed-Solomon Decoder
Reed-Solomon Encoder
SD Card Controller
Nand Flash Controller
SPI Slave Controller
Ethernet Controller
Full/High Speed USB
DAC
1
0
INT_DAC
Version: 0.2, 2012-03-16
34