STMicroelectronics AN1045 I2C Bus Master Software Implementation Application Note

This application note describes how to implement an I2C communication software interface for devices without an I2C peripheral. The software can perform I2C master transmitter and master receiver functions. The master chosen here is a ST72324 and the slave is an EEPROM (M24C08).


STMicroelectronics AN1045 I2C Bus Master Software Implementation Application Note - cover page
Brand
STMicroelectronics
Document type
Application Note
Language
English
Pages
16
File format
PDF
File size
151 KB
Published
07 August, 2012
Updated
29 September, 2023
MD5 checksum
72F44162C2AA5B8230DD19B1DBC811C2

About this manual

The document provides a C language program to implement I2C master transmitter and receiver functions using the ST72324 microcontroller. It details how to manage start/stop conditions, acknowledge generation, and error handling without hardware support.

The note includes specific characteristics such as a clock frequency of 62.5 kHz and outlines the hardware configuration required for communication with an EEPROM slave device like the M24C08.

What's inside

  • Introduction
  • Characteristics
  • Communication Speed
  • Start, Stop Condition and Acknowledge Generation
  • Hardware Configuration
  • Initiating a Communication
  • Sending a Data Byte
  • Receiving a Data Byte
  • Communication Frames

Specifications

Clock Frequency (Fscl)62.5 kHz
SCL PinPA7
SDA PinPA6

Frequently asked questions

What microcontroller is used as the master in this example?

The ST72324 microcontroller is chosen as the master.

What slave device is used for demonstration?

An EEPROM M24C08 is used as the slave.

Download PDF (151 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →