For some reason I am having to introduce a delay (sleep(40 msec)) in my code just after I unmute (active SHDN Vcc goes to 0) an amplifier otherwise I get audio clipping. It seems odd to me. The amplfier's SHDN line is just tied to ground through a .1uF capacitor. Any ideas, am I not reaching true ground fast enough?
ex the following code allows audio with no clipping:
however, with this delay I am getting clipping:
The amp is a MAX98307
ex the following code allows audio with no clipping:
Code:
LibPlatform::Sound::amplifierOn();
threadfunc::sleep(40); // Sleep for 40 msec. Gives amplifier 'SHDN' time to reach true ground??
Code:
LibPlatform::Sound::amplifierOn();
threadfunc::sleep(30);
Last edited: