Firmware for the XMega on the 8 Channel Gaincontroller