摘要
为实现对脉冲信号幅值、频率及占空比等主要参数的便携式精确测量,设计并实现了一种基于STM32F405的高精度脉冲信号参数测量仪。待测信号经阻抗匹配及分压整形处理后,利用STM32F405的高速计数器和定时器功能实现信号频率及占空比测量。而幅值检测则采用运算放大器和开漏输出比较器组成峰值检测电路,从而实现对信号幅值的跟踪检测。最终,利用STM32F405将被测信号的各参数显示于液晶屏上。经调试,测量系统可实现对矩形脉冲信号频率、占空比和幅值参数的有效测量,幅值测量范围为0.1~5 V,测量误差不大于2%;频率测量范围为10 Hz^1 MHz,误差不大于0.1%;占空比测量范围为10%~90%,测量误差不大于2%。
In order to measure the amplitude,frequency and duty cycle of the pulse signal portably and accurately,a parameter measuring system based on STM32 F405 is designed. Firstly,the pulse signal goes through the impedance matching and partial pressure shaping. Then using the counter and timer function of STM32 F405,the frequency and duty cycle can be achieved. Secondly,the amplitude tracking detection part is realized by operational amplifiers and open-drain output comparator. At last,the measured parameters can be displayed in LCD by STM32 F405. Results show that all parameters can be measured accurately. The measuring range of amplitude is 0.1~5 V and error is not greater than 2%;the measuring range of frequency is 10 Hz^1 MHz and error is not greater than 0.1%;the measuring range of duty cycle is 10%~90% and error is not greater than 2%.
作者
陈蓉
何英萍
陈红仙
CHEN Rong;HE Ying-ping;CHEN Hong-xian(School of Rail Transportation,Soochow University,Suzhou 215131,China)
出处
《电子设计工程》
2018年第14期153-157,共5页
Electronic Design Engineering
关键词
参数测量
单片机
脉冲信号
电路设计
parameter measuring
single chip microcomputer
pulse signal
circuit design