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

Timer in autoload mode

I use Keil sometimes and while using a timer in autoload mode, the TH0 is loaded with the calculated value but TL0 starts incrementing from 00 instead of the calculated value F0.Am I missing something while using or configuring the keil simulator?

Parents
  • Most likely you're missing the fact that you are supposed to load the initial count into T0L the first time round if you want the first interval to be the same length as all the later ones. Only after reaching roll-over the first time does the value in T0H get used as a reload value.

Reply
  • Most likely you're missing the fact that you are supposed to load the initial count into T0L the first time round if you want the first interval to be the same length as all the later ones. Only after reaching roll-over the first time does the value in T0H get used as a reload value.

Children