In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zoot wrote: If you are using SX/B then use the I2CSPEED before any I2C statements or subroutines (just once at the top of the application, for example). This lets you multiply the base SX I2C speed (100khz) by whatever you want. I2CSPEED 2.0 ' would make any subsequent I2C statements run w/approx. 200khz clock I2CSPEED 4.0 ' would be 400khz 'applies to any subsequent SX/B statements such as 'I2CSTART 'I2CSEND 'I2CSTOP 'etc [quote="What's New IN SXB 2"]I2CSPEED Directive The I2CSPEED directive will adjust the speed of the I2C commands(I2CSTART, I2CSTOP, I2CSEND and I2CRECV). Using "I2CSPEED 4" will make the commands execute 4 times faster. Using "I2CSPEED 0.5" will make the commands execute 1/2 as fast. This feature was added because some devices are capable of faster speeds, and some devices require slower speeds. NOTE: This is a directive and not a command. It does not generate any code by itself, and functions completely top-down. [/quote] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=441003#m441010 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2010 (http://www.dotNetBB.com)