We present a multichannel integrated circuit of pixel architecture designed in CMOS 40 nm technology. The chip is composed of 40 × 24 pixels of 75 µm pitch working in the single photon counting mode, each built of front-end amplifier, peak and hold detector, 6-bit analog to digital converter, and memory composed of 64 × 12-bit counters. Thanks to the proposed functionality it is possible to store in each pixel separately information of incoming particles energy spectrum. The chip is dedicated to operating with both electrons and holes of 2.2 ke−–35 ke− energy range. The IC occupies an area of 2 × 4.5 mm2, is already back from fabrication, and is under preliminary measurements.