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.

Table 1-2. LUT AC Inputs
LUTIN[x]ACCMP
LUT0x = 0,1,2AC0CMP0
LUT1x = 0,1,2CMP1
LUT2x = 0,1,2AC1CMP0
LUT3x = 0,1,2CMP1