Abstract-The neutron detector of HIRFL (Heavy IonResearch Facility at Lanzhou) has been designed for in-beam nuclear experiments, capable of measuring neutron energy and discriminating neutrons from gamma-rays. The read-out electronics, receiving charge signals from photomultipliers of the neutron detector, should be capable of acquiring data of three things including quantity of electric charge, time-to-flight and pulse fall time. For satisfying the physical requirements of high precision, high integration density and minimum cost, we have developed a waveform digitizing system that acquires all the required data in single read-out process. The waveform digitizing system is based on high-speed switched capacitor array (SCA) chip named DRS4 that allows sample an interested region of analog signal up to a rate of 5 GSPS. A 14-bit pipeline ADC and a FPGA are employed to digitize the charges stored in SCAs and deliver the waveform data to the host computer via PCI bus. The software completes fitting the waveform and calculates the required data. In this paper the detail of the electronics and algorithms of the waveform digitizing system is presented.