read/write eeprom


Results 1 to 18 of 18

Threaded View

  1. #14
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    How many bytes you need to tx?

    This piece of code is not working properly, since the delay due to the instructions to be executed plus the pause will surely make you loose Tx data.

    Code:
    NEXTSTEP: 
        debugin[#b1,#b2]                         'Read input
        i2cwrite dapin,clpin,cont,addr,[b1,b2]   'Store in eeprom
        pause 10                                 'Wait between writes
        addr=addr+2                              'Next eeprom loc
        if b2 <> $FF then nextstep             'FF means end of data 
    Think about to tx the whole packet in one go using array.

    Replace pause 600 with For A0=1 to 120 :Pause 5:Next A0


    Al.
    Last edited by aratti; - 28th February 2010 at 08:45.
    All progress began with an idea

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. External EEPROM can't read/write
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 16th May 2008, 22:13
  3. 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
  4. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 19:42
  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