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

X  

PIC18F4331 bảng dữ liệu(PDF) 254 Page - Microchip Technology

tên linh kiện PIC18F4331
Giải thích chi tiết về linh kiện  28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PDF  396 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

PIC18F4331 bảng dữ liệu(HTML) 254 Page - Microchip Technology

Back Button PIC18F4331 Datasheet HTML 250Page - Microchip Technology PIC18F4331 Datasheet HTML 251Page - Microchip Technology PIC18F4331 Datasheet HTML 252Page - Microchip Technology PIC18F4331 Datasheet HTML 253Page - Microchip Technology PIC18F4331 Datasheet HTML 254Page - Microchip Technology PIC18F4331 Datasheet HTML 255Page - Microchip Technology PIC18F4331 Datasheet HTML 256Page - Microchip Technology PIC18F4331 Datasheet HTML 257Page - Microchip Technology PIC18F4331 Datasheet HTML 258Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 254 / 396 page
background image
PIC18F2331/2431/4331/4431
DS39616B-page 252
Preliminary
 2003 Microchip Technology Inc.
20.1.3
CONVERSION SEQUENCING
The ACMOD<1:0> bits control the sequencing of the
A/D conversions. When ACSCH = 0, the A/D is
configured to sample and convert a single channel.
The ACMOD bits select which group to perform the
conversions and the GxSEL<1:0> bits select which
channel in the group is to be converted. If Single-shot
mode is enabled, the A/D interrupt flag will be set after
the channel is converted. If Continuous Loop mode is
enabled, the A/D interrupt flag will be set according to
the ADRS<1:0> bits.
When ACSHC = 1, multiple channel sequencing is
enabled and two sub-modes can be selected. The first
mode is Sequential mode with two settings. The first
setting is called SEQM1 and first samples and converts
the selected Group A channel and then samples and
converts the selected Group B channel. The second
mode is called SEQM2, and it samples and converts a
Group A channel, Group B channel, Group C channel
and finally a Group D channel.
The second multiple channel sequencing sub-mode is
Simultaneous Sampling mode. In this mode, there are
also two settings. The first setting is called STNM1 and
uses the two sample and hold circuits on the A/D
module. The selected Group A and B channels are
simultaneously sampled and then the Group A channel
is converted followed by the conversion of the Group B
channel. The second setting is called STNM2 and
starts the same as STNM1 but follows it with a
simultaneous sample of Group C and D channels. The
A/D module will then convert the Group C channel
followed by the Group D channel.
20.1.4
TRIGGERING A/D CONVERSIONS
The PIC18F2331/2431/4331/4431 devices are capable
of triggering conversions from many different sources.
The same method used by all other microcontrollers of
setting the GO/DONE bit still works. The other trigger
sources are:
• RC3/INT0 pin
• Timer5 Overflow
• Input Capture 1 (IC1)
• CCP2 Compare Match
• Power Control PWM rising edge
These triggers are enabled using the SSRC<4:0> bits
(ADCON3<4:0>). Any combination of the five sources
can trigger a conversion by simply setting the corre-
sponding bit in ADCON3. When the trigger occurs, the
GO/DONE bit is automatically set by the hardware and
then cleared once the conversion completes.
20.1.5
A/D MODULE INITIALIZATION
STEPS
The following steps should be followed to initialize the
A/D module:
1.
Configure the A/D module:
a)
Configure analog pins, voltage reference
and digital I/O
b)
Select A/D input channels
c)
Select A/D Auto-conversion mode
(Single-shot or Continuous Loop)
d)
Select A/D conversion clock
e)
Select A/D conversion trigger
2.
Configure A/D interrupt (if required):
a)
Set GIE bit
b)
Set PEIE bit
c)
Set ADIE bit
d)
Clear ADIF bit
e)
Select A/D trigger setting
f)
Select A/D interrupt priority
3.
Turn On ADC:
a)
Set ADON bit in ADCON0 register
b)
Wait the required power-up setup time,
about 5-10 µs
4.
Start sample/conversion sequence:
a)
Sample for a minimum of 2TAD and start
conversion by setting the GO/DONE bit.
The GO/DONE bit is set by the user in
software or by the module if initiated by a
trigger.
b)
If TACQ is assigned a value (multiple of TAD),
then setting the GO/DONE bit starts a
sample period of the TACQ value, then starts
a conversion.
5.
Wait
for
A/D
conversion/conversions
to
complete using one of the following options:
a)
Poll for the GO/DONE bit to be cleared if in
Single-shot mode.
b)
Wait for the A/D interrupt flag (ADIF) to be
set.
c)
Poll for the BFEMT bit to be cleared to
signify that at least the first conversion has
completed.
6.
Read A/D results, clear ADIF flag, reconfigure
trigger.



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