In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: relaychip, the SX controllers do not come with dedicated I²C hardware peripherals, like other controllers do. Interfacing an SX to the I²C bus is just (or simply) a matter of software, IOW, you are free to implement whatever you need. You may have one SX acting as master, and several SXes acting as slaves on one bus, but with the right software, you can also implement multi-master systems with correct handling of bus arbitrations, etc. As a matter of fact, my very first project with SX controllers was an I²C bus system for the control panels of an electronic organ. This included one "Super Master", i.e. a module to interface the I²C bus to MIDI plus several other modules, like one with 16 potentiometers, or one with 64 LEDs, 64 pushbuttons, and a quadrature encoder. This was a typical multi-master system, as each of the modules could send a message when a potentiometer position was changed, a pushbutton was pressed or released, or when the encoder was turned right or left. On the other hand, the "Super-Master" could send messages to change the states of the LEDs, or to request the current potentiometer settings of one of the potentiometer boards. Due to the fact that the I²C prototcol on an SX is handled by software, you are not limited to any standards - if necessary, you may even adapt the protocol to your specific needs. You can find sample I²C code at [url]http://www.parallax.com/dl/appnt/sx/An29.pdf[/url], [url]http://www.parallax.com/dl/src/prod/sx/i2cs.zip[/url], [url]http://www.sxlist.com/techref/i2cs.htm[/url], [url]http://www.sxlist.com/techref/i2cs.htm[/url], or in APP025.SRC contained in the ZIP of my book's sample code archive at [url]http://www.parallax.com/dl/src/prod/sx/ProgSXEdPre.zip[/url] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=210867#m210874 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)