1. An electronic device, comprising: a threshold determination unit configured to dynamically determine a plurality of threshold values; a plurality of comparator circuits, each comparator circuit configured to compare a corresponding threshold value of the plurality of threshold values against an analog input signal; at least one time-to-digital conversion circuit connected to each of the plurality of comparator circuits and configured to output a plurality of time values, each time value output when the analog input signal meets or exceeds a threshold value of the plurality of threshold values; an adjustable low-pass filtering unit configured to filter the analog input signal; an analog-to-digital conversion circuit connected to the low-pass filtering unit and configured to perform analog-to-digital conversion of the filtered analog input signal to generate a digital signal; and an energy calculation unit configured to calculate, in response to receiving a trigger signal, an energy of the digital signal.