资料介绍
The Microchip Technology Inc.’s 24CXX and 85CXX
Serial EEPROMs feature a two wire serial interface bus.
The bus protocol is I
2
C compatible. Interface to a serial
port with I
2
C bus protocol in a microcontroller is trivial.
This application note is intended for design engineers
who want to develop their software programs to commu-nicate a microcontroller with a 2-wire bus Serial EEPROM
through a general purpose I/O port.
Communicating with the I2C Bus Using the PIC16C5X
AN515
Communicating with the I2C Bus Using the PIC16C5X
INTRODUCTION line (SDA) must remain stable whenever the clock line
(SCL) is high. Changes in the data line while the clock
The Microchip Technology Inc.’s 24CXX and 85CXX line is high are interpreted as a START or STOP condi-
Serial EEPROMs feature a two wire serial interface bus. tion. A typical transfer format is shown in Figure 1.
The bus protocol is I2C compatible. Interface