Hi,
I need to display a floating point number on lcd display (16 x 2
alphanumeric, working in 4 bit mode) and also transmit it over UART. The
controller is ADuC 831.
However, the info gets sent on the serial port instead of lcd. The relevant
portion of the code is appended. Please help.
#define putchar PUTCHAR
void PUTCHAR(unsigned char dat)
{ code to print on lcd
}
float read_current()
{
ret_value=1.001; // some floating point number
printf_fast_f("%f", ret_value) ;
return(ret_value) ;
}
Thanks
Ulhas Vaidya
Cell No: 098695 74699
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user