storing a wave file on the rom flash of mcu

Status
Not open for further replies.

kasser

New Member
I have a wave file on my computer , its time is 3 seconds , I want to stroe it in the flas of microcontroller.
pls how can I do that .
 
Not an easy thing to do.

PICs do not have the hardware to play wave files.
They may or may not have enough PIC flash mem to store the file.

What exactly are you wanting to do.
 
EPE did a project the other year, it plays WAV files back from an external EEPROM - it was called 'Halloween Howler'.
 
can some one provide the algorithm for playing the output of Roman Black's Program?

I mean.. it gives you the frequency at which the bits should be read.. and it gives you the bits in blocks of eight.. erm bytes..

But how do you continiously cycle through all the bits??

I really really really really .. like alot of people here... want to add sound to my projects..

can anyone solve this one?
 
The 18F have a table read command that would be handy for reading a large table right out of Flash memory. You could write a fancy 16F program that sorts out using large tables when using "retlw" else you'll need an external EEPROM.
 
blueroomelectronics said:
The 18F have a table read command that would be handy for reading a large table right out of Flash memory. You could write a fancy 16F program that sorts out using large tables when using "retlw" else you'll need an external EEPROM.

Many of the newer 16F series have read and write to flash which is very similar to the table read command on the 18F. I think the problem with the 16 series would be lack of available flash.

Mike.
 
Pommie said:
Many of the newer 16F series have read and write to flash which is very similar to the table read command on the 18F. I think the problem with the 16 series would be lack of available flash.

Mike.

Also the 18F can store two bytes per word, the 16F one byte per 14bits unless you're writing some pretty fancy software.
 
blueroomelectronics said:
Also the 18F can store two bytes per word, the 16F one byte per 14bits unless you're writing some pretty fancy software.

I normally store 2 ascii characters per location. If I was storing a wav file then I think I would store 2 x 7 bit samples per location.

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…