Required Time for WRITE Command


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default Required Time for WRITE Command

    Hi all,

    I have this code in one of my programs,

    Code:
    FOR I = 1 TO 50
      ADDRESS = I
      
      SELECT CASE I
        CASE 1
          WRITE_VAR = MY_VAR_1
        CASE 2
          WRITE_VAR = MY_VAR_2
        ..........
        CASE 50
          WRITE_VAR = MY_VAR_50
      END SELECT
    
      WRITE ADDRESS, WRITE_VAR
      PAUSE 10
    
    NEXT I
    It writes 50 bytes in EEPROM memory without any problem. The problem than I'm having is that all of this EEPROM writing takes too much time in my program. That is, the total time of the PAUSEs (50 * 10ms = 500ms) plus the time required for the rest of the code. Is there any way to make this code faster? Does the pause after the WRITE command has to be 10 ms like the manual recommends, or can it be smaller than that?

    Thank you,

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Required Time for WRITE Command

    The manual shows a PAUSE 10 after an I2CWRITE to an external EEPROM, but not after a WRITE to internal EEPROM.

    Most internal EEPROM Erase/Write cycles take ~5mS, and that is self timed by the chip/PBP.
    So removing the pause should speed it up 3x.
    DT

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: Required Time for WRITE Command

    Darrel,

    Removing the pause fixed the problem. Thank you.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

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