1.1.6 Analog Comparator Input (AC)
The AC outputs can be used as input source for the LUT. The AC compares voltage levels for two inputs, and provides a digital output based on this comparison. Each AC instance contains two comparators and each LUT can be connected to one designated comparator, shown in the following table. Analog comparator input is selected by writing the Input y Source Selection bit group in the LUT Control x register (LUTCTRLx.INSELy) to 0x5. Before selecting the comparator output, the AC must be configured.
LUT | IN[x] | AC | CMP |
---|---|---|---|
LUT0 | x = 0,1,2 | AC0 | CMP0 |
LUT1 | x = 0,1,2 | CMP1 | |
LUT2 | x = 0,1,2 | AC1 | CMP0 |
LUT3 | x = 0,1,2 | CMP1 |