interrupt timer???


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Sep 2010
    Posts
    8

    Default interrupt timer???

    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 =)
    Last edited by reik6149; - 11th September 2010 at 06:31.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts