Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

What is the resolution of EHS6 timer? | Telit Cinterion IoT Developer Community

August 31, 2015 - 4:39am, 3609 views

I want to define a 100ms timer:

Timer timer = new Timer();

 UserTimerTask timerTask = new UserTimerTask();

timer.schedule(timerTask, 0, 100);

and in userTimerTask, I will toggle a Led:

UpTime ++;

if (UpTime % 2 == 0) TurnRedLedOn();

else TurnRedLedOff();

but from oscilloscope, the led on/off time is about 200ms.

How can I get a precise timer?