change periode of dc motor pwm signal
This commit is contained in:
parent
4dd931d8fc
commit
bfdc4d3779
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
#include "stm32f1xx_ll_bus.h"
|
#include "stm32f1xx_ll_bus.h"
|
||||||
#include "stm32f1xx_ll_tim.h"
|
#include "stm32f1xx_ll_tim.h"
|
||||||
|
|
||||||
#define ARR_DC_MOTOR 20000
|
#define ARR_DC_MOTOR 50000
|
||||||
void DC_MOTOR_Init(void) {
|
void DC_MOTOR_Init(void) {
|
||||||
// use TIM2 since it has pa1 at channel 2 output
|
// use TIM2 since it has pa1 at channel 2 output
|
||||||
// setup timer 2
|
// setup timer 2
|
||||||
|
|
Loading…
Reference in a new issue