47.8.9 DAC0 Control

Name: DACCTRL0
Offset: 0x0C
Reset: 0x0000
Property: PAC Write-Protection, Enabled-Protected

Bit 15141312111098 
 OSR[2:0] REFRESH[3:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 76543210 
 DITHERRUNSTDBYFEXT CCTRL[1:0]ENABLELEFTADJ 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bits 15:13 – OSR[2:0] Oversampling Ratio

This field defines the oversampling ratio/interpolation depth.

ValueNameDescription
0x0OSR_11x OSR (no interpolation)
0x1OSR_22x OSR
0x2OSR_44x OSR
0x3OSR_88x OSR
0x4OSR_1616x OSR
0x5OSR_3232x OSR
other-Reserved

Bits 11:8 – REFRESH[3:0] Refresh period

This field defines the refresh period. If REFRESH=0x0, the refresh mode is disabled. If REFRESH>0x1, else the refresh period is:

TREFRESH=REFRESH×30μs

Bit 7 – DITHER Dithering Mode

ValueDescription
0Dithering mode is disabled.
1Dithering mode is enabled.

Bit 6 – RUNSTDBY Run in Standby

This bit controls the behavior of DAC0 during standby sleep mode.

ValueDescription
0DAC0 is disabled during standby sleep mode.
1DAC0 continues to operate during standby sleep mode.

Bit 5 – FEXT External Filter Enable

This bit controls the usage of the filter.

ValueDescription
0The filter is integrated to the DAC
1The filter is used as standalone

Bits 3:2 – CCTRL[1:0] Current Control

This field defines the current in output buffer according to conversion rate.

Current Control

ValueNameDescription
0x0CC100KGCLK_DAC ≤ 1.2MHz (100kSPS)
0x1CC1M1.2MHz < GCLK_DAC ≤ 6MHz (500kSPS)
0x2CC12M6MHz < GCLK_DAC ≤ 12MHz (1MSPS)
0x3Reserved

Bit 1 – ENABLE Enable DAC0

This bit enables DAC0 when DAC Controller is enabled (CTRLA.ENABLE).

ValueDescription
0DAC0 is disabled.
1DAC0 is enabled.

Bit 0 – LEFTADJ Left Adjusted Data

This bit controls how the 12-bit conversion data is adjusted in the Data and Data Buffer registers.

ValueDescription
0DATA0 and DATABUF0 registers are right-adjusted.
1DATA0 and DATABUF0 registers are left-adjusted.