Doing 2 task at the same time

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
mehrdad_pa
Posts: 3
Joined: Sun Oct 28, 2007 6:14 pm

Doing 2 task at the same time

Post by mehrdad_pa »

hi every1,

I need to now how can I write the program which do the 2 task at the same time, I am working on the buggy........I want that buggy check mic for clapsing wile the LEDs is switching on and off

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

If you enable the timer0 interrupt then you can use that to control the LEDs while your main program is dealing with the Mic.

mehrdad_pa
Posts: 3
Joined: Sun Oct 28, 2007 6:14 pm

Post by mehrdad_pa »

thanks benj for reply


can u xplain more to me I dont know what u r talking about timer0 interrupt :( I am new to this program......if u could send me an example that would be great

E-Mail: efy6mp@leeds.ac.uk



Benj wrote:Hello

If you enable the timer0 interrupt then you can use that to control the LEDs while your main program is dealing with the Mic.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

I have posted up an example for the buggy which uses timer0 interrupts to control the LEDs while the main program is reading the Mic and playing a sound if the signal is over the threshold limit.

http://www.matrixmultimedia.com/softwar ... errupt.fcf

Post Reply