Comparator 0 Negative Input Selection
[Comparator 0 Macros]

Collaboration diagram for Comparator 0 Negative Input Selection:


Detailed Description

Select the Negative Input signal of the Comparator 0.


Defines

#define Set_comparator0_ni_acmp()
 Set the ACMPM pin as the negative input comparator 0.
#define Set_comparator0_ni_dac()
 Set the DAC output as the negative input comparator 0.
#define Set_comparator0_ni_vref_1_60()
 Set Vref/1.60V as the negative input comparator 0.
#define Set_comparator0_ni_vref_2_13()
 Set Vref/2.13V as the negative input comparator 0.
#define Set_comparator0_ni_vref_3_20()
 Set Vref/3.20V as the negative input comparator 0.
#define Set_comparator0_ni_vref_6_40()   (AC0CON &= ~( (1<<AC0M2) | (1<<AC0M1) | (1<<AC0M0) ) )
 Set the negative input comparator 0 as Vref/6.40V.


Define Documentation

 
#define Set_comparator0_ni_acmp (  ) 

Value:

(AC0CON &= ~( (0<<AC0M2) | (1<<AC0M1) |  (1<<AC0M0) ),             \
            AC0CON |=  ( (1<<AC0M2) | (0<<AC0M1) |  (0<<AC0M0) ) )
Set the ACMPM pin as the negative input comparator 0.

Definition at line 101 of file comparator_drv.h.

 
#define Set_comparator0_ni_dac (  ) 

Value:

(AC0CON &= ~( (0<<AC0M2) | (1<<AC0M1) |  (0<<AC0M0) ),             \
            AC0CON |=  ( (1<<AC0M2) | (0<<AC0M1) |  (1<<AC0M0) ) )
Set the DAC output as the negative input comparator 0.

Definition at line 105 of file comparator_drv.h.

 
#define Set_comparator0_ni_vref_1_60 (  ) 

Value:

(AC0CON &= ~( (1<<AC0M2) | (0<<AC0M1) |  (0<<AC0M0) ),             \
            AC0CON |=  ( (0<<AC0M2) | (1<<AC0M1) |  (1<<AC0M0) ) )
Set Vref/1.60V as the negative input comparator 0.

Definition at line 97 of file comparator_drv.h.

 
#define Set_comparator0_ni_vref_2_13 (  ) 

Value:

(AC0CON &= ~( (1<<AC0M2) | (0<<AC0M1) |  (1<<AC0M0) ),             \
            AC0CON |=  ( (0<<AC0M2) | (1<<AC0M1) |  (0<<AC0M0) ) )
Set Vref/2.13V as the negative input comparator 0.

Definition at line 93 of file comparator_drv.h.

 
#define Set_comparator0_ni_vref_3_20 (  ) 

Value:

(AC0CON &= ~( (1<<AC0M2) | (1<<AC0M1) |  (0<<AC0M0) ),             \
            AC0CON |=  ( (0<<AC0M2) | (0<<AC0M1) |  (1<<AC0M0) ) )
Set Vref/3.20V as the negative input comparator 0.

Definition at line 89 of file comparator_drv.h.

 
#define Set_comparator0_ni_vref_6_40 (  )     (AC0CON &= ~( (1<<AC0M2) | (1<<AC0M1) | (1<<AC0M0) ) )

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

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