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?