An ASIC for multichannel data acquisition systems