CN201349219Y - Asynchronous communication controller - Google Patents

Asynchronous communication controller Download PDF

Info

Publication number
CN201349219Y
CN201349219Y CNU2008202384909U CN200820238490U CN201349219Y CN 201349219 Y CN201349219 Y CN 201349219Y CN U2008202384909 U CNU2008202384909 U CN U2008202384909U CN 200820238490 U CN200820238490 U CN 200820238490U CN 201349219 Y CN201349219 Y CN 201349219Y
Authority
CN
China
Prior art keywords
module
sending
asynchronous communication
receiving
interface module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNU2008202384909U
Other languages
Chinese (zh)
Inventor
刘渝新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CNU2008202384909U priority Critical patent/CN201349219Y/en
Application granted granted Critical
Publication of CN201349219Y publication Critical patent/CN201349219Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The utility model relates to the UART asynchronous communication field, in particular to an asynchronous communication controller which comprises an interface module and a receiving module and a sending module which are respectively connected with the interface module, and further comprises a receiving-sending control module which is used for automatically recognizing frame addresses and automatically controlling the receiving and the sending directions, wherein the receiving-sending control module is respectively connected with the interface module, the receiving module and the sending module. The utility model can control direction control signals of half-duplex communication according to setting and resetting of the receiving-sending control module to receiving and sending state signs, makes the asynchronous communication controller utilize the receiving-sending control module to automatically recognize addresses of devices, and ensures whether to receive and response the information frame, and a CPU can not be frequently interrupted, and can realize high-speed asynchronous communication, which effectively improves transmission efficiency.

Description

Asynchronous communication controller
Technical field
The utility model relates to UART asynchronous communication field, particularly a kind of asynchronous communication controller.
Background technology
The common control chip of universal asynchronous communication has 16C450,16C550,16C750 etc.Interfaces such as 3 bit address buses, 8 bit address buses, read-write control bus can realize that baud rate setting, position of rest number are provided with, the setting of data bit number, have the various functions that report an error simultaneously.The high several megabits of universal asynchronous communication control chip traffic rate per second can realize high-speed communication.
When universal asynchronous communication controler is used for the RS485 multi-computer communication, particularly (as greater than 400KBPS) under the speed condition with higher, the asynchronous communication control chip has following shortcoming:
In order to judge whether to respond this Frame, CPU is interrupted continually so that whether judge message frame address is this machine address, and whether decision provides response.
RS485 receives, sending direction control needs CPU control.The control line of control communications reception, sending direction may make the RS485 driving interface be in transmit status all the time when cpu fault, causes bus by clamper, causes bus to lose efficacy.
The utility model content
The utility model has overcome above-mentioned shortcoming, and a kind of simple in structure, efficient, safe asynchronous communication controller of transmission is provided.
The technical scheme in the invention for solving the technical problem is: a kind of asynchronous communication controller, comprise interface module and the receiver module and the sending module that link to each other with described interface module respectively, comprise that also being used for frame address discerns automatically, and automatic control receives, the reception of sending direction sends control module, and described reception sends control module and links to each other with interface module, receiver module, sending module respectively.
Also can comprise the Baud rate generator that is used for producing according to the setting of interface module the asynchronous communication baud rate, described Baud rate generator links to each other with described interface module, receiver module and sending module respectively.
Described interface module also can be provided with the 9th bit data bus as parity check.
The utility model carries out set according to reception transmission control module to transmission, accepting state sign or resets, just can control the direction control signal of half-duplex operation, and make asynchronous communication controller can utilize described reception to send control module automatic identification equipment address, and determine whether reception and respond this information frame, CPU can frequently not interrupted, can realize high-speed asynchronous communication, effectively raise efficiency of transmission.
Description of drawings
Fig. 1 is a theory diagram of the present utility model.
Embodiment
A kind of preferred embodiment of the present utility model, as shown in fig. 1, the utility model comprises interface module and the receiver module and the sending module that link to each other with described interface module respectively, comprise that also described reception sends control module and Baud rate generator, described Baud rate generator is used for the setting according to interface module, produce the Baud rate generator of asynchronous communication baud rate, offer receiver module and sending module, link to each other with interface module, receiver module, sending module respectively.Described reception sends control module and has the frame address comparing function, automatic identification that can the achieve frame address, and when half-duplex operation reception, the sending direction of automatic control data, drive the Data Receiving and the transmission of port.
Described interface module is the interface that receives, sends data, comprises various control registers, status register interface.The address of this machine equipment can be set simultaneously, be used for the multi-computer communication address and relatively discern.
Main signal instruction is as follows:
MCLK: master clock;
RESET: reset;
A: 3 of register address buses;
D: 8 of data/address buss;
WR: write line;
RD: read control line;
INT: interrupt signal;
PT: send parity check bit (constituting 9 write data buss) with the D signal port;
PR: receive parity check bit (constituting 9 place readings according to bus) with the D signal port;
SIN: serial input signals end
SOUT: serial output signal end;
TRCTRL: send, receive control signal during half-duplex work;
According to said structure, control procedure of the present utility model is as follows:
When the reception information frame began, set information frame accepting state sign began to receive first byte by interface module.After first byte receives, described reception sends control module the content of this machine address register of storing in the byte content that receives and the described interface module is compared, if it is identical then open this information frame receiving key, receive the other guide of this information frame, if difference then close this information frame receiving key stops the other guide that receives this information frame.When first byte that transmits frame is the address, but the achieve frame address is discerned automatically.When the address of information frame is identical with this machine address, just receive this information frame.Realize the automatic recognition function of 8 bit address hardware, versatility is good, improves the operational efficiency of CPU simultaneously greatly.
During half-duplex operation, interface module can only be in and receive and send one of these two states, send control module by described reception and realize the direction controlled function, can finish direction control automatically when half-duplex is worked, the reception of information, sending direction need not be intervened by CPU.Detailed process is, after the initialization, whether receive and send the control module inspection is that frame receives beginning or is frame transmission beginning, if frame receives beginning, receive and send control module set frame accepting state sign, check then whether frame receives, do not receive the data representation received frame when 3 characters and finish, at this moment receive and send control module reset frame accepting state sign, receive loop ends.If frame sends beginning, receive and send control module set frame transmit status sign, check then whether frame sends to finish, send the data representation transmit frame and finish when 3 characters monitor, at this moment receive and send control module reset frame transmit status sign.Detect, carry out this two processes by above-mentioned circulation.According to receive to send control module to send, the accepting state sign carries out set or resets, and just can control the direction control signal of half-duplex operation.Can control reception, sending direction automatically, need not CPU and intervene, make the simplification of communication drivers Interface design, safety, efficient.
In addition, described interface module also is provided with the 9th bit data bus as parity check, and the 9th is to send, receive the data parity check position, improves the reliability of data and CPU parallel transmission.
More than asynchronous communication controller provided by the utility model is described in detail, used specific case herein principle of the present utility model and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present utility model and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present utility model, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as restriction of the present utility model.

Claims (3)

1. asynchronous communication controller, comprise interface module and the receiver module and the sending module that link to each other with described interface module respectively, it is characterized in that: comprise that also being used for frame address discerns automatically, and automatic control receives, the reception of sending direction sends control module, and described reception sends control module and links to each other with interface module, receiver module, sending module respectively.
2. asynchronous communication controller according to claim 1, it is characterized in that: also comprise the Baud rate generator that is used for producing according to the setting of interface module the asynchronous communication baud rate, described Baud rate generator links to each other with described interface module, receiver module and sending module respectively.
3. asynchronous communication controller according to claim 1 and 2 is characterized in that: described interface module also is provided with the 9th bit data bus as parity check.
CNU2008202384909U 2008-12-21 2008-12-21 Asynchronous communication controller Expired - Lifetime CN201349219Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2008202384909U CN201349219Y (en) 2008-12-21 2008-12-21 Asynchronous communication controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2008202384909U CN201349219Y (en) 2008-12-21 2008-12-21 Asynchronous communication controller

Publications (1)

Publication Number Publication Date
CN201349219Y true CN201349219Y (en) 2009-11-18

Family

ID=41368683

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2008202384909U Expired - Lifetime CN201349219Y (en) 2008-12-21 2008-12-21 Asynchronous communication controller

Country Status (1)

Country Link
CN (1) CN201349219Y (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446925A (en) * 2015-06-16 2016-03-30 北京天诚盛业科技有限公司 Method and device for improving data receiving correctness of serial port
CN105512061A (en) * 2015-11-24 2016-04-20 北京天诚盛业科技有限公司 UART data receiving and analyzing method and apparatus
CN107436596A (en) * 2016-05-26 2017-12-05 上海拿森汽车电子有限公司 The major-minor MCU redundancies monitoring method of electric boosting steering system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446925A (en) * 2015-06-16 2016-03-30 北京天诚盛业科技有限公司 Method and device for improving data receiving correctness of serial port
CN105512061A (en) * 2015-11-24 2016-04-20 北京天诚盛业科技有限公司 UART data receiving and analyzing method and apparatus
CN107436596A (en) * 2016-05-26 2017-12-05 上海拿森汽车电子有限公司 The major-minor MCU redundancies monitoring method of electric boosting steering system

Similar Documents

Publication Publication Date Title
US7757020B2 (en) Point-to-point link negotiation method and apparatus
CN106453383A (en) UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method
CN101282301B (en) Double-redundancy CAN bus controller as well as packet processing method thereof
CN101005376A (en) Device and method for realizing service plate main control plate communication
CN102576339A (en) Multi-protocol storage device bridge
CN201604665U (en) Communication interface equipment of train control center
CN204374963U (en) A kind of server for encrypting module based on TCM chip
WO2021057017A1 (en) Method for automatic replay attack test in field bus
CN107741915A (en) A kind of FPGA plate level communicators and communication means based on SDIO interfaces
CN101794152A (en) Embedded controller with LVDS serial interface and control method thereof
CN201349219Y (en) Asynchronous communication controller
CN110069437B (en) RS-485 bus polarity self-adaption method based on response frame validity
CN101493806B (en) Data-transmission method of communication adapter
CN102882754A (en) Repeated interrupt mode 485 direction control method
CN105354157A (en) Method, device and system for configuring IIC (Inter-Integrated Circuit) device
CN111858459A (en) Processor and computer
CN201300792Y (en) Multi-functional carriage bus line 4-kind equipment
CN115904844A (en) UART simulation model for printing BOOT information and working method thereof
CN115454881A (en) Debugging system and debugging method of RISC-V architecture
CN102609388B (en) Slave node circuit, communication method and communication device
CN103765799A (en) Electrical idle state handling method and peripheral component interconnect express equipment
CN102541474B (en) USB (universal serial bus) card reading controller
CN101764683A (en) Receiving and transmitting control method in half-duplex communication
CN108965083B (en) Active interference resistant Modbus-RS485 communication program method
CN113253652A (en) Unit communication control device, method and unit

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20091118

CX01 Expiry of patent term