In SX Microcontrollers, SX/B Compiler and SX-Key Tool, basicstampede wrote: Jonny Mac, in your code i2c_template.sxb above, there is a statement (comment actually) 'Use: byteVal = I2C_IN AckBit What is AckBit? Is it a global variable? For example, if I want to receive a byte from I2C device then give NAK to device, is this correct usage: byteVal = I2C_IN Nak If my assumption is wrong, can you please give an example? - - - - - For I2C_OUT, is this correct usage? ackNak = 0 'want Ack I2C_OUT byVal IF ackNak = 1 THEN.... (check to see if ACK is correctly received, OPTIONAL) Thanks. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=295711#m296034 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)