Hi,
I have a question,I use Timer0 to Refresh my Real Time all is ok all work fine but my problem is when I use this:
On Interrupt goto IntHandler ''''''''''''''''''''''''''''''''''''''''''''''''In terrupt Routine
LoopHauptMenu:
HSerin 10000,Main_RFID,[Menupunkt]
.......
.......
Disable
IntHandler:
IF TMR0IF then Timer
Resume
Timer:
TMR0IF = 0 '''''''''''''''''''''''''''''''''''''''''''''Clear Timer 0 Interrupt
TMR0H = $3C
TMR0L = $AF
Gosub ReadTime
Gosub Read_BCD
Lcdout $fe,$80," RFID Leser "
Lcdout $fe,$C0," ",DEC2 Stunde[0],":",DEC2 Minute[0],":",DEC2 Sekunde[0]," "
Resume
Enable
Every 10 Seconds my Time is Refreshing!
And when I use this :
On Interrupt goto IntHandler ''''''''''''''''''''''''''''''''''''''''''''''''In terrupt Routine
LoopHauptMenu:
HSerin 1000,LoopHauptMenu,[Menupunkt]
.......
.......
Disable
IntHandler:
IF TMR0IF then Timer
Resume
Timer:
TMR0IF = 0 '''''''''''''''''''''''''''''''''''''''''''''Clear Timer 0 Interrupt
TMR0H = $3C
TMR0L = $AF
Gosub ReadTime
Gosub Read_BCD
Lcdout $fe,$80," RFID Leser "
Lcdout $fe,$C0," ",DEC2 Stunde[0],":",DEC2 Minute[0],":",DEC2 Sekunde[0]," "
Resume
All is ok is refreshing every seconds why is this so?!
Thank you for any answer.
Regards Pesti
Bookmarks