CN103336477A - Analog output module based on CAN bus - Google Patents

Analog output module based on CAN bus Download PDF

Info

Publication number
CN103336477A
CN103336477A CN2013102953074A CN201310295307A CN103336477A CN 103336477 A CN103336477 A CN 103336477A CN 2013102953074 A CN2013102953074 A CN 2013102953074A CN 201310295307 A CN201310295307 A CN 201310295307A CN 103336477 A CN103336477 A CN 103336477A
Authority
CN
China
Prior art keywords
bus
chip
module
control processor
photoelectric isolation
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.)
Pending
Application number
CN2013102953074A
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.)
Guizhou University
Original Assignee
Guizhou University
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 Guizhou University filed Critical Guizhou University
Priority to CN2013102953074A priority Critical patent/CN103336477A/en
Publication of CN103336477A publication Critical patent/CN103336477A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Dc Digital Transmission (AREA)

Abstract

The invention discloses an analog output module based on a CAN (Controller Area Network) bus, which comprises a CAN bus communication interface part, a peripheral circuit part and an I/O (Input/Output) interface part. According to the analog output design based on the CAN bus, a data processing and output module with a CAN bus communication interface is designed based on a CAN bus 2.0B protocol, a hardware design of an intelligent node takes a control processor as a core, a CAN bus controller and a CAN bus transceiver are combined, and the control processor is externally connected with a watchdog module to prevent a program from running and flying, so that a purpose of improving the instantaneity and the reliability of analog remote control is achieved. The analog output module is simple in structure, low in cost and good in using effect.

Description

Analog output module based on the CAN bus
Technical field
The present invention relates to areas of information technology, particularly a kind of analog output module based on the CAN bus.
Background technology
The CAN bus is one of most widely used fieldbus in the world, has the operation of many main websites and disperses the universal serial bus of arbitration and the characteristics of broadcast communication.On the CAN bus arbitrary node can be at any time on one's own initiative on the network other node send information and be regardless of primary and secondary, therefore can between each node, realize free communication.The CAN bus has the traffic rate height, realizes and a kind of fieldbus that has formed international standard of many characteristics such as cost performance height easily, be applied to various fields at present, has the powerful market competitiveness.In the process of current industry spot control, usually need measure physical quantities, perhaps control physical quantity, in such industry spot, analog quantity has obtained using widely.Analog quantity can reflect the change procedure of physical quantity accurately, as control temperature, flow, speed etc.Industry Control of today is generally all being selected Long-distance Control, and people have seldom arrived on-the-spot inspection, so bus is arisen at the historic moment now.
Summary of the invention
Technical matters to be solved by this invention is: a kind of analog output module based on the CAN bus is provided, and it improves real-time and the fiduciary level of analog quantity Long-distance Control, to overcome the deficiencies in the prior art.
The analog output module that is achieved in that based on the CAN bus of the present invention, comprise CAN bus communication interface section, peripheral circuit part and I/O interface section, CAN bus communication interface section is by CAN bus controller (1), photoelectric isolation module II(6) and CAN bus transceiver (8) form, CAN bus controller (1) is by photoelectric isolation module II(6) be connected with CAN bus transceiver (8); The peripheral circuit part is made up of control processor (2), watchdog chip (5) and power module (10); The I/O interface section is by DA chip (4) and photoelectric isolation module I(3) form DA chip (4) and photoelectric isolation module I(3) be connected; Control processor (2) connects respectively at CAN bus controller (1), watchdog chip (5) and DA chip (4); Power module (10) respectively with CAN bus controller (1), control processor (2), DA chip (4) and CAN bus transceiver (8) is connected, and pass through d-c transformer (11) respectively with photoelectric isolation module I(3) and photoelectric isolation module II(6) be connected.
It is SJA1000 that the CAN controller is selected model for use, CAN bus transceiver model is 82C250, all select isolation optocoupler 6N137 for use with photoelectric isolation module II, their common CAN bus communication interface sections of forming, be responsible for the both-way communication between this node and the bus, photoelectric isolation module II can strengthen the antijamming capability of CAN bus node.
The control processor can be selected the 89C51 single-chip microcomputer for use, the control of responsible node and computing.
Watchdog chip is selected X25045 for use, prevents program fleet.
The DA chip is selected DAC0832 for use, and photoelectric isolation module I selects for use and isolates optocoupler 6N137.DA chip and photoelectric isolation module I form the I/O interface section jointly, and it carries out aanalogvoltage output control according to the instruction of control processor to on-the-spot device, and this part is converted into analog quantity by the DA chip with digital quantity and outwards exports.
Owing to adopted technique scheme, compared with prior art, the present invention is based on the analog quantity output design of CAN bus, on the basis of CAN bus 2.0B agreement, designed the data that have CAN bus communication interface and handled and output module; The hardware design of intelligent node is core with the control processor, in conjunction with CAN bus controller and CAN bus transceiver, and controlling external watchdog module on the processor, prevent program fleet, to realize improving the real-time of analog quantity Long-distance Control and the purpose of fiduciary level.The present invention is simple in structure, and is with low cost, and result of use is good.
Description of drawings
Accompanying drawing 1 is structural representation of the present invention;
Accompanying drawing 2 is CAN bus controller of the present invention and the connecting circuit figure that controls processor;
Accompanying drawing 3 is the connecting circuit figure of CAN bus controller of the present invention and CAN bus transceiver;
Accompanying drawing 4 is the circuit diagram of power module of the present invention;
Accompanying drawing 5 is the circuit diagram of photoelectric isolation module of the present invention;
Accompanying drawing 6 is the circuit diagram of crystal oscillating circuit of the present invention;
Accompanying drawing 7 is aanalogvoltage output interface circuit figure of the present invention;
Accompanying drawing 8 is the process flow diagram of the course of work of the present invention.
Embodiment
Embodiments of the invention: based on the structure of the analog output module of CAN bus as shown in Figure 1, comprise CAN bus communication interface section, peripheral circuit part and I/O interface section, CAN bus communication interface section is by CAN bus controller 1, photoelectric isolation module II6 and CAN bus transceiver 8 are formed, and CAN bus controller 1 is connected with CAN bus transceiver 8 by photoelectric isolation module II6; The peripheral circuit part is made up of control processor 2, watchdog chip 5 and power module 10; The I/O interface section is made up of DA chip 4 and photoelectric isolation module I3, and DA chip 4 is connected with photoelectric isolation module I3; Control processor 2 connects respectively at CAN bus controller 1, watchdog chip 5 and DA chip 4; Power module 10 is respectively with CAN bus controller 1, control processor 2, DA chip 4 and CAN bus transceiver 8 is connected, and pass through d-c transformer 11 and be connected with photoelectric isolation module I3 and photoelectric isolation module II6 respectively.
In use, connect output port 7 in the I/O interface section, connect Controller Area Network BUS 12 at CAN bus transceiver 8.
CAN bus controller 1 is connected as shown in Figure 2 with the circuit of control processor 2, and the ADO~AD7 of CAN bus controller 1 is connected to the PO mouth of control processor 2;
Figure 2013102953074100002DEST_PATH_IMAGE001
Be connected to the P2.0 of control processor 2, P2.0 is that 0 CPU chip external memory address can be chosen 1, two ALE of CAN bus controller to link to each other to realize latching of address, thereby data and address are separately; Both ,
Figure 2013102953074100002DEST_PATH_IMAGE003
End links to each other respectively, and CPU can carry out corresponding read/write operation to the register of CAN bus controller 1 by these addresses.Have again, CAN bus controller 1
Figure 45522DEST_PATH_IMAGE004
End and control processor 2 Link to each other, control processor 2 also can be visited CAN bus controller 1 by interrupt mode.
CAN bus controller 1 is connected as shown in Figure 3 with the circuit of CAN bus transceiver 8, and VDD and VSS connect high voltage and ground respectively; MODE connects high level, the TXO of CAN bus controller 1 and RXO link to each other with CAN bus transceiver 8 after by high speed photo coupling 6N137, two power supply VCC and VDD that the optocoupler partial circuit adopts must isolate fully, the isolation fully of power supply adopts the small-power power isolation module to realize that the CANH of CAN bus transceiver 8 links to each other with the CAN bus by the resistance of 15 Ω separately with the CAHL pin; The little electric capacity of 2 30pF in parallel between CANH and CANL and the ground, in addition, between two CAN bus incoming ends and ground, connect 1 anti-lightning strike pipe respectively, when occurring the transition interference between two input ends and the ground, can play the certain protection effect by putting a little of anti-lightning strike pipe; Connect a slope resistance on the Rs pin of CAN bus transceiver 8, be used for control and rise and descending slope, reducing the Radio frequency interference (RFI) resistance sizes can be according to suitable high adjustment of bus communication speed, generally between 16~140k Ω.
The connecting circuit annexation of power module 10 as shown in Figure 4, at first by transformer the 220V alternating current is converted into the alternating current of 9V, by the bridge type rectifier AC rectification is being become direct current, C11 and C12 are respectively input end and output terminal filter capacitor, integrated regulator 7805 again the direct current of 9V is converted into need+the 5V direct current.
Crystal oscillating circuit such as Fig. 6 do not have the onboard clock circuit in CAN bus controller 1 and the CAN bus transceiver 8, need an external crystal oscillator to produce clock frequency, and clock signal is provided.
The aanalogvoltage output interface circuit as shown in Figure 7,
Figure 503048DEST_PATH_IMAGE006
, With
Figure 379737DEST_PATH_IMAGE008
Directly ground connection allows chip operation at direct-passing mode;
Figure 264517DEST_PATH_IMAGE001
Ground connection makes chip maintenance work, and ILE connects high level and allows the signal input, and Data In-Line connects the P1 mouth of control processor 2; Digitally separately be connected IOUT2 ground connection with simulation; The D/A transformation result adopts current forms output, and the linear operational amplifier of a high input impedance connects IOUT1 and the IOUT2 port of chip and realizes; In order to prevent disturbing, between the output port of operational amplifier and port, connect a 6N137 opto-coupler chip.
Main program flow chart after system powers on, is done the initialization of system as shown in Figure 8, and message to be received whether in the check CAN bus controller 1 if any receiving message, outwards sends the form of data with aanalogvoltage.

Claims (1)

1. analog output module based on the CAN bus, comprise CAN bus communication interface section, peripheral circuit part and I/O interface section, it is characterized in that: CAN bus communication interface section is by CAN bus controller (1), photoelectric isolation module II(6) and CAN bus transceiver (8) form, CAN bus controller (1) is by photoelectric isolation module II(6) be connected with CAN bus transceiver (8); The peripheral circuit part is made up of control processor (2), watchdog chip (5) and power module (10); The I/O interface section is by DA chip (4) and photoelectric isolation module I(3) form DA chip (4) and photoelectric isolation module I(3) be connected; Control processor (2) connects respectively at CAN bus controller (1), watchdog chip (5) and DA chip (4); Power module (10) respectively with CAN bus controller (1), control processor (2), DA chip (4) and CAN bus transceiver (8) is connected, and pass through d-c transformer (11) respectively with photoelectric isolation module I(3) and photoelectric isolation module II(6) be connected.
CN2013102953074A 2013-07-15 2013-07-15 Analog output module based on CAN bus Pending CN103336477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102953074A CN103336477A (en) 2013-07-15 2013-07-15 Analog output module based on CAN bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102953074A CN103336477A (en) 2013-07-15 2013-07-15 Analog output module based on CAN bus

Publications (1)

Publication Number Publication Date
CN103336477A true CN103336477A (en) 2013-10-02

Family

ID=49244668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102953074A Pending CN103336477A (en) 2013-07-15 2013-07-15 Analog output module based on CAN bus

Country Status (1)

Country Link
CN (1) CN103336477A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2716876Y (en) * 2004-08-13 2005-08-10 安振刚 CAN bus type intelligent electric executor controller
CN201156194Y (en) * 2008-02-27 2008-11-26 山东省计算中心 General PLC analog outputting module
US20110022186A1 (en) * 2000-10-05 2011-01-27 Ei Electronics Llc Distributed input/output control systems and methods
CN201867799U (en) * 2010-12-15 2011-06-15 河南光彩电器有限公司 Analog quantity output module
CN102591244A (en) * 2012-03-26 2012-07-18 中国科学院自动化研究所 Bus-based input/output (IO) acquisition and control extending device
CN203480255U (en) * 2013-07-15 2014-03-12 贵州大学 Analog output module based on CAN bus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022186A1 (en) * 2000-10-05 2011-01-27 Ei Electronics Llc Distributed input/output control systems and methods
CN2716876Y (en) * 2004-08-13 2005-08-10 安振刚 CAN bus type intelligent electric executor controller
CN201156194Y (en) * 2008-02-27 2008-11-26 山东省计算中心 General PLC analog outputting module
CN201867799U (en) * 2010-12-15 2011-06-15 河南光彩电器有限公司 Analog quantity output module
CN102591244A (en) * 2012-03-26 2012-07-18 中国科学院自动化研究所 Bus-based input/output (IO) acquisition and control extending device
CN203480255U (en) * 2013-07-15 2014-03-12 贵州大学 Analog output module based on CAN bus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘清: "基于CAN总线的模拟量输出从站的设计", 《自动化仪表》, vol. 25, no. 7, 31 July 2004 (2004-07-31), pages 19 - 22 *
汪杰君等: "基于CAN现场总线的远程控制系统设计", 《仪表技术与传感器》, no. 2, 28 February 2009 (2009-02-28), pages 58 - 60 *

Similar Documents

Publication Publication Date Title
CN205193466U (en) Home systems's gateway peripheral circuit and this home systems based on ARM and zigBee
CN105141491B (en) RS485 communication circuit and method for realizing spontaneous self-receiving
CN209201095U (en) A kind of accessing wirelessly access device
CN204613935U (en) A kind of protection circuit of RS485 chip and telecommunication circuit
CN202889340U (en) Low-power short-distance wireless data transmission module
CN203135655U (en) Interface signal conversion daughter circuit board for electronic commutation motor
CN203870799U (en) Electric quantity data acquisition system
CN206224180U (en) One kind is based on KNX agreement multiplex roles smart home main frames
CN203480255U (en) Analog output module based on CAN bus
CN106302338A (en) A kind of KNX-Modbus Transmission Control Protocol transfer gateway based on Cortex-M processor
CN103546297A (en) CAN (controller area network) bus repeater for mining
CN103336477A (en) Analog output module based on CAN bus
CN110401586A (en) A kind of bus communication, device, equipment and readable storage medium storing program for executing
CN202331173U (en) Industrial controller and industrial network control system
CN207529181U (en) A kind of RS485 telecommunication circuits
CN203563062U (en) Industrial vehicle-mounted communication base station capable of being compatible with various data interfaces
CN108900200B (en) Industrial industry-oriented transparent transmission wireless communication system
CN206542444U (en) Radar data access device
CN202939792U (en) Single-phase dual-channel communication module
CN202383821U (en) Non-polarized RS485 signal communication device
CN107966936A (en) A kind of RS485 telecommunication circuits
CN209151185U (en) A kind of serial communication light curtain system
CN211557288U (en) Conversion circuit based on BroadR-Reach vehicle-mounted Ethernet converter
CN204119271U (en) Radar data protocol format transducer
CN203812009U (en) Instrument communication serial port multiplex control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131002