Quick Count Firmware Creation For 32Ch X-Ray Energy Analysis Detector