Collaboration diagram for DAC Macros:
|
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 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) ) |
1.4.7