PIC16F1827-E/P Microchip Technology Inc., PIC16F1827-E/P Datasheet - Page 153

no-image

PIC16F1827-E/P

Manufacturer Part Number
PIC16F1827-E/P
Description
7 KB Flash, 384 bytes RAM, 32 MHz Int. Osc, 16 I/0, Enhanced Mid Range Core
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F1827-E/P

A/d Inputs
12-Channel, 10-Bit
Comparators
2
Cpu Speed
8 MIPS
Eeprom Memory
256 Bytes
Input Output
16
Interface
CAN/I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
7K Bytes
Ram Size
384 Bytes
Speed
32 MHz
Timers
4-8-bit, 1-16-bit
Voltage, Range
1.8-5.5 V
Standby Current (pic16lf182x)
30 nA @ 1.8 V, Typical
17.0
The Digital-to-Analog Converter supplies a variable
voltage reference, ratiometric with the input source,
with 32 selectable output levels.
The input of the DAC can be connected to:
• External V
• V
• FVR (Fixed Voltage Reference)
The output of the DAC can be configured to supply a
reference voltage to the following:
• Comparator positive input
• ADC input channel
• DACOUT pin
• Capacitive Sensing module (CSM)
The Digital-to-Analog Converter (DAC) can be enabled
by setting the DACEN bit of the DACCON0 register.
EQUATION 17-1:
17.2
The DAC output value is derived using a resistor ladder
with each end of the ladder tied to a positive and
negative voltage reference input source. If the voltage
of either input source fluctuates, a similar fluctuation will
result in the DAC output value.
The value of the individual resistors within the ladder
can
Specifications”.
 2011 Microchip Technology Inc.
IF DACEN = 1
IF DACEN = 0 and DACLPS = 1 and DACR[4:0] = 11111
IF DACEN = 0 and DACLPS = 0 and DACR[4:0] = 00000
V
V
V
V
V
DD
SOURCE
SOURCE
OUT
OUT
OUT
supply voltage
be
=
DIGITAL-TO-ANALOG
CONVERTER (DAC) MODULE
Ratiometric Output Level
=
=
- = V
+ = V
V
V
REF
found
SOURCE
V
SOURCE
SOURCE
SS
DD
pins
, V
REF
+
in
+ V
DAC OUTPUT VOLTAGE
, or FVR BUFFER 2
Section 29.0
SOURCE
-
DACR 4:0
-----------------------------
2
“Electrical
5
+
V
SOURCE
-
17.1
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 equations
in
17.3
The DAC can be output to the DACOUT pin by setting
the DACOE bit of the DACCON0 register to ‘1’.
Selecting the DAC 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 DAC reference voltage output will
always return a ‘0’.
Due to the limited current drive capability, a buffer must
be used on the DAC voltage reference output for
external connections to DACOUT.
an example buffering technique.
Equation
PIC16(L)F1826/27
Output Voltage Selection
DAC Voltage Reference Output
17-1.
DS41391D-page 153
Figure 17-2
shows

Related parts for PIC16F1827-E/P