Method for realizing serial port communication and single-chip microcomputer system

A technology for serial communication and serial data, applied in the field of serial communication in a single-chip microcomputer system, can solve the problems of unreliability, occupation of system resources, real-time communication, and poor communication, and achieve accurate positioning, reliable communication, and high data accuracy. Effect

Active Publication Date: 2020-06-23
小华半导体有限公司
View PDF10 Cites 3 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 thr

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
  • Method for realizing serial port communication and single-chip microcomputer system
  • Method for realizing serial port communication and single-chip microcomputer system
  • Method for realizing serial port communication and 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 examples. One skilled in the art will recognize, however, that the various embodiments may be practiced without one or more of the specific details, or with other alternative and / or additional methods, materials, or components. In other instances, well-known structures, materials, or operations are not shown or described in detail so as not to obscure the inventive concepts of the present invention. Similarly, for purposes of explanation, specific quantities, materials and configurations are set forth in order to provide a thorough understanding of embodiments of the invention. However, the invention is not limited to these specific details. Furthermore, it should be understood that the embodiments shown in the drawings are illustrative representations and are not necessarily drawn to correct scale.

[0031] In this specification, reference to "one embodiment" or "the embodiment...

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, which realizes serial data sending and receiving by matching direct memory access (DMA) with a timer, and comprises the following steps of: storing data required to be transmitted into a random access memory (RAM) before sending the data; triggering DMA to carry out data carrying through interruption of a timer; after data receiving is completed, data analysis and verification are carried out; and feeding back the result and generating a completion interrupt.

Description

technical field [0001] The invention relates to the technical field of communication interfaces, in particular to the technology for realizing serial port communication in a single-chip microcomputer system. Background technique [0002] Serial communication (Serial Communication) refers to a communication method for bit by bit data transmission between electronic equipment and systems through data signal lines, ground lines, etc. Usually, the microcontroller system is equipped with hardware serial communication peripherals to realize the hardware sending and receiving of serial port data. However, some single-chip microcomputer systems do not have hardware serial communication peripherals, or the peripheral resources are insufficient. For these single-chip microcomputers, serial port communication needs to be realized through software. [0003] Serial communication data format such as figure 1 As shown, it includes 1 start bit, 8 data bits, 1 parity bit and 1 stop bit, wh...

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
IPC IPC(8): G06F13/42G06F13/28G06F15/78
CPCG06F13/4282G06F13/282G06F15/7842G06F2213/0002G06F2213/28
Inventor 李俊生王敏张晓黎洪纪华
Owner 小华半导体有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products