EEPROM help


Closed Thread
Results 1 to 6 of 6

Thread: EEPROM help

  1. #1
    Join Date
    Jul 2004
    Location
    CA
    Posts
    78

    Default EEPROM help

    Why is it that Writing to EEPROM takes longer than reading from EEPROM.

    Writing a BYTE to EEPROM takes around 4ms with a 20Mhz, While READING a BYTE from EEROM takes like 3 microsec.

    cant explain why this is the case. any way I can reduce the time it takes to write to EEPROM?

    srig

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


    Did you find this post helpful? Yes | No

    Default

    Are you talking about the internal EEPROM of a PIC or an external one?

    If the internal one, how did you measure it? By interrupt or by testing with pauses?

    Are you using WRITE and READ ? If so what about if you use some assembly lines (they're mostely provide in datasheet)

    Some external can be much faster than this IMO.
    Last edited by mister_e; - 3rd February 2005 at 23:04.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jul 2004
    Location
    CA
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    I am using the WRITE and READ command in the pbp compiler. I us MPLAB , where you can actually debug your code line per line and to see how long each command takes. by using the stopwatch, embedded in the GUI. and that is pretty well calculated timing they use. anyway I was just curious on why it takes soo long to write .. then read.. becasue I am noticing flickering at the output because of this. was wondering how I can get around this.

    please help!!

    srig

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


    Did you find this post helpful? Yes | No

    Default

    what is your actual code ?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    I guess it's more a matter of "physics" than a matter of coding.

    I'll try to dig out a document that explains it (if I find time to)
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Look in the datasheet for the device you're using.

    Electrical Specifications
    ....DC Characteristics
    ........ Data EEPROM Memory

    EEPROM Erase/Write cycle time is from 4 to 8mS. No wait time for reading. Just erase & write.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. How to define constants that specify eeprom addresses
    By DwayneR in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th December 2009, 04:07
  3. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  4. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

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