I am reading a UART protocol. I understand we use UART when we have to send data from one device to another or we have to receive data from one device to another. We can transmit or receive data using UART protocol. For example: If I have 8051 and GPS module then I can send data to GPS or I can receive data from GPS module. We can do same with LCD, RFID module, PC
8051 has registers like TMOD, SCON, TH, TL, TCON. These are registers that are need to be configured to communicate over UART. I have read it TMOD register is use to set mode of timer0 and timer 1. TH and TL are used to set timer value.
I know I have to configure these registers. I don’t understand what value. I have to set in SCON, TH and TL registers ? and why I need to set only those value?. how to configure the individual registers for UART communication?
Note : Please correct me, If I am wrong somewhere in explanations
8051 has registers like TMOD, SCON, TH, TL, TCON. These are registers that are need to be configured to communicate over UART. I have read it TMOD register is use to set mode of timer0 and timer 1. TH and TL are used to set timer value.
I know I have to configure these registers. I don’t understand what value. I have to set in SCON, TH and TL registers ? and why I need to set only those value?. how to configure the individual registers for UART communication?
Note : Please correct me, If I am wrong somewhere in explanations
Last edited: