Need help with PWM on the ATmega2560?

The challenge is to implement an external DAC analog output using PWM. In MK there is 14 pins with PWM (requires only 2 analog outputs). It is clear that you need to add the integrating filter (RC-circuit), which is not clear based on what to count. Also interested in whether the filter voltage regulator or not, in which situations is it generally used?

And Yes, the code should not be written, only requires a diagram.

Sorry if questions are stupid, from articles that ran, already the head boils.
October 8th 19 at 01:41
1 answer
October 8th 19 at 01:43
RC-chain with a large time constant (\tau = RC; order of magnitude greater than the period of the PWM). If you are not sure in theory, practice is the best tool. Take some simple circuit simulator and try to select values.
As the simulations come to mind MicroCap and Proteus. - pablo77 commented on October 8th 19 at 01:46
Thanks for the reply! Only in Proteus not working never. Here added your MK and the noodle capacitor and a resistor put on the PWM output. Don't know where there is ground to take and what the end output to cling to check. And maybe what else you need for a health scheme? Here is my .dsn: - jordan_Wolf commented on October 8th 19 at 01:49
I'm so far away from Proteus did not go (in the sense of connection MK) just draw a diagram applied to the input pulse [with a perfect generator], watched the result. The details, alas, I do not remember — it was quite a while... - pablo77 commented on October 8th 19 at 01:52

Find more questions by tags ATmegaMicrocontrollers