A 32-Channel ASIC for X-Ray Detectors