Aurelie Mercier

problem with ADC on MC9S08DZ128

Discussion created by Aurelie Mercier on May 19, 2010
Latest reply on May 21, 2010 by bigmac

Hello.

 

I am working on the MC9S08DZ128 ADC.

I am facing something strange : when the program runs itself, there in no problem with the value (in my case, I have for example (on 12bits) 0x587). But when I put a breakpoint before the ADC instruction and after the conversion is complete, the value isn't right (it becomes 0x161).

Is there an explanation ? Is it possible to break before and after, to see the value ?

 

Thank you in advance for your help.

Outcomes