connecting pwm output to low pass filter
Posted: Sun Feb 22, 2026 3:16 pm
hi all
im generating a pwm output using a pic 12f1840 there are 3 pwm values with which i want to create 3 different tones when connecting to a common collector amp but im using a low pass filter between the 2 to convert the pwm to an anolgue voltage, im under the impression that the pwm needs to be 10 - 100 times greater frequency than that of the low pass cut off frequency that's fine but i want to select 3 frequencys within that band 1.2kHz, 1.6KHz AND 2KHz which means my pwm out put needs to be at least 20KHz constantly ? to avoid possible distortion ?, so my question is how can i produce a 20khz pwm signal but pick out the 3 desired frequency's, ive added a program where i select the frequency's i want in succession but max is 2000Hz, not sure if this all make sense or if ive got this all completely wrong but any advice would be appreciated
cheers bob
im generating a pwm output using a pic 12f1840 there are 3 pwm values with which i want to create 3 different tones when connecting to a common collector amp but im using a low pass filter between the 2 to convert the pwm to an anolgue voltage, im under the impression that the pwm needs to be 10 - 100 times greater frequency than that of the low pass cut off frequency that's fine but i want to select 3 frequencys within that band 1.2kHz, 1.6KHz AND 2KHz which means my pwm out put needs to be at least 20KHz constantly ? to avoid possible distortion ?, so my question is how can i produce a 20khz pwm signal but pick out the 3 desired frequency's, ive added a program where i select the frequency's i want in succession but max is 2000Hz, not sure if this all make sense or if ive got this all completely wrong but any advice would be appreciated
cheers bob