heyyy guyss,,,
i am using kiel4 c51 compiler and using 89c51 uC with ads1230 20 bit serial adc and an lcd.i want to show the data of adc as a float value on lcd.i am using sprintf function but it is not working.wenever i use it the program doesnt run, even on the compiler.i cant understand y it is happening.wen i delete only sprintf function, program runs..i am using usual routine of it as shown in the help menu.
void print_ADC() {
char buffer[20];
char timer3;
if(++timer3<50) {
timer3=0;
sprintf(buffer,"%f\n",adc_data);
LCD_command(0xc4);
LCD_sendstring(buffer);
}
will anyone help me asap.
I am using kiel4 c51 compiler eval or licence?
i am using sprintf function but it is not working elaborate "not working" can mean anything - any error messages?
i cant understand y does that mean you understand x?
Erik