Dear Memebers,
Just I have starred with PIC microcontrollers and I'd to know how to write on EEPROM of PIC16F877. Also is it Possible to generate sound using PIC16F877 and how ???
Best regards,
Bakari
Dear Memebers,
Just I have starred with PIC microcontrollers and I'd to know how to write on EEPROM of PIC16F877. Also is it Possible to generate sound using PIC16F877 and how ???
Best regards,
Bakari
in the PBP manual, look for DATA, WRITE, READ statement
For the sound... HPWM, SOUND, FREQOUT
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Dear Memebers,
Thank you for helping me in writing on EEPROM. Regarding the sound, I am sorry because my question wasn't clear. I mean to generate words like Hi, Bye, Good, Bad, Hot ....
In fact I am working on robot and I'd like it to talk. Thanks for your support.
Best regards,
Mohammad
could be done using an external EEPROM and dumping the WAV files into... but you may also look at some dedicated Chips like ISD4002 or some others like that.
HTH
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Dear Member,
I am really sorry for disturbing you with my questions and I am completely appreciating your help. Final question about this point, could you please give me the steps for dumping the wav. file in EEPROM and replaying it back using PIC16F877 microcontroller. Also, what is a typical memory size for the EEPROM recommended to replay for 2 minutes?
Best regards,
Bakari
for two minutes... you'll probably need a Flash Card instead or use few 24LC512 on the same I2C bus. For 2 minutes i would suggest to use any ISD chip as i previously suggest.
Basically you may record the Wav file in your computer with a decent Sampling rate, rename it as .BIN then dump it to your EEPROM. Knowing the file size, you'll know the EEPROM size...
The wav output is pretty simple, you will read your EEPROM, send it to DAC. It could be as simple as a resistor network and a OP-amp
Now, you can also use the same method but use MP3 format instead and use a MP3 decoder IC like VS1001K
Or if you have some guts, you may try the following
http://www.romanblack.com/picsound.htm
good luck!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks