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

Repeated interrupt mode 485 direction control method

A technology of direction control and chip, which is applied in the direction of bus network and data exchange through path configuration, which can solve the problems of unsatisfactory requirements and low precision of delay control, and achieve the effect of precise control of sending and receiving direction and improvement of control precision

Active Publication Date: 2013-01-16
南京国电南自轨道交通工程有限公司
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for non-real-time operating systems like Windows, the highest resolution of the kernel clock is 1ms, and the accuracy of the timer is between 1-2ms. At 9600 baud rate, the time of 1 byte is about 1ms. The measured timer It will cause the sending driver of MAX485 to open more than 1 byte, which will cause problems when communicating between high-speed 485 terminals
Due to the limitation of the clock resolution of the operating system, the precision of the delay control is low, which cannot meet the requirements in medium and high speed 485 communication

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
  • Repeated interrupt mode 485 direction control method
  • Repeated interrupt mode 485 direction control method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be further elaborated below in conjunction with the accompanying drawings and specific embodiments.

[0027] A kind of repeated interrupt mode 485 direction control method, comprises following structure and steps, A, chip adopts 16C550 compatible UART chip, B, adopts bus transceiver chip,

[0028] C. Use the FIFO interrupt method to send, and each time you send, you can write up to 16 bytes to the 16C554. When receiving, according to the setting, an interrupt will be generated when 1, 2, 4 or 14 bytes are continuously received, or when receiving An interrupt is generated after the byte stream stops for about 5 bytes;

[0029] D. Use RTS signal inversion to enable 485 transmission to realize 485 transmission and reception direction control. Each UART has independent RTS, DTR and other MODEM control pins, among which RTS pins are often used for 485 transmission and reception direction control after inversion. Enable RTS before sending each fram...

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 repeated interrupt mode RTS / 485 direction control method. A 16550 UART (universal asynchronous receiver / transmitter) compatible control chip is a standard serial port controller of a PC (personal computer) and widely used in an embedded system, and RTS signals of the control chip can be used for 485 bus transceiving direction control, RTS pin signals are controlled by the interrupt generation mode, enabling signals transmitted by the 485 bus can be recovered in time, the purpose of accurate control of the 485 bus direction can be achieved without modifying hardware design, and the repeated interrupt mode 485 bus direction control method is applicable to communication of medium and high speed 485 buses. Besides, for low-speed 485 communication, time delay control mode can still be adopted.

Description

technical field [0001] The invention belongs to the technical field of industrial control and electric power system automation, and relates to a method for controlling the direction of a repetitive interrupt mode RTS / 485. Background technique [0002] With the continuous development of power system automation technology and the extensive use of smart devices in substations and distribution stations, data exchange between smart devices and systems is becoming more and more important. Therefore, connecting and managing data communication interfaces between devices and systems has become a power Indispensable and important equipment for the system automation system. [0003] The RS-485 serial interface is a low-speed long-distance communication interface commonly used in the field of industrial control and power system automation. [0004] RS-485 is developed on the basis of RS-232 and RS-422. RS485 adopts differential signal negative logic, +2V~+6V means "0", -6V~-2V means "...

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): H04L12/40
Inventor 范三龙张林
Owner 南京国电南自轨道交通工程有限公司