Shop OBEX P1 Docs P2 Docs Learn Events
Problem in Writing to Protoboard EEPROM — Parallax Forums

Problem in Writing to Protoboard EEPROM

MacGeek117MacGeek117 Posts: 747
edited 2007-04-20 02:48 in Propeller 1
Every time I run this program, the output is 'Error in reading EEPROM'. I'm not sure what is wrong.
RoboGeek

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"

Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.startrek.com

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-20 02:34
    The 3rd parameter to the I2C init routine has to be TRUE when the EEPROM is the boot EEPROM or is connected to the same pins.
    Normally the SCL and SDA lines both have to have pull-up resistors, but the Propeller Demo Board and some other Propeller boards
    only have a pull-up on SDA. The 3rd parameter when true causes the I/O routines to adjust for the lack of a pull-up on SCL.
  • MacGeek117MacGeek117 Posts: 747
    edited 2007-04-20 02:36
    Same thing. It just displays an error.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-20 02:48
    For some reason, the I2C Library doesn't work sometimes with the boot EEPROM.
    Try the routines that I wrote ("Basic I2C Driver") that are in the Object Exchange.
    You should also call the included Initialize routine at least once after calling Start.
    Sometimes the EEPROM is left in an invalid state after boot and has to be re-initialized.
Sign In or Register to comment.