摘要
利用FPGA与单片机相结合的方法,使用单片机控制FPGA产生频率为10Hz~20kHz的正弦波,锯齿波,三角波和四路分别占空比0到100%可调的PWM波形。该波形发生器以单片机(MCS8031)为中心控制单元,由上位机界面,波形发生模块和D/A转换模块组成。采用DDS(直接数字频率合成)技术,通过VHDL语言,单片机C语言,VC++语言实现了对正弦波,锯齿波,三角波频率以及四路PWM波占空比的设置和发生。
Based on combination of FPGA and MCU and using MCU to control FPGA to generate waves, including sine, saw-tooth, triangular waves and four PWM waves, for PWM waves, the duty ratio is adjustable from 0 to 100 percent, for others, the frequency is adjustable from 10Hz to 20kHz.This wave generator adopts MUC as its central controlling unit, made up of PC panel, wave gener-ator module and D/A module. Through DDS (direct digital frequency synthesis) technology, VHDL language, C language of MCU and VC++ language,...
出处
《微计算机信息》
北大核心
2008年第11期198-199,258,共3页
Control & Automation
基金
中科院二期创新项目颁发部门:中国科学院编号:C04708Z