Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

STM32 Tutorial #25 – Bit manipulation using bit banding

2.1K views on YouTube

In this video we will be doing bit-manipulation using Bit Banding. Bit Banding is a feature (optional feature) of ARM Cortex M0, M3 and M4 cores and it is as far as I know available in all of the F series MCU’s.

As usual please like and subscribe. Comments are greatly appreciated.

Described here: https://stm32world.com/wiki/STM32_Bit_Banding

Project Files: https://github.com/STM32World/stm32fun

#stm32 #stm32cubeide #stm32cubemx #c #stm32world

00:00 Intro
00:45 Historical background – the 8051 MCU
02:55 The code
03:40 Read – Modify – Write example and WHY that is BAD
07:45 Writing better C code but realising it is exactly the same
09:25 Explaining bit banding and how to find the address
12:30 Implementing – using bit band to toggle led – it is trivial!
14:45 Manipulating a byte in SRAM