CN104914376A - Digital circuit state detection circuit and digital circuit state detection method - Google Patents
Digital circuit state detection circuit and digital circuit state detection method Download PDFInfo
- Publication number
- CN104914376A CN104914376A CN201510232665.XA CN201510232665A CN104914376A CN 104914376 A CN104914376 A CN 104914376A CN 201510232665 A CN201510232665 A CN 201510232665A CN 104914376 A CN104914376 A CN 104914376A
- Authority
- CN
- China
- Prior art keywords
- circuit
- digital quantity
- state
- signal
- controller
- 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
Links
Landscapes
- Testing Electric Properties And Detecting Electric Faults (AREA)
Abstract
The invention relates to a digital circuit state detection circuit and a digital circuit state detection method, and belongs to the technical field of electronics. The circuit comprises a digital state detection processing module, a controller, and a state indication communication module. The detection processing module includes a protection circuit, a voltage division circuit, and a clamping circuit. The circuit converts the voltage of a three-digital-state signal, sends the signal to an AD sampling interface of the controller, compares an acquired signal with a calibration value preset by the controller, and finally judges and displays the three states of a digital circuit. On the basis of expansion, circuit self-detection and detected circuit fault location and alarm indication can be realized. Artificial manual line check is not needed for the confirmation of circuit connection. Therefore, detection is more convenient and more efficient, and fault location is quicker and more accurate. The technical problem that the efficiency of traditional digital circuit state detection is low and fault isolation and location is difficult to realize is solved effectively, and the reliability of circuit detection is improved.
Description
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of digital quantity circuit state testing circuit and method.
Background technology
Traditional digital quantity circuit is all the digital quantity sample port by being sent to controller after the branch resistance network processes of some roads usually, identifies each branch road digital quantity state by controller internal preset program.The interface quantity of circuit determines point number of resistor network.In actual applications; often there will be the situation of external cabling mistake or circuit access failure; now adjustor can be bothered the process of the inspection of line extremely by checkout equipment; especially artificial debugging difficulty can be increased greatly when walking thread environment and being poor; and owing to relating to multiple different checkout equipment during complex circuit; the frequent replacing connection being not easy to detection and cable of circuit can make debugging difficulty higher, greatly reduces and detects benefit.
Therefore, be necessary to realize detecting fast digital quantity circuit input ternary signal in digital quantity circuit state pick-up unit, preferably incidentally can realize self-checking function to testing circuit and by the fault distinguish function of fault isolation to inside circuit or connection cable, and the solution that such technical matters has not had at present.
Summary of the invention
The digital quantity circuit state existed to solve existing method detects technical matters that is inconvenient and that fault isolation cannot be located, and the invention provides a kind of digital quantity circuit state testing circuit and method, the concrete technical scheme solved the problems of the technologies described above is as follows:
The invention provides a kind of digital quantity circuit state testing circuit, this circuit comprises: digital quantity state detection process module, controller and state instruction communication module.Described digital quantity state detection process module comprises protection circuit, bleeder circuit, clamping circuit, and protection circuit plays the voltage protection effect to testing circuit input end.Bleeder circuit is used for carrying out voltage transitions to digital quantity tri-state, obtains corresponding magnitude of voltage.Clamping circuit is that the signal obtained bleeder circuit carries out clamper protection and the AD Sampling Interface sending into controller gathers.The signal collected compares through the calibration value default with controller by AD Sampling Interface, the output state indication information of rear output digital quantity circuit.Described state instruction communication module can realize the hardware foundation of serial communication and CAN communication, is indicated to testing staff or user of service to the display device of expansion for transmission state indication information.
As the improvement of above-mentioned digital quantity circuit state testing circuit, described circuit can also pass through the identical digital quantity state detection circuit of two-way in parallel, form the digital quantity circuit state testing circuit with self-checking function, signal after the process collected separately is sent to the AD sample port of control system and backup system by two branch roads respectively, the signal collected by the signal that collects backup system and control system is compared, judge that whether the signal that control system collects is correct, thus realize the self-checking function of testing circuit.
As the improvement of above-mentioned digital quantity circuit state testing circuit, after expanding peripheral status indicating device, described circuit can send the state of detection instruction result to host computer display by serial communication, also can send instrument display panel display to by CAN communication.
In addition, present invention also offers a kind of digital quantity circuit state detection method, the main thought of the method is by digital quantity " simulated " by digital quantity state detection process module, specifically digital quantity is carried out voltage transitions, obtain 3 magnitudes of voltage of different voltage range, then gather these signals by controller AD Sampling Interface and compare with the calibration value preset, thus judging the tri-state of digital quantity circuit, simultaneously can by result instruction in peripheral expansion equipment.
Compared with prior art, digital quantity circuit state testing circuit provided by the invention and method can be widely applied in the detection of digital quantity circuit state, achieve the easy detection of digital quantity circuit state and quick, the accurate isolation location of fault by simple circuit structure and operation steps, efficiently solve conventional digital amount the circuit state inefficiency detected and the technical matters being difficult to fault isolation to be located.And adding on a small amount of state instruction communicating circuit and peripheral indicating equipment cost basis, the perfect function of electric circuit inspection, improves the reliability of electric circuit inspection.In addition protection circuit and clamping circuit serve the protective effect to digital quantity circuit and testing circuit effectively.
Accompanying drawing explanation
Fig. 1 is digital quantity circuit state testing circuit structured flowchart of the present invention.
Fig. 2 is digital quantity circuit state testing circuit schematic diagram of the present invention.
Fig. 3 is digital quantity fault Autonomous test structured flowchart of the present invention.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with drawings and Examples, embodiment of the present invention is described further in detail.It should be noted that, specific embodiment described herein only in order to help to understand the present invention, does not form limitation of the invention.
As shown in Figure 1, the invention provides a kind of digital quantity circuit state testing circuit, this circuit application, on the entire car controller of new-energy automobile, comprising: digital quantity state detection process module, controller and state instruction communication module.Digital quantity state detection process module plays connection digital quantity signal, carries out level conversion and the effect providing clamper to protect; controller uses the single-chip microcomputer that model is SPC5634MMLQ80, and the signal collected is exported the output state indication information of digital quantity circuit by its AD Sampling Interface after comparing with the calibration value that controller is preset.State instruction communication module can send electric circuit inspection result to host computer display by serial communication, also can send instrument display panel display to by CAN communication.
As shown in Figure 2, digital quantity state detection process module comprises: protection circuit, bleeder circuit, clamping circuit, AD sampling interface circuit and state instruction communicating circuit.Described bleeder circuit is used for carrying out voltage transitions to digital quantity tri-state; obtain corresponding magnitude of voltage; described clamping circuit carries out clamper protection to the signal that bleeder circuit obtains; and send into Chip Microcomputer A/D Sampling Interface; the calibration value signal collected and single-chip microcomputer preset exports the output state indication information of digital quantity circuit more afterwards, and described state instruction communicating circuit can realize the hardware foundation of serial communication and CAN communication.In this application; diode 1,6 forms protection circuit, carries out dividing potential drop, then carry out clamper with voltage stabilizing diode 3 by resistance 2,4,5; thus ensure that the AD mouth effective level signal being sent into single-chip microcomputer is sampled, compare with calibration value thus judge the tri-state of now digital circuit.
Information after process can be shown in host computer by serial ports by single-chip microcomputer, thus circuit during convenient debugging connects detection, greatly facilitates the investigation difficulty of fault; Meanwhile, also can be shown in information feed back to instrument display panel by CAN.Regardless of which kind of mode, the duty of display digital circuit that can both be real-time.
As shown in Figure 3, the AD mouth that the output signal gathering same digital circuit by the digital circuit state-detection branch road be made up of digital quantity state detection process module 1 and module 2 that two-way is identical sends into master controller single-chip microcomputer and subcontrol single-chip microcomputer is respectively sampled, compare with calibration value, thus judge the tri-state of now measurand output separately.The state outcome detected is sent to master controller single-chip microcomputer by SPI communication by subcontrol, if both are consistent relatively, illustrate that testing circuit normally works, if inconsistent, certainly can detect internal fault or the outside line fault of circuit.This information can be recorded and optionally show on host computer or instrument display panel by master controller simultaneously, plays fault alarm effect, thus the safe driving of convenient maintenance person maintenance and guarantee driver.
Those skilled in the art will readily understand; the foregoing is only preferred embodiment of the present invention; not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (7)
1. a digital quantity circuit state testing circuit, is characterized in that, this circuit comprises: digital quantity state detection process module, controller and state instruction communication module.
2. digital quantity circuit state testing circuit according to claim 1, is characterized in that, described digital quantity state detection process module comprises protection circuit, bleeder circuit, clamping circuit;
Protection circuit plays the voltage protection effect to testing circuit input end;
Bleeder circuit is used for carrying out voltage transitions to digital quantity tri-state, obtains corresponding magnitude of voltage;
Clamping circuit is that the signal obtained bleeder circuit carries out clamper protection and the AD Sampling Interface sending into controller gathers.
3. digital quantity circuit state testing circuit according to claim 1, is characterized in that, described controller uses the single-chip microcomputer or other control chip that comprise AD Sampling Interface.
4. digital quantity circuit state testing circuit according to claim 3, is characterized in that, the signal collected is exported the output state indication information of digital quantity circuit by described AD Sampling Interface after comparing with the calibration value that controller is preset.
5. digital quantity circuit state testing circuit according to claim 1, it is characterized in that, described state instruction communication module can send electric circuit inspection result to host computer display by serial communication, also can send instrument display panel display to by CAN communication.
6. a kind of digital quantity circuit state testing circuit according to claim 1, it is characterized in that, described circuit can also pass through the identical digital quantity state detection circuit of two-way in parallel, form the digital quantity circuit state testing circuit with self-checking function, signal after the process collected separately is sent to the AD sample port of master controller and subcontrol by two branch roads respectively, by comparing the signal of subcontrol collection and the signal of master controller collection, whether correctly carry out the signal that decision circuitry collects, thus realize the self-checking function of testing circuit.
7. utilize the method for the digital quantity circuit state testing circuit test digital quantity state described in claim 1, it is characterized in that, the concrete steps of the method are:
Step one, input signal is connected to digital quantity state detection process module;
Step 2, by digital quantity input signal " simulated ";
Specifically digital quantity is carried out voltage transitions, obtain 3 magnitudes of voltage of different voltage range;
Step 3, gather signal to be detected by the AD Sampling Interface of controller;
Step 4, signal to be detected is compared the tri-state judging digital quantity circuit with calibration value;
Step 5, testing result can be presented on peripheral expansion equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510232665.XA CN104914376A (en) | 2015-05-08 | 2015-05-08 | Digital circuit state detection circuit and digital circuit state detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510232665.XA CN104914376A (en) | 2015-05-08 | 2015-05-08 | Digital circuit state detection circuit and digital circuit state detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104914376A true CN104914376A (en) | 2015-09-16 |
Family
ID=54083611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510232665.XA Pending CN104914376A (en) | 2015-05-08 | 2015-05-08 | Digital circuit state detection circuit and digital circuit state detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104914376A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227174A (en) * | 2015-10-12 | 2016-01-06 | 上海斐讯数据通信技术有限公司 | Support detection system and the electronic equipment of different significant level digital quantity input signal |
CN106877954A (en) * | 2017-03-03 | 2017-06-20 | 山东浪潮商用系统有限公司 | The supervising device and system of a kind of medium wave transmitter |
CN110045652A (en) * | 2019-04-23 | 2019-07-23 | 苏州爱科赛博电源技术有限责任公司 | A kind of electric vehicle controller digital input circuit being compatible with positive and negative control |
CN110045651A (en) * | 2019-04-23 | 2019-07-23 | 苏州爱科赛博电源技术有限责任公司 | Electric automobile controller digital input circuit with adjustable threshold value and compatible positive and negative control |
CN111398794A (en) * | 2020-03-31 | 2020-07-10 | 苏州汇川技术有限公司 | Digital quantity input signal detection circuit and elevator controller |
CN112286085A (en) * | 2019-07-25 | 2021-01-29 | 北京国电智深控制技术有限公司 | Digital quantity output device, output read-back method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6133753A (en) * | 1998-11-25 | 2000-10-17 | Analog Devices, Inc. | Tri-state input detection circuit |
US20040195916A1 (en) * | 2003-04-02 | 2004-10-07 | Katrak Kerfegar K. | Methods and apparatus for producing a three-state single wire control |
CN102866351A (en) * | 2012-09-13 | 2013-01-09 | 十堰科纳汽车电器有限公司 | Switch state detection circuit |
CN203243311U (en) * | 2013-04-28 | 2013-10-16 | 宜宾三江机械有限责任公司 | Switching value detection apparatus based on analog-to-digital converter |
CN203554407U (en) * | 2013-10-31 | 2014-04-16 | 贵阳永青仪电科技有限公司 | Switching value sampling circuit |
CN204228299U (en) * | 2014-10-29 | 2015-03-25 | 上海辰竹仪表有限公司 | One functional safety type HART measuring system |
-
2015
- 2015-05-08 CN CN201510232665.XA patent/CN104914376A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6133753A (en) * | 1998-11-25 | 2000-10-17 | Analog Devices, Inc. | Tri-state input detection circuit |
US20040195916A1 (en) * | 2003-04-02 | 2004-10-07 | Katrak Kerfegar K. | Methods and apparatus for producing a three-state single wire control |
CN102866351A (en) * | 2012-09-13 | 2013-01-09 | 十堰科纳汽车电器有限公司 | Switch state detection circuit |
CN203243311U (en) * | 2013-04-28 | 2013-10-16 | 宜宾三江机械有限责任公司 | Switching value detection apparatus based on analog-to-digital converter |
CN203554407U (en) * | 2013-10-31 | 2014-04-16 | 贵阳永青仪电科技有限公司 | Switching value sampling circuit |
CN204228299U (en) * | 2014-10-29 | 2015-03-25 | 上海辰竹仪表有限公司 | One functional safety type HART measuring system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227174A (en) * | 2015-10-12 | 2016-01-06 | 上海斐讯数据通信技术有限公司 | Support detection system and the electronic equipment of different significant level digital quantity input signal |
CN105227174B (en) * | 2015-10-12 | 2018-03-02 | 上海斐讯数据通信技术有限公司 | Support the detecting system and electronic equipment of different significant level digital quantity input signals |
CN106877954A (en) * | 2017-03-03 | 2017-06-20 | 山东浪潮商用系统有限公司 | The supervising device and system of a kind of medium wave transmitter |
CN110045652A (en) * | 2019-04-23 | 2019-07-23 | 苏州爱科赛博电源技术有限责任公司 | A kind of electric vehicle controller digital input circuit being compatible with positive and negative control |
CN110045651A (en) * | 2019-04-23 | 2019-07-23 | 苏州爱科赛博电源技术有限责任公司 | Electric automobile controller digital input circuit with adjustable threshold value and compatible positive and negative control |
CN112286085A (en) * | 2019-07-25 | 2021-01-29 | 北京国电智深控制技术有限公司 | Digital quantity output device, output read-back method and device |
CN111398794A (en) * | 2020-03-31 | 2020-07-10 | 苏州汇川技术有限公司 | Digital quantity input signal detection circuit and elevator controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104914376A (en) | Digital circuit state detection circuit and digital circuit state detection method | |
CN106227122B (en) | A kind of detection of vehicle mounted failure and early warning system | |
WO2023273267A1 (en) | Fault diagnosis method and apparatus, electronic device, and storage medium | |
CN102087334B (en) | High-reliability digital quantity acquisition system | |
CN107222362A (en) | A kind of vehicle CAN network automatic test platform and its optimization method | |
CN101477166A (en) | Wire harness test control panel and wire harness test control method | |
CN104076814A (en) | Automobile ECU measurement system based on hardware-in-loop simulation | |
US20160217052A1 (en) | Debug circuit, debug request circuit and debug system | |
CN106323654B (en) | A kind of intelligentized door system cyclic test instrument and test method | |
CN101201370A (en) | A Fault Diagnosis System Using Circuit Information Fusion and Its Realization Method | |
CN204333160U (en) | A BMS monitoring and diagnosis system | |
CN206818778U (en) | Control and protection device on intelligent high reliability electric automobile cable | |
CN207851175U (en) | An EMC Free Field Immunity Test Network Communication Monitoring System | |
CN116436833A (en) | Fault diagnosis method, device and equipment in switch port test | |
CN210526306U (en) | High voltage interlock detection circuit and electric vehicle | |
CN111751757A (en) | Fault detection circuit and method for vehicle-mounted indicator lamp | |
CN106772560A (en) | The node type seismic prospecting instrument and control method of real-time monitoring wave detector state | |
CN106226034A (en) | Automatic test method for various LED indicator lamps of server | |
CN206331127U (en) | The node type seismic prospecting instrument of wave detector state is monitored in real time | |
CN106199373A (en) | Electronic equipment intelligent failure diagnosis method and device | |
CN103529353B (en) | Winding displacement detection method and winding displacement detection system | |
CN102809946B (en) | Noise immunity multichannel parameter monitoring system | |
CN210895121U (en) | Automobile diagnosis equipment and system | |
CN105319453B (en) | A kind of environment protection digital Acquisition Instrument test device and system | |
CN216387350U (en) | Weak current interface fault diagnosis device for electric energy meter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150916 |