From 859213524448586ce373588a53d6fa28f8807635 Mon Sep 17 00:00:00 2001 From: erki Date: Wed, 13 Nov 2024 11:29:05 +0200 Subject: [PATCH] Errata: 005 & 006 --- content/posts/005-stm32begin-004-pwm.md | 2 +- content/posts/006-stm32begin-005-motors.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/posts/005-stm32begin-004-pwm.md b/content/posts/005-stm32begin-004-pwm.md index 1e2f6e0..6d8fabd 100644 --- a/content/posts/005-stm32begin-004-pwm.md +++ b/content/posts/005-stm32begin-004-pwm.md @@ -48,7 +48,7 @@ counters, or timer/counters. But in principle, across microcontroller series and they count the number of pulses, and thus, allow you to keep track of time. A timer is effectively configured to run at a given frequency, and it will count. It will either count to its maximum -limit (unsigned 32-bit integer's maximum value for STM32s), or until it reaches a configured Nperiod value. +limit (either unsigned 32-bit or 16-bit integer's maximum value for STM32s), or until it reaches a configured Nperiod value. Once that value is reached, usually, the timer is reset and it will either stop or restart, depending on the configuration. The functionality of a generic timer is illustrated in the figure below. diff --git a/content/posts/006-stm32begin-005-motors.md b/content/posts/006-stm32begin-005-motors.md index 2a14b23..29e282b 100644 --- a/content/posts/006-stm32begin-005-motors.md +++ b/content/posts/006-stm32begin-005-motors.md @@ -53,7 +53,7 @@ Breaking happens when the PWM duty cycle is set to 0, regardless of the phase di ## The Mode Input The mode input determines which control mode the driver uses. Since we use the phase-enabled mode, we need to pull the pin high. -Do this by connecting the MODE input through a resistor (say 5 kOhm one) to the 3.3 V output of the STM32 Nucleo board. +Do this by connecting the MODE input to the 3.3 V output of the STM32 Nucleo board. # Wiring @@ -70,7 +70,7 @@ This gives us the final wiring table as follows: | BPHASE | OUT_M1_DIR (PA10) | - | | AENBL | TIM1 CH1 (PA9) | - | | APHASE | OUT_M2_DIR (PA11) | - | -| MODE | 3V3 via 5k resistor | - | +| MODE | 3V3 | - | | GND | - | Battery negative terminal | | VIN | - | Battery positive terminal | | BOUT2 | - | Motor 2 terminal |