Jürgen Wischer

ADC problem with MC9S08GB32

Discussion created by Jürgen Wischer on May 17, 2006
Latest reply on May 18, 2006 by Jürgen Wischer
Hello,

I have some problems with the ADC.
The conversion seems to work fine. I get IRQs but the values are wrong.

When I use 10bit resolution the values are from 970 to 1007 depending on the supplied voltage at the ad pin.

My board configuration:
external XTAL 8MHz

Register:
ICGC1 = 0x70
ADTC1 = 0xC2
ATD1PE = 0x1F

start with
ATD1SC = ATDIE | channel_no

Perhaps anyone has an idea what could be wrong....

Thanks and best regards,

Jürgen

Outcomes