DM163045 Microchip Technology, DM163045 Datasheet - Page 87

no-image

DM163045

Manufacturer Part Number
DM163045
Description
PICDEM Lab Development Kit (with PICkit 3) General Purpose
Manufacturer
Microchip Technology
Series
PICDEM™r
Type
MCUr
Datasheet

Specifications of DM163045

Contents
Board, PIC kit 3
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC Micro® MCU

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM163045
Manufacturer:
MICROCHIP
Quantity:
12 000
© 2009 Microchip Technology Inc.
5.2.3.4
Program the PIC16F690. Turning the potentiometer connected to pin 13 should light
the LEDs sequentially in a binary fashion. Note that these are the 4 Most Significant
bits of the ADC result. Adding 6 more LEDs and I/O pins would allow the complete
10-bit value to be displayed. To determine the significance of each bit in the
ADRESH:ADRESL 10-bit result, see Figure 5-4.
FIGURE 5-4:
Analog-to-Digital Converter Peripheral Labs
Note:
10-BIT ADC RESULT (ADRESH: ADRESL)
Example:
If following an ADC, the ADRESH:ADRESL contains the following 10-bit
value:
10-BIT ADC RESULT (ADRESH: ADRESL)
1
2
=
=
Note:
1
V
DD
2.5V
1
2
1
2
TESTING THE APPLICATION
Using a 5V reference voltage with a 10-bit provides a resolution of
0.000488V or 4.88mV (5V/1024).
1
4
V
5V
DD
Assumes that V
reference is used, the voltage present on V
for V
1
+
V
DD
+
+
DD
1.25V
1
8
1
4
1
4
ADC RESULT BIT SIGNIFICANCE
.
0
V
V
5V
DD
DD
+
16
+
+
1
0
DD
0.15625V
32
32
V
1
1
DD
is used as the ADC reference. If an external
V
5V
32
DD
1
1
+
+
V
DD
1024
1024
+
1
1
64
1
V
5V
0.000488V
0
DD
V
DD
128
1
Bit positions set to ‘1’
are added together
0
V
=
DD
REF
256
3.911V
(rounded to the nearest mV)
1
0
pin is substituted
V
DD
512
1
0
V
DD
DS41369A-page 83
1024
1
1
V
DD

Related parts for DM163045