Part # Application Notes Access Control Accessories Adapters Audio Communications And Networking Computer And Peripherals Corded Termin datasheet

Part Manufacturer: ST Microelectronics

ST Microelectronics

Part Description: STM32F101xx and STM32F103xx medium- and high-density devices: advanced I²C examples


Part Details:

AN2824 Application note STM32F101xx and STM32F103xx medium- and high-density devices: advanced I²C examples Introduction The aim of this application note is to provide examples that cover the four I2C communication modes in which STM32F10xxx microcontrollers can operate, that is, slave transmitter, slave receiver, master transmitter and master receiver. This application note applies to STM32F101xx and STM32F103xx medium- and high-density microcontrollers that feature two I2C interfaces (controllers). In the rest of the document, these devices will be referred to as STM32F10xxx. The application note is split into two parts. In the first part, the examples are focussed on the basic configuration of the four modes (data transfer involving the I2C interface only). The second part gives practical and advanced examples in a "real" application (involving other STM32F10xxx-controlled resources: multislave communication, ADC conversion, data display, power modes, temperature sensor, etc.). These examples are implemented with interrupts and bus error management. September 2008 Rev 1 1/14 www.st.com Contents AN2824 Contents 1 Example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.2 Hardware environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3 Example description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.4 Firmware details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.5 How to run the example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 Example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 Hardware environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 Example 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4 Firmware details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5 How to run the example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2/14 AN2824 List of figures List of figures Figure 1. Hardware connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Figure 2. Example 1 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Figure 3. Example1 directory structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7


Please click the following link to download the datasheet:

Application Notes Access Control Accessories Adapters Audio Communications And Networking Computer And Peripherals Corded Termin.pdf Datasheet