The I2C Library is a C interface library that may be used on the DS80C400. It provides a simple
interface to allow communication with I2C devices using any two port pins on the CPU. The library
also allows the use of SCL flow control.
The library defaults to using no clock delay (as fast as the CPU can clock),
no SCL flow control, and SDA=P3.4 SCL=P3.5. If these settings do not match
the user application, they may be modified.
Three items may be tuned to the specific end user application, and all are
defined in tini_i2c.h.
#define I2C_ENABLE_SCL_WAIT_FOR_SLOW_SLAVES 1
The I2C sample application uses all available library functions to write and read a DS1672 Real Time Clock.
Download