Implementation of the Digital Logic for Reading-Out a 16×16 Pixel X-Ray Detector Array