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
  • "I can easily see such "slipping through the cracks"."

    that's the problem throughout the whole discussion. his code absolutely works: either in simulation or on actual hardware.

    and his code has identical return mechanism to yours. so if his code couldn't return, yours couldn't either.

    all you need to do is to load his code into the compiler and run it through.

    the problem is NOT the code.

Reply
  • "I can easily see such "slipping through the cracks"."

    that's the problem throughout the whole discussion. his code absolutely works: either in simulation or on actual hardware.

    and his code has identical return mechanism to yours. so if his code couldn't return, yours couldn't either.

    all you need to do is to load his code into the compiler and run it through.

    the problem is NOT the code.

Children