hello:
my interrupt is:
void myIsr()
{
if(DNUM != 0)
{
flag0=1;
cnt0++;
}
else
{
flag1= 1;
cnt1++;
}
}
when the interrrupt happen,and go to the Isr, and execute the flag0=1; cnt0++; I find sometime, just cnt0++, flag0=1 not exectute, because flag0 is still 0,
I define flag0:
volatile int flag0 = 0; make it 128 byte Alignment;place it in LL2, But sometimes this Phenomenon will happen!
I don't know where is the problem.
Thanks