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