[En-Nut-Discussion] Hi resolution timer isr in assembler

en-nut-discussion-admin at egnite.de en-nut-discussion-admin at egnite.de
Sun Jun 22 14:25:18 CEST 2003


Oops, sorry. I am too stupid. You should never alter two things at the same
time. It was a mistake in my code.

----- Original Message -----
From: <en-nut-discussion-admin at egnite.de>
To: <en-nut-discussion at egnite.de>
Sent: Sunday, June 22, 2003 1:50 PM
Subject: Re: [En-Nut-Discussion] Hi resolution timer isr in assembler


> Hi Stephen.
>
> Thanks for that hint. It works for C ISRs, I didn't try assembler for now.
> But now I have another problem. It seems that the ISR forgets some of its
> local variables. I defined them using
>
> SIGNAL(SIG_OUTPUT_COMPARE2)
> {
>   static short x=0,y=0,p=0,m=0xff;
>   static short mask=1,bits;
>   ...
>
> but e.g. the variable p forgets its content.
>
> Why?
>
> bye
> Thorsten





More information about the En-Nut-Discussion mailing list