Firmware for the Class D amplifier