Thank You Bruce !
Regards Pesti.
Hi,
I Found another Way.
When I use for Example this:
Display:
Lcdout ..........................
Pause 5000
LCDout..........................
Pause 4000
Resume
------------------------------------------------------------------------
Seconds = Seconds + 9 ' Add 9 Seconds to Seconds Variable
Then I add in My Second Variable the Seconds that I have Lost with my pause statment.
Is This a good Idea?
Regards Pesti
I add a new Code line:
Timer:
TMR0IF = 0 '''''''''''''''''''''''''''''''''''''''''''''Clear Timer 0 Interrupt
TMR0H = $0B
TMR0L = $DB
Second[2] = Second[2] + 1
I add next Line
If Second[2] > 60 Then Second[2] = Second[2] - 60 : Minute[2] = Minute[2] + 1
If Second[2] = 60 Then Minute[2] = Minute[2] + 1 :Second[2] = 0
If Minute[2] >= 60 Then Hour[2] = Hour[2] + 1 :Minute[2] = 0
If Hour[2] >= 24 Then Hour[2] = 0
Regards Pesti
Hi Pesti,
If it works for your application, then go for it...;o}
I can't see where it would hurt. Remember, however, that you have a time period that's not
accounted for during each LCDOUT sequence. If this missing time isn't a problem, then just
go with what you have.
If timing is critical, you could always find out how long each LCDOUT takes, and factor this
into your PAUSE time using PAUSEUS.
See this thread for details http://www.picbasic.co.uk/forum/showthread.php?t=365
Bookmarks