--- In lpc2000@yahoogroups.com, h s <h7242004@y...> wrote:
> Some follow up questions?
>
> 1) Have you tried the timer interupt at the IRQ levels?
> 2) Why do you use the "else if" condition. As compare to going and
possible servicing all of them at same time e.g..
>
> ir = T0->IR;
>
> if (ir & 0x01) {
>
> }
>
> if (ir & 0x08) {
>
> }
>
> Any reason?
Yes, in my program, gcc generated better code for the "else if"
construct, and the interrupts could never happen at the same time.
I think I also tried an IRQ version, which is the same except for an
added VIC->VectAddr = 0x00; in the end.
Karl OlsenMessage
Re: LPC2106 timer problem?
2004-07-03 by Karl Olsen
Attachments
- No local attachments were found for this message.