Discussion forum for the BasicX family of microcontroller chips.
|
Hello, I recently purchased a BX-24 and am learning the ropes. I have some programming experience(Basic, PBasic, C, machine code) but am basically a Hardware guy. I have been reading the posts here and have found them very helpful. Hopefully someone can help me out with this: 1) Does anyone know of a file utility that can convert an 8-bit WAV file to the format needed by PlaySound? 2) Does anyone know the maximum sample rate supported by PlaySound? 3) Assuming I had a file containing BYTE values of a sampled signal, could I use the Source method to load the data into EEPROM? 4) How do you use the GetADC command to continuously sample a signal? The max sample rate is spec'd at 6kHz but it is unclear how to acheive this without creating a loop that calls the function as well as stores the result and the loop could easily take more than 160 microseconds (1/6kHz). I ask the question about the Source method because the manual seems to indicate that it takes the (unecessary) step of interpreting a file as ASCII text (except that the text has to be numerical!) Hence the utility I mentioned would have to take the extra step of converting a number like 128 to three ASCII values. Is this correct? TIA, Stan |