A class D amplifier with output DC offset protection is disclosed. The DC
offset protection receives a PWM input signals from the outputs and
investigates the PWM output signals whether there is a large DC voltage
difference is being reflected on the speaker load. If so, shutdown signal
SD will be sent by the DC offset protection to the PWM control logic and
gate driver, thus, shutting down the output of the class D system and
preventing disastrous condition from being develop across the speaker.