Hi Dennis, Following example msp430x20x2_adc10_01.c, I don't see any type of busy flag polling. All the interrupt does is clear the CPUOFF bit. Isn't the ADC10SC automatically cleared at the end of a conversion? The problem is more complex then what it seems I think, because my code works perfectly when the vehicle is powered via usb. However the problems start when I power it by battery. In fact, the problems via battery only arise when I include the motor control. Without the motors, the adc works fine. The only difference is the hardware, I am using a linear regulator from 5v to 3.3v for the msp. Could some how the power of the motors be affecting the msp's adc ability?
↧