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
  • Even though I understand that the simulator is not designed to operate in a specific way for certain modes does not mean that it should get stuck at certain instruction and does not return to the main program or execute the next set of instructions. If you run the code u will find that its stuck in the while loop with timer getting loaded and overflow repeatedly and the program does not return to main. I dont think any datasheet specifies such abnormal operation. How does this simulator help in debug mode when it gets stuck at some point for such a small program?

Reply
  • Even though I understand that the simulator is not designed to operate in a specific way for certain modes does not mean that it should get stuck at certain instruction and does not return to the main program or execute the next set of instructions. If you run the code u will find that its stuck in the while loop with timer getting loaded and overflow repeatedly and the program does not return to main. I dont think any datasheet specifies such abnormal operation. How does this simulator help in debug mode when it gets stuck at some point for such a small program?

Children