Device for comparing the peak value of at least one voltage signal with a reference voltage