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 1 Interrupt 10 sec too late

Hello!

I have a problem with Keil Simulator using an C515C-L for a timer program.

Look here --> www.hashbin.com/293.html

The Problem is that the interrupt for timer1 is 10 seconds too late.

Can anyone help me???

Greetings and please excuse my bad english
Jan Wiemer

Parents
  • Hi!

    I'm using µVision simulating Infenion C515C-L. This program uses Timer1 in Modus2 (8-Bit Auto-reload) and the OSC-Frequency is 10MHz, whiuch is devided through 6 ==> tclock = 0,6µs.

    Im using 100ms aus Start-/Reload-Value.

    The exact problem is that the first interrupt needs (exactly) 10 seconds till it "comes". So the counting-procedure starts after 10 seconds, too. After those 10 seconds, it counts fully correctly!

    I've uploaded the whole µVision-project as .zip, I hope this will help you to find the problem:

    www.bigupload.com/d=8788FBA6

    ---- Thats my debug.ini:
    PE_SWD=0
    RESET
    --------------

    Greetings
    Jan W.

Reply
  • Hi!

    I'm using µVision simulating Infenion C515C-L. This program uses Timer1 in Modus2 (8-Bit Auto-reload) and the OSC-Frequency is 10MHz, whiuch is devided through 6 ==> tclock = 0,6µs.

    Im using 100ms aus Start-/Reload-Value.

    The exact problem is that the first interrupt needs (exactly) 10 seconds till it "comes". So the counting-procedure starts after 10 seconds, too. After those 10 seconds, it counts fully correctly!

    I've uploaded the whole µVision-project as .zip, I hope this will help you to find the problem:

    www.bigupload.com/d=8788FBA6

    ---- Thats my debug.ini:
    PE_SWD=0
    RESET
    --------------

    Greetings
    Jan W.

Children