This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C delay routine

I need to write a delay routine in C for a 80C251 . The delay has got to be about 30 seconds . Any ideas welcomed.

Parents
  • In my timerIsr(), the count10ms function var. should be incremented before leaving the ISR and modulo'd with 100, thus allowing it to be a U8. Sorry.

    Also, for bonus points, in a real-time system why doesn't it help to do the 1s check inside the 100ms timing region?

    Why would this be desireable in a non-real-time system?

    - Mark

Reply
  • In my timerIsr(), the count10ms function var. should be incremented before leaving the ISR and modulo'd with 100, thus allowing it to be a U8. Sorry.

    Also, for bonus points, in a real-time system why doesn't it help to do the 1s check inside the 100ms timing region?

    Why would this be desireable in a non-real-time system?

    - Mark

Children
No data