36.4.2.1 Enabling, Disabling and Resetting

The AC is enabled by writing a ‘1’ to the Global Enable bit in the Control A register (CTRLA.ENABLE). The AC is disabled by writing a ‘0’ to CTRLA.ENABLE.

The AC is reset by writing a ‘1’ to the Software Reset bit in the Control A register (CTRLA.SWRST). All registers in the AC will be reset to their initial state, and the AC will be disabled. Refer to the CTRLA register description for details.

The individual comparators are enabled by writing a ‘1’ to the Comparator Enable bit in the Comparator n Comparator Control A register (COMP[n].COMPCTRLA.ENABLE). The individual comparators are disabled by writing a ‘0’ to COMP[n].COMPCTRLA.ENABLE. Writing a ‘0’ to CTRLA.ENABLE will also disable all the comparators, but will not clear their COMP[n].COMPCTRLA.ENABLE bits.

Note: During the start-up time after enabling comparator n, the output of COMPn may be invalid. Refer to the Electrical Characteristics section for details about the start-up time.