Guest User

Untitled

a guest
Dec 16th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. void main()
  2. {
  3. InitTimer0();
  4. while(1);
  5. }
  6.  
  7. void InitTimer0()
  8. {
  9. //setup timer0 interrupt
  10. //...
  11. }
  12.  
  13. void Interrupt() //will be fired every x ms
  14. {
  15. //perform some time-critical tasks
  16. //e.g. increase internal clock
  17. //...
  18. }
Add Comment
Please, Sign In to add comment