BLDC control on ATAVRMC303 with ATxMega128A1
COMPARATORs Defines Configuration Values

Defines allowing to init the COMPARATORs with the wanted configuration. More...

Collaboration diagram for COMPARATORs Defines Configuration Values:

Macros

#define COMPARATOR0_IT   1
 0: Disable Comparator Interrupt 1: Enable Comparator Interrupt More...
 
#define COMPARATOR0_IT_EVENT   0
 Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge. More...
 
#define COMPARATOR0_NEGATIVE_INPUT   4
 Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result. More...
 
#define COMPARATOR1_IT   1
 0: Disable Comparator Interrupt 1: Enable Comparator Interrupt More...
 
#define COMPARATOR1_IT_EVENT   0
 Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge. More...
 
#define COMPARATOR1_NEGATIVE_INPUT   4
 Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result. More...
 
#define COMPARATOR2_IT   1
 0: Disable Comparator Interrupt 1: Enable Comparator Interrupt More...
 
#define COMPARATOR2_IT_EVENT   0
 Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge. More...
 
#define COMPARATOR2_NEGATIVE_INPUT   4
 Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result. More...
 
#define USE_COMP0
 
#define USE_COMP1
 
#define USE_COMP2
 

Detailed Description

Defines allowing to init the COMPARATORs with the wanted configuration.

Macro Definition Documentation

◆ COMPARATOR0_IT

#define COMPARATOR0_IT   1

0: Disable Comparator Interrupt 1: Enable Comparator Interrupt

Definition at line 112 of file config.h.

◆ COMPARATOR0_IT_EVENT

#define COMPARATOR0_IT_EVENT   0

Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge.

Definition at line 113 of file config.h.

◆ COMPARATOR0_NEGATIVE_INPUT

#define COMPARATOR0_NEGATIVE_INPUT   4

Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result.

Definition at line 114 of file config.h.

◆ COMPARATOR1_IT

#define COMPARATOR1_IT   1

0: Disable Comparator Interrupt 1: Enable Comparator Interrupt

Definition at line 117 of file config.h.

◆ COMPARATOR1_IT_EVENT

#define COMPARATOR1_IT_EVENT   0

Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge.

Definition at line 118 of file config.h.

◆ COMPARATOR1_NEGATIVE_INPUT

#define COMPARATOR1_NEGATIVE_INPUT   4

Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result.

Definition at line 119 of file config.h.

◆ COMPARATOR2_IT

#define COMPARATOR2_IT   1

0: Disable Comparator Interrupt 1: Enable Comparator Interrupt

Definition at line 122 of file config.h.

◆ COMPARATOR2_IT_EVENT

#define COMPARATOR2_IT_EVENT   0

Comparator Interrupt on outut => 0: toggle 2: falling edge 3: rising edge.

Definition at line 123 of file config.h.

◆ COMPARATOR2_NEGATIVE_INPUT

#define COMPARATOR2_NEGATIVE_INPUT   4

Comparator negative input selection => 0: vref/6.40 1: vref/3.20 2: vref/2.13 3: vref/1.60 4: ACMPM 5: DAC result.

Definition at line 124 of file config.h.

◆ USE_COMP0

#define USE_COMP0

Definition at line 111 of file config.h.

◆ USE_COMP1

#define USE_COMP1

Definition at line 116 of file config.h.

◆ USE_COMP2

#define USE_COMP2

Definition at line 121 of file config.h.