摘要
本设计基于STM32微控制器,可同时对1Hz至10KHz频率范围内的四路PWM信号的频率及占空比进行测量,并可同时产生在该频率范围内四路频率相同、占空比不同的可调PWM信号。构建量程自动匹配算法、按键扫描、定时器配置等软件程序,使用LCD液晶屏、按键等外设模块,采用Keil C51开发环境进行设计,通过仿真器和硬件下载测试,验证了本次设计的可行性。
This design is based on the STM32 microcontroller,which can simultaneously measure the frequency and duty cycle of four PWM signals in the frequency range of 1 Hz to 10 KHz,and can simultaneously generate four channels with the same frequency and different duty cycles in the frequency range adjustable PWM signal.Build software programs such as automatic range matching algorithm,key scan,timer configuration,and use peripheral modules such as LCD screen and buttons,and design with Keil C51 development environment.The simulation and hardware download tests verify the feasibility of the design.
作者
方鑫
陈旭
卢新祥
Fang Xin;Chen Xu;Lu Xinxiang(College of Mathematical and Information,Shaoxing University,Shaoxing Zhejiang,312000)
出处
《电子测试》
2020年第5期22-24,共3页
Electronic Test
基金
2018年国家级大学生创新创业训练计划项目(201810349005)