Hi Folks
I'm using a 16F1825 pic to output an audio signal on a PWM pin to drive an OP amp with a resistor in between plus the cap etc. into the amp.
Top resolution is 10 bits or 1024 voltage levels when averaged.
What if I added the DAC using a resistor (1024 x the resistance of the PWM resistor?)
I could brush up on the basics to answer this but it's a simple question for some of you.
Could you then divide the output a lot finer (1024 x 32)?
So if I'm setting my PWM at a certain value but it should really be that value plus say 25% of an increment can I increase the voltage to that level by introducing additional voltage from the DAC. Can it be done with just 2 resistors?
The additional voltage would be present throughout the PWM cycle until new values are written.
But would be very small. Not sure if the PWM pin would sink some or all of it? Maybe a 3rd high ohm resistor to ground? Possible be below or close to the lower thresh hold of the amp?
I'm using a 16F1825 pic to output an audio signal on a PWM pin to drive an OP amp with a resistor in between plus the cap etc. into the amp.
Top resolution is 10 bits or 1024 voltage levels when averaged.
What if I added the DAC using a resistor (1024 x the resistance of the PWM resistor?)
I could brush up on the basics to answer this but it's a simple question for some of you.
Could you then divide the output a lot finer (1024 x 32)?
So if I'm setting my PWM at a certain value but it should really be that value plus say 25% of an increment can I increase the voltage to that level by introducing additional voltage from the DAC. Can it be done with just 2 resistors?
The additional voltage would be present throughout the PWM cycle until new values are written.
But would be very small. Not sure if the PWM pin would sink some or all of it? Maybe a 3rd high ohm resistor to ground? Possible be below or close to the lower thresh hold of the amp?
Last edited: