Номер в каталоге
AN1045
Компоненты Описание
Other PDF
no available.
PDF
page
16 Pages
File Size
82.8 kB
производитель

STMicroelectronics
INTRODUCTION
The goal of this application note is to implement an I2C communications software interface for devices which have no I2C peripheral. The software of this application performs I2C master transmitter and master receiver functions. The master chosen here is a ST72324 and the slave is an EEPROM (M24C08).
The program described in this application note is in C language, a program in assembly language is also available in the software library (see ST7 CD ROM on Internet).
CHARACTERISTICS
The main characteristics of this I2C software are:
■ bit addressing
■ Master Transmitter/Receiver
■ Several data bytes sent and received (3 in this application)
■ Fscl = 62.5 kHz
■ Acknowledge management
■ Error management (AF)