Comparator 2 Negative Input Selection
[Comparator 2 Macros]

Collaboration diagram for Comparator 2 Negative Input Selection:


Detailed Description

Select the Negative Input signal of the Comparator 2.


Defines

#define Set_comparator2_ni_acmp()
 Set the ACMPM pin as the negative input comparator 2.
#define Set_comparator2_ni_dac()
 Set the DAC output as the negative input comparator 2.
#define Set_comparator2_ni_vref_1_60()
 Set Vref/1.60V as the negative input comparator 2.
#define Set_comparator2_ni_vref_2_13()
 Set Vref/2.13V as the negative input comparator 2.
#define Set_comparator2_ni_vref_3_20()
 Set Vref/3.20V as the negative input comparator 2.
#define Set_comparator2_ni_vref_6_40()   (AC2CON &= ~( (1<<AC2M2) | (1<<AC2M1) | (1<<AC2M0) ) )
 Set the negative input comparator 2 as Vref/6.40V.


Define Documentation

 
#define Set_comparator2_ni_acmp (  ) 

Value:

(AC2CON &= ~( (0<<AC2M2) | (1<<AC2M1) |  (1<<AC2M0) ),             \
            AC2CON |=  ( (1<<AC2M2) | (0<<AC2M1) |  (0<<AC2M0) ) )
Set the ACMPM pin as the negative input comparator 2.

Definition at line 288 of file comparator_drv.h.

 
#define Set_comparator2_ni_dac (  ) 

Value:

(AC2CON &= ~( (0<<AC2M2) | (1<<AC2M1) |  (0<<AC2M0) ),             \
            AC2CON |=  ( (1<<AC2M2) | (0<<AC2M1) |  (1<<AC2M0) ) )
Set the DAC output as the negative input comparator 2.

Definition at line 292 of file comparator_drv.h.

 
#define Set_comparator2_ni_vref_1_60 (  ) 

Value:

(AC2CON &= ~( (1<<AC2M2) | (0<<AC2M1) |  (0<<AC2M0) ),             \
            AC2CON |=  ( (0<<AC2M2) | (1<<AC2M1) |  (1<<AC2M0) ) )
Set Vref/1.60V as the negative input comparator 2.

Definition at line 284 of file comparator_drv.h.

 
#define Set_comparator2_ni_vref_2_13 (  ) 

Value:

(AC2CON &= ~( (1<<AC2M2) | (0<<AC2M1) |  (1<<AC2M0) ),             \
            AC2CON |=  ( (0<<AC2M2) | (1<<AC2M1) |  (0<<AC2M0) ) )
Set Vref/2.13V as the negative input comparator 2.

Definition at line 280 of file comparator_drv.h.

 
#define Set_comparator2_ni_vref_3_20 (  ) 

Value:

(AC2CON &= ~( (1<<AC2M2) | (1<<AC2M1) |  (0<<AC2M0) ),             \
            AC2CON |=  ( (0<<AC2M2) | (0<<AC2M1) |  (1<<AC2M0) ) )
Set Vref/3.20V as the negative input comparator 2.

Definition at line 276 of file comparator_drv.h.

 
#define Set_comparator2_ni_vref_6_40 (  )     (AC2CON &= ~( (1<<AC2M2) | (1<<AC2M1) | (1<<AC2M0) ) )

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

Definition at line 273 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