Multichannel data transmission method and system based on asynchronous serial port of single chip microcomputer
A data transmission method and technology of a data transmission system, applied in the direction of digital transmission systems, transmission systems, electrical components, etc., can solve the problems of data receiving and processing time extension, channel waste, etc., to reduce receiving and processing time, avoid waste, improve responsiveness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0038] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.
[0039] Such as figure 1 Shown, a kind of multi-channel data transmission method based on single-chip microcomputer asynchronous serial port, comprises the following steps:
[0040] Step 1, configure the asynchronous serial port of the microcontroller:
[0041] The specific implementation of this step on STM32 is: configure the STM32 asynchronous serial port to full-duplex transceiver mode: the first step is to enable the asynchronous serial port clock enable, and the GPIO clock is enabled; the second step is to reset the asynchronous serial port; the second step Three-step GPIO port mode change, configure the asynchronous serial port receiving pin as floating input or pull-up input, and configure the asynchronous s...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 