English
Language : 

PIC18F2331 Datasheet, PDF (246/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
REGISTER 20-1:
ADCON0: A/D CONTROL REGISTER 0
U-0
U-0
R/W-0 R/W-0
—
—
ACONV ACSCH
bit 7
R/W-0
ACMOD1
R/W-0 R/W-0
ACMOD0 GO/DONE
R/W-0
ADON
bit 0
bit 7-6
bit 5
bit 4
bit 3-2
bit 1
bit 0
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:
1st sample: Group A
2nd sample: Group B
01 =Sequential Mode2 (SEQM2). Four samples are taken in sequence:
1st sample: Group A
2nd sample: Group B
3rd sample: Group C
4th sample: Group D
10 =Simultaneous Mode1 (STNM1). Two samples are taken simultaneously:
1st sample: Group A and Group B
11 =Simultaneous Mode2 (STNM2). Two samples are taken simultaneously:
1st sample: Group A and Group B
2nd sample: Group C and Group D
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
Note: Group A, B, C, D refer to the ADCHS register.
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-
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.
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
W = Writable bit
‘1’ = bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = bit is cleared x = bit is unknown
DS39616B-page 244
Preliminary
 2003 Microchip Technology Inc.