PIC16C926 Microchip Technology Inc., PIC16C926 Datasheet - Page 79

no-image

PIC16C926

Manufacturer Part Number
PIC16C926
Description
64/68-pin Cmos Microcontrollers With Lcd Driver
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C926-I/L
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C926-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926/CL
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C926T-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
The following steps should be followed for doing an A/D
conversion:
1.
2.
FIGURE 10-1:
2001 Microchip Technology Inc.
Configure the A/D module:
• Configure analog pins/voltage reference/
• Select A/D input channel (ADCON0)
• Select A/D conversion clock (ADCON0)
• Turn on A/D module (ADCON0)
Configure A/D interrupt (if desired):
• Clear ADIF bit
• Set ADIE bit
• Set PEIE bit
• Set GIE bit
and digital I/O (ADCON1)
Converter
A/D
A/D BLOCK DIAGRAM
(Reference
(Reference
Voltage)
Voltage)
V
V
REF
REF
-
+
(Input Voltage)
PCFG<3:0>
V
PCFG<3:0>
AIN
Preliminary
V
V
DD
SS
3.
4.
5.
6.
7.
Wait the required acquisition time.
Start conversion:
• Set GO/DONE bit (ADCON0)
Wait for A/D conversion to complete, by either:
• Polling for the GO/DONE bit to be cleared
OR
• Waiting for the A/D interrupt
Read
(ADRESH:ADRESL), clear bit ADIF if required.
For next conversion, go to step 1 or step 2 as
required. The A/D conversion time per bit is
defined as T
required before next acquisition starts.
(interrupts disabled)
CHS<2:0>
PIC16C925/926
A/D
100
011
010
001
000
AD
. A minimum wait of 2T
Result
register
RA1/AN1
RA2/AN2/V
RA0/AN0
DS39544A-page 77
RA5/AN4
RA3/AN3/V
AD
REF
REF
pair
-
+
is

Related parts for PIC16C926