KO4BB's Microprocessor Pages

8051 Source Code samples


I2C driver

This I2C driver is written around the Silabs C8051F133 chip, which has a hardware I2C/SMBus transceiver. However, the driver also has a bit-banged version which can be used with chips that do not have I2C hardware.
Here is the header file.

Here is a sample application for a M24C64 I2C EEPROM.


Hitachi H44780 LCD Controller driver

Here is a driver for the Hitachi H44780 and compatible type of LCD display controller. That includes the beautiful Noritake Vacuum Fluorescent series of displays.
The source code is written around the Silabs chips and therefore would work with most 8051s without modification, but includes examples of how to configure the ports on a Phillips or TI 8051 with DDR registers.
Here is the header file.


Return to KO4BB's Home Page.
July 08 2008 00:00:00