Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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 .
 
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top