Timer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2003-05-07 11:29 AM
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 2:53 AM
Posted on May 17, 2011 at 11:53
Hi Every body
How can I calculate the value for the buffers TH0 and TL0 in order to have interrupt every 1ms. Thank you very much HayunOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 2:53 AM
Posted on May 17, 2011 at 11:53
Timer0_count = 0 - (osc/(12*timer0_period)) - 17
so if your osc freq = 36MHz, then Timer0_count = 0xf459, if, osc freq = 40MHz, then Timer0_count = 0xf30c Load the high byte of timer0_count to TH0, and the low byte to TL0.