Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: LPC2106 timer problem?

2004-07-03 by Karl Olsen

--- 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 Olsen

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.