PDA

View Full Version : I2C Restart / Repeated Start Condition


angrykid
01-09-2012, 07:38 AM
Hi all,

So I had a little problem with I2C Restart - SNAPpy doesn't have this function built in (as you may know some devices require this condition in order to communicate). So I wrote little script with poke() and peek() functions in order to access processor's peripheral I2C module (ARM7, MC13224V) and configure it for communications with Freescale sensors (MAG3110 and MMA8451Q). The code is fairly simple (no interrupt routines) but also quite raw (no ACK check).

Good luck!

arnold.anderio
04-18-2012, 01:59 AM
Looks like the U3's I2C documentation needs a update. In the meantime look at the U6: http://labjack.com/support/u6/users-guide/5.2.21, they are the same.

If you set bit 2 in the options byte it instructs the U3 to not send a stop before the start... aka restart.