摘要
为了对正弦波、三角波和矩形波进行自动识别,采用STC12单片机和电子电路对它们进行识别。电路由峰值电路、两个比较器和异或门组成。信号进入电路后,先用最大值电路和峰值比较器区分出正弦波和三角波,再用过零比较器和异或门区分出矩形波,然后得到代表波形的识别信号,最后用STC12单片机进行波形识别。实验结果表明该系统可以在50Hz-9kHz范围内对正弦波、三角波和矩形波准确识别。识别电路使用的元件常见,工作稳定,具有一定的参考价值。
In order to recognize sinusoidal,triangular and rectangular waves automatically,STC12 MCU and electronic circuit are used to recognize them. The circuit consists of a peak circuit,two comparators and XOR gates. After the signal enters the circuit,sine wave and triangle wave are distinguished by maximum circuit and peak comparator, then rectangular wave is distinguished by zero-crossing comparator and XOR gate,and then the recognition signal representing the waveform is obtained.Finally,the waveform is identified by STC12 single chip computer. The experimental results show that the system can accurately recognize sinusoidal,triangular and rectangular waves in the range of 50 Hz-9 kHz. The components used in the identification circuit are common and stable,which has a certain reference value.
作者
雷新颖
LEI Xin-ying(College of Electronic Engineering,Xi’an Aeronautical University,Xi’an 710077,China)
出处
《电子设计工程》
2019年第17期93-97,共5页
Electronic Design Engineering