Hi,
I wrote a function that makes CC1110 go into Power Mode 2 and come out of this "GoToSleep" using the sleep timer. It takes into account all the issues from the errata notes and has been working very well for a few months now.
A few days ago I needed to expand the usage of this function something like this:
for (j = 0;j < 10; j ++)
for (i = 0;i < 10; i ++)
{
RED_LED = ON;
GoToSleep(500);
RED_LED = OFF;
GoToSleep(500);
}
GoToSleep(10000);
}
As it seems calling the function with very smalls delays in between doesnt work! Is there a minimum delay required between entering PM2?
adding this causes the code to work fine:
for (j = 0;j < 10; j ++)
for (i = 0;i < 10; i ++)
{
RED_LED = ON;
wait(60);
GoToSleep(500);
RED_LED = OFF;
wait(60);
GoToSleep(500);
}
wait(60);
GoToSleep(10000);
}
does anyone know what can cause this issue? thanks!