How to write the C program for 8051(AT89S51) for the UART to receive two inputs V1 and f1, V2 and f2 from the PC through RS232?
In the support section of this site, look at the C51 downloads - you will find serial comms examples there. Also look in your Keil\C51\Examples folder.