Design and Implementation of Data Transfer Interface Based on STM32

introduction

In today's high-speed real-time digital signal processing systems, the data objects involved tend to be diversified. These data usually use different electrical interfaces and have different transmission rates and transmission directions. In modern mechatronic control equipment, such as industrial filling machine and equipment cleaning machine control system is basically a small computer control system composed of PLC and display plus instrument. But now the industry has entered the era of digitalization and intelligence, entering the field of Internet of Things, requiring information sharing, informationization of production processes, network management, improving production efficiency, and reducing the labor intensity of personnel. Therefore, to meet the above requirements, retain the original equipment and control system, and carry out the old and new alternation, you need to add the data exchange interface module on the basis of the original control cabinet, as shown in Figure 1. Based on this, we designed the digital signal processor STM32 as the core, and designed the data transmission interface for a variety of standard interfaces to realize the data interaction of the system.

Design and Implementation of Data Transfer Interface Based on STM32

Figure 1 shows the control system framework of the data transmission switching interface

1, the interface principle

The interface is based on STM32F microcontroller, with RS-232 level conversion chip, RS-485 conversion chip, Ethernet control chip, EP-PROM memory chip, SD card and clock control chip to realize various data. Conversion and storage.

The system is divided into five parts: power management module, real-time clock module, high-volume data storage module, standard data conversion interface module and input and output module, as shown in Figure 2.

Design and Implementation of Data Transfer Interface Based on STM32

Figure 2 data exchange interface principle framework

2, hardware design 2.1, interface control core

The core of the interface is the ST series industrial grade microcontroller chip STM32F107VCT6. The chip is a 32-bit microcontroller of ARMCortex-M3 core, with strong anti-interference ability, wide voltage 2-3.5V range, hardware integrated multiplication and division algorithm, easy to perform complex floating point operation, upgrade of this chip The version has DSP function, strong computing power and fast speed; it can be embedded in the operating system, and its computing power is much stronger than that of industrial control machines. The controller peripheral circuit uses two external crystal resonators with frequencies of 25MHz and 32.768kHz. A single 25MHz crystal can clock the entire system and all peripherals including Ethernet and full-speed USBOTG. A single 32.768kHz low-speed external crystal resonator provides a low-power, accurate clock source for real-time clocking or other timing functions. Users can configure AHB and APB through multiple dividers, so that each peripheral of the system can get the appropriate clock.

Lens Hood Silicone Rubber Plugs

Nantong Boxin Electronic Technology Co., Ltd. , https://www.ntbosen.com