Serial communication means to transfer data bit by bit serially at a time, whereas in parallel communication, the number of bits that can be transferred at a time depends upon the number of data lines available for communication.
For code and circuit diagram visit: http://electronicwings.com/8051/8051-...