We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi, i'm having problems using timers in AT89C51. I have a timer in an interrupt handler routine. As soon as the "output" variable gets a rising edge, the program enters in the interrupt handler routine. Now the problems start. I have to run the timer for as long as the "output" variable is high. (16 bit mode) This sounds simple enuff but fer some reason i cant do it.(the timer just doesnt run....I have used thew following settings ... TR0 = 1...TMOD = 0x01.... It would be a great help if someone can assist me with the code for this issue. Thanks
use the gate feature as you title "important" I shall keep in line with that it is important that you are familiar with "the bible". The gate feature is described there Erik here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf
Are you tring to get an interupt while in an interupt? You can not if the prority is the same or lower.