TheMicrochipTechnologyInc.’s24CXXand85CXX

SerialEEPROMsfeatureatwowireserialinterfacebus.

ThebusprotocolisI

2

Ccompatible.Interfacetoaserial

portwithI

2

Cbusprotocolinamicrocontrolleristrivial.

Thisapplicationnoteisintendedfordesignengineers

whowanttodeveloptheirsoftwareprogramstocommu-nicateamicrocontrollerwitha2-wirebusSerialEEPROM

throughageneralpurposeI/Oport.

CommunicatingwiththeI2CBusUsingthePIC16C5XAN515CommunicatingwiththeI2CBusUsingthePIC16C5XINTRODUCTIONline(SDA)mustremainstablewhenevertheclockline(SCL)ishigh.ChangesinthedatalinewhiletheclockTheMicrochipTechnologyInc.’s24CXXand85CXXlineishighareinterpretedasaSTARTorSTOPcondi-SerialEEPROMsfeatureatwowireserialinterfacebus.tion.AtypicaltransferformatisshowninFigure1.ThebusprotocolisI2Ccompatible.Interface

使用pic16c5x与IIC总线通信

使用pic16c5x与IIC总线通信