DAC Macros
[DAC Module]

Collaboration diagram for DAC Macros:


Detailed Description

Low level macros that permit the use of the DAC of the product.


Modules

 Turn on the DAC
 Turn on the DAC.
 Turn Off the DAC
 Turn Off the DAC.
 DAC Alignement Configuration
 Configure the input data alignement.
 DAC Output Configuration
 Switch on or off the DAC output.
 DAC Set Input Value
 Setart the conversion input conversion value.
 DAC Low Level Fucntions
 DAC Low Level Functions.

Defines

#define Enable_external_vref()   (ADMUX &= ~((1<<REFS1)|(1<<REFS0)) )
#define Enable_internal_vref()   (ADMUX |= ((1<<REFS1)|(1<<REFS0)) )
#define Enable_vcc_vref()   (ADMUX &= ~(1<<REFS1), ADMUX |= (1<<REFS0) )
#define Left_adjust_dac_result()   (DACON |= (1<<DALA))
#define Output_dac_disabled()   (DACON &= ~(1<<DAOE))
#define Output_dac_enable()   (DACON |= (1<<DAOE))
#define Right_adjust_dac_result()   (DACON &= ~(1<<DALA))


Define Documentation

 
#define Enable_external_vref (  )     (ADMUX &= ~((1<<REFS1)|(1<<REFS0)) )

Definition at line 67 of file Dac_drv.h.

 
#define Enable_internal_vref (  )     (ADMUX |= ((1<<REFS1)|(1<<REFS0)) )

Definition at line 66 of file Dac_drv.h.

 
#define Enable_vcc_vref (  )     (ADMUX &= ~(1<<REFS1), ADMUX |= (1<<REFS0) )

Definition at line 68 of file Dac_drv.h.

 
#define Left_adjust_dac_result (  )     (DACON |= (1<<DALA))

Definition at line 64 of file Dac_drv.h.

 
#define Output_dac_disabled (  )     (DACON &= ~(1<<DAOE))

Definition at line 71 of file Dac_drv.h.

 
#define Output_dac_enable (  )     (DACON |= (1<<DAOE))

Definition at line 70 of file Dac_drv.h.

 
#define Right_adjust_dac_result (  )     (DACON &= ~(1<<DALA))

Definition at line 63 of file Dac_drv.h.


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