Two Issues with PICbasic's Efficiency


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    It is a feature of SERIAL EEPROM like the internal PIC EEPROM or external EEPROM (like the 24LC64 and similar etc) that require (up to) 10mS for a WRITE operation (consult the Datasheet of the EEPROM you are using for the actual timing). All the worlds fastest Assembly routines will not help you. You must use a faster hardware product like Alain suggested.

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Or else, M25P32 from ST ...
    I believe ST sold the M25P line to Numonyx and the line has been upgraded to the faster M25PE... series.
    See the M25PE80 for a sample data sheet.
    It's rated at writing 256 bytes in 11 ms.
    For M25P code example see M25P32 (warning other compiler).

    A full 256 byte per write is probably required however.
    Since only erase can convert 0 to 1's overwriting previous of new and following of new bytes with 1's can simulate a one byte write.
    Perhaps a low priority interrupt could do the 256 byte write in the background.


    Norm

  3. #3
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    M25PE80... The memory can be written or programmed 1 to 256 bytes at a time.
    Improved over old M25P series?
    I found with the previous M25P series after many 1 byte writes errors crept
    in thus a full 256 byte sector write was used.

    Norm

  4. #4
    Join Date
    May 2009
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Normnet View Post
    Improved over old M25P series?
    I found with the previous M25P series after many 1 byte writes errors crept
    in thus a full 256 byte sector write was used.

    Norm
    Thanks Norm the your suggestions and the sample codes. IN the manual it sounds like 1~256 is a flexiable range that can be written. Any way I will try it out later.

  5. #5
    Join Date
    May 2009
    Posts
    21


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    It is a feature of SERIAL EEPROM like the internal PIC EEPROM or external EEPROM (like the 24LC64 and similar etc) that require (up to) 10mS for a WRITE operation (consult the Datasheet of the EEPROM you are using for the actual timing). All the worlds fastest Assembly routines will not help you. You must use a faster hardware product like Alain suggested.
    Sounds good. The EEPROMs require a 5ms wirting circle typically from Microchips. While it can be reduced to about 3ms as I tried.

Similar Threads

  1. SERIN2 buffer issues...
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 16th October 2008, 04:49
  2. Solved: notes on annoying little issues
    By Probotics in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th May 2008, 21:02
  3. Where should I discuss SD/MMC FAT issues?
    By JD123 in forum General
    Replies: 92
    Last Post: - 2nd April 2008, 22:41
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 20:33
  5. Circuit reliability issues
    By hkpatrice in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd November 2007, 15:55

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