From 9051da0184cf839037f1370c729b27bf065b9c95 Mon Sep 17 00:00:00 2001 From: tao_z <tzj0429@163.com> Date: Sat, 10 Jul 2021 22:06:34 +0800 Subject: [PATCH] 马达可以转动 --- USR/INC/pwm.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/USR/INC/pwm.h b/USR/INC/pwm.h index f3e99c5..da32571 100644 --- a/USR/INC/pwm.h +++ b/USR/INC/pwm.h @@ -5,7 +5,7 @@ #define PERIOD_CAP (30000U) //48Mzhz / 3000 = 16Khz = 62.5us -#define PERIOD_CMP (4000u) +#define PERIOD_CMP (3000u) void TimerInit(void); void SetPwmDuty(uint16_t ch, uint32_t duty); -- Gitblit v1.8.0