1、ADC configured:
(1)Power:PCONP-->PCADC bit//P549
On reset->enable ADC:first:PCONP-->PCADC bit; AD0CR-->PDN
to disable ADC: first:clear AD0CR-->PDN;second:clear PCONP-->PCADC
(2)ADC Clock:PCKSEL0-->PCLK_ADC;scale ADC clock:CLKDIV
(3)pins:enable ADC0 pins:PINSEL registers; Select pin modes:PINMODE
(4)interrupts: NVIC
(5)DMA:GPDMA system connextions
12bit ; 8 pin;power-dowm mode;200kHz;burst转换
APB provided clock;
//ADC registers
ADCR ADGDR ADINTEN ADDR0.....ADDR7 ADSTAT ADTRM
ADCR:7..0:sel ADx pin;15..8:CLKDIV:APB clock(PCLK_ADC0)