This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Nested interrupt

Hi

Im using a timer to generate interrupt based on the match registers. On one of those interrupt, I would like to start a SPI data transfer. The SPI transfer is also using vector based interrupt (for sending 3 bytes).
But (of cause) the SPI interrupt doesnt work from within another VIC interrupt, so I guess I have to use nested interrupts??
Im looking at the nested interrupt sample from KEIL.
I guess I have todo the following:

timer_ISR
  IENABLE
  Start SPI transfer
  Do something else
  Ack the interrupt


SPI_ISR
  Send byte1
  Send byte2
  Send byte3
  IDISABLE
  Ack the interrupt


Is this the right approach?

Using af LPC2103 ARM7

/Thomas

0