Page 1 of 1
Doing 2 task at the same time
Posted: Wed Oct 31, 2007 4:08 pm
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
Posted: Wed Oct 31, 2007 4:22 pm
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.
Posted: Wed Oct 31, 2007 7:26 pm
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.
Posted: Thu Nov 01, 2007 11:06 am
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