Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Problem with entering ISR

2006-05-30 by 3gpabko

> static void timer0ISR(void) __attribute__
> ((interrupt ("IRQ")));
> 
> static void timer0ISR(void)
> {
> if (IO0PIN=0) 
>   {
>   IO0SET=LED;
>   }
>   else
>   {
>   IO0CLR=0;

Is this some typing error ???
Should be:

IO0CLR = LED;

Also try adding a default ISR or write this:

VICDefVectAddr = (unsigned long)timer0ISR;

And see what happens.

Regards
Zdravko

\u0417\u043d\u0430\u043d\u0438\u0435\u0442\u043e \u0435 \u043b\u0438\u0447\u043d\u043e \u043f\u0440\u0435\u0436\u0438\u0432\u044f\u043d\u0430 \u0438\u0441\u0442\u0438\u043d\u0430.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

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.