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
  • 'will continue, a running timer (0 or 1) will (eventually) set TF to 1.'

    that's the point of the entire discussion, erik: his code, as well as yours, SHOULD work. but he reported it didn't work.

    it does work, I have a sneaky suspicion that autoload mode confuses the simulator. Not the first time the simulator has 'simulated' instead of 'replicated'. If it confuses the chip the chip is defective.

    why on earth not just see what happens with non-autoload the OP has it right at his fingertips and trying it instead relying on bile from the homewrecker would take, at most 5 minutes.

    Erik

Reply
  • 'will continue, a running timer (0 or 1) will (eventually) set TF to 1.'

    that's the point of the entire discussion, erik: his code, as well as yours, SHOULD work. but he reported it didn't work.

    it does work, I have a sneaky suspicion that autoload mode confuses the simulator. Not the first time the simulator has 'simulated' instead of 'replicated'. If it confuses the chip the chip is defective.

    why on earth not just see what happens with non-autoload the OP has it right at his fingertips and trying it instead relying on bile from the homewrecker would take, at most 5 minutes.

    Erik

Children
No data