Datasheet
PIC18F2331/2431/4331/4431
DS39616D-page 240 2010 Microchip Technology Inc.
REGISTER 21-1: ADCON0: A/D CONTROL REGISTER 0
U-0 U-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
— — ACONV ACSCH ACMOD1 ACMOD0 GO/DONE ADON
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-6 Unimplemented: Read as ‘0’
bit 5 ACONV: Auto-Conversion Continuous Loop or Single-Shot Mode Select bit
1 = Continuous Loop mode enabled
0 = Single-Shot mode enabled
bit 4 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
bit 3-2 ACMOD<1:0>: Auto-Conversion Mode Sequence Select bits
If ACSCH =
1:
00 = Sequential Mode 1 (SEQM1); two samples are taken in sequence:
1st sample: Group A
(1)
2nd sample: Group B
(1)
01 = Sequential Mode 2 (SEQM2); four samples are taken in sequence:
1st sample: Group A
(1)
2nd sample: Group B
(1)
3rd sample: Group C
(1)
4th sample: Group D
(1)
10 = Simultaneous Mode 1 (STNM1); two samples are taken simultaneously:
1st sample: Group A and Group B
(1)
11 = Simultaneous Mode 2 (STNM2); two samples are taken simultaneously:
1st sample: Group A and Group B
(1)
2nd sample: Group C and Group D
(1)
If ACSCH = 0, Auto-Conversion Single Channel Sequence Mode Enabled:
00 = Single Channel Mode 1 (SCM1); Group A is taken and converted
(1)
01 = Single Channel Mode 2 (SCM2); Group B is taken and converted
(1)
10 = Single Channel Mode 3 (SCM3); Group C is taken and converted
(1)
11 = Single Channel Mode 4 (SCM4); Group D is taken and converted
(1)
bit 1 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
bit 0 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
Note 1: Groups A, B, C, and D refer to the ADCHS register.