Shop OBEX P1 Docs P2 Docs Learn Events
EEprom pins — Parallax Forums

EEprom pins

KPRKPR Posts: 189
edited 2009-05-07 00:14 in Propeller 1
If I wanted to add a secondary eeprom ( non-booting of course ) will it operate the same on say pins 26/27 for standard read/write functionality??

K.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New ICON coming, gotta wait for the INK to heal, now we have colour!

Comments

  • James LongJames Long Posts: 1,181
    edited 2009-05-06 18:06
    KPR,

    Yes, but you must make sure to address it differently with the A0,A1,A2 pins. If you address it the same as the boot eeprom, it will cause problems.

    James L

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    James L
    Partner/Designer

    Lil Brother SMT Assembly Services
  • jazzedjazzed Posts: 11,803
    edited 2009-05-06 18:13
    Huh? If the EEPROM are on different propeller pins (26/27 -vs- 28/29) the address won't matter.
    Just use Mike's I2C driver from the obex and change the pins for accessing the device.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
  • James LongJames Long Posts: 1,181
    edited 2009-05-06 18:20
    jazzed said...
    Huh? If the EEPROM are on different propeller pins (26/27 -vs- 28/29) the address won't matter.
    Just use Mike's I2C driver from the obex and change the pins for accessing the device.

    Ha, I guess I should read the post more thoroughly next time. I swore the post stated the same pins as the boot eeprom, which can be done as well.

    Anywho, the function works the same, but you will need the address you supply the eeprom with, and of course change the driver to access the eeprom with the correct pins.

    edit- if you are trying to save I/O using the same pins as the boot eeprom is the best way. You just need to make sure to address the correct eeprom when accessing the secondary one.

    James L

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    James L
    Partner/Designer

    Lil Brother SMT Assembly Services

    Post Edited (James Long) : 5/6/2009 6:25:27 PM GMT
  • jazzedjazzed Posts: 11,803
    edited 2009-05-06 19:29
    Indeed, sharing the pins and changing the address would be better.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-05-06 20:06
    If you're going to put an EEPROM on the same pins, you may as well just use one EEPROM that's twice the capacity.

    -Phil
  • mikedivmikediv Posts: 825
    edited 2009-05-06 22:11
    James Long, Don't feel bad I thought the exact same thing I had to go back and read it again.
    lol
  • jazzedjazzed Posts: 11,803
    edited 2009-05-06 22:22
    Ooops. Don't wont anyone to feel bad. Sorry about that.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
  • James LongJames Long Posts: 1,181
    edited 2009-05-06 22:28
    jazzed said...
    Ooops. Don't wont anyone to feel bad. Sorry about that.

    No problem. I appreciate the fact you corrected me. I should pay a little more attention to the post, where I do not confuse the OP.

    It was a simple mistake, and no offense was taken.

    James L

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    James L
    Partner/Designer

    Lil Brother SMT Assembly Services
  • KPRKPR Posts: 189
    edited 2009-05-07 00:02
    Are the i2c routines in the obex code able to tell me how big the device attached is?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New ICON coming, gotta wait for the INK to heal, now we have colour!
  • jazzedjazzed Posts: 11,803
    edited 2009-05-07 00:08
    See this: obex.parallax.com/objects/26
    Mike's comments are so verbose they border on being long winded [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
  • KPRKPR Posts: 189
    edited 2009-05-07 00:14
    Thanks.. looking as we speak..

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New ICON coming, gotta wait for the INK to heal, now we have colour!
Sign In or Register to comment.