hi all, i am a newbie for picbasic, have a question regarding to my final year project, hope the pros can help me =)
the question is : is it posible to run 2 routine at the same time ?
basically i want a routine to measure the time between my sensor interrupt, and another routine running a series of LED, the process are as below:
interupt : sensor pass thru <--- when sensor pass thru then interrupt jump to here
off all led
timer1 stop and save the value
timer1 start count the time between the sensor pass thru
led1 on
pause 1000
led2 on
pause 1000
led3 on
pause 1000
led4 on
pause 1000
from the process above, the timer1 is counting the value, and the leds is still on at the same time.
is the process above posible? can anyone give me the clue or code related? =)
thank you very much =)
Bookmarks