Configurable analog input and output control circuit and control method thereof

By designing a configurable analog input and output control circuit and using the DSP module to configure the circuit, the complex design and inconvenient maintenance of analog interfaces in aeronautical electromechanical systems are solved, and flexible adaptation and cost reduction are achieved.

CN119853694APending Publication Date: 2025-04-18XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411810221.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

There are many types of analog interface designs in aeronautical electromechanical systems and uneven characteristics, which lead to inconvenient maintenance and brings huge burdens to the customized design of different aircraft models.

Method used

A configurable analog input and output control circuit is designed, including a CPU module, a DSP module, an analog output circuit and an analog acquisition circuit. By analyzing external device configuration files, the DSP module configures and controls the circuit function to realize flexible input and output of analog signals.

Benefits of technology

It realizes flexible adaptation of analog interfaces, reduces equipment development costs, improves data reliability, and promotes the small, light and universalization of aircraft systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119853694A_ABST
    Figure CN119853694A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of computers, relates to a data input and output circuit design technology, and discloses a configurable analog input and output control circuit and a control method thereof.The circuit comprises a CPU module, a DSP module, an analog output circuit and an analog acquisition circuit, the DSP module is connected with the analog quantity output circuit and the analog quantity acquisition circuit, and the analog quantity output circuit and the analog quantity acquisition circuit are connected with a plurality of external devices in parallel. And the DSP module configures the analog quantity output circuit and / or the analog quantity acquisition circuit according to the analysis file output by the CPU module, and outputs or acquires analog quantity signals to all external equipment according to the configuration. According to the invention, the input and output capability, the output monitoring capability and the overcurrent protection capability of analog quantity are integrated, the voltage range can be flexibly configured according to the use environment, the nonlinear error calibration function is realized, and the device can be applied to various complex use conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computers, relates to data input and output circuit design technology, and specifically designs a configurable analog input and output control circuit and a control method thereof. Background Art

[0002] Aviation electromechanical systems involve input and output control of various interface signals, among which physical quantity information such as temperature, pressure, and oil level are all in the form of analog signals. Since different physical quantity information has different analog ranges, and different aircraft models have different requirements for the input and output types and quantities of analog interfaces, the design of analog interfaces in aviation electromechanical systems is diverse and has uneven characteristics, which brings great inconvenience to later maintenance. Furthermore, the customized design of analog interfaces for aviation electromechanical systems of different models also brings a huge burden to the aircraft system.

[0003] Therefore, it is urgent to design an analog interface control circuit with integrated functions that can flexibly adapt to different usage environments according to user needs. Summary of the invention

[0004] In order to solve the technical problems that the existing analog interfaces have complex use environments, a wide variety of designs, and are difficult to use for analog input and output control of various models, the present invention discloses a configurable analog input and output control circuit, the control circuit comprising a CPU module, a DSP module, an analog output circuit and an analog acquisition circuit, the CPU module is connected to the DSP module, the DSP module is connected to the analog output circuit and the analog acquisition circuit, and a plurality of external devices are connected in parallel to the analog output circuit and the analog acquisition circuit.

[0005] Among them, the CPU module parses the external device configuration file to obtain a parsed file, and the DSP module configures the analog output circuit and / or the analog acquisition circuit according to the parsed file, and controls the analog output circuit to output an analog signal to the external device connected thereto and controls the analog acquisition circuit to acquire the analog signal of the external device connected thereto according to the configuration.

[0006] Furthermore, the CPU module is a PowerPC architecture processor, and the CPU module parses the external device configuration file output by the host computer to obtain the parsed file, and outputs the parsed file to the DSP module, wherein the parsed file includes the port number, function and related information of each external device, the function includes input function and output function, and the related information includes the acquisition refresh frequency of the input function and the output refresh frequency of the output function.

[0007] Further, the analog output circuit includes a DA output control module, an output driver follower array and an output enable switch, the input end and the control end of the DA output control module are connected to the DSP module, and the output end is connected to the output driver follower array, and the output driver follower array includes a plurality of driver followers;

[0008] The output enable switch comprises a plurality of switches, the control end of each switch is connected to the DSP module, the signal input end is connected to one of the drive followers, and the signal output end is connected to one of the external devices;

[0009] The DSP module configures the on and off of each switch according to the parsed file, and the DA output control module generates an analog signal according to the analog output command output by the DSP module. The analog signal is output to the external device in turn through the drive follower and the switch.

[0010] In an improved embodiment of the above analog output circuit, the analog output circuit further includes an overcurrent monitoring circuit, the overcurrent monitoring circuit includes an overcurrent monitoring unit and an overcurrent sampling resistor, an overcurrent sampling resistor is provided between each of the switches and the external device connected thereto, and both ends of the overcurrent sampling resistor are connected to the input end of the overcurrent monitoring unit;

[0011] The output end of the overcurrent monitoring unit is connected to the DSP module via the AD module of the analog quantity acquisition circuit, and the control end is connected to the DSP module.

[0012] In an optional embodiment of the overcurrent monitoring unit in the above-mentioned analog output circuit, the overcurrent monitoring unit includes an overcurrent monitoring multiplexer and an instrument amplifier, the overcurrent monitoring multiplexer includes two selection switches, one end of the overcurrent sampling resistor is connected to one of the selection switches, and the other end is connected to the other selection switch, the output ends of the two selection switches are respectively connected to the positive and negative input ends of the instrument amplifier, and the output end of the instrument amplifier is connected to the AD module.

[0013] Furthermore, the analog quantity acquisition circuit includes an acquisition multiplexer, an amplifier component and an AD module, the input end of the acquisition multiplexer is connected to the external device, the control end is connected to the DSP module, the output end is connected to the input end of the amplifier component, the output end of the amplifier component is connected to the input end of the AD module, the output end of the AD module is connected to the DSP module, and the control end of the amplifier component is connected to the DSP module.

[0014] In an improved embodiment of the above-mentioned analog quantity acquisition circuit, the analog quantity acquisition circuit also includes an input preprocessing unit located between the acquisition multiplexer and the external device, and the input preprocessing unit is used to filter and overvoltage clamp the analog quantity signal collected from the external device.

[0015] In an optional embodiment of the amplifier component in the above-mentioned analog quantity acquisition circuit, the amplifier component includes an amplifier array and an amplifier selector, the amplifier array includes a plurality of operational amplifiers with different amplification factors, the input end of each operational amplifier is connected to the output end of the acquisition multiplexer, the output end is connected to the input end of the amplifier selector, and the output end of the amplifier selector is connected to the input end of the AD module.

[0016] In an improved embodiment of the above-mentioned configurable analog input and output control circuit of the present invention, the control circuit further comprises a reference source array and a reference source gating switch, the output end of the reference source array is connected to the input end of the reference source gating switch, and the output end of the reference source gating switch is respectively connected to the analog output circuit and the analog acquisition circuit;

[0017] The parsing file also includes the input range of the input function and the output range of the output function. The reference source array and the reference source selection switch configure the analog quantity range output by the analog quantity output circuit according to the output range, and configure the analog quantity signal range collected by the analog quantity acquisition circuit according to the input range.

[0018] An embodiment of the present invention further provides a configurable analog input and output control circuit control method, the control method is used to control the input or output of an analog signal of an external device through the configurable analog input and output control circuit described in the above embodiment, and includes the following steps:

[0019] S101, the CPU module parses the external device configuration file output by the host computer to obtain a parsed file, wherein the parsed file includes the port number, function and related information of each external device, wherein the function includes an input function and an output function, and the related information includes an input range and an acquisition refresh frequency of the input function, and an output range and an output refresh frequency of the output function;

[0020] S102, the DSP module configures an on-off control instruction, an analog output control instruction, and an analog acquisition control instruction for each of the external devices according to the parsing file output by the CPU module;

[0021] S1031, according to the on-off control instruction and the analog output control instruction, use the analog output circuit to perform on-off operation and analog output operation, and output analog signals to the external device, or,

[0022] S1032: According to the analog quantity acquisition control instruction, use the analog quantity acquisition circuit to perform an analog quantity acquisition operation to acquire the analog quantity signal of the external device.

[0023] Compared with the prior art, the beneficial effects achieved by at least one of the above technical solutions adopted in the embodiments of this specification include at least the following: The analog input and output control circuit designed by the present invention is based on the architecture design of PPC (CPU) + DSP plus driver interface, and the PPC realizes the control and logic timing of the system, and realizes complex data processing and calculation. The DSP module realizes the configuration of the circuit function, completes the collection, transmission and integration of the underlying data, and synchronously completes the fault monitoring of the driver layer circuit. Through the analysis of the configuration file by PPC, the DSP module is used to control the selection of the input and output functions of the circuit, and the flexible switching of the analog input / output is realized. According to the different parameters of the configuration file, the input and output of the working voltage in different ranges can be realized, which improves the hardware adaptability of the circuit and greatly reduces the equipment development cost. At the same time, the data monitoring, BIT test and nonlinear calibration of the circuit are completed, and the reliability of the data is improved, which is of great significance to the small, light and universal improvement of the entire aircraft system. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic diagram of a configurable analog input and output control circuit disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0027] The following describes the implementation methods of the present application through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and the features of the embodiments can be combined with each other in the absence of conflict. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.

[0028] The embodiment of the present invention discloses a configurable analog input and output control circuit. The control circuit of the present invention can be applied to various complex use conditions and can simultaneously configure and control the analog signal input and output of all external devices connected thereto. Figure 1 As shown, the control circuit includes a CPU module, a DSP module, an analog output circuit and an analog acquisition circuit. The CPU module is connected to the DSP module, and the DSP module is connected to the analog output circuit and the analog acquisition circuit. Multiple external devices are connected in parallel to the analog output circuit and the analog acquisition circuit. The above-mentioned CPU module, DSP module, analog output circuit and analog acquisition circuit have a common ground input.

[0029] Among them, the CPU module parses the external device configuration file to obtain a parsed file, and the DSP module configures the analog output circuit and / or the analog acquisition circuit according to the parsed file, and controls the analog output circuit to output an analog signal to the external device connected thereto and controls the analog acquisition circuit to acquire the analog signal of the external device connected thereto according to the configuration.

[0030] In the analog input and output control circuit of the present invention, the DSP module receives the analysis results of the external device configuration file from the CPU module, and completes the functional configuration, control and data reception and transmission of the analog output circuit and the analog acquisition circuit according to the configuration analysis results, and at the same time transmits the collected analog signal back to the CPU module through the DSP module.

[0031] Furthermore, the CPU module is a PowerPC architecture processor, the CPU module is connected to the DSP module via an SPI serial bus, and is connected to the host computer via an ARI NC 664 network. The CPU module parses the external device configuration file output by the host computer to obtain the parsed file, and outputs the parsed file to the DSP module, wherein the parsed file includes the port number, function and related information of each external device, the function includes an input function and an output function, and the related information includes the acquisition refresh frequency of the input function and the output refresh frequency of the output function. The external device configuration file can be a data file in xml format, and the information of each external device can be obtained by parsing it.

[0032] Further, see Figure 1 As shown, the analog output circuit includes a DA output control module, an output driver follower array and an output enable switch. Among them, the input terminal DI N and the control terminal Contro l of the DA output control module are both connected to the DSP module, and the output terminal (Vout 1~Vout N) is connected to the output driver follower array. The module is powered by a two-terminal voltage supply, and the two power supply voltages are symmetrical in positive and negative directions. Its reference voltage input terminal Vref+ is consistent with the positive voltage of the power supply input terminal, and the reference voltage input terminal Vref- is consistent with the negative voltage of the power supply input terminal. The control terminal Contro l includes a chip select enable control signal, an output channel selection signal and a bus control signal. The chip select enable control signal and the output channel selection signal are discrete input signals, and the bus control signal is an SPI serial bus signal.

[0033] The output driver follower array includes a plurality of driver followers, each driver follower is a single-ended voltage input follower circuit composed of an operational amplifier, and the number of driver followers is consistent with the number N of analog output ports of the DA output control module, which has the function of isolating and enhancing the driving force. The output enable switch includes a plurality of switches, the control end of each switch is connected to the DSP module, the signal input end is connected to one of the driver followers, and the signal output end is connected to one of the external devices. The DSP module can control the on and off of the switch connected to each external device according to the parsed file. When the switch is closed, it means that the analog signal can be output to the external device, and when the switch is open, the analog signal cannot be output to the external device.

[0034] The DSP module configures the on and off of each switch according to the parsed file, and the DA output control module generates an analog signal according to the analog output command output by the DSP module. The analog signal is output to the external device in turn through the drive follower and the switch.

[0035] In an improved embodiment of the above analog output circuit, see Figure 1 As shown, the analog output circuit also includes an overcurrent monitoring circuit, which includes an overcurrent monitoring unit and an overcurrent sampling resistor. An overcurrent sampling resistor is provided between each switch and the external device connected thereto, and both ends of the overcurrent sampling resistor are connected to the input end of the overcurrent monitoring unit; the output end of the overcurrent monitoring unit is connected to the DSP module via the AD module of the analog acquisition circuit, and the control end is connected to the DSP module.

[0036] Specifically, the sampling voltage at both ends of the overcurrent sampling resistor is sent to the input end of the overcurrent monitoring unit. The overcurrent sampling resistor must use a high-precision resistor with an accuracy error of not less than 5‰, and the overcurrent sampling resistor's withstand power consumption needs to be higher than the rated working power consumption Pe of the analog output interface, and the withstand voltage needs to be greater than the maximum output voltage Uomax. The selection of the resistance value R follows the following principles: R<((U ADIN *0.6) / K AD620 ) / Ie, where Ie is the rated operating current of the analog output interface, UADIN is the upper limit of the positive analog voltage input of the AD module, and is the amplification factor of the overcurrent control unit.

[0037] In an optional embodiment of the overcurrent monitoring unit in the above analog output circuit, see Figure 1 As shown, the overcurrent monitoring unit includes an overcurrent monitoring multiplexer and an instrument amplifier. The overcurrent monitoring multiplexer includes two selection switches. One end of the overcurrent sampling resistor is connected to one of the selection switches, and the other end is connected to the other selection switch. The output ends D0 and D1 of the two selection switches are respectively connected to the positive and negative input ends of the instrument amplifier, and the output end of the instrument amplifier is connected to the first analog signal Vin1 of the AD module.

[0038] Specifically, the analog signal input terminals of the same number of the two strobe switches are connected to the two sides of the same overcurrent sampling resistor, the strobe control input ports S0 and P0 of the two strobe switches share the same discrete control input signal, and the strobe control input ports S1 and P1 share another discrete control input signal. The outputs of the two strobe switches are connected to the positive and negative input terminals of the instrumentation amplifier, respectively. The amplification factor setting principle of the instrumentation amplifier KAD620 should be the same as the selection principle of the overcurrent sampling resistor R.

[0039] Further, see Figure 1As shown, the analog quantity acquisition circuit includes an acquisition multiplexer, an amplifier component and an AD module. The input end of the acquisition multiplexer is connected to the external device, the control end is connected to the DSP module, the output end is connected to the input end of the amplifier component, the output end of the amplifier component is connected to the input end of the AD module, the output end of the AD module is connected to the DSP module, and the control end of the amplifier component is connected to the DSP module.

[0040] Specifically, the digital output terminal Vout of the AD module is connected to the DSP module, the analog input terminal Vin2 is connected to the output terminal of the amplifier component, the analog input terminal Vin1 is connected to the analog output terminal of the overcurrent monitoring unit, and the control input terminal Controll is connected to the DSP module to convert the analog signal into a digital signal and transmit it to the DSP module for processing. The main function of the AD module is to convert the received analog signal into a digital signal and output it to the DSP module. The output mode of the AD module can be configured as parallel output or serial output through the control input signal. The control input signal includes a conversion start signal, an SPI serial communication bus signal, a conversion end indication signal, and an input chip select enable signal. The power supply of the AD uses a ±10V voltage.

[0041] Each analog signal input terminal (D1, D2, ..., DN+1) of the acquisition multiplexer is connected to an external device respectively, and the control input terminal (EN, S0-S3) is connected to the DSP module. The acquisition multiplexer is used to switch the input selection channel one by one to complete the traversal acquisition of analog input signals of all external devices. Preferably, the number of analog input terminals on the acquisition multiplexer should be no less than N+3, where N is the number of analog output interfaces, that is, the number of external devices. The first N interfaces are used to connect to external devices, and the remaining three terminals are respectively connected to the ±10Vref reference source pair and the GND signal for the nonlinear data calibration function of analog acquisition. The output terminal Vout is connected to the amplifier component, wherein the control input terminal includes a chip selection control input signal and an enable input signal.

[0042] In an improved embodiment of the above analog quantity acquisition circuit, see Figure 1 As shown, the analog quantity acquisition circuit further includes an input preprocessing unit located between the acquisition multiplexer and the external device, and the input preprocessing unit is used to filter and overvoltage clamp the acquired analog quantity signal of the external device.

[0043] Specifically, the analog input signal end of the input preprocessing unit is connected to an external device, and the output end is connected to the analog signal input end of the acquisition multiplexer, for filtering and overvoltage clamping the collected analog input signal. The input preprocessing unit may include multiple branches, each branch includes a first-order RC filter circuit and an overvoltage clamping diode, wherein in one branch, the input end of the first-order RC filter circuit is connected to an external device, and the output end is connected to the overvoltage clamping diode and an analog input end of the multiplexer, the clamping voltage of the overvoltage clamping diode is set to ±15V, and the design of the RC filter should obey the following principle: f = 1 / (2πRC), where f is the cutoff frequency.

[0044] In an optional embodiment of the amplifier component in the above analog quantity acquisition circuit, see Figure 1 As shown, the amplifier component includes an amplifier array and an amplifier selector. The amplifier array includes a plurality of operational amplifiers with different amplification factors. The input end of each operational amplifier is connected to the output end of the acquisition multiplexer, and the output end is connected to the input end of the amplifier selector. The output end of the amplifier selector is connected to the input end of the AD module.

[0045] For more details, see Figure 1 As shown, the amplifier assembly includes an amplifier array and an amplifier selector, wherein the amplifier array is composed of a number of operational amplifiers, and a reasonable amplification factor is set according to the actual acquisition voltage range for gating use in different environments. The input end of each operational amplifier is connected to the output end Vout of the acquisition multiplexer, and the amplifier array is used to complete the amplification of voltages of different amplitudes. The amplification factor of the amplifier array must include 0.8 times amplification and 1 times amplification circuits, and the nonlinear calibration function of the circuit is used. There are multiple analog signal input terminals (D1, D2, ..., DN) on the amplifier selector, and the control terminal (EN, S0-S3) of the amplifier selector is connected to the DSP module. Each analog signal input terminal is connected to the output terminal of an operational amplifier respectively. The amplifier selector is used to select the output result of a certain operational amplifier in the amplifier array based on the set analog range.

[0046] In an improved embodiment of the above configurable analog input and output control circuit of the present invention, see Figure 1 As shown, the control circuit further includes a reference source array and a reference source gating switch, the output end of the reference source array is connected to the input end of the reference source gating switch, and the output end of the reference source gating switch is respectively connected to the analog output circuit and the analog acquisition circuit;

[0047] The parsing file also includes the input range of the input function and the output range of the output function. The reference source array and the reference source selection switch configure the analog range output by the analog output circuit according to the output range, and configure the analog signal range collected by the analog acquisition circuit according to the input range. Through the provision of the reference source array and the reference source selection switch, the voltage range of analog input and output can be flexibly configured according to the external device configuration file, and the nonlinear error calibration of the collected analog input signal can be performed.

[0048] Specifically, the reference source selection switch is composed of two groups of four-to-one switches. The output terminals DO and D1 of the two groups of switches are respectively connected to the two reference voltage input terminals Vref (+, -) of the DA output control module. Through the control instructions of the DSP module, different reference sources are selected for use by the DA output control module to adjust the voltage output range of the analog output signal. At the same time, its output terminal is also connected to the first analog signal input terminal D1 and the analog signal input terminal DN+2 of the AD module and the acquisition multiplexer for use in the BIT data calibration function.

[0049] The reference source array is used to output different reference references. It is designed in pairs in the form of ±5V, ±10V, and ±15V reference pairs. The access rule of the reference source array is: the positive and negative references of each reference pair are respectively connected to the analog input ports of the same serial number of the two sets of switches, and all positive voltage reference sources need to be connected to the analog input terminals of the same set of switches, and all negative voltage reference sources need to be connected to the analog input terminals of the other set of switches. The selection control input ports S0 and P0 of the two sets of switches share the same discrete control input signal, and S1 and P1 share another discrete control input signal. The switch output terminal of the positive voltage reference is connected to the Vref+ of the DA output control module, and the switch output terminal of the negative voltage reference is connected to the Vref- of the DA output control module.

[0050] The analog input and output control circuit designed by the present invention is based on the architecture design of PPC (CPU) + DSP plus drive interface. The PPC realizes the control and logic timing of the system, and realizes complex data processing and calculation. The DSP module realizes the configuration of the circuit function, completes the collection, transmission and integration of the bottom layer data, and synchronously completes the fault monitoring of the drive layer circuit. Through the analysis of the configuration file by PPC, the DSP module is used to control the selection of the input and output functions of the circuit, and the flexible switching of the analog input / output is realized. The input and output of the working voltage in different ranges can be realized according to the different parameters of the configuration file, which improves the hardware adaptability of the circuit and greatly reduces the equipment development cost. At the same time, the data monitoring, BIT test and nonlinear calibration of the circuit are completed, the reliability of the data is improved, which is of great significance to the small, light and universal improvement of the entire aircraft system.

[0051] Based on the same inventive concept, an embodiment of the present invention further provides an analog input / output control circuit control method, which is used to control the input or output of an analog signal of an external device through the configurable analog input / output control circuit described in the above embodiment, and the control method comprises the following steps:

[0052] S101, the CPU module parses the external device configuration file output by the host computer to obtain a parsed file, wherein the parsed file includes the port number, function and related information of each external device, wherein the function includes an input function and an output function, and the related information includes an input range and an acquisition refresh frequency of the input function, and an output range and an output refresh frequency of the output function;

[0053] S102, the DSP module configures an on-off control instruction, an analog output control instruction, and an analog acquisition control instruction for each of the external devices according to the parsing file output by the CPU module;

[0054] S1031, according to the on-off control instruction and the analog output control instruction, use the analog output circuit to perform on-off operation and analog output operation, and output analog signals to the external device, or,

[0055] S1032: According to the analog quantity acquisition control instruction, use the analog quantity acquisition circuit to perform an analog quantity acquisition operation to acquire the analog quantity signal of the external device.

[0056] In an optional embodiment of the above step S1031, the realization of the analog output function includes the following steps:

[0057] Step 1: The DSP module generates a closing control instruction and the analog output control instruction according to the parsing file, and controls the closing of the switch connected to the external device in the output enable switch according to the closing control instruction. The closed switch can realize the output of the analog signal;

[0058] Step 2: The DSP module controls the reference source selection switch according to the parsed file, selects the corresponding reference source pair to be output to the reference voltage input terminal of the DA output control module, and generates an analog signal to be output;

[0059] Step 3: Start DA conversion and output enable according to the analog output control instruction, and control the DA output control module to refresh the output analog signal according to the output refresh rate of the parsed file.

[0060] In an optional embodiment of the above step S1032, the implementation of the analog quantity acquisition function includes the following steps:

[0061] Step 1: The DSP module generates a disconnection control instruction and the analog output control instruction according to the parsed file, and controls the disconnection of the switch connected to the external device in the output enable switch according to the disconnection control instruction, so that the disconnected switch cannot output the analog signal;

[0062] Step 2: The DSP module controls the corresponding amplification factor of the amplifier selector according to the parsing file to ensure that the input voltage meets the analog input range of the AD module after being processed by the amplifier array;

[0063] Step 3: The DSP module configures the enable and working mode of Vin2 of the AD module according to the parsed file, and enables the AD module to start the AD enable and turn on the AD conversion function;

[0064] Step 4: Under the control of the DSP module, the amplifier selector switches the multi-channel selection channels one by one according to the acquisition frequency in the parsing file to complete the traversal acquisition of the analog input signals of all external devices.

[0065] In an optional embodiment, the method further includes performing nonlinear error calibration on the collected analog input signal of the external device, specifically, including the following steps:

[0066] Step 1: The DSP module controls the output enable switch to be disconnected;

[0067] Step 2: The DSP module controls the switch of the amplifier selector to select the circuit with 0.8 times amplification in the amplifier array;

[0068] Step 3: The DSP module configures the input terminal Vin2 of the AD module to enable and the AD working mode;

[0069] Step 4: The DSP module switches the gate switch of the AD module to -10Vref;

[0070] Step 5: The AD module starts AD enable and turns on the AD conversion function;

[0071] Step 6: After the DSP module collects -10Vref, it calculates the input voltage before the signal passes through the amplifier circuit and saves and records the negative full bias voltage V -max ;

[0072] Step 7: The DSP module switches the AD module's enable switch to +10Vref;

[0073] Step 8: After the DSP module collects +10Vref, it calculates the input voltage before the signal passes through the amplifier circuit and saves and records the negative full bias voltage V +max ;

[0074] Step 9: The DSP module controls the switch of the amplifier selector to select the circuit with 1x amplification in the amplifier array;

[0075] Step 10: The DSP module switches the switch of the acquisition multiplexer to GND;

[0076] Step 11: After the DSP module collects GND, it calculates the input voltage before the signal passes through the amplification circuit and saves and records the zero voltage VGND;

[0077] Step 12: The analog quantity acquisition correction function of the DSP module satisfies the following calculation rules:

[0078] Among them, V Init is the actual input analog voltage value, V final Collect the original data for DSP.

[0079] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.

[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A configurable analog input and output control circuit, characterized in that: The control circuit includes a CPU module, a DSP module, an analog output circuit and an analog acquisition circuit, wherein the CPU module is connected to the DSP module, the DSP module is connected to the analog output circuit and the analog acquisition circuit, and a plurality of external devices are connected in parallel to the analog output circuit and the analog acquisition circuit; The CPU module parses the external device configuration file to obtain a parsed file, and the DSP module configures the analog output circuit and / or the analog acquisition circuit according to the parsed file, and controls the analog output circuit to output an analog signal to the external device connected thereto and controls the analog acquisition circuit to acquire the analog signal of the external device connected thereto according to the configuration.

2. The configurable analog input and output control circuit according to claim 1, characterized in that: The CPU module is a PowerPC architecture processor. The CPU module parses the external device configuration file output by the host computer to obtain the parsed file, and outputs the parsed file to the DSP module, wherein the parsed file includes the port number, function and related information of each external device, the function includes input function and output function, and the related information includes the acquisition refresh frequency of the input function and the output refresh frequency of the output function.

3. The configurable analog input and output control circuit according to claim 1, characterized in that: The analog output circuit includes a DA output control module, an output driver follower array and an output enable switch, the input end and the control end of the DA output control module are connected to the DSP module, and the output end is connected to the output driver follower array, and the output driver follower array includes a plurality of driver followers; The output enable switch comprises a plurality of switches, the control end of each switch is connected to the DSP module, the signal input end is connected to one of the drive followers, and the signal output end is connected to one of the external devices; The DSP module configures the on and off of each switch according to the parsed file, and the DA output control module generates an analog signal according to the analog output command output by the DSP module. The analog signal is output to the external device in turn through the drive follower and the switch.

4. The configurable analog input and output control circuit according to claim 3, characterized in that: The analog output circuit also includes an overcurrent monitoring circuit, which includes an overcurrent monitoring unit and an overcurrent sampling resistor. An overcurrent sampling resistor is provided between each switch and the external device connected thereto, and both ends of the overcurrent sampling resistor are connected to the input end of the overcurrent monitoring unit. The output end of the overcurrent monitoring unit is connected to the DSP module via the AD module of the analog quantity acquisition circuit, and the control end is connected to the DSP module.

5. The configurable analog input and output control circuit according to claim 4, characterized in that: The overcurrent monitoring unit includes an overcurrent monitoring multiplexer and an instrument amplifier. The overcurrent monitoring multiplexer includes two selection switches. One end of the overcurrent sampling resistor is connected to one of the selection switches, and the other end is connected to the other selection switch. The output ends of the two selection switches are respectively connected to the positive and negative input ends of the instrument amplifier, and the output end of the instrument amplifier is connected to the AD module.

6. The configurable analog input and output control circuit according to claim 1, characterized in that: The analog quantity acquisition circuit includes an acquisition multiplexer, an amplifier component and an AD module. The input end of the acquisition multiplexer is connected to the external device, the control end is connected to the DSP module, the output end is connected to the input end of the amplifier component, the output end of the amplifier component is connected to the input end of the AD module, the output end of the AD module is connected to the DSP module, and the control end of the amplifier component is connected to the DSP module.

7. The configurable analog input and output control circuit according to claim 6, characterized in that: The analog quantity acquisition circuit further includes an input preprocessing unit located between the acquisition multiplexer and the external device, and the input preprocessing unit is used for filtering and overvoltage clamping the acquired analog quantity signal of the external device.

8. The configurable analog input and output control circuit according to claim 6, characterized in that: The amplifier component includes an amplifier array and an amplifier selector. The amplifier array includes multiple operational amplifiers with different amplification factors. The input end of each operational amplifier is connected to the output end of the acquisition multiplexer, and the output end is connected to the input end of the amplifier selector. The output end of the amplifier selector is connected to the input end of the AD module.

9. The configurable analog input and output control circuit according to any one of claims 2 to 8, characterized in that: The control circuit also includes a reference source array and a reference source gating switch, wherein the output end of the reference source array is connected to the input end of the reference source gating switch, and the output end of the reference source gating switch is respectively connected to the analog output circuit and the analog acquisition circuit; The parsing file also includes the input range of the input function and the output range of the output function. The reference source array and the reference source selection switch configure the analog quantity range output by the analog quantity output circuit according to the output range, and configure the analog quantity signal range collected by the analog quantity acquisition circuit according to the input range.

10. A configurable analog input and output control circuit control method, characterized in that: Used to control the input or output of an analog signal of an external device through a configurable analog input and output control circuit as claimed in any one of claims 1 to 9, the control method comprising: The CPU module parses the external device configuration file output by the host computer to obtain a parsed file, wherein the parsed file includes the port number, function and related information of each external device, wherein the function includes an input function and an output function, and the related information includes an input range and an acquisition refresh frequency of the input function, and an output range and an output refresh frequency of the output function; The DSP module configures the on-off control instruction, the analog output control instruction, and the analog acquisition control instruction for each of the external devices according to the parsing file output by the CPU module; According to the on-off control instruction and the analog output control instruction, the analog output circuit is used to perform on-off operation and analog output operation, and an analog signal is output to the external device, or, According to the analog quantity acquisition control instruction, the analog quantity acquisition circuit is used to perform an analog quantity acquisition operation to acquire the analog quantity signal of the external device.

Citation Information

Patent Citations

  • High-precision multi-channel synchronous acquisition system for temperature adaptive calibration

    CN113765517A

  • Optical switch array driving control system

    CN114967542A

  • Self-adaptive IO channel control circuit and control method

    CN118605332A

  • Analog quantity and semaphore acquisition module and acquisition system based on signal isolation technology

    CN211061889U

  • Hands free apparatus for vehicle and control method thereof

    KR1020130078919A