I2C data bus with PIC 16F877

Discussion in 'Embedded Systems and Microcontrollers' started by rukshankb, Nov 3, 2007.

  1. rukshankb

    Thread Starter New Member

    Oct 19, 2006
    Hi to all
    I have a project to do the operations n a switch.(final exam) so i need to use i2c data bus and pic 16f877a. I want the codes in ASM files (i have microc files)
    to simulate the controlling these i2c and pic 16f877.

  2. niftydog

    Active Member

    Jun 13, 2007
    The 877 supports I2C, all you do is follow the sequence shown in the 877 datasheet and it just works. It's just a case of writing to and reading from registers registers and looking for flag bits.