PIC16LC715 Microchip Technology, PIC16LC715 Datasheet - Page 42
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC16LC715
Manufacturer Part Number
PIC16LC715
Description
(PIC16LC71X) 8-Bit CMOS Microcontrollers
Manufacturer
Microchip Technology
Datasheet
1.PIC16LC715.pdf
(176 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16LC715-04/P
Manufacturer:
Microchip Technology
Quantity:
135
- Current page: 42 of 176
- Download datasheet (2Mb)
PIC16C71X
7.4
Example 7-2 shows how to perform an A/D conversion.
The RA pins are configured as analog inputs. The ana-
log reference (V
rupt is enabled, and the A/D conversion clock is F
The conversion is performed on the RA0 pin (channel
0).
EXAMPLE 7-2:
;
;
;
;
DS30272A-page 42
Ensure that the required sampling time for the selected input channel has elapsed.
Then the conversion may be started.
BSF
CLRF
BCF
MOVLW
MOVWF
BSF
BSF
BSF
:
:
A/D Conversions
STATUS, RP0
ADCON1
STATUS, RP0
0xC1
ADCON0
INTCON, ADIE
INTCON, GIE
ADCON0, GO
REF
) is the device V
A/D CONVERSION
DD
. The A/D inter-
; Select Bank 1
; Configure A/D inputs
; Select Bank 0
; RC Clock, A/D is on, Channel 0 is selected
;
; Enable A/D Interrupt
; Enable all interrupts
; Start A/D Conversion
; The ADIF bit will be set and the GO/DONE bit
;
is cleared upon completion of the A/D Conversion.
RC
.
Clearing the GO/DONE bit during a conversion will
abort the current conversion. The ADRES register will
NOT be updated with the partially completed A/D con-
version sample. That is, the ADRES register will con-
tinue to contain the value of the last completed
conversion (or the last value written to the ADRES reg-
ister). After the A/D conversion is aborted, a 2T
is required before the next acquisition is started. After
this 2T
on the selected channel.
Note:
AD
wait, an acquisition is automatically started
The GO/DONE bit should NOT be set in
the same instruction that turns on the A/D.
1997 Microchip Technology Inc.
AD
wait
Related parts for PIC16LC715
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC1-100-JT](/images/no-image3.png)
Part Number:
Description:
SURFACE MOUNT POWER INDUCTORS
Manufacturer:
RCD [RCD COMPONENTS INC.]
Datasheet:
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: