Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | WAV file conversion and other topics

Discussion forum for the BasicX family of microcontroller chips.

WAV file conversion and other topics - Stan Cossette - Sep 9 19:47:00 2000

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




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )