0

我正在使用 12 位线性 LTC2631 DAC,并希望通过 I2C 将我的 PWM 信号转换为模拟信号。我目前无法提出算法,以及 DAC 需要如何编程以接收 PWM 输入然后生成输出。我正在使用 Pro Micro 3.3V 板。

任何帮助将不胜感激,包括我可以阅读的互联网内容?

谢谢!

4

2 回答 2

4

If you're going to use an I2C DAC IC like the LTC2631 you don't need PWM at all. You just pass a binary value to the IC via I2C and it will be converted to an analog voltage. If you want to use PWM to generate an analog signal you might want to filter the output so it doesn't look all square. Take a look at: http://interface.khm.de/index.php/lab/experiments/arduino-dds-sinewave-generator/ and: http://www.avdweb.nl/arduino/hardware-interfacing/super-simple-dac.html

Best.

于 2014-10-15T05:34:20.157 回答
0

是的,如果你有 PWM 信号,那么你根本不需要 DAC。只需在 PWM 之后连接一个低通滤波器,你就会有模拟信号。但是,如果您想使用任何 I2C DAC,您只需提供二进制数,它就会自动转换为模拟信号。PWM 和 DAC 都是生成模拟信号的不同方法,您不需要将它们组合起来。

于 2015-01-12T14:05:22.893 回答