Download VLSI - nexp
Transcript
VLSI Solution y VS1000 Programmer’s Guide PKP VSMPG 4. PERIPHERAL DOCUMENTATION to 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. Vector INT VECTOR The last generated vector value can be read from the vector register. 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 manipulate the value of this register. 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 increases 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. 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.12 Preliminary 2007-03-23 Page 54(83)