Comparators are fundamental analog components found in nearly every application. One way to describe comparators is that they are 1-bit ADCs: They have two inputs, with one typically used as a voltage reference and the other an input voltage signal. Depending on which input is the reference and what the input voltages are, the comparator output will toggle…