I'm using a 12-bit Linear LTC2631 DAC, and wish to convert my PWM signal to an analog one via I2C. I am currently not able to come up with an algorithm, and how would the the DAC need to programmed to take in the PWM input and then generate an output. I'm using a Pro Micro 3.3V board.
Any help would be appreciated, including stuff over the internet which I could read up?
Thanks!
Yes, if you have PWM signals then you don't need to have a DAC at all.just attach a low pass filter after PWM and you will have analog signals. But if you want to use any I2C DAC you can just provide it binary numbers and it will automatically convert into analog signals. PWM and DAC both are different method of generating analog signals you don't need to combine it.