I looked at this forum http://www.picbasic.co.uk/forum/show...hlight=O_FLOWS and it seems a little to complicated for what i need.
I am using a 20mhz crystal so I'm not sure if i need to use a prescaler.
but all i want to do is monitor a battery I'm using adc 10 bits so when my battery reaches 9 volts i want a 10 second pause using TMR1 so my adc can still keep collecting, and after the 10sec pause is done just keep resuming the program.
so something like this.......
voltage var byte
timercount:
'10 sec TMR1 pause here
if voltage = 9 then
goto timercount
portb.4 = 1 ' after 10 sec resume from here
endif
Can anyone point me in the right direction thanks




Bookmarks