Hi everybody,
I'm storing some A2D results to my 24LC256 using I2CWRITE, it is working perfectly.
When a particular pin is set i want the program to jump to a small routine, some loop, and excute the loop for 65 seconds.
My question is how do i get roughly 65 seconds. I'm using a
@ SLEEP command in other part of my code and i don't want to enable watchdog timer because i want the PIC to wake up when an RB.0 interrupt occurs, this part is working and i want to leave it as it is.
I tried to count the firaction of seconds when TMR0 overflow interrupt occurs but for some reason, i think i'm using @ sleep, TMR0 interrupt is not working. Does Timer0 runs when the PIC is sleeping?
So how can i get 65 second without using TMR0 interrupt. The time doesn't necessarly be exact but around a minute.
Regards,
Tom.
Bookmarks