Postulating why I am getting audio clipping

Thread Starter

Robert Murch

Joined Nov 2, 2015
43
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:

Code:
LibPlatform::Sound::amplifierOn();
threadfunc::sleep(40); // Sleep for 40 msec. Gives amplifier 'SHDN' time to reach true ground??
however, with this delay I am getting clipping:

Code:
LibPlatform::Sound::amplifierOn();
threadfunc::sleep(30);
The amp is a MAX98307
 
Last edited:

Audioguru

Joined Dec 20, 2007
11,248
The amplifier plays when SHDN is at the supply voltage and it is muted when SHDN is 0V.

The datasheet shows the SHDN going high very quickly then the audio output beginning after a 45ms delay with no distortion.
The SHDN pin must be either 0V or the supply voltage, not floating.
Why do you have a capacitor to ground on the SHDN pin?
 

Thread Starter

Robert Murch

Joined Nov 2, 2015
43
The datasheet shows the SHDN going high very quickly then the audio output beginning after a 45ms delay with no distortion.
Why do you have a capacitor to ground on the SHDN pin?
Sorry I was confused, there is a .1uF cap running from SHDN to Vcc I was looking at the datasheet incorrectly. Where on the datasheet does it show the audio output beginning after a 45ms delay?

EDIT: Oh I see now, I wonder if I can reduce this time?
 
Top