In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: I've not used that chip either, but I have used the MCP23016 with the BS2p series; perhaps something in this article will help you: [url]http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/vol5/col/nv109.pdf[/url] You'll also want to keep in mind that I2C functions are time-oriented (like PAUSE, SERIN, SEROUT) so they can chew through a lot of your code space -- this means it's best to encapsulate them in custom subroutines and functions. I've attached an I2C template with code I use in my projects. I've also attached an update template (drop into your \templates folder) as the one you're using is quite old. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=295711#m295777 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)