Nuacht

Using the PWM allows fine controlof the comparator reference voltage. The PWM signal is filtered with anRC filter to produce an analogue voltage and is connected to thenegative comparator input pin.
By down-converting in the analog domain and splitting the signals into discrete bands, you can build a spectrum analyzer while using a much-slower, less power-hungry microcontroller ...