read/write eeprom


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    60

    Default read/write eeprom

    First give credit to Peter Olsen who wrote these programs for a picaxe. I'm trying to convert using a 12F683 to write to a 24LC256 and read back from it. The Angel file downloads file to 24lc256 from PC. Newtoyshop is suppose to read from the 24lc256 and output to 2 74hc595's. When I write to eeprom then read back I get jumbled up mess. The Angel file runs in power basic.
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default

    In my opinion..
    You would be better off not wasting time trying to convert a program that may or may not have worked for another platform.

    You know what you want the program to do?
    Write from scratch. In PBP...
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jun 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    It did work on a picaxe. I'm trying to write it in PBP with the other program as a reference, being new at this having a heck of a time. Not giving up.

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


    Did you find this post helpful? Yes | No

    Default

    Not giving up is good!

    To learn how to work with external eeproms try the I2C sample here
    http://www.melabs.com/resources/samples.htm

    Or wait till someone comes along that knows picaxe...

    and this may help with the 595s.
    http://www.picbasic.co.uk/forum/showthread.php?t=10200

    Put something together in PBP and we will help you debug it.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Tray adding the following two defines:

    DEFINE I2C_SLOW 1
    DEFINE I2C_HOLD 1


    Al.
    All progress began with an idea

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


    Did you find this post helpful? Yes | No

    Default

    DOH!!!

    My apologies...
    The way I read the first post I did not think you had any code of your own.

    And I hate opening attachments...

    Use code tags in the future.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Jun 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    I'll try the Defines and whenever I use code tags the code jumbles up or leaves stuff out, tried this a couple times on other questions and it left parts of the code out.

  8. #8
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mel4853 View Post
    I'll try the Defines and whenever I use code tags the code jumbles up or leaves stuff out, tried this a couple times on other questions and it left parts of the code out.
    replace the word magic with the word code

    [magic] your code goes here [/magic]
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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 : 1

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