Shop OBEX P1 Docs P2 Docs Learn Events
Programming BS2px with SCL & SDA Lines — Parallax Forums

Programming BS2px with SCL & SDA Lines

HumanoidoHumanoido Posts: 5,770
edited 2011-02-28 17:14 in BASIC Stamp
Is it possible to program the Basic Stamp 2px using the SDL and SDA pins?
The goal is to not use pins 0 through 15.
The idea is to attach another I2C device on the same SDL and SDA that
the eeprom uses.

attachment.php?attachmentid=78744&d=1298891399

attachment.php?attachmentid=78745&d=1298891424
403 x 184 - 13K
379 x 352 - 30K

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-02-28 08:14
    A Stamp is programmed normally through SIN / SOUT / ATN. None of the 16 I/O pins are used for programming.

    The SCL / SDA pins are not really accessible unless you make up a special jig with probes that contact the leads on the Stamp module. Theoretically, you could hold the /RES line low to stop the microprocessor from accessing the EEPROM, then use some external microprocessor to access the EEPROM via the probe leads. The Stamp Editor doesn't support this, but it can write the compiled program to a file and your could write some other PC program to take this file and reformat it into an EEPROM image.

    There's no way to access anything attached to SCL / SDA from a PBasic program other than the built-in memory. If you want to use some kind of I2C device, you have to use the designated I/O pins.
  • HumanoidoHumanoido Posts: 5,770
    edited 2011-02-28 17:14
    Mike, thanks! These ideas are very helpful.
Sign In or Register to comment.