PWM
来源:互联网 发布:恶意补足年龄原则 知乎 编辑:程序博客网 时间:2024/05/06 01:55
Consider the average, garden-variety square wave shown in Figure 1.
Figure 1. A ubiquitous square wave
The width of the high is equal to the width of the low, so this wave is said to have a 50% duty cycle. In other words, it is high for exactly half the cycle. Now, if the amplitude of this square wave is 5V, for example, the average voltage over the cycle is 2.5V. It is as though we had a constant voltage of 2.5V.
Now consider the square wave in Figure 2.
Figure 2. 10% duty cycle
This wave has a 10% duty cycle, which means that the average voltage over the cycle is 0.5V.
A low-pass (averaging) filter on the PWM output will convert the pulses to an analog voltage, proportional to the duty cycle of the PWM signal. By varying the duty cycle, we can vary the analog voltage. Hey, presto!—we have digital-to-analog conversion without a DAC. That's the basic idea behind PWM.
PWM can also be used to drive a LED and thereby get varying light intensities from a signal that is essentially either on or off. PWM can also be used to generate audio. Early desktop computers, such as the Apple ][, used PWM to drive a speaker. Steve Wozniak, the designer of the Apple ][, used a spare chip select of the address decoder as his PWM signal. By changing how frequently a particular address was accessed, he was able to change the frequency and duty cycle of his PWM signal and was therefore able to generate simple audio with varying volume and pitch. Sound out of an address decoder!
- PWM
- PWM
- pwm
- PWM?
- PWM
- PWM
- PWM
- PWM
- PWM
- PWM
- PWM
- PWM
- PWM
- PWM
- PWM技术
- PWM技术
- PWM简介
- PWM使用
- 小说ServletContext获取文件绝对路径
- UI 设计师!不要让你的网站成为技术秀场?
- GIF文件格式解析
- UARTs
- 探索 SOA 体系结构和服务的基本原则,第 1 部分: 使用体系结构和抽象级别来创建更好的 SOA
- PWM
- Windows 7 Milestone1 截图终于出现!(转载)
- 关于考核优秀
- DOS下BC编译的遍历PCI总线查询PCI设备及基地址
- MFC多线程笔记
- 摄影基础知识学习笔记之光与色:白平衡 - 水中沙 - 博客大巴
- 深入理解REST(一)
- 用vs.net调试javascript 脚本
- BMP文件格式分析