Hi,
I m trying to use ADC10. I could able to get
ADC interrupt but the vale in ADC10MEM in ISR is
coming wrong. I m configuring ADC as
void StartADC10()
{
ADC10CTL0 = ADC10IE + ADC10ON + REFON + REF2_5V + MSC + ADC10SHT_3 +
SREF_1;
ADC10CTL0 &= ~ENC;
ADC10CTL1 = CONSEQ_1 + ADC10DIV_0 + SHS_0 + INCH_1;
ADC10AE = 0x01;
// start the conversion
ADC10CTL0 |= ENC;
ADC10CTL0 |= ADC10SC;
}
So accordning to formula.
If Input channel 1 is having 1.59V it should give me value in
ADC10MEM as around
650. But I m getting 980. I m not understanding the cause for the same. If
anybody can
help me in this problem it will be great help.
Thanx in advance.
Regards,
amol
_________________________________________________________________
Easiest Money Transfer to India. Send Money To 6000 Indian Towns.
http://go.msnserver.com/IN/48198.asp Easiest Way To Send Money Home!