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 bf6c27093b 修复运行时,库找不到的问题 3 years ago
..
.gitattributes update 4 years ago
.gitignore update 4 years ago
README.md update 4 years ago
stm32_pwm_computer.cpp update 3 years ago
stm32_pwm_computer.sln update 4 years ago
stm32_pwm_computer.vcxproj update 4 years ago
stm32_pwm_computer.vcxproj.filters update 4 years ago

README.md

README

TODO

支持windows图形界面

编译

./build.sh

使用


# Usage: ././stm32_timer_pwm_computer.out system_clk(mhz) expect_freq(khz)

➜  stm32_timer_pwm_computer ./stm32_timer_pwm_computer.out 168 38   
systemclk  : 168.000000 mhz
expect freq: 38.000000 khz
******************************************************
* APB1: TIM2 TIM3 TIM4 TIM5 TIM6 TIM7 TIM12 TIM13 TIM14
*
* timer_module_clk: 84.000000 mhz
* freq            : 38.009051 khz
* period          : 0.026310 ms
* prescaler       : 0 
* autoreload      : 2209 
*
**
* APB2: TIM1 TIM8 TIM9 TIM10 TIM11
*
* timer_module_clk: 168.000000 mhz
* freq            : 38.000453 khz
* period          : 0.026315 ms
* prescaler       : 0 
* autoreload      : 4420 
***