Optimization of the functional diagram of the transmitter / receiver via RS-232 interface
https://doi.org/10.34680/2076-8052.2024.3(137).391-402
Abstract
The article discusses methods for improving the quality of communication in information interaction between devices through the RS-232 data transmission interface by adding HDL logic using the System Verilog hardware description language. The serial interface itself is described in detail, including its operating principle, data packet structure, connection methods with pinout assignments, and an example of message transmission using the specified interface in graphical representation. The results of testing the modified receiver version in the ModelSim environment are presented, using a multiple sampling method to capture data from the transmission line and check for false signals indicating the start of packet transmission, since transmission in the RS-232 interface is performed without synchronized clocking. Experimentally, the optimal time interval for capturing data during signal level establishment was identified. The article also details the modifications made to the receiver and transmitter modules by adding a reset variable that acts as a cycle counter for the receive/send message operation. Additionally, it explains why a transmission speed of 115200 bits per second is popular among industrial and laboratory equipment. The method for obtaining the divider value to set a specialized data transmission speed via the serial interface is described, along with the configuration of the UART chip using configuration registers.
About the Authors
D. V. RumiantsevRussian Federation
Veliky Novgorod
M. N. Petrov
Russian Federation
Veliky Novgorod
References
1. Ronzhin I. V., Makarova A. V. Realizatsiya universal'nogo asinkhronnogo priyemoperedatchika na kristalle programmiruyemoy logicheskoy integral'noy skhemy [Implementation of a universal asynchronous receiver-transmitter on a programmable logic integrated circuit chip] // Politechnical student journal. 2018. 4. 1-7.
2. Ivanov Yu. I., Yugay V. Ya. Interfeysy sredstv avtomatizatsii: uchebnoye posobiye [Interfaces of automation equipment: tutorial]. Taganrog: Publishing house of TRTU, 2005. 252 p.
3. Magda Yu. S. Komp'yuter v domashney laboratorii: prakticheskoye rukovodstvo [Computer in the home laboratory: practical guide]. Moscow: DMK Press, 2008. 200 p.
4. Magda Yu. S. Programmirovaniye posledovatel'nykh interfeysov [Programming of serial interfaces]. Saint-Petersburg: BHV-Petersburg, 2009. 304 p.
5. Barabanov A. V. Proyektirovaniye tsifrovykh ustroystv na yazykakh VHDL i Verilog: uchebnoye posobiye [Design of digital devices in VHDL and Verilog languages: tutorial]. Voronezh: Voronezh State Technical University, 2015. 167 p.
6. Grebennikov A. HDL-realizatsiya asinkhronnogo priyomoperedatchika [HDL implementation of an asynchronous receiver-transmitter] // Sovremennaya elektronika. 2011. 4. 70-73.
Review
For citations:
Rumiantsev D.V., Petrov M.N. Optimization of the functional diagram of the transmitter / receiver via RS-232 interface. Title in english. 2024;(3(137)):391-402. (In Russ.) https://doi.org/10.34680/2076-8052.2024.3(137).391-402