Example

  I2CSEND Pin, ByteVal {, AckVar}

Function
Sends ByteVal on the I2C bus defined by Pin.

Quick Facts
  SX18/20 SX28 SX48 SX52
 SDA pin RA.0 .. RA.2
RB.0 .. RB.6
RA.0 .. RA.2
RB.0 .. RB.6
RC.0 .. RC.6
RA.0 .. RA.2
RB.0 .. RB.6
RC.0 .. RC.6
RD.0 .. RD.6
RE.0 .. RE.6
RA.0 .. RA.6
RB.0 .. RB.6
RC.0 .. RC.6
RD.0 .. RD.6
RE.0 .. RE.6
 SCL pin  Next pin in same group as SDA assignment.
 Transmission rate  Approximately 50 kBits/sec.
 Special Notes  Both the SDA and SCL pins must have 4.7 kΩ pull-up resisters.

Explanation
The I2C protocol is a form of synchronous serial communication developed by Philips Semiconductor. It only requires two I/O pins and both pins can be shared between multiple I2C devices. The I2CSEND instruction transmits an eight-bit value to a previously addressed device on the I2C bus (SDA and SCL pins).

Note that the SCL pin is automatically assigned to the next higher pin in the same group as the SDA pin, so the SDA pin may not be assigned to RA.3 (RA.7 on the SX52), RB.7, RC.7, RD.7, or RE.7.


Related instructions: I2CRECV, I2CSTART, and I2CSTOP