摘要
本系统以STM32F103VCT6为控制核心,实现了一个可产生两路幅度、频率、占空比、相位差皆可调的矩形波和正弦波双相信号发生器。STM32除了对整个系统进行控制外,同时产生两路幅度固定为3.3V的PWM信号,其频率和占空比可通过设定定时器的参数来调整。对于正弦波,STM32产生的PWM信号会在进入程控放大部分之前先通过数字低通滤波器MAX295来实现整形滤波。系统的程控放大部分由两级程控放大器组成,通过调整数字电位器来控制程控放大器的输入电压,从而实现对波形幅度的控制。实际测试结果表明,本系统可以高精度地实现信号发生器的功能,能够适应各类电子测量场合的应用,具有很好的实际应用价值。
This paper takes STM32F103VCT6 as control center, designed a rectangular wave and sine wave dual phase signal generator which can produce two channels signals with adjust at amplitude, frequency, duty ratio and phase difference. STM32 produced two amplitude fixed 3.3V PWM signal, its frequency and duty ratio can be set which adjusted the timer parameters. For sine wave, the PWM signal generated by STM32 can be implemented by digital low- pass filter MAX295 before entering the program control amplifier. The program control amplifier is made up of two stage programmable amplifier. The input voltage of the programmable amplifier is controlled by adjusting the digital potentiometer. The test results show that the system can realize the function of signal generator with high precision and can adapt to the application of all kinds of electronic measurement. It has very good practical value.
出处
《自动化与仪器仪表》
2015年第11期183-185,共3页
Automation & Instrumentation
基金
湖南省教育厅优秀青年项目(13B037)资助
湖南省大学生研究性学习和创新性实验计划项目资助(湘教通[2015]269号)
关键词
STM32
双相信号
低通滤波
程控放大
STM32 processor
Dual phase signal
Low-pass filter
Program control amplifier