You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
zhaohe ceface6d25 update 3 years ago
linux update 3 years ago
markdown.assets/README.assets update 4 years ago
release update 3 years ago
windows update 3 years ago
README.md update 4 years ago

README.md

README

[toc]

Release

Win

stm32_pwm_computer.exe

Linux

cd linux
./build.sh

Usage

Win

1.文件资源管理器打开stm32_pwm_computer.exe所在目录。

image-20211227114107011

2.在目录栏输入cmd

image-20211227114136603

3.在弹出的终端输入 stm32_pwm_computer.exe 168 33

Tip:
	stm32_pwm_computer.exe stm32系统时钟(mhz) 期望的PWM频率(khz)
C:\Users\zhaohe\Desktop\stm32_timer_pwm_computer\release>stm32_pwm_computer.exe 168 33
******************************************************
* author: 赵贺                                       *
* e-mail: zhaohe@163.net                             *
******************************************************
*
* systemclk  : 168.000000 mhz
* expect freq: 33.000000 khz
*
******************************************************
* APB1: TIM2  TIM3  TIM4  TIM5  TIM6  TIM7
*       TIM12 TIM13 TIM14
*
* timer_module_clk: 84.000000 mhz
* freq            : 33.005895 khz
* period          : 0.030298 ms
* prescaler       : 0
* autoreload      : 2544
*
* APB2: TIM1 TIM8 TIM9 TIM10 TIM11
*
* timer_module_clk: 168.000000 mhz
* freq            : 33.005895 khz
* period          : 0.030298 ms
* prescaler       : 0
* autoreload      : 5089
******************************************************