void sd24_a_init(void)
{
u16 i;
SD24CTL = SD24SSEL_1+SD24DIV_2+SD24XDIV_1+SD24REFON; // 1.2V ref, SMCLK
SD24INCTL0 |= SD24INCH_0+SD24GAIN_1+SD24INTDLY_2; // Interrupt on 2rd sample
SD24CCTL0 |= SD24SNGL+SD24DF+SD24IE; //单次转换模式,双极性模式,过采样256,中断使能
for (i = 0; i < 0x4800; i++); // Delay for 1.2V ref startup
index=0;
pingjuntime=0;
} |