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.
Where did all the urgency go?
well, if my code is good is true, then there can be no urgency.
Erik
PS #define BEGIN { #define END } .....
I think he is trying to develop the 'D' language
www.d-programming-language.org/index.html
Note that "My code is good" is posted by "my code jamilla" who seems to have a bit of fun - and the code is good, except a bit unusual. But the really funny/sad thing is that a number of people who come from PASCAL thinks that it is actaually a good thing to create a lot of defined symbols to be able to pascalify C code - they are convinced that their code is much more readable.
"they are convinced that their code is much more readable."
which they are fully entitled to believe and isn't without merit.