摘要
描述了怎样用C8051F系列单片机的片上DAC系统实现一个中断驱动的多函数发生器。基于DDS原理,可以通过将定义在离散表中的一个周期函数无限扩展来得到任意完整波形,同时也可以根据波形的特点利用算法计算输出各种波形。由于使用算法输出波形运行周期短,稳定性好。因此我们使用查表法输出正弦函数,而方波、三角波以及锯齿波则是通过算法计算获得。
This article describes how to implement an interrupt driven multifunction generator on C8051 devices using the on - chip digital - to - analog converter. Four different waveforms expandable to any periodic function defined in a table. At the same time, we can calculate waveforms according to the different waveforms. Since using the phase accumulator in the calculation does not require many clock cycles,Sine Wave (Table Defined), Square Wave (Calculated),Triangle Wave (Calculated) ,Saw Tooth Wave (Calceulated).
出处
《现代电子技术》
2006年第23期66-68,共3页
Modern Electronics Technique