công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

PIC17C752 bảng dữ liệu(PDF) 172 Page - Microchip Technology

tên linh kiện PIC17C752
Giải thích chi tiết về linh kiện  High-Performance 8-Bit CMOS EPROM Microcontrollers
PDF  320 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC17C752 bảng dữ liệu(HTML) 172 Page - Microchip Technology

Back Button PIC17C752 Datasheet HTML 168Page - Microchip Technology PIC17C752 Datasheet HTML 169Page - Microchip Technology PIC17C752 Datasheet HTML 170Page - Microchip Technology PIC17C752 Datasheet HTML 171Page - Microchip Technology PIC17C752 Datasheet HTML 172Page - Microchip Technology PIC17C752 Datasheet HTML 173Page - Microchip Technology PIC17C752 Datasheet HTML 174Page - Microchip Technology PIC17C752 Datasheet HTML 175Page - Microchip Technology PIC17C752 Datasheet HTML 176Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 172 / 320 page
background image
PIC17C75X
DS30264A-page 172
Preliminary
© 1997 Microchip Technology Inc.
16.3 Configuring Analog Port Pins
The ADCON1, and DDR registers control the operation
of the A/D port pins. The port pins that are desired as
analog inputs must have their corresponding DDR bits
set (input). If the DDR bit is cleared (output), the digital
output level (VOH or VOL) will be converted.
The A/D operation is independent of the state of the
CHS2:CHS0 bits and the DDR bits.
Note 1: When reading the port register, any pin
configured as an analog input channel will
read as cleared (a low level). Pins config-
ured as digital inputs, will convert an ana-
log input. Analog levels on a digitally
configured input will not affect the conver-
sion accuracy.
Note 2: Analog levels on any pin that is defined as
a digital input (including the AN11:AN0
pins), may cause the input buffer to con-
sume current that is out of the devices
specification.
16.4 A/D Conversions
Example 16-2 shows how to perform an A/D conver-
sion. The PORTF and lower four PORTG pins are con-
figured as analog inputs. The analog references
(VREF+ and VREF-) are the device AVDD and AVSS. The
A/D interrupt is enabled, and the A/D conversion clock
is FRC. The conversion is performed on the RG3/AN0
pin (channel 0).
Clearing the GO/DONE bit during a conversion will
abort the current conversion. The A/D result register
pair will NOT be updated with the partially completed
A/D
conversion
sample.
That
is,
the
ADRESH:ADRESL registers will continue to contain
the value of the last completed conversion (or the last
value written to the ADRESH:ADRESL registers). After
the A/D conversion is aborted, a 2TAD wait is required
before the next acquisition is started. After this 2TAD
wait, acquisition on the selected channel is automati-
cally started.
Note: The GO/DONE bit should NOT be set in
the same instruction that turns on the A/D.
EXAMPLE 16-2: A/D CONVERSION
MOVLB
5
; Bank 5
CLRF
ADCON1, F
; Configure A/D inputs
MOVLW
0xC1
; RC Clock, A/D is on, Channel 0 is selected
MOVWF
ADCON0
;
MOVLB
4
; Bank 4
BCF
PIR2, ADIF
; Clear A/D interrupt flag bit
BSF
PIE2, ADIE
; Enable A/D interrupts
BSF
INTSTA, PEIE
; Enable peripheral interrupts
BCF
CPUSTA, GLINTD
; Enable all interrupts
;
;
Ensure that the required sampling time for the selected input channel has elapsed.
;
Then the conversion may be started.
;
MOVLB
5
; Bank 5
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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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