save and load "bits" in eeprom...


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: save and load "bits" in eeprom...

    Add a "txt" to the file name.
    xxx.rar.txt
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: save and load "bits" in eeprom...

    Not sure I understand exactly what you're trying to do. Are you trying to record sound with the on chip analog to digital converter and store that, in real time, in EEPROM on a 16F877?

    First, the WRITE command is self timed and, according to the manual, takes up to 10ms. You're doing two of those so ~20ms or a whopping sample rate of 50Hz - not that great for audio. Second, the EEPROM on that device is only 256 bytes, since each of your samples are two bytes you can save 128 samples. Even at the not usable 50Hz sample rate that's only ~2.5 seconds. To get anything usable for speach I'd say you need a sample rate of 8kHz which would give you a whopping storage of 16ms.

    Maby you can use WRITECODE and store it in the FLASH instead of in EEPROM but your best bet would be to get somekind of external memory device.

    /Henrik.

  3. #3
    Join Date
    Aug 2012
    Location
    Comodoro Rivadavia - Patagonia Argentina
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: save and load "bits" in eeprom...

    Thank mackrackit!!! I upload the files there to watch it and simulate it.
    Friend Henrik; Initially I did was play the sound file in real time. That is, the read 10-bit ADC, and simultaneously reproduce it in the DAC 10 bits. Until here, all right.
    The issue was that after cosidere in store this data in a memory space pra see s could play, obviously, I would have escpao that reproduction uqe 20Khz frequency range in ... I'm thinking of another way to deal with this to see if I get to the main point ... a kind of chip corder, but entirely made ​​in PBP
    regards

    SOUNDbasic.rar.txt

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