I am currently doing a mini-project on temperature sensor using 8051 micro-controller. The 8051 micro-controller will receive 8bit temperature data from Analogue-to-Digital Converter which is connected to a temperature sensor(eg. LM35) I have a problem in translating the 8bit data from ADC to a temperature reading (eg. 38 celcius)in keil. I hope to understand the structure or the procedure in carrying out this step. Thank you!
void main(void) { char ebit,ans; ebit = 0x01; ans = ebit*(100/256); } how can i display the value in ans on LCD ? void lcdPutStr (char *string) { char i; i=0; while(string[i]) { lcdPutCh (string[i++]); } } this is the program segment for putting the characters into LCD.