In this lesson, we will continue working with the LL library (low-layer drivers) and try to work with the I2C bus. We will connect the EEPROM AT24C32 chip, located in the clock module, to this bus.
We will use the same controller - STM32F103.
In this part of the lesson, we will write functions for writing and reading data on the I2C bus and test our knowledge in practice, and we will also try to increase the data exchange speed on I2C.
The STM32F103C8T6 debug board can be purchased here http://ali.pub/1jgc7
The inexpensive ST-Link V2 programmer can be purchased here http://ali.pub/pwzj8
The RTC DS3231 module with a memory chip (3 pcs) can be purchased here http://ali.pub/1ausvk
The RTC DS3231 module with a memory chip (1 pc) - it's more expensive http://ali.pub/1aut7t
Seven-segment four-digit red indicator with a common anode 10 pcs can be purchased here http://ali.pub/1doaul
Video navigation:
00:00 Introduction
01:10 The function of writing data to the EEPROM memory chip
06:55 Let's test writing in practice
07:29 The function of reading data
11:53 Let's test reading in practice
12:37 Let's increase the speed
15:00 One more experiment
It is also recommended to watch this video before watching this lesson:
Lesson 1. Installing Keil μVision • Программирование МК STM32. УРОК 1. Установ...
Lesson 12. HAL. Dynamic indication • Программирование МК STM32. УРОК 12. HAL. Д...
Lesson 146. LL Library. LEDs and Button • Программирование МК STM32. Урок 146. Библи...
Lesson 147. LL. Timers. Part 1 • Программирование МК STM32. Урок 147. LL. Т...
Lesson 147. LL. Timers. Part 2 • Программирование МК STM32. Урок 147. LL. Т...
Lesson 148. LL. Dynamic indication • Программирование МК STM32. Урок 148. LL. Д...
Lesson 149. LL. PWM. Blinking LEDs smoothly • Программирование МК STM32. Урок 149. LL. P...
Lesson 150. LL. I2C. Connecting an external EEPROM. Part 1 • Программирование МК STM32. Урок 150. LL. I...
Lesson 150. LL. I2C. Connecting an external EEPROM. Part 2 • Программирование МК STM32. Урок 150. LL. I...
Text version of this part of the lesson and the source code are here http://narodstream.ru/stm-urok-150-ll...
Group in VKontakte http://vk.com/club116656325
Group in Odnoklassniki http://ok.ru/group/52987126153436
Group in Facebook / 236905359999556
My site "Programming MK" http://narodstream.ru/
Forum http://narodstream.ru/forum/
You can help project:
YuMoney
https://yoomoney.ru/to/41001176473465
Webmoney
Z341906933112
Sberbank card (MIR)
2202201799288929
You can in USDT
1) Network:TRC20
Address: TBBPFk5Widf1CYvF7Xk5ssKXeiPJHwtMgS
2) Network: BSC BNB Smart Chain (BEP20) (commission is much lower)
Address: 0x2e38754DF1e54649Bf0D5CD6fD6D8c96a9f22f17
3) Network: Huobi ECO Chain (HECO) (commission is even lower)
Address: 0x2e38754DF1e54649Bf0D5CD6fD6D8c96a9f22f17