Comparator 1 Negative Input Selection
[Comparator 1 Macros]

Collaboration diagram for Comparator 1 Negative Input Selection:


Detailed Description

Select the Negative Input signal of the Comparator 1.


Defines

#define Set_comparator1_ni_acmp()
 Set the ACMPM pin as the negative input comparator 1.
#define Set_comparator1_ni_dac()
 Set the DAC output as the negative input comparator 1.
#define Set_comparator1_ni_vref_1_60()
 Set Vref/1.60V as the negative input comparator 1.
#define Set_comparator1_ni_vref_2_13()
 Set Vref/2.13V as the negative input comparator 1.
#define Set_comparator1_ni_vref_3_20()
 Set Vref/3.20V as the negative input comparator 1.
#define Set_comparator1_ni_vref_6_40()   (AC1CON &= ~( (1<<AC1M2) | (1<<AC1M1) | (1<<AC1M0) ) )
 Set the negative input comparator 1 as Vref/6.40V.


Define Documentation

 
#define Set_comparator1_ni_acmp (  ) 

Value:

(AC1CON &= ~( (0<<AC1M2) | (1<<AC1M1) |  (1<<AC1M0) ),             \
            AC1CON |=  ( (1<<AC1M2) | (0<<AC1M1) |  (0<<AC1M0) ) )
Set the ACMPM pin as the negative input comparator 1.

Definition at line 199 of file comparator_drv.h.

 
#define Set_comparator1_ni_dac (  ) 

Value:

(AC1CON &= ~( (0<<AC1M2) | (1<<AC1M1) |  (0<<AC1M0) ),             \
            AC1CON |=  ( (1<<AC1M2) | (0<<AC1M1) |  (1<<AC1M0) ) )
Set the DAC output as the negative input comparator 1.

Definition at line 203 of file comparator_drv.h.

 
#define Set_comparator1_ni_vref_1_60 (  ) 

Value:

(AC1CON &= ~( (1<<AC1M2) | (0<<AC1M1) |  (0<<AC1M0) ),             \
            AC1CON |=  ( (0<<AC1M2) | (1<<AC1M1) |  (1<<AC1M0) ) )
Set Vref/1.60V as the negative input comparator 1.

Definition at line 195 of file comparator_drv.h.

 
#define Set_comparator1_ni_vref_2_13 (  ) 

Value:

(AC1CON &= ~( (1<<AC1M2) | (0<<AC1M1) |  (1<<AC1M0) ),             \
            AC1CON |=  ( (0<<AC1M2) | (1<<AC1M1) |  (0<<AC1M0) ) )
Set Vref/2.13V as the negative input comparator 1.

Definition at line 191 of file comparator_drv.h.

 
#define Set_comparator1_ni_vref_3_20 (  ) 

Value:

(AC1CON &= ~( (1<<AC1M2) | (1<<AC1M1) |  (0<<AC1M0) ),             \
            AC1CON |=  ( (0<<AC1M2) | (0<<AC1M1) |  (1<<AC1M0) ) )
Set Vref/3.20V as the negative input comparator 1.

Definition at line 187 of file comparator_drv.h.

 
#define Set_comparator1_ni_vref_6_40 (  )     (AC1CON &= ~( (1<<AC1M2) | (1<<AC1M1) | (1<<AC1M0) ) )

Set the negative input comparator 1 as Vref/6.40V.

Definition at line 184 of file comparator_drv.h.


Generated on Wed Jul 12 16:55:30 2006 for Atmel BLDC Sensorless on ATAVRMC100 by  doxygen 1.4.7