摘要
传统的扬声器产品质量测试实验需要用到功率实验仪、声卡和电脑等较多配套硬件设备,导致测试过程复杂、成本较高,不利于功率实验仪的便携式发展。针对上述问题,设计以STM32为核心芯片,控制音频处理芯片WM8978循环读取外扩SRAM里已存储的音频文件,持续产生模拟测试信号,实现播放功能。模拟测试信号经过处理后驱动扬声器工作,扬声器的工作电压和工作电流由采集电路获取并送给WM8978进行AD采集,采集的数据存储到外部SRAM里,待上位机调用,实现记录功能。设计通过USB与电脑进行数据传输,支持播放与记录同时进行,实现了声卡功能,能够降低扬声器测试成本。
The complicated test procedure and the higher cost, in the traditional loudspeaker aging test experiment, caused by using power meter, sound card, computer and other facilities, are unfavourable for portable development of the power apparatus. According to the above problems, the STM32 is used as the core chip to control the audio processing chip WM8978 to read out the audio files stored in the extended SRAM for producing simulation testing signals continuously and realizing the function of playing; the simulation test signal is processed to drive the speakers. And the working voltage and working current of the speaker are collected for AD sampling by WM8978, the acquired data is stored in the external SRAM for the function recording. The data transmission is conducted with the computer by USB with audio playing and recording at the same time. It realizes the function of the sound card and reduces the test cost of the speaker.
作者
周静雷
孙长城
Zhou Jinglei Sun Changcheng(Electronic Information College ,Xi 'an Polytechnic Universit Xi'an 710048, Chin)
出处
《微处理机》
2017年第1期67-70,共4页
Microprocessors