Datasheet

1153
32117D–AVR-01/12
AT32UC3C
Figure 37-2. DAC Timing Counters
37.6.2.2 Low Power mode
In order to reduce the power consumption during DAC conversions, the DAC Low Power mode
may be enabled. In low power mode, the DAC is turned off between each conversion.
Conversion time will be longer if new conversions are started in this mode: a fourfold increase of
the DAC’s output settling time should be expected.
37.6.2.3 Calibration
To achieve optimal accuracy, it is possible to calibrate both gain (GOC.GCR) and offset error
(GOC.OCR) in the DAC. The MSB of the GCR and OCR fields is the sign bit.
Gain and Offset are not calibrated automatically and this must be done by software. To perform
this operation, the DAC must be enabled and AOE and BOE bits in the control register must be
set to zero. These settings ensure that the DAC internal output is routed to the ADC.
The test values converted by the DAC are sampled by the ADC which returns a measured value
of the DAC output. Calculating the difference between a series of DACIFB channel input values
and their respective effective levels after conversion makes it possible to deduce both DAC gain
and offset biases.
To get the best calibration result, it is recommended to use the same AREF voltage, output
channel selection, sampling time, and refresh interval when calibrating as in normal DAC
operation.
Including errors, the DAC output value can be expressed as:
Prescaler
TCR.PRESC[2:0]
Channel Interval
Counter
TCR.CHI[6:0]
Refresh Counter
TCR.CHRA[3:0]
Refresh Counter
TCR.CHRB[3:0]
Timing Counter
TRA.TCD[7:0]
Timing Counter
TRB.TCD[7:0]
PrescalerClock
CLK_DACIFB