Example, Table 17 : intreg register – Sundance SMT130 v.1.0 User Manual
Page 40
Page 40 of 46
SMT130 User Manual V1.0
10 -
Reserved
9 -
Reserved
8 -
Reserved
7 -
Reserved
6 -
Reserved
5 -
Reserved
4 -
Reserved
3 -
Reserved
2
IIOF2EN
PC to DSP TIMIIOF2 interrupt enable
1
IIOF1EN
PC to DSP TIMIIOF1 interrupt enable
0
IIOF0EN
PC to DSP TIMIIOF0 interrupt enable
Table 17 : INTREG Register
13.4 Example
The example below shows how the DSP can cause an interrupt on the PC by writing
to mailbox register 0.
The PC must first enable the interrupts, to do this the following register bits must be
altered, and an interrupt thread handler needs to be created.
PCI Interrupt Configuration Register(Offset 0x4C, BAR0) – bit 31 must be set.
Local Bus Interrupt Mask Register(Offset 0x77, BAR0) – bit 7 must be set.
PCI Mailbox WRITE/READ Interrupt Control Register(Offset: Write 0xD0, BAR0 Read
0xD2, BAR0) – bit 0 of the write register (0xD4) must be set.*
An Interrupt service routine must be set up, in this the following register will need to
be cleared.