30.5.3 MUX Control

Name: MUXCTRL
Offset: 0x02
Reset: 0x00
Property: -

Bit 76543210 
 INVERTINITVALMUXPOS[2:0]MUXNEG[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 7 – INVERT Invert AC Output

Writing this bit to ‘1’ enables inversion of the output of the AC. This inversion has to be taken into account when using the AC output signal as an input signal to other peripherals or parts of the system.

Bit 6 – INITVAL AC Output Initial Value

To avoid that the AC output toggles before the comparator is ready, the INITVAL can be used to set the initial state of the comparator output.
ValueNameDescription
0x0LOWOutput initialized to ‘0
0x1HIGHOutput initialized to ‘1

Bits 5:3 – MUXPOS[2:0] Positive Input MUX Selection

Writing to this bit field selects the input signal to the positive input of the AC.
ValueNameDescription
0x0AINP0Positive Pin 0
0x1AINP1Positive Pin 1
0x2AINP2Positive Pin 2
0x3AINP3Positive Pin 3
Other-Reserved

Bits 2:0 – MUXNEG[2:0] Negative Input MUX Selection

Writing to this bit field selects the input signal to the negative input of the AC.
ValueNameDescription
0x0AINN0Negative Pin 0
0x1AINN1Negative Pin 1
0x2AINN2Negative Pin 2
0x3DACREFDAC Reference
Other-Reserved