Datasheet
25.5.1. Digital to Analog Conversion Control Register
Name: DACON
Offset: 0x90
Reset: 0x0
Property:
R/W
Bit 7 6 5 4 3 2 1 0
DAATE DATS[2:0] DALA DAOE DAEN
Access
Reset 0 0 0 0 0 0 0
Bit 7 – DAATE: DAC Auto Trigger Enable
Set this bit to update the DAC input value on the positive edge of the trigger signal selected with the
DACTS2-0 bit in DACON register. Clear it to automatically update the DAC input when a value is written
on DACH register.
Bits 6:4 – DATS[2:0]: DAC Trigger Selection
These bits are only necessary in case the DAC works in auto trigger mode. It means if DAATE bit is set.
These three bits select the interrupt event which will generate the update of the DAC input values. The
update will be generated by the rising edge of the selected interrupt flag whether the interrupt is enabled
or not.
Value Description
000 Analog Comparator 0
001 Analog Comparator 1
010 External Interrupt Request 0
011 Timer/Counter0 compare Match
100 Timer/Counter0 Overflow
101 Timer/Counter1 compare Match B
110 Timer/Counter1 overflow
111 Timer/Counter1 capture event
Bit 2 – DALA: Digital to Analog Left Adjust
Set this bit to left adjust the DAC input data. Clear it to right adjust the DAC input data. The DALA bit
affects the configuration of the DAC data registers. Changing this bit affects the DAC output on the next
DACH writing.
Bit 1 – DAOE: Digital to Analog Output Enable
Set this bit to output the conversion result on D2A. Clear it to use the DAC internally.
Bit 0 – DAEN: Digital to Analog Enable
Set this bit to enable the DAC. Clear it to disable the DAC
Atmel ATmega16M1/32M1/64M1 [DATASHEET]
Atmel-8209F-ATmega16M1/32M1/64M1_Datasheet_Complete-10/2016
351