A quick look and I see a couple thing missing.
Code:' Timer Interrupt Handler ' ======================= DISABLE TICK_COUNT: Gosub Set_Timer ' Set the Timer for next 31.25mS Interrupt toggle sortie1 toggle sortie2 Resume ENABLE
A quick look and I see a couple thing missing.
Code:' Timer Interrupt Handler ' ======================= DISABLE TICK_COUNT: Gosub Set_Timer ' Set the Timer for next 31.25mS Interrupt toggle sortie1 toggle sortie2 Resume ENABLE
Dave
Always wear safety glasses while programming.
SET_TIMER needs work too. With the timer set to 16-bit read/write operation you need to write to TMR0H first, then TMR0L. Reading is just to opposite. Read TMR0L, then read TMR0H.
And, do you really want TMR0H to be loaded with the low & then high bytes of tmr0runon?
TMR0H=tmr0runon.Highbyte ' Save new values to TMR0
TMR0H=tmr0runon.Lowbyte
This wouldn't work anyhow, since you never write to TMR0L, which loads TMR0H..;o)
HI all,
1- Mackrackit
it's not working where you place them but it's working when i do :
DEBUT:
ENABLE
...
...
...
DISABLE
goto DEBUT
2- Bruce
indeed it was a 'typo' mistake i will write : TMR0L=tmr0runon.Lowbyte
well, for now all is ok so i can go on
thanks for helping
Jean-François
F4CDH
Bookmarks