O'Reilly logo

ARM® Cortex® M4 Cookbook by Dr. Mark Fisher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting the RTE for the I2C Peripheral Bus

The LCD touchscreen, three-axis motion sensor (LIS302DL), audio-codec (CS42L52), 64k EEPROM (M24C64), camera, and other peripherals that are supported by the MCBSTM32F400 evaluation board are connected to the STM32C microcontroller by a synchronous serial bus called I2C. The bus standard adopted is called the Inter-Integrated Circuit (I2C) Interface, which was developed by Phillips in the 1980s. Before we can use any peripherals that are connected to the I2C bus, we must first configure the I2C interface. We'll illustrate this by a recipe called touchScreenDemo_c6v0. Later in this chapter, we'll show you how to configure other I2C peripherals.

How to do it…

To set RTE for an I2C Peripheral Bus perform ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required