A sparse data scan circuit for pixel detector readout