Shop OBEX P1 Docs P2 Docs Learn Events
why no i2c PASM object — Parallax Forums

why no i2c PASM object

Bobb FwedBobb Fwed Posts: 1,119
edited 2009-08-15 01:35 in Propeller 1
Am I just not seeing it, or is there no i2c PASM object in the Obex?
Is it that complex (or people lazy)? Or does no one see the value in a cog dedicated to i2c instructions?
If people will use it, I will be writing an i2c object (intended for boot EEPROM) in PASM for another object. I can split it off into its own object fairly easily.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
April, 2008: when I discovered the answers to all my micro-computational-botherations!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-08-14 23:22
    The assembly I2C driver in FemtoBasic (sdspiFemto.spin) was designed to be usable on its own. It can use I2C busses on any pair of I/O pins including 28/29 and can handle all sorts of I2C devices (no address, one byte address, two byte address). It can also do SPI to an SD card and load and run Spin programs from either an SD card or an EEPROM. Although FemtoBasic doesn't use it, it easily does overlapped double buffering.

    Post Edited (Mike Green) : 8/14/2009 11:28:08 PM GMT
  • Bobb FwedBobb Fwed Posts: 1,119
    edited 2009-08-14 23:26
    Hm...interesting. I think I might adapt that code to use it more seemlessly with my code...I will check it out on Monday.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    April, 2008: when I discovered the answers to all my micro-computational-botherations!
  • jazzedjazzed Posts: 11,803
    edited 2009-08-15 01:35
    Here, try this. It supports buffered read/write only, but that's all most of us need anyway.

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


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
Sign In or Register to comment.