<?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>I need help with a timer for 8051</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/16785/i-need-help-with-a-timer-for-8051</link><description> Hi 
Is there anyone that can help me write code for a time counter. Is it possible to write code for a AT89c2051 to have a timer stored in a register while haveing some other code running? The timer must look like XX:YY, x=hour, y=minute. Sorry for bad</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: I need help with a timer for 8051</title><link>https://community.arm.com/thread/134271?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2003 15:35:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:04a66fd9-aa9c-4505-a244-f5a66065e135</guid><dc:creator>George Dobrica</dc:creator><description>&lt;p&gt;Hi, thank you for youre help.&lt;br /&gt;
I now have it running and ready to go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with a timer for 8051</title><link>https://community.arm.com/thread/122136?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2003 03:43:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e474f277-6bc6-4bb2-8570-a486888ebfa6</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;i don&amp;#39;t know how to make this cpu act like a timer&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
No need - it has built-in timers!&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;I am new in this&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Have you done the background reading:&lt;br /&gt;
&lt;a href="http://www.keil.com/forum/docs/thread3387.asp"&gt;http://www.keil.com/forum/docs/thread3387.asp&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You will also need to read the data sheet for your particular chip&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&amp;quot;plese post a example of a timer&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
There are several already in the Downloads area of this very site!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with a timer for 8051</title><link>https://community.arm.com/thread/122138?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2003 01:47:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d6a077d9-e44a-4ae6-8a56-9e129dfdce1f</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;Sounds like a homework exercise to me!&lt;br /&gt;
&lt;br /&gt;
Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with a timer for 8051</title><link>https://community.arm.com/thread/110556?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2003 19:25:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7931c844-1fea-4bd2-b622-d999a82cb48a</guid><dc:creator>George Dobrica</dc:creator><description>&lt;p&gt;the only problem is that i don&amp;#39;t know how to make such a thing meaning that i don&amp;#39;t know how to make this cpu act like a timer. I am new in this. plese post a example of a timer . Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with a timer for 8051</title><link>https://community.arm.com/thread/95829?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2003 18:59:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9fdff6c4-c0f7-4408-aba8-eced5802ac78</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;So what is your difficulty?&lt;br /&gt;
&lt;br /&gt;
If you have your time stored as hh:mm, you just increment the &lt;i&gt;mm&lt;/i&gt; every minute and the &lt;i&gt;hh&lt;/i&gt; every hour (&lt;i&gt;ie,&lt;/i&gt; every 60th minute).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with a timer for 8051</title><link>https://community.arm.com/thread/71934?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2003 18:22:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5764c499-033d-4aef-9d37-25cc5e28db5d</guid><dc:creator>George Dobrica</dc:creator><description>&lt;p&gt;I wrote code for 8051 to save data onto a eeprom but i need to know when was this data written, and have a timer wich starts at 00:00 when the cpu is started i don&amp;#39;t need it to be in a register. I just need an example or somethis like this.&lt;br /&gt;
PS i have other code running too&lt;br /&gt;
&lt;br /&gt;
thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help with a timer for 8051</title><link>https://community.arm.com/thread/41028?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2003 18:05:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:59f84b34-91a7-4c08-a62a-f84a2e7dca5a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;Why does it specifically need to be in a &lt;i&gt;register&lt;/i&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>