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

Data transmission method capable of ensuring small capacity cache serial communication safety

A data transmission method and a technology for buffering serial ports, which are applied in the direction of electrical digital data processing and instruments, can solve the problems of inability to guarantee the continuity of data transmission, increase the complexity and cost of the system, and frequently interrupt the probability, so as to ensure reliability And continuity, easy to implement, strong practical effects

Active Publication Date: 2014-01-01
BEIJING INST OF CONTROL ENG
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the use of large-capacity cache requires additional peripheral circuits and chips, which undoubtedly increases the complexity and cost of the system
In addition, if the traditional large buffer communication method is used to fill the FIFO at one time, because there are still unsent data, there may still be unavoidable interruptions between the two writing processes
In addition, especially for small-capacity caches, the probability of interruption during data transmission is more frequent. Once interrupted, the continuity of data transmission cannot be guaranteed.

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
  • Data transmission method capable of ensuring small capacity cache serial communication safety
  • Data transmission method capable of ensuring small capacity cache serial communication safety
  • Data transmission method capable of ensuring small capacity cache serial communication safety

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] Taking the cache FIFO capacity as 4 bytes as an example, the data transmission method includes the following steps:

[0042] (1) The host computer initializes the serial port and completes the configuration of the serial port working status, including baud rate setting, parity setting, stop bit number setting, interrupt mode setting (clock) and clearing FIFO.

[0043] (2) The upper computer sends control instructions to the transmission state machine, and the transmission state machine stops data transmission according to the control instructions.

[0044] (3) The host computer writes data into the cache FIFO, and the number of written data is less than or equal to the capacity N of the cache FIFO, and at the same time, the host computer sends a control command to the transmission state machine.

[0045] (4) The transmission state machine reads the data from the buffer FIFO according to the control instruction and transmits it to the shift register, and the shift regist...

Embodiment 2

[0050] Still taking the buffer FIFO capacity as 4 bytes as an example, the data transmission method includes the following steps:

[0051] (1) The host computer initializes the serial port and completes the configuration of the serial port working status, including baud rate setting, parity setting, stop bit number setting, interrupt mode setting (clock) and clearing FIFO.

[0052] (2) The upper computer sends control instructions to the transmission state machine, and the transmission state machine stops data transmission according to the control instructions.

[0053] (3) The host computer writes data into the cache FIFO, and the number of written data is less than or equal to the capacity N of the cache FIFO, and at the same time, the host computer sends a control command to the transmission state machine.

[0054] (4) The transmission state machine reads the data from the buffer FIFO according to the control instruction and transmits it to the shift register, and the shift...

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 relates to a data transmission method capable of ensuring small capacity cache serial communication safety. The data transmission method is characterized in that a relationship among the capacity N of a cache FIFO, data transmission time T of a single byte and the maximum interruption time T interruption is firstly given out, the working states of the cache FIFO is judged in different data transmission moments, and different transmission strategies are adopted according to different working states of the cache FIFO, so that the reliability and the continuity of serial communication are ensured, and the influence of interruption on data transmission is prevented. The data transmission method is designed according to the inherent characteristics, such as the capacity of the cache FIFO, the data transmission time of the single byte and the maximum interruption handling time, is applicable for large-capacity FIFO and small-capacity FIFO, and is particularly applicable to the small-capacity FIFO with the capacity being smaller than or equal to 10 bytes. The method is simple in realization process and easy to realize and has relatively high practicability.

Description

technical field [0001] The invention relates to a data transmission method for ensuring the safety of small-capacity buffered serial port communication, belonging to the field of serial port communication. Background technique [0002] Serial port communication is a communication method commonly used in embedded systems. Ensuring the real-time and correctness of communication is the focus of communication logic design. In the embedded system, interruption is an important factor that threatens the normal communication of the serial port. In order to prevent the impact of external interruption on the communication of the serial port, the industry starts with hardware resources and adopts a large-capacity buffer (FIFO) to ensure the continuity of data transmission. In the case of a large-capacity cache, the software can write a sufficient amount of data to the cache each time, by enabling the transmission state machine to read the data from the transmit FIFO and transmit it to ...

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/38
Inventor 陈尧王佳佳李晓锋胡洪凯张洪华陈朝晖党纪红杜建伟李经松
Owner BEIJING INST OF CONTROL ENG