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
Doing 2 task at the same time
- 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:
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.
If you enable the timer0 interrupt then you can use that to control the LEDs while your main program is dealing with the Mic.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 3
- Joined: Sun Oct 28, 2007 6:14 pm
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
can u xplain more to me I dont know what u r talking about timer0 interrupt

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.
- 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:
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel