поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

PIC16LC71 датащи(PDF) 42 Page - Microchip Technology

номер детали PIC16LC71
подробное описание детали  8-Bit CMOS Microcontrollers with A/D Converter
PDF  176 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  MICROCHIP [Microchip Technology]
домашняя страница  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16LC71 датащи(HTML) 42 Page - Microchip Technology

Back Button PIC16LC71 Datasheet HTML 38Page - Microchip Technology PIC16LC71 Datasheet HTML 39Page - Microchip Technology PIC16LC71 Datasheet HTML 40Page - Microchip Technology PIC16LC71 Datasheet HTML 41Page - Microchip Technology PIC16LC71 Datasheet HTML 42Page - Microchip Technology PIC16LC71 Datasheet HTML 43Page - Microchip Technology PIC16LC71 Datasheet HTML 44Page - Microchip Technology PIC16LC71 Datasheet HTML 45Page - Microchip Technology PIC16LC71 Datasheet HTML 46Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 42 / 176 page
background image
PIC16C71X
DS30272A-page 42
© 1997 Microchip Technology Inc.
7.4
A/D Conversions
Example 7-2 shows how to perform an A/D conversion.
The RA pins are configured as analog inputs. The ana-
log reference (VREF) is the device VDD. The A/D inter-
rupt is enabled, and the A/D conversion clock is FRC.
The conversion is performed on the RA0 pin (channel
0).
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 2TAD wait
is required before the next acquisition is started. After
this 2TAD wait, an acquisition is automatically started
on the selected channel.
Note:
The GO/DONE bit should NOT be set in
the same instruction that turns on the A/D.
EXAMPLE 7-2:
A/D CONVERSION
BSF
STATUS, RP0
; Select Bank 1
CLRF
ADCON1
; Configure A/D inputs
BCF
STATUS, RP0
; Select Bank 0
MOVLW
0xC1
; RC Clock, A/D is on, Channel 0 is selected
MOVWF
ADCON0
;
BSF
INTCON, ADIE
; Enable A/D Interrupt
BSF
INTCON, GIE
; Enable all interrupts
;
;
Ensure that the required sampling time for the selected input channel has elapsed.
;
Then the conversion may be started.
;
BSF
ADCON0, GO
; Start A/D Conversion
:
; The ADIF bit will be set and the GO/DONE bit
:
;
is cleared upon completion of the A/D Conversion.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com