I am reading Uart communication but I do not know whether my concept is right or wrong If something is wrong then please correct me. Uart is use to send/receive data between two devices. let's suppose If i want to send/ receive data from Micro-controller to LCD, Then I can send/receive data using Uart.
My efforts :
I am following this links to understand basic working of uart
https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter
http://www.idc-online.com/technical...egister_SCON_Of_8051_8031_Microcontroller.pdf
http://www.circuitbasics.com/basics-uart-communication/
8051 timer is used to generate baud rate. 8051 has registers like TMOD, SCON, TH, TL, TCON. Following are registers that are need to be configured to communicate over Uart.
...Start Bit - Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Stop Bit -Next -Start Bit- Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 - Stop Bit.....
I don't understand How does 8051 send start Bit then 8 bit data and then Stop Bit. Which part of 8051 send start/stop Bit and which part of 8051 send/Receive 8 bit data to LCD.
My efforts :
I am following this links to understand basic working of uart
https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter
http://www.idc-online.com/technical...egister_SCON_Of_8051_8031_Microcontroller.pdf
http://www.circuitbasics.com/basics-uart-communication/
8051 timer is used to generate baud rate. 8051 has registers like TMOD, SCON, TH, TL, TCON. Following are registers that are need to be configured to communicate over Uart.
- TMOD : This register is used to set the mode of Timer0 and Timer1
- SCON : Serial Control register has various functions. Transmit interrupt and receive interrupt
- TH1/TL1 : Timer registers for Timer 1 determines the baud rate of UART
- TCON : This register has various flag and control bits e.g. Timer overflow flags, interrupt edge flags, timer control bits to start/stop the timer.
...Start Bit - Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Stop Bit -Next -Start Bit- Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 - Stop Bit.....
I don't understand How does 8051 send start Bit then 8 bit data and then Stop Bit. Which part of 8051 send start/stop Bit and which part of 8051 send/Receive 8 bit data to LCD.