Errata: 005 & 006
All checks were successful
Build and push latest / publish (push) Successful in 58s
All checks were successful
Build and push latest / publish (push) Successful in 58s
This commit is contained in:
parent
73b81f8255
commit
8592135244
@ -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 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.
|
||||
The functionality of a generic timer is illustrated in the figure below.
|
||||
|
||||
|
||||
@ -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 |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user