您现在的位置是:首页 > 技术资料 > 使用PWM实现DAC
推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

使用PWM实现DAC

更新时间:2019-11-16 10:19:43 大小:1M 上传用户:xuzhen1查看TA发布的资源 标签:pwmDAC 下载积分:0分 评价赚积分 (如何评价?) 打赏 收藏 评论(1) 举报

资料介绍

1 Introduction Many embedded microcontroller applications require generation of analog signals. Sometimes an integrated or stand-alone digital-to-analog converter(DAC) is used for this purpose.

However, PWM signals can often be used for generating the required analog signals. PWM signals can be used to create both dc and ac analog signals. The report below discusses using a PWM timer as a DAC and shows an example of simultaneously creating a sinusoid,a ramp, and a dc level and adding the dc level and sine wave to produce an offset ac signal. This report uses the PWM timer Timer_B. Timer_A could also be used in a similar manner.

2 Theory of Operation A PWM signal is a digital signal with fixed frequency but varying duty cycle. An example of a PWM signal is shown in Figure 1. If the duty cycle of the PWM signal is varied with time, and the PWM signal is filtered, the output of the filter will be an analog signal. 

部分文件列表

文件名 大小
使用PWM实现DAC.pdf 1M

部分页面预览

(完整内容请下载后查看)

全部评论(1)

上传资源 上传优质资源有赏金

  • 打赏
  • 30日榜单

推荐下载