Ask For Help


Closed Thread
Results 1 to 19 of 19

Thread: Ask For Help

Hybrid View

  1. #1
    Bakari's Avatar
    Bakari Guest

    Smile Ask For Help

    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

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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.

  3. #3
    Bakari's Avatar
    Bakari Guest


    Did you find this post helpful? Yes | No

    Red face Correcting the question

    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

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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.

  5. #5
    Bakari's Avatar
    Bakari Guest


    Did you find this post helpful? Yes | No

    Red face Sorry for disturbance

    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

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts