Datasheet
35.8.2 Control B
Name: CTRLB
Offset: 0x01
Reset: 0x00
Property: PAC Write-Protection, Enable-Protected
Bit 7 6 5 4 3 2 1 0
REFSEL[1:0] BDWP VPD LEFTADJ IOEN EOEN
Access
R/W R/W R/W R/W R/W R/W R/W
Reset 0 0 0 0 0 0 0
Bits 7:6 – REFSEL[1:0] Reference Selection
This bit field selects the Reference Voltage for the DAC.
Value Name Description
0x0
INTREF Internal voltage reference
0x1
VDDANA Analog voltage supply
0x2
VREFA External reference
0x3
Reserved
Bit 4 – BDWP Bypass DATABUF Write Protection
This bit can bypass DATABUF write protection.
Value Description
0
DATABUF register is write-protected by Peripheral Access Controller.
1
DATABUF register is not write-protected.
Bit 3 – VPD Voltage Pump Disabled
This bit controls the behavior of the voltage pump.
Value Description
0
Voltage pump is turned on/off automatically
1
Voltage pump is disabled.
Bit 2 – LEFTADJ Left-Adjusted Data
This bit controls how the 10-bit conversion data is adjusted in the Data and Data Buffer registers.
Value Description
0
DATA and DATABUF registers are right-adjusted.
1
DATA and DATABUF registers are left-adjusted.
Bit 1 – IOEN Internal Output Enable
Value Description
0
Internal DAC output not enabled.
1
Internal DAC output enabled to be used by the AC.
Bit 0 – EOEN External Output Enable
SAM D21 Family
DAC – Digital-to-Analog Converter
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001882D-page 968