Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for realizing serial port communication and a single-chip microcomputer system

A serial communication and serial data technology, which is applied in the field of serial communication in the single-chip microcomputer system, can solve the problems of occupying system resources and communication real-time, unreliable, and weak, and achieve reliable communication, accurate positioning, and high data accuracy Effect

Active Publication Date: 2022-05-27
小华半导体有限公司
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to overcome defects such as the occupation of system resources and the lack of real-time communication and unreliability caused by repeatedly entering the interrupt service program when the current single-chip system realizes serial communication through software, the present invention provides a method for realizing serial communication on the one hand. , through the cooperation of direct memory access DMA and timer to realize serial data transmission and reception, wherein, the transmission of data includes:

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for realizing serial port communication and a single-chip microcomputer system
  • A method for realizing serial port communication and a single-chip microcomputer system
  • A method for realizing serial port communication and a single-chip microcomputer system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030]In the following description, the present invention is described with reference to various embodiments. However, those skilled in the art will recognize that each embodiment may be implemented in the absence of one or more specific details or with other substitutions and / or additional methods, materials or components. In other cases, the well-known structure, material or operation is not shown or described in detail so as not to obscure the point of invention of the present invention. Similarly, for purposes of interpretation, specific quantities, materials and configurations are elaborated in order to provide a comprehensive understanding of embodiments of the present invention. However, the present invention is not limited to these particular details. Further, it should be understood that each embodiment shown in the drawings is illustrative and not necessarily drawn at the correct scale.

[0031] In the present specification, the reference to "an embodiment" or "the emb...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for realizing serial port communication, through direct memory access DMA and timer cooperation, to realize serial data transmission and reception, including storing the data to be transmitted in random access memory RAM before sending data; The timer interrupt triggers the DMA to carry out data transfer; after the data reception is completed, the data is analyzed and verified; and the result is fed back and a completion interrupt is generated.

Description

Technical field [0001] The present invention relates to the field of communication interface technology, particularly to the implementation of serial communication technology within a microcontroller system. Background [0002] Serial communication (Serial Communication) refers to a communication method between electronic devices and systems, through data signal lines, ground wires, etc., bitwise data transmission. Usually, the microcontroller system is equipped with a hardware serial communication peripheral to achieve hardware sending and receiving serial port data. However, some microcontroller systems do not carry hardware serial communication peripherals, or peripheral resources are insufficient, for these microcontrollers, serial communication needs to be realized through software. [0003] Serial communication data format such as Figure 1 Shown, including 1 bit start bit, 8 bit data bit, 1 bit parity bit and 1 bit stop bit, wherein the start bit is the logic 0 level, marki...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/42G06F13/28G06F15/78
CPCG06F13/4282G06F13/282G06F15/7842G06F2213/0002G06F2213/28
Inventor 李俊生王敏张晓黎洪纪华
Owner 小华半导体有限公司