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) ;

Ulhas Vaidya
Cell No: 098695 74699