Техническая Спецификация для Microchip Technology MA330026

Скачать
Страница из 392
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
DS70000652F-page 222
 2011-2014 Microchip Technology Inc.
19.5
ADC Control Registers
REGISTER 19-1:
AD1CON1: ADC1 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
R/W-0
R/W-0
R/W-0, HC, HS R/C-0, HC, HS
SSRC2
SSRC1
SSRC0
SIMSAM
ASAM
SAMP
DONE
bit 7
bit 0
Legend:
C = Clearable bit
HS = Hardware Settable bit
HC = Hardware 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: ADC1 Operating Mode bit
1
 = ADC1 module is operating
0
 = ADC1 is off
bit 14
Unimplemented: Read as ‘0’
bit 13
ADSIDL: ADC1 Stop in Idle Mode bit
1
 = Discontinues module operation when device enters Idle mode
0
 = Continues 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 (D
OUT
 = sddd dddd dd00 0000, where s = .NOT.d<9>)
10
 = Fractional (D
OUT
 = dddd dddd dd00 0000)
01
 = Signed integer (D
OUT
 = ssss sssd dddd dddd, where s = .NOT.d<9>)
00
 = Integer (D
OUT
 = 0000 00dd dddd dddd)
bit 7-5
SSRC<2:0>: Sample Clock Source Select bits
111
 = Internal counter ends sampling and starts conversion (auto-convert)
110
  = CTMU
101
 = Reserved
100
 = Reserved
011
 = Motor control PWM interval ends sampling and starts conversion
010
 = GP Timer3 compare ends sampling and starts conversion
001
 = Active transition on INT0 pin ends sampling and starts conversion
000
 = Clearing SAMP bit ends sampling and starts conversion
bit 4
Unimplemented: Read as ‘0’
bit 3
SIMSAM: Simultaneous Sample Select bit (applicable only when CHPS<1:0> = 01 or 1x)
1
 = Samples CH0, CH1, CH2, CH3 simultaneously (when CHPS<1:0> = 1x) or samples CH0 and CH1
simultaneously (when CHPS<1:0> = 01)
0
 = Samples multiple channels individually in sequence
bit 2
ASAM: ADC1 Sample Auto-Start bit
1
 = Sampling begins immediately after last conversion; SAMP bit is auto-set
0
 = Sampling begins when the SAMP bit is set
Note 1:
This feature is available in dsPIC33FJ(16/32)MC10X devices only.