Getting started with I2C

Revision as of 15:04, 19 October 2022 by Registered User (→‎Create the project in STM32CubeMX)

This article explains what is the I2C and how to use it through examples


Target description
Following this tutorial, you will:

  • Get familiar with the STM32L476RG Nucleo board,
  • Learn how to program and use a I2C

Hardware
The hardware requirements to start the application are the following:

  • 2 boards STM32L476RG [1] board


1. I2C

I²C (Inter-Integrated Circuit) is a two-wire serial communication system used between integrated circuits which was originally created by Philips Semiconductors back in 1982.
The I2C is a multi-master, multi-slave, synchronous, bidirectional, half-duplex serial communication bus.

1.1. I2C Overview

  • SDA (Serial Data) is the line where master and slave send or receive the information (sequence of bit).
  • SCL (Serial Clock) is the line dedicated to the clock to synchronize the data flow.

i2c buq.png

2. Create the project in STM32CubeMX


[[category:Getting_started_with_STM32_system_peripherals | 15]]

No categories assignedEdit