This document discusses a new pulse model based iterative deconvolution (PMID) method for measuring the energy of scintillation events. The method models the scintillation detector as a linear system and treats energy measurement as a deconvolution problem. It uses an iterative MLEM algorithm to deconvolve digital scintillation pulses into spike signals, whose integrated voltages provide energy information. Experiments showed the PMID method provided better energy resolution than other methods for pileup events, and similar performance to digital gated integration for single events. The method is adaptive to different pulse shapes and can process pileups without detection.