Журнал «Современная Наука»

Russian (CIS)English (United Kingdom)
MOSCOW +7(495)-142-86-81

METHODS OF SOFTWARE IMPLEMENTATION OF UART OPERATION

Shchegolev Sergey Sergeevich  (Docent of the Department «Nuclear Power Engineering», candidate of technical sciences Balakovo Institute of Engineering and Technologyof the National Research Nuclear University MEPhI (Moscow Engineering Physics Institute), Balakovo, Russia )

Efremova Tatiana Aleksandrovna  (Docent of the Department «Nuclear Power Engineering», candidate of technical sciences Balakovo Institute of Engineering and Technologyof the National Research Nuclear University MEPhI (Moscow Engineering Physics Institute), Balakovo, Russia )

Motkov Alexander Gennadievich  (Senior Lecturer of the Department «Information Systems and Technologies» Balakovo Institute of Engineering and Technology of the National Research Nuclear University MEPhI (Moscow Engineering Physics Institute), Balakovo, Russia )

The article describes the operation of the serial asynchronous UART interface. The UART is used to transfer data between the microcontroller and the computer. Setting up the UART includes selecting the synchronization source and determining the operating mode. To set the UART operation mode, you need to change the values of the SM0 and SM1 bits in the SCON register. Synchronization can be carried out from Timer 3 or Timer 1. To determine the information transfer rate via UART, it is necessary to calculate the value of the counter register TH1. The timer is started automatically, and data is transmitted through the SBUF register. The TI flag signals the completion of the transfer, and you can arrange for TI to be checked for zero in the loop. To optimize the execution time of the program, you can change the section of the program that sends a byte of data.

Keywords:microcontroller, data transfer protocol, timer, command, program, UART, transfer rate, operating mode

 

Read the full article …



Citation link:
Shchegolev S. S., Efremova T. A., Motkov A. G. METHODS OF SOFTWARE IMPLEMENTATION OF UART OPERATION // Современная наука: актуальные проблемы теории и практики. Серия: Естественные и Технические Науки. -2024. -№04. -С. 147-151 DOI 10.37882/2223-2966.2024.04.40
LEGAL INFORMATION:
Reproduction of materials is permitted only for non-commercial purposes with reference to the original publication. Protected by the laws of the Russian Federation. Any violations of the law are prosecuted.
© ООО "Научные технологии"