PKP
VS1000 P
ROGRAMMER
’
S
G
UIDE
VSMPG
keep their state. For example writing a value 0x00ff will clear the lowest eight bits in the
interrupt origin register, while leaving the upper bits as-is.
15.1.3
Vector INT_VECTOR
The last generated vector value can be read from the vector register.
15.1.4
Enable Counter INT_ENCOUNT
The global interrupt enable/disable is used to control whether an interrupt request is sent
to the processor or not. Whenever this 3-bit counter value is non-zero, interrupt requests
are not forwarded to VSDSP. The counter is increased by one whenever the interrupt
controller generates an interrupt request for VSDSP, thus disabling further interrupts.
When read, the enable counter register returns the counter value.
Don’t write directly to INT_ENCOUNT. Use INT_GLOB_DIS and INT_GLOB_EN to ma-
nipulate the value of this register.
15.1.5
Global Disable INT_GLOB_DIS
A write (of any value) to global disable register increases the global interrupt enable/disable
counter by one. If the counter is zero, interrupt signal generation is enabled. When the
interrupt arbitrator generates an interrupt request for VS_DSP core, it automatically in-
creases the counter. The user must write to the global enable register (once) to enable
interrupts.
If an interrupt is generated in the same cycle as a write to global disable register, the
interrupt enable counter is increased by two.
15.1.6
Global Enable INT_GLOB_EN
A write (of any value) to global enable register decreases the global interrupt enable/disable
counter by one. If the counter is zero, interrupt generation is enabled.
The user must write to this register once in the end of the interrupt handler to enable
further interrupts. This should be done in assembly language.
Rev. 0.20
2011-10-04
Page