Much in line with this thread https://www.electro-tech-online.com...-via-pulse-width-modulation.88132/#post732054 I am trying to obtain a reasonable clean voltage using the power control PWM module from the PIC 18F4431.
With a PWM frequency of 42 KHz, I get less than 2 mV of nosie but ringing, coincident with leading / trailing edges is quite pronounced, with peaks of +10 / -6 mV.
The (two pole) filter has R = 1K and C = 10 uF.
My questions:
a) How could I reduce if not eliminate the ringing? My intention was to use it as a variable voltage reference.
b) Tried capacitors of all kinds I have handy but result stays the same.
c) Should I consider using a DAC instead?
Gracias for any replies.
With a PWM frequency of 42 KHz, I get less than 2 mV of nosie but ringing, coincident with leading / trailing edges is quite pronounced, with peaks of +10 / -6 mV.
The (two pole) filter has R = 1K and C = 10 uF.
My questions:
a) How could I reduce if not eliminate the ringing? My intention was to use it as a variable voltage reference.
b) Tried capacitors of all kinds I have handy but result stays the same.
c) Should I consider using a DAC instead?
Gracias for any replies.