CN101692170B - Serial D/A converter circuit shared by two singlechips - Google Patents

Serial D/A converter circuit shared by two singlechips Download PDF

Info

Publication number
CN101692170B
CN101692170B CN 200910236307 CN200910236307A CN101692170B CN 101692170 B CN101692170 B CN 101692170B CN 200910236307 CN200910236307 CN 200910236307 CN 200910236307 A CN200910236307 A CN 200910236307A CN 101692170 B CN101692170 B CN 101692170B
Authority
CN
China
Prior art keywords
pin
chip microcomputer
serial
tlc5615
converter
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 - Fee Related
Application number
CN 200910236307
Other languages
Chinese (zh)
Other versions
CN101692170A (en
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.)
College of Biochemical Engineering of Beijing Union University
Original Assignee
College of Biochemical Engineering of Beijing Union 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 College of Biochemical Engineering of Beijing Union University filed Critical College of Biochemical Engineering of Beijing Union University
Priority to CN 200910236307 priority Critical patent/CN101692170B/en
Publication of CN101692170A publication Critical patent/CN101692170A/en
Application granted granted Critical
Publication of CN101692170B publication Critical patent/CN101692170B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Microcomputers (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The invention provides a serial D/A converter circuit shared by two singlechips, and belongs to the field of instruments. In a single instrument or control unit, a control core adopts the two singlechips; an A singlechip is connected with an isolation driving device, and a B singlechip is also connected with the isolation driving device; the isolation driving device is connected with a serial D/A converter, and isolates the two singlechips from the serial D/A converter; and the A singlechip is connected with the B singlechip through serial communication. The serial D/A converter circuit has the advantages that: the two singlechips can be communicated with the serial D/A converter alternately and acquire analog signal output priority by controlling the isolation driving device, and the two singlechips alternately process sample data to improve the speed of processing the sample data, and can output analog signals in real time, so that the work efficiency of the instrument or the control unit is improved, and the human-computer interaction capacity is improved.

Description

Shared by two singlechips serial D/A converter circuit
Technical field
The present invention is a kind of shared by two singlechips serial D/A converter circuit, belongs to instrument field, can be used in various instrument and meters and the control module.
Background technology
Single-chip microcomputer of the many employings of at present single instrument and meter or some control modules is control core, and directly be connected with D/A converter, when the higher and data processing time of analog signal output change frequency is longer, a single-chip microcomputer is difficult to take into account, thereby causes inefficiency and the poor phenomenon of real-time; For meeting the demands, can increase financial cost at conceptual design, also can increase the complexity of circuit, this is the problem that exists at present.
Summary of the invention
The objective of the invention is to improve the work efficiency of instrument and meter or control module take two single-chip microcomputers as core, improve the processing capability in real time of data, improve man-machine interaction capabilities.
To achieve these goals, the present invention has taked following technical scheme.The present invention includes A single-chip microcomputer, B single-chip microcomputer, isolation drive device and serial D/A converter.Be connected for serial communication between A single-chip microcomputer and the B single-chip microcomputer, serial D/A converter is connected with the isolation drive device, the isolation drive device is connected with the B single-chip microcomputer with the A single-chip microcomputer respectively again, the isolation drive device is kept apart serial D/A converter and A single-chip microcomputer and B single-chip microcomputer, each single-chip microcomputer is communicated with serial D/A converter by alternately controlling the isolation drive device, and serial D/A converter is controlled the acquisition analog signal output.
Described isolation drive device is an integrated circuit (IC) chip that includes at least two groups of triple gates, the input and output of first group of triple gate are communicated with control end and link to each other with the A single-chip microcomputer, the input end of first group of triple gate is connected with the A single-chip microcomputer, and output terminal is connected with serial D/A converter; The input and output of second group of triple gate are communicated with control end and are connected with the B single-chip microcomputer, and the input end of second group of triple gate is connected with the B single-chip microcomputer, and output terminal is connected with serial D/A converter.
The invention has the advantages that two single-chip microcomputers can alternately be communicated with and obtain analog signal output power with serial D/A converter by control isolation drive device, two single-chip microcomputers are by the alternate treatment sampled data, can improve the processing speed of sampled data, and real-time outputting analog signal, thereby improve the work efficiency of instrument and meter or control module, improve man-machine interaction capabilities.
Description of drawings
Fig. 1 structured flowchart of the present invention
Fig. 2 circuit theory diagrams of the present invention
Embodiment
The present invention is described in detail below in conjunction with accompanying drawing 1, Fig. 2.
Structured flowchart of the present invention as shown in Figure 1, the shared by two singlechips serial D/A converter circuit figure is as shown in Figure 2.In Fig. 1, A single-chip microcomputer and B single-chip microcomputer link together by serial communication, the isolation drive device is kept apart A single-chip microcomputer and B single-chip microcomputer and serial D/A converter, A single-chip microcomputer and B single-chip microcomputer respectively have corresponding line to connect the isolated controlling device, and the isolated controlling device is connected with serial D/A converter separately.
Fig. 2 is the physical circuit figure of the present embodiment.In Fig. 2, the isolated controlling device is comprised of 1 74LS244 triple gate and corresponding connecting line, and the model that serial D/A converter adopts is TLC5615, and the model of two single-chip microcomputer employings is MCS-89C52, resistance R 1, R 2, R 3Be pull-up resistor, its effect is to guarantee when 74LS244 is in three-state, and SCLK, the DIN of serial D/A converter, three pins of CS are in steady state (SS), resistance R 4Consist of mu balanced circuit with stabilivolt D, for TLC5615 provides reference voltage.Concrete connection is as follows:
1 of A single-chip microcomputer, 2 with are connected pin and connect respectively 6 of 74LS244,4 and 2 pin, 1 of B single-chip microcomputer, 2 with are connected pin and connect respectively 15 of 74LS244,13 and 11 pin, 4 pin of A single-chip microcomputer connect 1 pin of 74LS244,4 pin of B single-chip microcomputer connect 19 pin of 74LS244, the ground end of the 10 pin connection+5V power supplys of 74LS244, the 20 pin connection+5V power ends of 74LS244,74LS244 9 with are connected pin and are connected with 3 pin of TLC5615 after linking together, 74LS244 7 with are connected pin and are connected with 1 pin of TLC5615 after linking together, 74LS244 5 with are connected pin and are connected with 2 pin of TLC5615 after linking together, the ground end of the 5 pin connection+5V power supplys of TLC5615, the 8 pin connection+5V power ends of TLV5615,7 pin of TLC5615 are the output terminal of simulating signal, the first resistance R 1One end connects 3 pin of TLC5615, other end connection+5V power end, the second resistance R 2One end connects 1 pin of TLC5615, other end connection+5V power end, the 3rd resistance R 3One end connects 2 pin of TLC5615, other end connection+5V power end, and 5 pin of the anodic bonding TLC5615 of stabilivolt D, the negative electrode of stabilivolt connects 6 pin of TLC5615, the 4th resistance R 4One end connects 6 pin of TLC5615, the other end connects 8 pin of TLC5615,10 pin of A single-chip microcomputer connect 11 pin of B single-chip microcomputer, 10 pin of B single-chip microcomputer connect 11 pin of A single-chip microcomputer, the A single-chip microcomputer is connected 40 pin connection+5V power ends with the B single-chip microcomputer, the A single-chip microcomputer is connected the ground end of 20 pin connection+5V power supplys with the B single-chip microcomputer.
The specific works mode is as follows:
As shown in Figure 2, two single-chip microcomputers in normal working conditions, all not during outputting analog signal, the P13 pin of two single-chip microcomputers is high level for two single-chip microcomputers, 1 pin of 74LS244 and 19 pin are high level also this moment, 74LS244 is in tri-state state; When the A single-chip microcomputer needs outputting analog signal, the P13 pin of A single-chip microcomputer is set to low level, the P13 pin of B single-chip microcomputer still is high level, the P10 of A single-chip microcomputer, P11, three pins of P12 are communicated with serial D/SCLK, DIN of A converter TLC5615, three pins of CS this moment, and the A single-chip microcomputer can carry out analog signal output by control P10, P11, these three pins of P12; Equally, when the B single-chip microcomputer needs outputting analog signal, the P13 pin of B single-chip microcomputer is set to low level, the P13 pin of A single-chip microcomputer still is high level, the P10 of B single-chip microcomputer, P11, three pins of P12 are communicated with serial D/SCLK, DIN of A converter TLC5615, three pins of CS this moment, and the B single-chip microcomputer can carry out analog signal output by control P10, P11, these three pins of P12.

Claims (4)

1. shared by two singlechips serial D/A converter circuit, comprise the A single-chip microcomputer, the B single-chip microcomputer, isolation drive device and serial D/A converter, be connected for serial communication between A single-chip microcomputer and the B single-chip microcomputer, it is characterized in that: serial D/A converter is connected with the isolation drive device, the isolation drive device is connected with the B single-chip microcomputer with the A single-chip microcomputer respectively again, the isolation drive device is kept apart serial D/A converter and A single-chip microcomputer and B single-chip microcomputer, each single-chip microcomputer is communicated with serial D/A converter by alternately controlling the isolation drive device, and serial D/A converter is controlled the acquisition analog signal output.
2. a kind of shared by two singlechips serial D according to claim 1/A converter circuit, it is characterized in that: described isolation drive device is an integrated circuit (IC) chip that includes at least two groups of triple gates, the input and output of first group of triple gate are communicated with control end and link to each other with the A single-chip microcomputer, the input end of first group of triple gate is connected with the A single-chip microcomputer, and output terminal is connected with serial D/A converter; The input and output of second group of triple gate are communicated with control end and are connected with the B single-chip microcomputer, and the input end of second group of triple gate is connected with the B single-chip microcomputer, and output terminal is connected with serial D/A converter.
3. a kind of shared by two singlechips serial D according to claim 1/A converter circuit, it is characterized in that: described isolation drive device is unidirectional Three-State driver chip 74LS244, described serial D/A converter is chip TLC5615, and the model that described A single-chip microcomputer and B single-chip microcomputer adopt is MCS-89C52.
4. shared by two singlechips serial D according to claim 3/A converter circuit, it is characterized in that: the concrete annexation between chip 74LS244, chip TLC5615 and A single-chip microcomputer, the B single-chip microcomputer is:
1 of A single-chip microcomputer, 2 with are connected pin and connect respectively 6 of 74LS244,4 and 2 pin, 1 of B single-chip microcomputer, 2 with are connected pin and connect respectively 15 of 74LS244,13 and 11 pin, 4 pin of A single-chip microcomputer connect 1 pin of 74LS244,4 pin of B single-chip microcomputer connect 19 pin of 74LS244, the ground end of the 10 pin connection+5V power supplys of 74LS244, the 20 pin connection+5V power ends of 74LS244,74LS244 9 with are connected pin and are connected with 3 pin of TLC5615 after linking together, 74LS244 7 with are connected pin and are connected with 1 pin of TLC5615 after linking together, 74LS244 5 with are connected pin and are connected with 2 pin of TLC5615 after linking together, the ground end of the 5 pin connection+5V power supplys of TLC5615, the 8 pin connection+5V power ends of TLV5615,7 pin of TLC5615 are the output terminal of simulating signal, the first resistance (R 1) end connects 3 pin of TLC5615, other end connection+5V power end, the second resistance (R 2) end connects 1 pin of TLC5615, other end connection+5V power end, the 3rd resistance (R 3) end connects 2 pin of TLC5615, the other end connections+5V power end, 5 pin of the anodic bonding TLC5615 of stabilivolt D, 6 pin of the negative electrode connection TLC5615 of stabilivolt, the 4th resistance (R 4) end connects 6 pin of TLC5615, the other end connects 8 pin of TLC5615,10 pin of A single-chip microcomputer connect 11 pin of B single-chip microcomputer, 10 pin of B single-chip microcomputer connect 11 pin of A single-chip microcomputer, the A single-chip microcomputer is connected 40 pin and is all connected+the 5V power end with the B single-chip microcomputer, the A single-chip microcomputer is connected 20 pin and is all connected+the ground end of 5V power supply with the B single-chip microcomputer.
CN 200910236307 2009-10-16 2009-10-16 Serial D/A converter circuit shared by two singlechips Expired - Fee Related CN101692170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910236307 CN101692170B (en) 2009-10-16 2009-10-16 Serial D/A converter circuit shared by two singlechips

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910236307 CN101692170B (en) 2009-10-16 2009-10-16 Serial D/A converter circuit shared by two singlechips

Publications (2)

Publication Number Publication Date
CN101692170A CN101692170A (en) 2010-04-07
CN101692170B true CN101692170B (en) 2013-01-09

Family

ID=42080863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910236307 Expired - Fee Related CN101692170B (en) 2009-10-16 2009-10-16 Serial D/A converter circuit shared by two singlechips

Country Status (1)

Country Link
CN (1) CN101692170B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5091951A (en) * 1989-06-26 1992-02-25 Pioneer Electronic Corporation Audio signal data processing system
US5812880A (en) * 1995-03-10 1998-09-22 Nippondenso Co., Ltd. Multi-CPU system's data I/O processor with communication arbitrator performing access operations on I/O connected to a first CPU bus on behalf of a second CPU
CN2851647Y (en) * 2005-12-16 2006-12-27 上海开通数控有限公司 Intelligent air compressor controller
JP2007312525A (en) * 2006-05-19 2007-11-29 Hitachi Ltd Digital protection control apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5091951A (en) * 1989-06-26 1992-02-25 Pioneer Electronic Corporation Audio signal data processing system
US5812880A (en) * 1995-03-10 1998-09-22 Nippondenso Co., Ltd. Multi-CPU system's data I/O processor with communication arbitrator performing access operations on I/O connected to a first CPU bus on behalf of a second CPU
CN2851647Y (en) * 2005-12-16 2006-12-27 上海开通数控有限公司 Intelligent air compressor controller
JP2007312525A (en) * 2006-05-19 2007-11-29 Hitachi Ltd Digital protection control apparatus

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
党聪维.双单片机的应用.《微电子学与计算机》.2004,第77-80页. *
张念鲁.双单片机在高安全环境中的应用.《微计算机应用》.2005,第683页. *
张江 *
李平均 *
连荣刚 *

Also Published As

Publication number Publication date
CN101692170A (en) 2010-04-07

Similar Documents

Publication Publication Date Title
CN104483011B (en) A kind of on-line checking of rotating machinery multi-channel Vibration Signal and analysis system and method
CN104865457B (en) A kind of general detection board
CN103777529A (en) Fast varying signal collector
CN201576183U (en) Wireless embedded-type real-time multi-task multi-channel measure and control module
CN206224181U (en) A kind of multiple-axis servo drive system position feedback data interface card based on FPGA
CN102722167A (en) Integrated controller for floor
CN203092570U (en) Measurement and control circuit of robot teleoperation hand controller with seven-degree of freedom force feedback
CN102033568B (en) Multifunctional signal generator and realization method thereof
CN101692170B (en) Serial D/A converter circuit shared by two singlechips
CN101692606A (en) Serial A/D converter circuit shared by two singlechips
Guo et al. Design of high speed pulse data acquisition system based on FPGA and USB
CN201698207U (en) Analog quantity collecting module based on FPGA (Field Programmable Gate Array)
CN103678078A (en) Debug system and method
CN108052066A (en) A kind of cascaded high-voltage frequency converter master control system of multiple processor structure
CN101202527A (en) High precision velocity simulate given circuit
CN104579343A (en) Serial A/D converter circuit shared by double single chip microcomputers
CN203151466U (en) Positive-negative logic level conversion switching circuit
CN201094096Y (en) Hydraulic turbine swing embedded type surveillance protecting equipment
CN108304339A (en) A kind of serial expanded circuit and its working method of dynamic managing and control system
CN207650628U (en) A kind of cascaded high-voltage frequency converter master control system of multiple processor structure
CN202693677U (en) Three-phase electronic electric energy meter
CN202818195U (en) Brushless direct current motor control system used in full digitalization water pump
CN202735799U (en) Integrated controller for floor
CN201184970Y (en) Embedded board for acquiring data of watercraft engine compartment
CN110995558A (en) Battery management system compatible with CAN and daisy chain connection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130109

Termination date: 20141016

EXPY Termination of patent right or utility model