Errata: 005 & 006
All checks were successful
Build and push latest / publish (push) Successful in 58s

This commit is contained in:
erki 2024-11-13 11:29:05 +02:00
parent 73b81f8255
commit 8592135244
2 changed files with 3 additions and 3 deletions

View File

@ -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. 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 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 N<sub>period</sub> value. limit (either unsigned 32-bit or 16-bit integer's maximum value for STM32s), or until it reaches a configured N<sub>period</sub> value.
Once that value is reached, usually, the timer is reset and it will either stop or restart, depending on the configuration. 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. The functionality of a generic timer is illustrated in the figure below.

View File

@ -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
The mode input determines which control mode the driver uses. Since we use the phase-enabled mode, we need to pull the pin high. 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 # Wiring
@ -70,7 +70,7 @@ This gives us the final wiring table as follows:
| BPHASE | OUT_M1_DIR (PA10) | - | | BPHASE | OUT_M1_DIR (PA10) | - |
| AENBL | TIM1 CH1 (PA9) | - | | AENBL | TIM1 CH1 (PA9) | - |
| APHASE | OUT_M2_DIR (PA11) | - | | APHASE | OUT_M2_DIR (PA11) | - |
| MODE | 3V3 via 5k resistor | - | | MODE | 3V3 | - |
| GND | - | Battery negative terminal | | GND | - | Battery negative terminal |
| VIN | - | Battery positive terminal | | VIN | - | Battery positive terminal |
| BOUT2 | - | Motor 2 terminal | | BOUT2 | - | Motor 2 terminal |