摘要
对于内部具有D/A转换器的单片机,采用其自备的D/A转换器产生需要的信号是最经济的方法。C8051F020是Cygnal公司最新的一款功能强大的内部具有D/A转换器的单片机。介绍了采用查表和D/A转换产生正弦波形的方法,详细描述了在C8051F020 D/A转换器上产生正弦信号的电路和程序。通过修改数据表可以产生方波、三角波或其他任意波形信号。
Signal sources are often necessary parts for many electronic devices. It is the most economic way to generate signals for single chip computers to use their own on-chip D/A converters. C8051F020 is one latest powerful single chip computer product of Cygnal Company with internal D/A. This article introduces using looking up sine table and D/A converting method to generate sine waveform signal. It describes the circuits and programs for generating sine waveform signal for C8051F020 in detail. Square waveform, triangle waveform and arbitrary waveform may be obtained by modifying the look-up table.
出处
《电子工程师》
2006年第8期27-29,共3页
Electronic Engineer