Easy "Unloading" of EEPROM ?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Location
    Southern California
    Posts
    17


    Did you find this post helpful? Yes | No

    Lightbulb

    Here's a subroutine of how I do it. You might want to modify the start and stop addresses to do exactly what you need it to do.

    Rswain
    ******************************

    A var byte
    B var byte
    x var byte
    EE_Memory_Address var word
    EE var byte

    NI9600 CON 84
    PC_OUT var PORTB.1 ' Serial output via MAX232 to user terminal


    R_EE: ' Read from EEPROM and store as var (EE)
    ' needs to be given:A=start count (byte),B=end count (byte),EE_Memory_Address (word)
    ' str EE (bytes), and end w/13 (cr)
    for x = A to B ' 0 to 150 (or whatever you want or until CR is encountered)
    read EE_Memory_Address+x, EE
    SEROUT2 PC_OUT,NI9600, ["ee mem addr = ",dec EE_Memory_Address," read = ",#ee,13,10]
    if EE = 13 then r_EE_jumpout
    EE_Memory_Address = EE_Memory_Address + 1
    next x
    r_ee_jumpout:
    Return
    end
    *********************************
    Last edited by rswain; - 5th January 2009 at 22:27.

  2. #2
    Join Date
    Sep 2008
    Location
    Stockholm
    Posts
    80


    Did you find this post helpful? Yes | No

    Default

    Yes, right now the serial version seem to be the easiest, then I can connect a laptop to the PCB and unload it that way.

    I also got other very interesting suggestions on another electronics forum, for example there are modules that takes a USB memorystick in one end, and talks SPI in the other, also there is chips called DOS-on-Chip that is an interface between FAT on a SD card and SPI.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Glenn View Post
    for example there are modules that takes a USB memorystick in one end, and talks SPI in the other
    The VDIP1 does this with simple serial commands. I am using one one a prototype and so far it seems to be working well.
    Brian give a good starting example here.
    http://www.picbasic.co.uk/forum/showthread.php?t=7700
    Dave
    Always wear safety glasses while programming.

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