Realizating virtual oscilloscope based on the STM32 microcontroller

Бесплатный доступ

The article presents a structural and functional diagram of a virtual oscilloscope, a description of the prototyping board, a description of the “COM-port” block. The modes of operation of the analog-to-digital converter and UART in the STM32 microcontroller are presented. From the presented modes of operation, the optimal ones for the operation of the virtual oscilloscope unit were selected. The aim of the study. The main purpose of this work is to develop a virtual oscilloscope based on the STM32 microcontroller by proposing its structural and functional diagram. Materials and methods. To develop the structure of a virtual oscilloscope, it is necessary to design a scheme for its interaction with a laboratory setup, choose the best method for relieving stresses from the points of a breadboard, and a method for transferring them to a computer. Also, it is necessary to implement the COM port block and its interaction with the virtual oscilloscope block in the simulation environment. Results. A structural-functional diagram of the hardware-software implementation of the operation of a virtual oscilloscope has been developed. The operating modes of the analog-to-digital converter of the STM32 microcontroller are described. The modes of data transfer via UART in STM32 are described. The format of frames transmitted via UART is presented. Also, the COM-port block and its interaction with the virtual oscilloscope block in the MARS simulation environment are implemented. Conclusion. As a result of considering the methods of working with the internal analog-to-digital converter of the STM32 microcontroller and the methods of working with UART, it was concluded that the optimal mode of operation is to work using direct memory access technology. Using a virtual oscilloscope makes it easier to display analog signals by using a large computer monitor. Also, the implementation on a computer allows you to implement the functionality for comparing and storing information from multiple channels, as well as make it convenient to scale the graph of the displayed signal. Also, the use of internal analog-to-digital converters of the microcontroller can significantly save on the purchase of a real oscilloscope.

Еще

Virtual oscilloscope, microcontroller, analog-to-digital converter, uart, dma, com port

Короткий адрес: https://sciup.org/147239452

IDR: 147239452   |   DOI: 10.14529/ctcr220407

Статья научная