English
Language : 

PIC16F707 Datasheet, PDF (91/284 Pages) Microchip Technology – 40/44-Pin, Flash Microcontrollers with nanoWatt XLP and mTouch™ Technology
PIC16F707/PIC16LF707
11.0 DIGITAL-TO-ANALOG
CONVERTER (DAC) MODULE
The Digital-to-Analog Converter supplies a variable
voltage reference, ratiometric with VDD, with 32
selectable output levels. The output of the DAC can be
configured to supply a reference voltage to the
following:
• DACOUT device pin
• Capacitive sensing modules
The Digital-to-Analog Converter (DAC) can be enabled
by setting the DACEN bit of the DACCON0 register.
11.1 Output Voltage Selection
The DAC has 32 voltage level ranges. The 32 levels
are set with the DACR<4:0> bits of the DACCON1
register.
The DAC output voltage is determined by the following
equation:
EQUATION 11-1:
IF DACEN = 1
VOUT
=

VSOURCE+ –

VSOURCE- x
--D----A----C--2--R--5--[--4---:--0---]-
+ VSOURCE-
IF DACEN = 0 & DACLPS = 1 & DACR[4:0] = 11111
VOUT = VSOURCE+
IF DACEN = 0 & DACLPS = 0 & DACR[4:0] = 00000
VOUT = VSOURCE-
VSOURCE+ = VDD, VREF, or FVR BUFFER 2
VSOURCE- = VSS
11.2 Output Clamped to VSS
The DAC output voltage can be set to VSS with no
power consumption by setting the DACEN bit of the
DACCON0 register to ‘0’.
11.3 Output Ratiometric to VDD
The DAC is VDD derived and therefore, the DAC output
changes with fluctuations in VDD. The tested absolute
accuracy of the DAC can be found in Section 25.0
“Electrical Specifications”.
11.4 Voltage Reference Output
The DAC can be output to the device DACOUT pin by
setting the DACOE bit of the DACCON0 register to ‘1’.
Selecting the reference voltage for output on the
DACOUT pin automatically overrides the digital output
buffer and digital input threshold detector functions of
that pin. Reading the DACOUT pin when it has been
configured for reference voltage output will always
return a ‘0’.
Due to the limited current drive capability, a buffer must
be used on the voltage reference output for external
connections to DACOUT. Example 11-1 shows an
example buffering technique.
11.5 Operation During Sleep
When the device wakes up from Sleep through an
interrupt or a Watchdog Timer time-out, the contents of
the DACCON0 register are not affected. To minimize
current consumption in Sleep mode, the voltage
reference should be disabled.
11.6 Effects of a Reset
A device Reset affects the following:
• Voltage reference is disabled
• Fixed voltage reference is disabled
• DAC is removed from the DACOUT pin
• The DACR<4:0> range select bits are cleared
 2010 Microchip Technology Inc.
Preliminary
DS41418A-page 91