saad_leo87
Newbie level 2
send wav to serial port
I'm trying to send a WAV file on a serial port and wish to use a uC (with a memory buffer) to receive it and forward it to a digital speaker
I'm using the Virtual Serial Port Driver 6.9 (by Eltima Software) to link a COM port pair (e.g COM2 and COM6) and using it to send the wav file serially from MATLAB to the circuit simulated on Proteus (using COMPIM)
The problem is that i'm uncertain whether the wav file (a sample file of 2 sec duration, sampling freq = 44100 Hz) will play correctly, because i'm converting the wav-file floating-point vector in MATLAB to hex first and then sending it on COM2....if i receive the hex-pattern in Proteus through COMPIM, send it to a uC....and use it to separate and send left and right channel on different pins and connect those pins (with a driving circuit/amplifier) to digital speaker, will it function correctly?
Also, does a serial port allows a data rate 57, 600 bps (without any software manipulations) ?
I'll be really thankful for any suggestions.....I'm in a real mess :s
I'm trying to send a WAV file on a serial port and wish to use a uC (with a memory buffer) to receive it and forward it to a digital speaker
I'm using the Virtual Serial Port Driver 6.9 (by Eltima Software) to link a COM port pair (e.g COM2 and COM6) and using it to send the wav file serially from MATLAB to the circuit simulated on Proteus (using COMPIM)
The problem is that i'm uncertain whether the wav file (a sample file of 2 sec duration, sampling freq = 44100 Hz) will play correctly, because i'm converting the wav-file floating-point vector in MATLAB to hex first and then sending it on COM2....if i receive the hex-pattern in Proteus through COMPIM, send it to a uC....and use it to separate and send left and right channel on different pins and connect those pins (with a driving circuit/amplifier) to digital speaker, will it function correctly?
Also, does a serial port allows a data rate 57, 600 bps (without any software manipulations) ?
I'll be really thankful for any suggestions.....I'm in a real mess :s