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
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.
"... maybe you need to find another field of work." Or put all of that "tedious" stuff in a function or multi-statement macro.