I2C Communication in STM32 (PART1) | Register Programming Explained #4
Oct 11, 2020
Learn how to configure I2C on STM32 microcontrollers using **register-level programming** — without HAL or LL drivers. This video walks through every step to set up the I2C interface manually using STM32 registers, including GPIO configuration, timing registers, and communication with the **MPU6050 sensor**.
You'll learn how to:
* Enable I2C clocks and GPIOs
* Configure I2C pins for alternate function
* Set I2C speed using `CCR` and `TRISE`
* Generate I2C start/stop conditions
* Write and read bytes using registers
* Interface the MPU6050 sensor with STM32
📥 **Download Code + Files** 👉 (https://controllerstech.com/stm32-i2c-configuration-using-registers/)
📺 **Related Videos**:
* How to Receive Data using I2C
* [STM32 Register Programming Playlist](https://www.youtube.com/playlist?list=PLfIJKC1ud8ghc4eFhI84z_3p3Ap2MCMV-)
* MPU6050 with STM32 using HAL
I have tested the code for LCD 16x2, and it works pretty well. For those who want use it :::: https://github.com/controllerstech/STM32/tree/master/LCD1602_I2C_NOHAL
Show More Show Less 
