47.8.9 DAC0 Control
Name: | DACCTRL0 |
Offset: | 0x0C |
Reset: | 0x0000 |
Property: | PAC Write-Protection, Enabled-Protected |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
OSR[2:0] | REFRESH[3:0] | ||||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
DITHER | RUNSTDBY | FEXT | CCTRL[1:0] | ENABLE | LEFTADJ | ||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bits 15:13 – OSR[2:0] Oversampling Ratio
This field defines the oversampling ratio/interpolation depth.
Value | Name | Description |
---|---|---|
0x0 | OSR_1 | 1x OSR (no interpolation) |
0x1 | OSR_2 | 2x OSR |
0x2 | OSR_4 | 4x OSR |
0x3 | OSR_8 | 8x OSR |
0x4 | OSR_16 | 16x OSR |
0x5 | OSR_32 | 32x 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:
Bit 7 – DITHER Dithering Mode
Value | Description |
---|---|
0 | Dithering mode is disabled. |
1 | Dithering mode is enabled. |
Bit 6 – RUNSTDBY Run in Standby
This bit controls the behavior of DAC0 during standby sleep mode.
Value | Description |
---|---|
0 | DAC0 is disabled during standby sleep mode. |
1 | DAC0 continues to operate during standby sleep mode. |
Bit 5 – FEXT External Filter Enable
This bit controls the usage of the filter.
Value | Description |
---|---|
0 | The filter is integrated to the DAC |
1 | The 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
Value | Name | Description |
---|---|---|
0x0 | CC100K | GCLK_DAC ≤ 1.2MHz (100kSPS) |
0x1 | CC1M | 1.2MHz < GCLK_DAC ≤ 6MHz (500kSPS) |
0x2 | CC12M | 6MHz < GCLK_DAC ≤ 12MHz (1MSPS) |
0x3 | Reserved |
Bit 1 – ENABLE Enable DAC0
This bit enables DAC0 when DAC Controller is enabled (CTRLA.ENABLE).
Value | Description |
---|---|
0 | DAC0 is disabled. |
1 | DAC0 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.
Value | Description |
---|---|
0 | DATA0 and DATABUF0 registers are right-adjusted. |
1 | DATA0 and DATABUF0 registers are left-adjusted. |