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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
