STMicroelectronics AN2824 STM32F10xxx I2C Optimized Examples Application Note

This application note provides I2C firmware optimized examples based on polling, interrupts and DMA, covering the four I2C communication modes available in the STM32F10xxx, that is, slave transmitter, slave receiver, master transmitter and master receiver.


STMicroelectronics AN2824 STM32F10xxx I2C Optimized Examples Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
16
File format
PDF
File size
123 KB
Published
07 August, 2012
Updated
30 September, 2023
MD5 checksum
C144E1219A8A538D51EB1E80D0FC610F

About this manual

The document aims to provide firmware examples based on polling, interrupts, and Direct Memory Access (DMA) covering the four I2C communication modes available in the STM32F10xxx family: slave transmitter, slave receiver, master transmitter, and master receiver. It also offers recommendations for the correct use of the I2C peripheral.

The note is organized into three main parts. The first part describes I2C master programming examples using polling, DMA, and interrupts, including flowcharts. The second part covers I2C slave programming examples using DMA and interrupts. The third part provides an overview of the accompanying firmware content.

What's inside

  • I2C master programming examples
  • Polling mode description
  • DMA mode description
  • Interrupt mode description
  • I2C slave programming examples
  • Firmware overview

Frequently asked questions

Which STM32 microcontroller families does this application note cover?

This document applies to the STM32F101xx, STM32F103xx, STM32F105/107xx, and STM32F100xx device lines.

When should BTF be used instead of EV7 for master receiver sequences?

BTF is recommended if the software cannot manage the EV7 sequence before the current byte transfer ends.

Download PDF (123 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →