<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Interval timer</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/34429/interval-timer</link><description> I want to use a watchdog timer as an interval timer (and NOT for watchdog purposes). Can anyone throw light on how this can be done. Any help is appreciated. </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Interval timer</title><link>https://community.arm.com/thread/71874?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2003 07:52:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:40733909-44fc-42c2-8397-a82bf1c1403b</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;I want to use a watchdog timer as an interval timer (and NOT for watchdog purposes(&lt;/i&gt;&lt;br /&gt;
1) a bad idea&lt;br /&gt;
2) puppies are device dependent, what derivative do you use.&lt;br /&gt;
3) how are you going to have a watchdog function (required for all decent code) if you use the WD for something else.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interval timer</title><link>https://community.arm.com/thread/40957?ContentTypeID=1</link><pubDate>Tue, 23 Sep 2003 01:13:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:aeb00a6e-c4e0-45c8-bfec-85b7749080cb</guid><dc:creator>Raj  Shetgar</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;
I don&amp;#39;t see any need why one has to use a watch dog timer as a interval timer ?&lt;br /&gt;
&lt;br /&gt;
But any way if you are using a AT89S8252,what you can do is program the watch dog timer using the PS3,PS1 and PS0 in the 0x96 register for the desired time(16 ms ,32 ms, 64 ms, 128 ms etc...).&lt;br /&gt;
&lt;br /&gt;
and in the code(on reset code),you need to check for the POF(POWER OFF  Flag),this bit is set only if its a power on rest...&lt;br /&gt;
&lt;br /&gt;
I think from here you can start coding for yourself.If you find it difficult ...I &amp;#39;ll send you a document...&lt;br /&gt;
&lt;br /&gt;
Rgds&lt;br /&gt;
Raj Shetgar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>