Microchip Technology Microstick for the 3V PIC24F K-series DM240013-1 DM240013-1 Data Sheet
Product codes
DM240013-1
2011 Microchip Technology Inc.
DS31037B-page 159
PIC24F16KL402 FAMILY
REGISTER 19-1:
AD1CON1: A/D CONTROL REGISTER 1
R/W-0
U-0
R/W-0
U-0
U-0
U-0
R/W-0
R/W-0
ADON
—
ADSIDL
—
—
—
FORM1
FORM0
bit 15
bit 8
R/W-0
R/W-0
R/W-0
U-0
U-0
R/W-0
R/W-0, HSC
R-0, HSC
SSRC2
SSRC1
SSRC0
—
—
ASAM
SAMP
DONE
bit 7
bit 0
Legend:
HSC = Hardware Settable/Clearable bit
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 15
ADON:
A/D Operating Mode bit
(
)
1
= A/D Converter module is operating
0
= A/D Converter is off
bit 14
Unimplemented:
Read as ‘0’
bit 13
ADSIDL:
Stop in Idle Mode bit
1
= Discontinue module operation when device enters Idle mode
0
= Continue module operation in Idle mode
bit 12-10
Unimplemented:
Read as ‘0’
bit 9-8
FORM<1:0>:
Data Output Format bits
11
= Signed fractional (sddd dddd dd00 0000)
10
= Fractional (dddd dddd dd00 0000)
01
= Signed integer (ssss sssd dddd dddd)
00
= Integer (0000 00dd dddd dddd)
bit 7-5
SSRC<2:0>:
Conversion Trigger Source Select bits
111
= Internal counter ends sampling and starts conversion (auto-convert)
110
= Reserved
101
= Reserved
100
= Reserved
011
= Reserved
010
= Timer1 compare ends sampling and starts conversion
001
= Active transition on INT0 pin ends sampling and starts conversion
000
= Clearing the SAMP bit ends sampling and starts conversion
bit 4-3
Unimplemented:
Read as ‘0’
bit 2
ASAM:
A/D Sample Auto-Start bit
1
= Sampling begins immediately after the last conversion completes; SAMP bit is auto-set
0
= Sampling begins when the SAMP bit is set
bit 1
SAMP:
A/D Sample Enable bit
1
= A/D sample/hold amplifier is sampling input
0
= A/D sample/hold amplifier is holding
bit 0
DONE:
A/D Conversion Status bit
1
= A/D conversion is done
0
= A/D conversion is not done
Note 1:
Values of ADC1BUFx registers will not retain their values once the ADON bit is cleared. Read out the
conversion values from the buffer before disabling the module.
conversion values from the buffer before disabling the module.