Hi,
Me again,
Basically, i dont wanna be told how do implement a tone generator, but using a pic32 my concept was to use the pwm, at set frequency, (from wikipedia) say an A - 440Hz, and it went on for one beat so say a quarter or a second..
so the function would look like this:
But, my implementation was using a timer, in a little while loop, waiting for the length of time specified to be done with.. but obviously i cant sit my pic in a little while loop for a quarter of a second when it has to do lots of other tasks.
so my question is: how else would i go about implementing the timing side of it?
Cheers
Hope this makes sense
Me again,
Basically, i dont wanna be told how do implement a tone generator, but using a pic32 my concept was to use the pwm, at set frequency, (from wikipedia) say an A - 440Hz, and it went on for one beat so say a quarter or a second..
so the function would look like this:
Rich (BB code):
void codeGenerator(char note, char length)
{
Etc..
}
so my question is: how else would i go about implementing the timing side of it?
Cheers
Hope this makes sense