This sample translation uses the source code of a software-implemented I2C driver for the 80C51
based microcontroller.
The source code was written by Greg Goodhue of Philips Components-Signetics, and was obtained from the following web site:
http://www.ustr.net/files/i2cbits.asm. (All rights acknowledged).
Click on the links below to display the sample source assembler and automatically-generated C in your browser: