Hi all,
I have been writing code for the ds80c320 and xa-g49 and need a few questions answered that i'm unsure about.
- Say i have timer 0 set to interrupt on overflow. If in another interrupt routine I disable all interrupts, then timer 0 happens to overflow, and then I enable all interrupts, while the timer 0 overflow isr then run, or was it missed?
***
I use interrupt driven serial comms reading / writing into ring buffers. Also timer 0 is interrupting on overflow, and an external uart is interrupting with data as well.
- Do i need to disable uart/all interrupts when placing characters into the ring buffer?
- In the transmit and receive isr's do I need to disable/enable any interrupts in these?
I've had problems before with the internal uart stopping. I would turn of the uart interrupt when writing to the ring buffer, and in the isr(s). This was fixed by turning off all the interrupts at these times.. (there were three other interrupt sources).
- Right now I turn off all interrupts when writing to the ring buffer and in the uart isr's. Is this necessary?
Any answers/comments/gems of information appreciated..
ROss