AnsweredAssumed Answered

10bit ADC Issue

Question asked by P Manasa on Dec 29, 2010
Latest reply on Jan 3, 2011 by Daniel Lundin

Hello there,

 

Iam using a 16bit controller(MC9S12XS128) for my application.I have configured ADC(10-bit resolution) on 2MHz and my crystal is 16 MHz.

The variables I have used to acquire ADC data(Potentiometer) are 16 bit and when I ty to read the adc data in the transmission buffer of CAN (8 byte dataframe), the value of ADC showing in the buffer is a wrong value. Can anyone please tell me few ADC routines on how to convert 16bit data to 8 bit without losing my actual data?

Outcomes