36.6.10 Comparator n Comparator Control A

Name: COMP[n].COMPCTRLA
Offset: 0x40 + n*0x10 [n=0..1]
Reset: 0x00000000
Property: Local Write-Protection

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
  MUXPOS[2:0] MUXNEG[2:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 76543210 
  RUNSTDBYINTSEL[1:0]HYSTENOUTENABLE  
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bits 14:12 – MUXPOS[2:0] Positive Input Selection

This bit field defines the input signal to the positive input of comparator n.
ValueNameDescription
0x0 AINP0 Positive Pin 0
0x1 AINP1 Positive Pin 1
0x2 AINP2 Positive Pin 2
0x3 AINP3 Positive Pin 3
0x5 AINP5 Positive Pin 5
0x6 AINP6 Positive Pin 6
0x7 VDDIO2DIV10 VDDIO2 divided by 10
Other Reserved

Bits 10:8 – MUXNEG[2:0] Negative Input Selection

This bit field defines the input signal to the negative input of comparator n.
ValueNameDescription
0x0 AINN0 Negative Pin 0
0x1 AINN1 Negative Pin 1
0x2 AINN2 Negative Pin 2
0x7 VREFSCALE Voltage Reference Scaler
Other Reserved

Bit 6 – RUNSTDBY Run in Standby

This bit controls whether comparator n will run during Standby sleep mode.
ValueDescription
0 COMPn will not run in Standby sleep mode
1 COMPn will run in Standby sleep mode

Bits 5:4 – INTSEL[1:0] Interrupt Selection

This bit field defines the condition for comparator n to generate an interrupt or event.
ValueNameDescription
0x0 TOGGLE Interrupt on comparator n output toggle
0x1 RISING Interrupt on comparator n output rising edge
0x2 FALLING Interrupt on comparator n output falling edge
Other Reserved

Bit 3 – HYSTEN Hysteresis Enable

This bit controls the hysteresis function of comparator n.

For details on hysteresis values, refer to the Electrical Characteristics section.

ValueDescription
0 Hysteresis is disabled
1 Hysteresis is enabled

Bit 2 – OUT Output Enable

This bit controls whether the comparator n output is enabled or not.
ValueDescription
0 Output to COMPn-OUT pin is disabled
1 Output to COMPn-OUT pin is enabled

Bit 1 – ENABLE Comparator Enable

This bit controls whether comparator n is enabled.
ValueDescription
0 COMPn is or being disabled
1 COMPn is or being enabled