PIC RegisterAddresses.h

PIC16F877 sample code that demonstrates how to access an external I2C EEPROM chip connected to a PIC. PIC16F877 is running at 20MHz and 24LC256 with RC0 as a clock pin and RC1 as a data pin. This example does not use the I2C specific interrupt features of the PIC16F877 to enable it to be used on a wider variety of PIC's. Modular approach makes it easy to follow and adapt for other designs (by Jamie Balfour).






// External Eprom Access. Jamie Balfour. Dec 2002.

// No Liability Accepted.



/* I/O Addresses */

char PORTC@0x07;

char TRISC@0x87;

char PORTD@0x08;

char TRISD@0x88;




Copyright© 2002 Pavel Baranov.