PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 246

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2331/2431/4331/4431
REGISTER 20-1:
DS39616B-page 244
bit 7-6
bit 5
bit 4
bit 3-2
bit 1
bit 0
bit 7
Unimplemented: Read as ‘0’
ACONV: Auto-Conversion Continuous Loop or Single-shot Mode Select bit
1 = Continuous Loop mode Enabled
0 = Single-shot mode Enabled
ACSCH: Auto-Conversion Single or Multi-Channel mode bit
1 = Multi-Channel mode Enabled, Single Channel mode Disabled
0 = Single Channel mode Enabled, Multi-Channel mode Disabled
ACMOD: Auto-Conversion mode Sequence Select bits
If ACSCH = 1:
00 =Sequential Mode1 (SEQM1). Two samples are taken in sequence:
01 =Sequential Mode2 (SEQM2). Four samples are taken in sequence:
10 =Simultaneous Mode1 (STNM1). Two samples are taken simultaneously:
11 =Simultaneous Mode2 (STNM2). Two samples are taken simultaneously:
If ACSCH = 0, Auto-Conversion Single Channel Sequence mode enabled:
00 =Single Ch Mode1 (SCM1). Group A is taken and converted
01 =Single Ch Mode2 (SCM2). Group B is taken and converted
10 =Single Ch Mode3 (SCM3). Group C is taken and converted
11 =Single Ch Mode4 (SCM4). Group D is taken and converted
GO/DONE: A/D Conversion Status bit
1 = A/D conversion cycle in progress. Setting this bit starts the A/D conversion cycle. If Auto-
0 = A/D conversion or multiple conversions completed/not in progress
ADON: A/D On bit
1 = A/D converter module is enabled (after brief power-up delay, starts continuous sampling)
0 = A/D converter module is disabled
Legend:
R = Readable bit
-n = Value at Reset
ADCON0: A/D CONTROL REGISTER 0
Note:
U-0
1st sample: Group A
2nd sample: Group B
1st sample: Group A
2nd sample: Group B
3rd sample: Group C
4th sample: Group D
1st sample: Group A and Group B
1st sample: Group A and Group B
2nd sample: Group C and Group D
Conversion Single-shot mode is enabled (ACONV = 0), this bit is automatically cleared by
hardware when the A/D conversion (single or multi-channel depending on ACMOD settings)
has completed. If Auto-Conversion Continuous Loop mode is enabled (ACONV = 1), this bit
remains set after the user/trigger has set it (continuous conversions). It may be cleared
manually by the user to stop the conversions.
Group A, B, C, D refer to the ADCHS register.
U-0
ACONV
R/W-0
Preliminary
W = Writable bit
‘1’ = bit is set
ACSCH
R/W-0
ACMOD1
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = bit is cleared
ACMOD0 GO/DONE
R/W-0
 2003 Microchip Technology Inc.
x = bit is unknown
R/W-0
R/W-0
ADON
bit 0

Related parts for PIC18F2331