AnsweredAssumed Answered

Timer Interval

Question asked by danielc@nexsens.com on Apr 4, 2013
Latest reply on Apr 5, 2013 by AudeR

Hi,

 

On this thread http://ez.analog.com/thread/18589?start=15&tstart=0, there is a sample code about the timer.

I have a question about timer interval.

In the following code:

GptLd(pADI_TM0,0xF800);   // Set timeout period for 900ms

GptCfg(pADI_TM0,TCON_CLK_LFOSC,TCON_PRE_DIV16,TCON_MOD_PERIODIC|TCON_UP|TCON_RLD|TCON_ENABLE);

The interval should be T= (0xFFFF-0xF800)*16/32K = 1023ms.

Why the comment says 900ms?

 

Thank you.

Outcomes