Getting Started with STM32 and Nucleo Part 6: Timers and Timer Interrupts | Digi-Key Electronics
In this tutorial, Shawn shows you how to set up timers in STM32 and use those timers to measure execution time, create non-blocking code, and trigger interrupts.
If you are not familiar with STM32CubeIDE, we recommend watching this video first:
We first cover the basics of timers in STM32. A timer is a piece of hardware in the microcontroller that continually increments a stored value each clock pulse it receives. Most general purpose timers in microcontrollers are connected to the main CPU clock through one or more prescalers. A prescaler acts to divide the cock. For example, an 80 MHz clock that goes through a prescaler of 80 would cause a timer to increment (tick) at a rate of 1 MHz.
These timers can be used to trigger interrupts to run arbitrary code at given intervals, measure the time between events, or automatically control hardware, as in the case of output compare and pulse width modulation (PWM).
We show you how to configure a timer using STM32CubeIDE
10 views
414
123
10 years ago 00:09:40 477
Getting Started Part 6
10 years ago 00:02:19 87
Getting Started
7 years ago 00:03:06 112
Luvabella | Getting Started
9 years ago 00:09:16 2.8K
Getting Started: Basic Watercolor Techniques
13 years ago 00:03:32 30
getting started ebashit’
5 years ago 00:06:24 43
Getting Started: Byzantines
5 years ago 00:05:32 39
Getting Started: Mongols
5 years ago 00:04:08 117
Starbase - Getting Started
12 years ago 00:02:46 82
: Getting started
8 years ago 00:04:26 17
03 getting started
5 years ago 00:04:45 51
Getting Started: Polish
7 years ago 00:05:13 115
Getting Started with PhotoMirage
5 years ago 00:06:28 64
Getting Started: Ordensstaat
6 years ago 00:08:50 54
CTangents. Getting started. Russian
4 years ago 00:06:51 54
Getting Started: Eastern Princes
4 years ago 00:03:15 90
Getting Started: Baltic Crusaders
4 years ago 00:15:45 29
Blender Beginner Texturing Painting Tutorial: Getting Started
5 years ago 00:04:59 59
Getting Started: Pagan Peoples
6 years ago 00:06:20 17
Deform - Getting Started
9 years ago 00:14:02 14
OpenToonz Getting Started Tutorial
3 years ago 00:12:20 264
Skyrim Together Reborn: getting started and how to play