Dan Burton

Sample C code for reading the ADC on an HCS08 processor?

Discussion created by Dan Burton on Jul 2, 2007
Latest reply on Jul 11, 2007 by Dan Burton
Can anyone point me to some sample C code showing how to sample the ADC on an HCS08 microcontroller (declare the variables and types, read the ADC, assign the value to the variable? I'm able to get the ADC to sample the input signal but the data in my debugger doesn't seem to make sense.
I'm using CodeWarrior 5.1and running a MC9S08GB60 processor on an M68DEMO908GB60 demo board.
Excuse the newbie question...I'm a hardware apps engineer just learning to code this product.