A digital front-end and readout microsystem for calorimetry at LHC