ZaeemAhmad
Junior Member level 2
Using 8051, how can I achieve the following thing:
During the normal execution of a code (in an infinite while loop), I am simultaneously counting pulses from Timer 1 and as soon as the count reaches a particular value, I want to stop the normal execution of program (i.e. the while loop and call an interrupt) and go to a particular code (probably a custom interrupt handler)?
Thanks!
During the normal execution of a code (in an infinite while loop), I am simultaneously counting pulses from Timer 1 and as soon as the count reaches a particular value, I want to stop the normal execution of program (i.e. the while loop and call an interrupt) and go to a particular code (probably a custom interrupt handler)?
Thanks!