lgeorge123
Full Member level 2

I have a c code from TI CCS as follows:
float Ic;
lc=(float) (AIC23_data.channel
float Ic;
lc=(float) (AIC23_data.channel
);
it convert LEFT channel of ADC to float number , how can I do this in like Convert function ( C format )other than TI CCS such as
float Ic;
byte Adcvalue = { 1,1,1,0,0,1,1,0}; // from 8 bit ADC value
float Convert(byte value);
Ic (float) = Convert(Adcvalue);
it convert LEFT channel of ADC to float number , how can I do this in like Convert function ( C format )other than TI CCS such as
float Ic;
byte Adcvalue = { 1,1,1,0,0,1,1,0}; // from 8 bit ADC value
float Convert(byte value);
Ic (float) = Convert(Adcvalue);