The application discloses a digital controller of an analog
comparator, comprising an ACMP register group, a channel switching counter, a filter counter, a
polling channel counter and a positive and negative terminal output channel selection module. Four working
modes of single
continuous mode,
single sequence mode, intermittent sequence mode and continuous sequence mode are realized, the channel selection module is used for selecting the channel for comparison, the channel
switching time can be freely controlled, and the comparison results of all the
polling channels can be updated in real time. New
polling channels can be configured in the comparison process, and the user can flexibly define the comparison order of the channels. The technical scheme of the application can realize the working
modes of the analog
comparator in
multiple modes, is flexible in configuration, suitable for multiple working occasions and wide in application.