int temp[count];
void main()
{
WDTCTL=WDTPW+WDTHOLD;
ADC10_init();
_EINT();
while(1)
{
ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion start
__delay_cycles(1000);
}
void ADC10_init(void)
{
ADC10CTL0 &= ~ENC;
ADC10CTL0 = ADC10IE + ADC10ON + REFON + ADC10SHT_3 + SREF_1;
ADC10CTL1 = CONSEQ_2 + ADC10SSEL_0 + ADC10DIV_3 + SHS_0 + INCH_10;
ADC10DTC1 = count;
ADC10SA = (unsigned int)&temp;
__delay_cycles(30000);
ADC10CTL0 |= ENC;
}
我想用ADC10的 内部 温度采集通道 连续采样,但是无论怎样都无法进入中断,大家能帮我看看么,以上是部分主要程序