PIC12F1822 MICROCHIP [Microchip Technology], PIC12F1822 Datasheet - Page 147

no-image

PIC12F1822

Manufacturer Part Number
PIC12F1822
Description
8/14-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F1822-E/SN
Manufacturer:
ABILIS
Quantity:
15 400
Part Number:
PIC12F1822-E/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F1822-E/SN
0
Part Number:
PIC12F1822-I/MF
Manufacturer:
ALLEGRO
Quantity:
1 001
Part Number:
PIC12F1822-I/MF
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F1822-I/P
Manufacturer:
MICROCHIP
Quantity:
1 200
Part Number:
PIC12F1822-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F1822-I/SN
Manufacturer:
MICROCHIP
Quantity:
4 500
Part Number:
PIC12F1822-I/SN
Manufacturer:
MICROCHI
Quantity:
1 700
Part Number:
PIC12F1822-I/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F1822-I/SN
0
Company:
Part Number:
PIC12F1822-I/SN
Quantity:
30 000
Part Number:
PIC12F1822T-I/MF
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12F1822T-I/SN
0
16.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
The Digital-to-Analog Converter (DAC) can be enabled
by setting the DACEN bit of the DACCON0 register.
16.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 following
equations:
EQUATION 16-1:
16.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”.
16.3
In order for the DAC module to consume the least
amount of power, one of the two voltage reference input
sources to the resistor ladder must be disconnected.
Either the positive voltage source, (V
negative voltage source, (V
The negative voltage source is disabled by setting the
DACLPS bit in the DACCON0 register. Clearing the
DACLPS bit in the DACCON0 register disables the
positive voltage source.
 2010 Microchip Technology Inc.
V
Note:
OUT
DD
=
supply voltage
be
DIGITAL-TO-ANALOG
CONVERTER (DAC) MODULE
Output Voltage Selection
Ratiometric Output Level
Low-Power Voltage State
V
V
V
SOURCE
REF
found
SOURCE
REF
+. V
pins
+ V
SOURCE
+ can equal FVR Buffer 2, V
in
DAC OUTPUT VOLTAGE
SOURCE
- can equal V
Section 29.0
SRC
-
-) can be disabled.
DACR<4:0>
------------------------------ -
2 5
SS
SRC
or V
“Electrical
+), or the
REF
+ V
PIC12F/LF1822/16F/LF1823
DD
-.
SRC
or
Preliminary
-
16.3.1
The DAC output voltage can be set to V
least amount of power consumption by performing the
following:
• Clearing the DACEN bit in the DACCON0 register.
• Setting the DACLPS bit in the DACCON0 register.
• Configuring the DACPSS bits to the proper
• Configuring the DACR<4:0> bits to ‘11111’ in the
This is also the method used to output the voltage level
from the FVR to an output pin. See Section 16.4 “DAC
Voltage Reference Output” for more information.
Reference Figure 16-1 for output clamping examples.
16.3.2
The DAC output voltage can be set to V
least amount of power consumption by performing the
following:
• Clearing the DACEN bit in the DACCON0 register.
• Clearing the DACLPS bit in the DACCON0 register.
• Configuring the DACNSS bits to the proper
• Configuring the DACR<4:0> bits to ‘00000’ in the
This allows the comparator to detect a zero-crossing
while not consuming additional current through the DAC
module.
Reference Figure 16-1 for output clamping examples.
positive source.
DACCON1 register.
negative source.
DACCON1 register.
OUTPUT CLAMPED TO POSITIVE
VOLTAGE SOURCE
OUTPUT CLAMPED TO NEGATIVE
VOLTAGE SOURCE
DS41413A-page 147
SRC
SRC
+ with the
- with the

Related parts for PIC12F1822