Datasheet

2013 Microchip Technology Inc. DS30003030B-page 229
PIC24FV16KM204 FAMILY
20.0 8-BIT DIGITAL-TO-ANALOG
CONVERTER (DAC)
PIC24FV16KM204 family devices include two 8-bit
Digital-to-Analog Converters (DACs) for generating
analog outputs from digital data. A simplified block
diagram for a single DAC is shown in Figure 20-1. Both
of the DACs are identical.
The DAC generates an analog output voltage based on
the digital input code, according to the formula:
where V
DAC is the analog output voltage and VDACREF
is the reference voltage selected by DACREF<1:0>.
Each DAC includes these features:
Precision 8-bit resistor ladder for high accuracy
Fast settling time, supporting 1 Msps effective
sampling rates
Buffered output voltage
Three user-selectable voltage reference options
Multiple conversion Trigger options, plus a
manual convert-on-write option
Left and right justified input data options
User-selectable Sleep and Idle mode operation
When using the DAC, it is recommended to set the ANSx
and TRISx bits for the DACx output pin to configure it as
an analog output. See Section 11.2 “Configuring
Analog Port Pins” for more information.
FIGURE 20-1: SINGLE DACx SIMPLIFIED BLOCK DIAGRAM
Note: This data sheet summarizes the features of
this group of PIC24F devices. It is not
intended to be a comprehensive reference
source. For more information, refer to the
“PIC24F Family Reference Manual”.
Device-specific information in this data
sheet supersedes the information in the
“PIC24F Family Reference Manual.
VDACREF DACxDAT
256
V
DAC =
DACxCON
Resistor
Ladder
AVss
8
DACTSEL<4:0>
Trigger and
Interrupt Logic
DACxIF
DACxREF
AV
DD
BGBUF1
DACREF<1:0>
DACxOUT
DACEN
DACSIDL
Idle Mode
DACSLP
Sleep Mode
DACTRIG
8-Bit
Pin
32
DACx Trigger
Sources
DACxDAT
DACOE