Datasheet

PIC10(L)F320/322
DS41585A-page 96 Preliminary 2011 Microchip Technology Inc.
15.3 ADC Register Definitions
The following registers are used to control the
operation of the ADC.
REGISTER 15-1: ADCON: A/D CONTROL REGISTER 0
R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0 R/W-0/0
ADCS<2:0> CHS<2:0> GO/DONE
ADON
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
u = Bit is unchanged x = Bit is unknown -n/n = Value at POR and BOR/Value at all other Resets
‘1’ = Bit is set ‘0’ = Bit is cleared
bit 7-5 ADCS<2:0>: A/D Conversion Clock Select bits
111 =F
RC
110 =FOSC/64
101 =F
OSC/16
100 =F
OSC/4
011 =F
RC
010 =FOSC/32
001 =F
OSC/8
000 =F
OSC/2
bit 4-2 CHS<2:0>: Analog Channel Select bits
111 = FVR (Fixed Voltage Reference) Buffer Output
(2)
110 = Temperature Indicator
(1)
101 = Reserved. No channel connected.
100 = Reserved. No channel connected.
011 = Reserved. No channel connected.
010 =AN2
001 =AN1
000 =AN0
bit 1 GO/DONE
: A/D Conversion Status bit
If ADON =
1:
1 = A/D conversion in progress (Setting this bit starts the A/D conversion)
0 = A/D conversion not in progress (This bit is automatically cleared by hardware when the A/D con-
version is complete.)
If this bit is cleared while a conversion is in progress, the conversion will stop and the results of the
conversion up to this point will be transferred to the result registers, but the ADIF interrupt flag bit will
not be set.
If ADON =
0:
0 = A/D conversion not in progress
bit 0 ADON: ADC Enable bit
1 = ADC is enabled
0 = ADC is disabled and consumes no operating current
Note 1: See Section 14.0 “Temperature Indicator Module” for more information.
2: See Section 12.0 “Fixed Voltage Reference (FVR)” for more information.