hello, ADC10AE = 0x01; with INCH_1 could be a reason...
try ADC10AE = 0x02; with INCH_1 or ADC10AE = 0x01; with INCH_0 best regards, matthias -----Ursprüngliche Nachricht----- Von: mspgcc-users-ad...@lists.sourceforge.net [mailto:mspgcc-users-ad...@lists.sourceforge.net]im Auftrag von amol shrotri Gesendet: Mittwoch, 02. Juni 2004 09:47 An: mspgcc-users@lists.sourceforge.net Betreff: [Mspgcc-users] About ADC10 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! ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users