/*************************************初始化ADC12转换*************************************/
void init_ADC(void)
{
P6SEL = 0x38;
ADC12CTL0 &= (~ENC);
ADC12CTL0 = ADC12ON+MSC+SHT0_2;
ADC12CTL1 = ADC12SSEL_2+CSTARTADD_3+SHP+CONSEQ_3;
ADC12MCTL3 = INCH_3;
ADC12MCTL4 = INCH_4;
ADC12MCTL5 = INCH_5+EOS;
}
MCLK 8M,哪位高手帮忙计算下这样设置的采样频率啊?希望详细说明计算步骤,非常感谢!!
此帖出自
小平头技术问答
一周热门 更多>