STMicroelectronics AN1782 STR71x I2C Communication with M24Cxx EEPROM Application Note

This application note gives an example of how to use the STR71x I2C peripheral to communi- cate with an I2C Protocol-Compatible Electrically Erasable Programmable Read Only Mem- ory (EEPROM).


STMicroelectronics AN1782 STR71x I2C Communication with M24Cxx EEPROM Application Note - cover page
Brand
STMicroelectronics
Category
Other Electronics
Document type
Application Note
Language
English
Pages
7
File format
PDF
File size
55 KB
Published
06 August, 2012
Updated
30 September, 2023
Model
STR71x
MD5 checksum
BBB04795226F9188405D44B4EB7418E2

About this manual

This document describes a method for using the STR71x microcontroller's I2C peripheral to communicate with an I2C-compatible EEPROM, specifically the M24C08. It covers the capabilities of the STR71x I2C interface, including multi-master and slave functions, and standard/fast mode speeds.

The guide provides specific hardware configuration details for connecting two M24C08 chips to a single bus using address pins E0, E1, and E2. It also outlines software implementation steps in C language for write operations (including START/STOP conditions), waiting for write completion, and read operations involving byte reception and ACK handling.

What's inside

  • Introduction
  • STR71x I2C Peripheral Features
  • M24Cxx EEPROM Characteristics
  • Hardware Configuration
  • Write Operation Sequence
  • Wait for Write Operation
  • Read Operation Sequence

Specifications

I2C Interface Speed ModesStandard (0-100KHz) and Fast I2C (100-400KHz)
I2C Interface CountTwo interfaces: I2CO and I2C1

Frequently asked questions

Which EEPROM device is used as the example in this note?

The M24C08 EEPROM from STMicroelectronics.

How many bytes can be written to the M24C08 in a single cycle?

A maximum of 16 bytes.

Download PDF (55 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →