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

regarding delay in microcontroller

sir,
for delay in micro controller, everytime we have to use TMOD and TR and enable corresponding interrupt.is there any other less tedious way of programing a delay using keil cross compiler.
regards,
malay lakhani
final year BE student,
mumbai

Parents
  • for delay in micro controller, everytime we have to use TMOD and TR and enable corresponding interrupt

    "We" don't need interrupts for that. It's perfectly feasible to use polling to find out when the timer has finished running.

    is there any other less tedious way of programing a delay using keil cross compiler.

    To be frank, if you find setting two registers "tedious", then maybe you need to find another field of work.

Reply
  • for delay in micro controller, everytime we have to use TMOD and TR and enable corresponding interrupt

    "We" don't need interrupts for that. It's perfectly feasible to use polling to find out when the timer has finished running.

    is there any other less tedious way of programing a delay using keil cross compiler.

    To be frank, if you find setting two registers "tedious", then maybe you need to find another field of work.

Children