Discussion forum for the BasicX family of microcontroller chips.
|
Basicx people I would like anyone’s thoughts on using the BX24 sound record and play capabilities. Specifically how do you get it to record a sound to its EEPROM then play it back out a pin (I assume using the PlaySound command). Chris Harriman from NetMedia said "This is what our ADCTOSERIAL and SERIALTODAC functions are all about. " The closest command I could find listed in the "System Library" manual is ADCtoCom1 and Com1toDAC I assume these are the commands he is referring to ? These commands appear to send data in and out of the serial port, perhaps this would be used for recording and playing sounds from your PC’s hard drive ? The PlaySound command itself looks very straight forward to use and I assume I just take the assigned output pin and run it to an audio amp like a LM386 to a speaker? But how do you get the data into the EEPROM in the first place in the correct format? I would think you would connect a microphone and op-amp to an input pin then use some code like GetADC to sample the incoming sound and write it to the EEPROM ? Thank you Ron A. Nucci [Non-text portions of this message have been removed] |