Microchip Technology MCP1630DM-DDBS1 データシート
©
2007 Microchip Technology Inc.
DS41211D-page 65
PIC12F683
REGISTER 9-1:
ADCON0: A/D CONTROL REGISTER 0
R/W-0
R/W-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
ADFM
VCFG
—
—
CHS1
CHS0
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
ADFM: A/D Conversion Result Format Select bit
1
= Right justified
0
= Left justified
bit 6
VCFG: Voltage Reference bit
1
= V
REF
pin
0
= V
DD
bit 5-4
Unimplemented: Read as ‘
0
’
bit 3-2
CHS<1:0>: Analog Channel Select bits
00
= AN0
01
= AN1
10
= AN2
11
= AN3
bit 1
GO/DONE: A/D Conversion Status bit
1
= A/D conversion cycle in progress. Setting this bit starts an A/D conversion cycle.
This bit is automatically cleared by hardware when the A/D conversion has completed.
0
= A/D conversion completed/not in progress
bit 0
ADON: ADC Enable bit
1
= ADC is enabled
0
= ADC is disabled and consumes no operating current