[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113777987B - Self-adaptive discrete signal acquisition device supporting waveform correction - Google Patents

Self-adaptive discrete signal acquisition device supporting waveform correction Download PDF

Info

Publication number
CN113777987B
CN113777987B CN202111067466.XA CN202111067466A CN113777987B CN 113777987 B CN113777987 B CN 113777987B CN 202111067466 A CN202111067466 A CN 202111067466A CN 113777987 B CN113777987 B CN 113777987B
Authority
CN
China
Prior art keywords
signal
module
opt
ground
input
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.)
Active
Application number
CN202111067466.XA
Other languages
Chinese (zh)
Other versions
CN113777987A (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.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
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 Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN202111067466.XA priority Critical patent/CN113777987B/en
Publication of CN113777987A publication Critical patent/CN113777987A/en
Application granted granted Critical
Publication of CN113777987B publication Critical patent/CN113777987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Dc Digital Transmission (AREA)

Abstract

The invention belongs to the technical field of discrete signal acquisition and discloses a self-adaptive discrete signal acquisition device supporting waveform correction, which consists of 7 modules, namely an acquisition module, an attribute distinguishing module, a time difference calculating module, a data access module, a signal integration and waveform correction module, an analysis module and a nonvolatile storage module. The invention has the self-adaptive acquisition capability of 28V/on, ground/on and 28V/on, supports waveform correction and has higher practical value.

Description

Self-adaptive discrete signal acquisition device supporting waveform correction
Technical Field
The invention belongs to the technical field of discrete signal acquisition, and relates to a self-adaptive discrete signal acquisition device supporting waveform correction.
Background
The 28V/on/off discrete signals are widely used for control or state indication in an aircraft avionics system, the traditional 28V/on/off discrete signals mostly adopt a single optical coupler acquisition mode, namely, the input 28V/on/off/on discrete signals are converted into digital signals through one optical coupler and then sent into a processor or a logic device for instruction or state analysis, and the method has the advantages of simple circuit and low hardware cost, but has the following problems:
1. The self-adaptive acquisition capability of 28V/on signals and ground/on signals is not provided, the signal properties of a transmitting end and an acquisition end are required to be unified in design, namely whether the signals are 28V/on signals or the ground/on signals is clear, and the acquisition errors are caused by inconsistent signal properties.
2. When 28V/on or ground/on pulse signals are acquired, the pulse width of the output end of the optical coupler is changed due to inconsistent on and off time of the optical coupler, and the output waveform cannot be corrected directly because a single optical coupler circuit cannot directly acquire the on and off time difference value, so that an analysis instrument such as an oscilloscope is required to acquire the on and off time and then modify a program or a logic function to correct the waveform.
Disclosure of Invention
Object of the invention
The purpose of the invention is that: aiming at the problems of no self-adaptive acquisition capacity and the like existing in the existing 28V/on and ground/on discrete signal acquisition method, the self-adaptive discrete signal acquisition device supporting waveform correction is provided.
(II) technical scheme
In order to solve the technical problems, the invention provides a self-adaptive discrete signal acquisition device supporting waveform correction, which consists of 7 modules including an acquisition module, an attribute discriminating module, a time difference calculating module, a data access module, a signal integration and waveform correction module, an analyzing module and a nonvolatile storage module, wherein:
The acquisition module consists of an anti-reflection diode, a current limiting resistor, a pull-up resistor, an OPT1 and an OPT2 optical coupler, and converts an input 28V/on/off or 28V/ground signal into two digital signals OPT_O1 and OPT_O2; the positive electrode (ANODE) of the OPT1 optocoupler input end is connected with 28V, and the output signal is OPT_O1; the negative electrode (CATHODE) of the OPT2 optical coupler input end is connected with 28V ground, and the output signal is OPT_O2.
The attribute judging module is used for judging whether an input signal is a 28V/on signal, a ground/on signal or a 28V/ground signal, and the judging method is that if OPT_O2 is 0 and remains unchanged, the OPT_O1 changes, the input signal is the 28V/on signal; if OPT_O1 is 0 and remains unchanged, OPT_O2 changes, the input signal is a ground/on signal; if both OPT_O1 and OPT_O2 are varied, the input signal is a 28V/ground signal.
The time difference calculating module is used for calculating a time difference t diff1 from the falling edge of the OPT_O1 to the rising edge of the OPT_O2 and a time difference t diff2 from the falling edge of the OPT_O2 to the rising edge of the OPT_O1 when the 28V/ground signal is input, and calculating an average value t diff of the two time differences, namely t diff=(tdiff1+tdiff2)/2.
The data access module is used for storing the t diff value calculated by the time difference calculation module into the nonvolatile storage module, and taking out the t diff value from the nonvolatile storage module and sending the value to the signal integration and waveform correction module when needed.
The signal integration and waveform correction module supports signal integration and waveform correction functions, and the module supports two working modes, namely a no-correction mode and a correction mode, when a control instruction or state information represented by an input signal is irrelevant to or insensitive to the pulse width of the signal, the control instruction or state information should be set to work in the no-correction mode, otherwise, the control instruction or state information should be set to work in the correction mode.
In the no-correction mode, the signal integration and waveform correction module realizes the following functions:
(1) When the input signal is 28V/on signal, it outputs OPT_O1 signal;
(2) When the input signal is a ground/on signal, the input signal inverts and outputs the OPT_O2 signal;
(3) When the input signal is a 28V/ground signal, it outputs an opt_o1 signal.
In the correction mode, the signal integration and waveform correction module realizes the following functions:
(1) When the input signal is a 28V/on signal, the edge of the OPT_O1 signal is processed and then output, and the specific processing mode is that the rising edge is unchanged, and the falling edge is delayed by t diff time;
(2) When the input signal is a ground/on signal, the edge of the OPT_O2 signal is processed and then is reversely output, and the specific processing mode is that the rising edge is unchanged, and the falling edge is delayed by t diff time;
(3) When the input signal is a 28V/ground signal, the OPT_O1 and OPT_O2 signals are used for generating an OPT_O signal output, specifically, the generation mode is that the falling edge of the OPT_O signal is constructed when the falling edge occurs in the OPT_O1 signal, and the rising edge of the OPT_O signal is constructed when the falling edge occurs in the OPT_O2 signal.
The analysis module is used for analyzing the signals output by the signal integration and waveform correction module to obtain instructions or state information.
The nonvolatile memory module is used for storing the t diff value.
If the device needs a waveform correction function, at least 1 time of 28V/ground signal input is needed before the system is powered up to use for the first time, and the input signal needs to be continuously switched between 28V and ground for 2 times to ensure that the tdiff value is obtained through calculation.
(III) beneficial effects
The self-adaptive discrete signal acquisition device supporting waveform correction has the self-adaptive acquisition capacity of 28V/on, ground/on and 28V/ground, supports waveform correction, and has higher practical value.
Drawings
Fig. 1 is a block diagram of an adaptive discrete signal acquisition device supporting waveform modification in accordance with the present invention.
Fig. 2 is a circuit diagram of an acquisition module of an adaptive discrete signal acquisition device supporting waveform modification according to the present invention.
Detailed Description
To make the objects, contents and advantages of the present invention more apparent, the following detailed description of the present invention will be given with reference to the accompanying drawings and examples.
Referring to fig. 1 and 2, the adaptive discrete signal acquisition device supporting waveform correction in this embodiment is composed of 7 modules including an acquisition module, an attribute discriminating module, a time difference calculating module, a data access module, a signal integrating and waveform correcting module, an analyzing module and a nonvolatile memory module, wherein:
The acquisition module is composed of two paths of optocouplers of anti-reflection diodes D1 and D2, current limiting resistors R1 and R2, pull-up resistors R3 and R4 and OPT1 and OPT2, and converts input 28V/on/off or 28V/on/off signals into two paths of digital signals OPT_O1 and OPT_O2; the positive electrode (ANODE) of the OPT1 optocoupler input end is connected with 28V, and the output signal is OPT_O1; the negative electrode (CATHODE) of the OPT2 optical coupler input end is connected with 28V ground, and the output signal is OPT_O2.
The attribute discriminating module, the time difference calculating module, the data access module, the signal integrating and waveform correcting module and the analyzing module are realized in the FPGA (Field-Programmable GateArray, field programmable gate array).
The attribute judging module is used for judging whether the input signal S IN is a 28V/on signal, a ground/on signal or a 28V/ground signal, and the judging method is that if the OPT_O2 is 0 and is kept unchanged, the OPT_O1 is changed, the input signal S IN is the 28V/on signal; if OPT_O1 is 0 and remains unchanged, OPT_O2 changes, then input signal S IN is a ground/on signal; if both OPT_O1 and OPT_O2 are varied, then the input signal S IN is a 28V/ground signal.
The time difference calculating module is used for calculating a time difference t diff1 from the falling edge of the OPT_O1 to the rising edge of the OPT_O2 and a time difference t diff2 from the falling edge of the OPT_O2 to the rising edge of the OPT_O1 when the 28V/ground signal is input, and calculating an average value t diff of the two time differences, namely t diff=(tdiff1+tdiff2)/2.
The data access module is used for storing the t diff value calculated by the time difference calculation module into the nonvolatile storage module, and taking out the t diff value from the nonvolatile storage module and sending the value to the signal integration and waveform correction module when needed.
The signal integration and waveform correction module supports signal integration and waveform correction functions, and the module supports two working modes, namely a no-correction mode and a correction mode, when the control instruction or the state information represented by the input signal S IN is irrelevant to or insensitive to the pulse width of the signal, the module should be set to work in the no-correction mode, otherwise, the module should be set to work in the correction mode.
In the no-correction mode, the signal integration and waveform correction module realizes the following functions:
(1) When the input signal S IN is a 28V/on signal, it outputs an OPT_O1 signal;
(2) When the input signal S IN is a ground/on signal, it inverts the OPT_O2 signal to output;
(3) When the input signal S IN is a 28V/ground signal, it outputs an OPT_O1 signal.
In the correction mode, the signal integration and waveform correction module realizes the following functions:
(1) When the input signal S IN is a 28V/on signal, the edge of the OPT_O1 signal is processed and then output, and the specific processing mode is that the rising edge is unchanged, and the falling edge is delayed by t diff time;
(2) When the input signal S IN is a ground/on signal, the edge of the OPT_O2 signal is processed and then is output in a reverse way, wherein the specific processing mode is that the rising edge is unchanged, and the falling edge is delayed by t diff time;
(3) When the input signal S IN is a 28V/ground signal, it generates an opt_o signal output by using the opt_o1 and opt_o2 signals, specifically by constructing a falling edge of the opt_o signal when the opt_o1 signal has a falling edge, and constructing a rising edge of the opt_o signal when the opt_o2 signal has a falling edge.
The analysis signal is used for analyzing the signal output by the signal integration and waveform correction module to obtain instructions or state information.
If the device needs a waveform correction function, at least 1 time of 28V/ground signal input is needed before the system is powered up to use for the first time, and the input signal needs to be continuously switched between 28V and ground for 2 times to ensure that the t diff value is obtained through calculation.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that modifications and variations could be made by those skilled in the art without departing from the technical principles of the present invention, and such modifications and variations should also be regarded as being within the scope of the invention.

Claims (1)

1. The self-adaptive discrete signal acquisition device supporting waveform correction is characterized by comprising an acquisition module, an attribute discrimination module, a time difference calculation module, a data access module, a signal integration and waveform correction module, an analysis module and a nonvolatile storage module; the acquisition module converts an input signal into two paths of digital signals and outputs the two paths of digital signals, the two paths of digital signals are respectively transmitted to the signal integration and waveform correction module, the attribute discrimination module and the time difference calculation module, the attribute discrimination module is used for judging the type of the input signal, the time difference calculation module calculates the average value of the time difference from the falling edge to the rising edge of the two paths of digital signals, the data access module stores the average value calculated by the time difference calculation module into the nonvolatile storage module, the average value is taken out from the nonvolatile storage module and transmitted to the signal integration and waveform correction module when needed, the signal integration and waveform correction module is connected with the attribute discrimination module, the data access module and the analysis module, the signal integration and waveform correction module performs signal integration and waveform correction according to different input signal types, and the integrated and corrected signal is analyzed by the analysis module to obtain instructions or state information;
The input signal S IN is a 28V/on signal, a ground/on signal or a 28V/ground signal;
The acquisition module comprises an anti-reflection diode D1 and an anti-reflection diode D2, a current limiting resistor R1 and a current limiting resistor R2, a pull-up resistor R3, a pull-up resistor R4 and an optocoupler OPT1 and optocoupler OPT2, wherein the positive electrode of the anti-reflection diode D1 and the positive electrode of the anti-reflection diode D2 are respectively connected with an input signal S IN, the negative electrode of the anti-reflection diode D1 is connected with one end of the current limiting resistor R1, the other end of the current limiting resistor R1 is connected with the input negative end of the optocoupler OPT1, the negative electrode of the current limiting resistor R2 is connected with one end of the current limiting resistor R2, the input positive end of the optocoupler OPT1 is connected with 28V, the input negative end of the optocoupler OPT2 is connected with 28V ground GND, the emitter of the output ends of the optocoupler OPT1 and the optocoupler OPT2 are respectively connected with one end of the pull-up resistor R3 and output a digital signal OPT_O1, the output end of the optocoupler OPT1 is connected with the output end of the digital signal OPT 3 and the other end of the optocoupler OPT 3 is connected with one end of the digital signal OPT 2; the acquisition module converts the input 28V/on, ground/on or 28V/ground signals into two paths of digital signals OPT_O1 and OPT_O2;
the attribute judging module, the time difference calculating module, the data access module, the signal integration and waveform correction module and the analysis module are realized in the FPGA;
The attribute judging module judges that the input signal S IN is a 28V/on signal, a ground/on signal or a 28V/ground signal;
the judging method of the attribute judging module comprises the following steps: if OPT_O2 is 0 and remains unchanged, OPT_O1 changes, then input signal S IN is a 28V/on signal; if OPT_O1 is 0 and remains unchanged, OPT_O2 changes, then input signal S IN is a ground/on signal; if both OPT_O1 and OPT_O2 are varied, then the input signal S IN is a 28V/ground signal;
Upon input of a 28V/ground signal, the time difference calculation module calculates a time difference t diff1 from the falling edge of opt_o1 to the rising edge of opt_o2 and a time difference t diff2 from the falling edge of opt_o2 to the rising edge of opt_o1, and calculates an average value t diff of both time differences, i.e., t diff=(tdiff1+tdiff2)/2;
The signal integration and waveform correction module supports two working modes, including a no-correction mode and a correction mode, and works in the no-correction mode when a control instruction or state information represented by an input signal S IN is irrelevant to or insensitive to the pulse width of the signal, or works in the correction mode otherwise;
In the no-correction mode, the signal integration and waveform correction module realizes the following functions:
(1) When the input signal S IN is a 28V/on signal, it outputs an OPT_O1 signal;
(2) When the input signal S IN is a ground/on signal, it inverts the OPT_O2 signal to output;
(3) When the input signal S IN is a 28V/ground signal, it outputs an OPT_O1 signal;
In the correction mode, the signal integration and waveform correction module realizes the following functions:
(1) When the input signal S IN is a 28V/on signal, the edge of the OPT_O1 signal is processed and then output, the processing mode is that the rising edge is unchanged, and the falling edge is delayed for t diff time;
(2) When the input signal S IN is a ground/on signal, the edge of the OPT_O2 signal is processed and then is output in a reverse way, the processing mode is that the rising edge is unchanged, and the falling edge is delayed by t diff time;
(3) When the input signal S IN is a 28V/ground signal, it generates an opt_o signal output by using the opt_o1 and opt_o2 signals in the following manner: the falling edge of the opt_o1 signal is constructed when it occurs, and the rising edge of the opt_o signal is constructed when it occurs.
CN202111067466.XA 2021-09-13 2021-09-13 Self-adaptive discrete signal acquisition device supporting waveform correction Active CN113777987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111067466.XA CN113777987B (en) 2021-09-13 2021-09-13 Self-adaptive discrete signal acquisition device supporting waveform correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111067466.XA CN113777987B (en) 2021-09-13 2021-09-13 Self-adaptive discrete signal acquisition device supporting waveform correction

Publications (2)

Publication Number Publication Date
CN113777987A CN113777987A (en) 2021-12-10
CN113777987B true CN113777987B (en) 2024-08-30

Family

ID=78842961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111067466.XA Active CN113777987B (en) 2021-09-13 2021-09-13 Self-adaptive discrete signal acquisition device supporting waveform correction

Country Status (1)

Country Link
CN (1) CN113777987B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103913631A (en) * 2014-04-30 2014-07-09 乐山一拉得电网自动化有限公司 Grid frequency measuring method and system for digital display meter
CN104914393A (en) * 2014-12-30 2015-09-16 北京无线电计量测试研究所 Apparatus and method for comb spectrum generator phase spectrum calibration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079246A (en) * 2008-09-01 2010-04-08 Furukawa Electric Co Ltd:The Optical waveform regenerator and optical waveform regenerating method
JP2015054009A (en) * 2013-09-11 2015-03-23 セイコーエプソン株式会社 Control device
CN105974839A (en) * 2016-06-08 2016-09-28 中国电子科技集团公司第三十六研究所 AC signal converter for helicopter rotor rotation speed indicating system and AC signal converting method thereof
CN111901743A (en) * 2020-04-01 2020-11-06 中兴通讯股份有限公司 Method and device for determining arrival time, signal receiving equipment and storage medium
CN112202346A (en) * 2020-09-28 2021-01-08 天津津航计算技术研究所 Enhanced Z-source topological circuit based on improved current correction method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103913631A (en) * 2014-04-30 2014-07-09 乐山一拉得电网自动化有限公司 Grid frequency measuring method and system for digital display meter
CN104914393A (en) * 2014-12-30 2015-09-16 北京无线电计量测试研究所 Apparatus and method for comb spectrum generator phase spectrum calibration

Also Published As

Publication number Publication date
CN113777987A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN109075742B (en) Baud rate calibration circuit and serial port chip
CN103345192B (en) Intelligent clock synchronous-control circuit used for photoelectric tracker
US5479420A (en) Clock fault monitoring circuit
CN111314018B (en) Baud rate self-adaptive adjustment processing system and method and information data processing terminal
KR920005169B1 (en) A system for remote control of a controlled system
CN113777987B (en) Self-adaptive discrete signal acquisition device supporting waveform correction
US6008672A (en) Input signal reading circuit having a small delay and a high fidelity
US20060140284A1 (en) Single conductor bidirectional communication link
GB1119017A (en) An automatically adjustable signal clipping circuit
CN110073311A (en) Clock gating, which enables, to be generated
US6570934B1 (en) Single-end-zero receiver circuit
JPH05276171A (en) Communication control equipment
US11953629B2 (en) Light sensor and ranging method
US8189691B2 (en) Apparatus for receiving differential signal using a differential amplifier
CN103793287A (en) Method and system for capturing analog signal cycles
CN217113139U (en) Chip clock source detection circuit and chip clock circuit based on same
KR900000689B1 (en) Optical detector
CN211740116U (en) Laser position detection device
CN102332975A (en) Method and device for self-adaptively sampling interface
CN213579179U (en) Intelligent vehicle width and height detector based on pulse ranging
CN217157720U (en) Memory for monitoring data
CN209982710U (en) Signal transmission circuit and electronic equipment
CN211478450U (en) Current type discrete quantity acquisition circuit capable of setting threshold level
CN220732755U (en) Low-frequency signal super-amplitude counting circuit
CN217693283U (en) On-chip power-on reset circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant