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
  • "This example will exhibit the same issue you see"

    I am not sure. I think his code appears to be correct. it is not clear what he observed (no auto-reloading or incorrect auto-reloading?). but if all he is concerned is that the first observable tmr count in the isr is not 0xf0 - that's due to interrupt latency.

    but from what he wrote, it doesn't sound like that's he is complaining.

    " - that the hardware is clearing the flag when it jumps to the Timer 1 interrupt vector."

    I am pretty sure that's not his issue, and I am pretty sure that's supposed to have happened.

Reply
  • "This example will exhibit the same issue you see"

    I am not sure. I think his code appears to be correct. it is not clear what he observed (no auto-reloading or incorrect auto-reloading?). but if all he is concerned is that the first observable tmr count in the isr is not 0xf0 - that's due to interrupt latency.

    but from what he wrote, it doesn't sound like that's he is complaining.

    " - that the hardware is clearing the flag when it jumps to the Timer 1 interrupt vector."

    I am pretty sure that's not his issue, and I am pretty sure that's supposed to have happened.

Children
No data