If you do not want to do complicated programming using serial communications registers, you can simply use Mikro c compiler which has built in libraries for the UART communication. Example of serial communication programming using Mikro C for 8051 Thus by setting TH1 to 253 we get correct frequency for 19,200 baud rate. This article also deals with how to serially communicate in 8051 microcontroller. It is also cheaper and requires less physical wires, that’s why we use serial communication. Serial is not much fast as parallel communication but it can deal with transmission of data over longer distances (for telephone line, ADC, DAC). Parallel communication is fast but it is not applicable for long distances (for printers). This data transfer rate or a number of bits transmitted per second is called the baud rate for handling serial communication. As I have mentioned before, the transmitter and receiver are configured to communicate at some data transfer rate before communication starts. simplex communication means that data will be transmitted only in one direction while half-duplex means data will be transmitted in both directions but at one time, only one device can transmit, whereas full-duplex means data may be transmitted in both directions at one time, while one device is transmitting, it can also receive data transmitted from other devices at same time. Serial communication may be simplex, half-duplex or full-duplex. Introduction to SERIAL COMMUNICATION with 8051 microcontroller
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |