Switching value channel inspection circuit and electronic equipment
By designing a switching channel testing circuit, flexible switching between active and passive signal modes was achieved, solving the problem of limited functionality in existing technologies and improving testing efficiency and reliability.
Patent Information
- Application Number
- CN202423317662.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2034-12-31
AI Technical Summary
Existing switch signal calibrators can only operate in active or passive mode, and cannot switch flexibly, resulting in limited functionality and affecting the performance of the data acquisition system.
A switching signal channel testing circuit was designed. By combining control circuit, power supply circuit and output circuit, it can switch between active and passive mode signals according to the type of test signal, so as to realize flexible switching of signal mode.
The switch channel testing circuit enables flexible switching between active and passive modes, improving testing efficiency and convenience, and enhancing the reliability and adaptability of switch channel testing.
Smart Images

Figure CN223692669U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of nuclear power digital control, and particularly relates to a switching value channel inspection circuit and electronic equipment. BACKGROUND
[0002] In a nuclear power plant data acquisition system, a switching value signal is used to transmit the switching state of a device (such as a sensor, a switch, or a relay), and the accuracy of the switching value signal usually needs to be verified, and the switching value channel needs to be calibrated regularly to ensure the normal operation of the control system and avoid signal deviation from affecting the performance of the data acquisition system. The verification and calibration of the switching value signal are generally completed by using a switching value signal checker, which can detect the response of the actual system to the switching state of the switching value signal by simulating the switching state of the switching value signal, and ensure the accuracy of the signal transmission of the device.
[0003] Generally, the switching value signal checker can work in an active working mode or a passive working mode. The active output mode refers to that the switching value signal checker is internally provided with a power supply and can provide a voltage signal or a current signal, and the passive output refers to that there is no power supply inside and only a signal switching function is provided. However, the existing switching value signal checker can only simulate a single working mode, and needs to simulate the active working mode and the passive working mode respectively for detection, and thus has a single function. CONTENT OF THE INVENTION
[0004] The application aims to provide a switching value channel inspection circuit and electronic equipment, and aims to solve the problem of a single function of the existing switching value checker.
[0005] The application provides a switching value channel inspection circuit, which comprises:
[0006] A control circuit is configured to input a test signal, output an active mode signal, a PWM signal and an adjustment signal according to active test information, or output a passive mode signal according to passive test information; the test signal carries the active test information and the passive test information;
[0007] A power supply circuit is connected with the control circuit, configured to input an input voltage, and convert the input voltage based on the adjustment signal to output a variable voltage;
[0008] An output circuit is connected with the control circuit and the power supply circuit, configured to output a passive output signal in response to the passive mode signal, or output an active output signal based on the PWM signal and the variable voltage in response to the active mode signal.
[0009] In one of the embodiments, the control circuit is configured to output active mode signals, PWM signals and adjustment signals according to the active test information, or output passive mode signals according to the passive test information, and the switch quantity channel test circuit comprises a plurality of power supply circuits and a plurality of output circuits, and the power supply circuits and the output circuits are in one-to-one correspondence.
[0010] In one of the embodiments, the control circuit comprises a master control circuit, a plurality of drive circuits and a digital-to-analog conversion circuit.
[0011] The master control circuit is configured to output active switching signals, the PWM signals, digital adjustment signals and selection signals according to the active test information, or output passive switching signals according to the passive test information.
[0012] The drive circuit is connected to the master control circuit and is configured to output the active mode signals according to the active switching signals, or output the passive mode signals according to the passive switching signals.
[0013] The digital-to-analog conversion circuit is connected to the master control circuit and is configured to perform digital-to-analog conversion on the digital adjustment signals to generate adjustment signals, and maintain output of the adjustment signals to the power supply circuits corresponding to the selection signals.
[0014] In one of the embodiments, the control circuit further comprises a plurality of isolation amplification circuits.
[0015] The isolation amplification circuit is connected to the digital-to-analog conversion circuit and is connected to the power supply circuit in one-to-one correspondence, and is configured to perform isolation and amplification on the adjustment signals to output the isolated and amplified adjustment signals.
[0016] The power supply circuit is specifically configured to access the input voltage and convert the input voltage based on the isolated and amplified adjustment signals to output a variable voltage.
[0017] In one of the embodiments, the master control circuit comprises a microprocessor.
[0018] The data receiving end of the microprocessor and the data sending end of the microprocessor are used as the test signal input end of the master control circuit to access the test signal; the first general input and output end of the microprocessor and the second general input and output end of the microprocessor are used as the digital adjustment signal output end of the master control circuit to be connected with the digital-analog conversion circuit to output the digital adjustment signal; the third general input and output end of the microprocessor and the fourth general input and output end of the microprocessor are used as the selection signal output end of the master control circuit to be connected with the digital-analog conversion circuit to output the selection signal; the fifth general input and output end of the microprocessor is used as the first active switching signal output end of the master control circuit and the first passive switching signal output end of the master control circuit to be connected with the driving circuit to output the first active switching signal or the first passive switching signal; the sixth general input and output end of the microprocessor is used as the second active switching signal output end of the master control circuit and the second passive switching signal output end of the master control circuit to be connected with the driving circuit to output the second active switching signal or the second passive switching signal; the seventh general input and output end of the microprocessor is used as the first PWM signal output end of the master control circuit to be connected with the first output circuit to output the first PWM signal; and the eighth general input and output end of the microprocessor is used as the second PWM signal output end of the master control circuit to be connected with the second output circuit to output the second PWM signal.
[0019] In one of the embodiments, the digital-analog conversion circuit comprises a digital-analog converter.
[0020] The first device address end of the digital-analog converter and the second device address end of the digital-analog converter are used as the selection signal input end of the digital-analog conversion circuit to be connected with the master control circuit to input the selection signal; the serial data input end of the digital-analog converter and the serial clock input end of the digital-analog converter are used as the digital adjustment signal input end of the digital-analog conversion circuit to be connected with the master control circuit to input the digital adjustment signal; the first analog output voltage output end of the digital-analog converter is used as the first adjustment signal output end of the digital-analog conversion circuit to be connected with the first power supply circuit to output the first adjustment signal; and the second analog output voltage output end of the digital-analog converter is used as the second adjustment signal output end of the digital-analog conversion circuit to be connected with the second power supply circuit to output the second adjustment signal.
[0021] In one of the embodiments, the power supply circuit comprises:
[0022] An isolation conversion circuit is used to isolate and convert voltage of the input voltage to output a first voltage.
[0023] An adjustable power supply circuit, connected with the isolation conversion circuit, the output circuit and the control circuit, for adjusting the first voltage according to the adjustment signal to output the variable voltage.
[0024] In one of the embodiments, the output circuit comprises:
[0025] A switch module, connected with the control circuit and the power supply circuit, for transmitting the variable voltage in response to the active mode signal, and for stopping transmitting the variable voltage in response to the passive mode signal;
[0026] An output module, connected with the control circuit and the switch module, for outputting a passive output signal according to the disconnection of the variable voltage, or outputting the active output signal based on the PWM signal and the variable voltage.
[0027] In one of the embodiments, further comprising:
[0028] A voltage conversion circuit, connected with the control circuit, for voltage conversion of the input voltage to output an operating voltage;
[0029] The control circuit is specifically configured to power on according to the operating voltage, and output the active mode signal, the PWM signal and the adjustment signal according to the active test information, or output the passive mode signal according to the passive test information.
[0030] In one of the embodiments, the control circuit is further configured to output a power supply signal; and the switch quantity channel verification circuit further comprises:
[0031] A switch circuit, connected with the control circuit and the power supply circuit, for transmitting the input voltage according to the power supply signal.
[0032] Embodiments of the present application further provide an electronic device, which comprises the switch quantity channel verification circuit described above; and the electronic device further comprises:
[0033] A touch display circuit, for outputting the test signal according to an operation.
[0034] Compared with the prior art, the embodiment of the present application has the beneficial effects that: the test signal carries active test information and passive test information; in the case that the test signal carries active test information, the control circuit outputs an active mode signal, a PWM signal and an adjusting signal according to the active test information, the power supply circuit converts the input voltage according to the adjusting signal to output a variable voltage, and the output circuit outputs an active output signal based on the PWM signal and the variable voltage in response to the active mode signal; therefore, in the passive mode, the control circuit outputs a passive mode signal according to the passive test information, and the output circuit outputs a passive output signal in response to the passive mode signal, so that the switching output circuit can switch the signals of two modes by only one test signal, the working mode is switched flexibly, and the convenience of use is improved. BRIEF DESCRIPTION OF DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0036] Figure 1 A structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0037] Figure 2 Another structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0038] Figure 3 Another structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0039] Figure 4 Another structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0040] Figure 5 Another structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0041] Figure 6 Another structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0042] Figure 7 Another structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0043] Figure 8 Another structural schematic diagram of a switching quantity channel test circuit provided by an embodiment of the present application;
[0044] Figure 9 A partial schematic diagram of a switch quantity channel inspection circuit according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0045] In order to make the technical problems to be solved, technical solutions and beneficial effects of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not intended to limit the present application.
[0046] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0047] It should be understood that the terms "length", "width", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only used to facilitate the description of the present application and simplify the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application.
[0048] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise specifically limited.
[0049] Figure 1 A structure diagram of a switch quantity channel inspection circuit according to an embodiment of the present application is shown, only parts related to the present embodiment are shown for convenience of description, and are described in detail as follows:
[0050] The switch quantity channel inspection circuit described above includes a control circuit 10, a power supply circuit 20 and an output circuit 30.
[0051] The control circuit 10 is configured to input a test signal, output an active mode signal, pulse width modulation (PWM) and adjustment signal according to active test information, or output a passive mode signal according to passive test information. The test signal carries active test information and passive test information.
[0052] The power supply circuit 20 is connected with the control circuit 10, and is used for accessing an input voltage and converting the input voltage based on a regulation signal to output a variable voltage.
[0053] The output circuit 30 is connected with the control circuit 10 and the power supply circuit 20, and is used for outputting a passive output signal in response to a passive mode signal, or outputting an active output signal based on a PWM signal and the variable voltage in response to an active mode signal.
[0054] In specific implementation, a battery can be used to provide the input voltage. For example, a polymer lithium battery pack can be selected to provide the input voltage. The polymer lithium battery pack has the advantages of small internal resistance, large capacity, many cycle times, no memory effect, and explosion-proof. In addition, the polymer lithium battery pack can be connected with an intelligent chip protection circuit, so as to prevent overcharging, overdischarging, overcurrent, and short circuit of the battery, and protect the battery to make the battery not bulging, more durable, and long in service life. The battery capacity can be set to 2200mA, so as to ensure that the continuous working time of the device is not less than 4 hours. The variable voltage range can be set according to actual needs. For example, the variable voltage range can be 0 to 50V.
[0055] It should be noted that the passive output signal is usually used to test the response of external equipment, and the active output signal can provide an independent signal source, which is convenient for more extensive test applications.
[0056] The instruments and sensors used in nuclear power plants are various, have different working voltages and signal ranges, and the switch quantity signal calibrator needs to provide more accurate output signals to simulate the actual working conditions of various sensors and ensure that the equipment can work reliably under all possible operating states. At the same time, the precision requirement in this scene is very high, so more accurate output signals can be used to detect small signal changes to ensure the accuracy of the equipment. For this purpose, in specific implementation, the test signal also carries a PWM signal output parameter, which can include the duty cycle of the PWM signal, the period of the PWM signal, and the number / duration of the PWM signal. Therefore, according to the test requirements, in the case that the output end of the output circuit 30 is not connected with an external power supply, the output circuit 30 can flexibly output a PWM rectangular wave (i.e., an active mode signal) with adjustable voltage, duty cycle, and period according to the variable voltage and the PWM signal; in the case that the output circuit 30 is connected with an external power supply, the output circuit 30 can output a passive mode signal, so that the output signal is more accurate and meets the requirements, and can meet different application scenarios, adapt to different devices to be tested, and improve the flexibility and convenience of use of the switch quantity channel verification circuit.
[0057] By way of example, and without limitation, basic or essential components were described with reference to the drawings. However, aspects can include additional components not specifically mentioned here. Figure 2As shown, the control circuit 10 is configured to output a plurality of active mode signals, a plurality of PWM signals and a plurality of adjustment signals according to the active test information, or output a plurality of passive mode signals according to the passive test information, and the switch quantity channel inspection circuit includes a plurality of power supply circuits 20 and a plurality of output circuits 30, and the power supply circuits 20 and the output circuits 30 are in one-to-one correspondence.
[0058] In actual testing, the existing switch quantity signal calibrator may need to calibrate a plurality of switch quantity signals, but the existing switch quantity signal calibrator can only measure in turn, which is time-consuming and complex in operation. In the switch quantity channel inspection circuit of the present application, a plurality of switch quantity signals can be calibrated simultaneously through the plurality of output circuits 30, thereby improving the calibration efficiency.
[0059] Since the switch quantity channel inspection circuit of the present application includes a plurality of power supply circuits 20 and a plurality of output circuits 30, when a fault occurs in the power supply circuit 20 and / or the output circuit 30 corresponding to one channel, it will not affect the normal operation of other channels, thereby improving the reliability of the switch quantity channel inspection circuit.
[0060] By way of example, and without limitation, basic or custom microprocessors can be used with the present application. For example, Intel x86 or ARM processors can be used. Other processors and microcontrollers can also be used. Figure 3 As shown, the control circuit 10 includes a main control circuit 101, a plurality of drive circuits 102 and a digital-to-analog conversion circuit 103.
[0061] The main control circuit 101 is configured to output a plurality of active switching signals, a plurality of PWM signals, a digital adjustment signal and a selection signal in response to active test information, or output a plurality of passive switching signals in response to passive test information.
[0062] The drive circuit 102 is connected with the main control circuit 101 and is configured to output an active mode signal according to the active switching signal, or output a passive mode signal according to the passive switching signal.
[0063] The digital-to-analog conversion circuit 103 is connected with the main control circuit 101 and is configured to perform digital-to-analog conversion on the digital adjustment signal to generate an adjustment signal, and maintain output of the adjustment signal to the power supply circuit 20 corresponding to the selection signal.
[0064] In specific implementation, the selection signal can be a combination of high and low levels output by two input / output (IO) ports of a microprocessor (not shown in the figure) in the master control circuit 101. For example, when the selection signal is 00, the digital-to-analog conversion circuit 103 can maintain output of the first adjustment signal to the first power supply circuit 20 according to the received 00; when the selection signal is 01, the digital-to-analog conversion circuit 103 can maintain output of the second adjustment signal to the second power supply circuit 20 according to the received 01; when the selection signal is 10, the digital-to-analog conversion circuit 103 can maintain output of the third adjustment signal to the third power supply circuit 20 according to the received 10; and when the selection signal is 11, the digital-to-analog conversion circuit 103 can maintain output of the fourth adjustment signal to the fourth power supply circuit 20 according to the received 11.
[0065] In addition, the time interval of the output of the plurality of output circuits 30 can be set by setting the time interval of the different combination of selection signals. The appropriate time interval can more effectively allocate hardware resources, improve overall performance and response speed, and especially in the case of rapidly changing signals, can effectively improve the sampling accuracy.
[0066] In specific implementation, since the current output by the IO port of the microprocessor in the master control circuit 101 is insufficient to directly control the relay in the output circuit 30, the active switching signal and the passive switching signal are driven by the driving circuit 102, thereby improving the load capacity of the control circuit 10.
[0067] As an example but not limitation, as shown in Figure 4 The control circuit 10 further includes a plurality of isolation amplification circuits 104.
[0068] The isolation amplification circuit 104 is connected with the digital-to-analog conversion circuit 103 and connected with the power supply circuit 20 one by one, for isolating and amplifying the adjustment signal to output the isolated and amplified adjustment signal.
[0069] The power supply circuit 20 is specifically configured to access the input voltage and convert the input voltage based on the isolated and amplified adjustment signal to output the variable voltage.
[0070] The isolation amplification circuit 104 improves the reliability of the switching channel test circuit.
[0071] As an example but not limitation, as shown in Figure 5 The power supply circuit 20 includes an isolation conversion circuit 201 and an adjustable power supply circuit 202.
[0072] The isolation conversion circuit 201 is configured to isolate and convert the input voltage to output a first voltage.
[0073] The adjustable power supply circuit 202 is connected with the isolation conversion circuit 201, the output circuit 30 and the control circuit 10, and is used for adjusting the first voltage according to the adjustment signal to output a variable voltage.
[0074] The input voltage is electrically isolated from the variable voltage by the isolation conversion circuit 201, which can effectively isolate different circuit segments and prevent high voltage interference from affecting low voltage circuits, thereby reducing electrical interference and improving the safety of the switching quantity channel test circuit.
[0075] As an example but not limitation, as shown in Figure 6 The output circuit 30 includes a switching module 301 and an output module 302.
[0076] The switching module 301 is connected with the control circuit 10 and the power supply circuit 20, and is used for transmitting the variable voltage in response to the active mode signal, and stopping transmitting the variable voltage in response to the passive mode signal.
[0077] The output module 302 is connected with the control circuit 10 and the switching module 301, and is used for outputting a passive output signal according to the disconnection of the variable voltage, or outputting an active output signal based on the PWM signal and the variable voltage.
[0078] The switching of the active output signal and the passive output signal is realized by whether the switching module 301 accesses the variable voltage, which is simple and reliable.
[0079] As an example but not limitation, as shown in Figure 7 The switching quantity channel test circuit further includes a voltage conversion circuit 40.
[0080] The voltage conversion circuit 40 is connected with the control circuit 10, and is used for voltage conversion of the input voltage to output a working voltage.
[0081] The control circuit 10 is specifically used for powering on according to the working voltage, and outputting the active mode signal, the PWM signal and the adjustment signal according to the active test information, or outputting the passive mode signal according to the passive test information.
[0082] It can be understood that the voltage conversion circuit 40 can include a plurality of voltage conversion modules, so that different voltages can be output to power other functional modules that require different supply voltages.
[0083] The voltage conversion circuit 40 allows one input voltage to power different functional modules, reducing the power supply requirements and improving the practicality of the switching quantity channel test circuit.
[0084] As an example but not limitation, as shown in Figure 8 The control circuit 10 is further used for outputting a power supply signal, and the switching quantity channel test circuit further includes a switching circuit 50.
[0085] The switch circuit 50 is connected with the control circuit 10 and the power supply circuit 20, and is used for transmitting the input voltage according to the power supply signal.
[0086] By the switch circuit 50, the input of the input voltage can be stopped in the case of the power supply signal being off, so that the electric energy is saved.
[0087] Figure 9 A partial example circuit structure of the switch quantity channel inspection circuit provided by the embodiment of the application is shown, only the part related to the embodiment of the application is shown for the convenience of description, and the details are as follows:
[0088] The master control circuit 101 comprises a microprocessor U1.
[0089] The data receiving end RXD1 of the microprocessor U1 and the data transmitting end TXD1 of the microprocessor U1 are used as the test signal input end of the master control circuit 101 together, so as to access the test signal; the first general input and output end PB1 of the microprocessor U1 and the second general input and output end PB2 of the microprocessor U1 are used as the digital adjustment signal output end of the master control circuit 101 together, and are connected with the digital to analog conversion circuit 103, so as to output the digital adjustment signal; the third general input and output end PB5 of the microprocessor U1 and the fourth general input and output end PB6 of the microprocessor U1 are used as the selection signal output end of the master control circuit 101 together, and are connected with the digital to analog conversion circuit 103, so as to output the selection signal; the fifth general input and output end PA5 of the microprocessor U1 is used as the first active switching signal output end of the master control circuit 101 and the first passive switching signal output end of the master control circuit 101, and is connected with the driving circuit 102, so as to output the first active switching signal or the first passive switching signal; the sixth general input and output end PA6 of the microprocessor U1 is used as the second active switching signal output end of the master control circuit 101 and the second passive switching signal output end of the master control circuit 101, and is connected with the driving circuit 102, so as to output the second active switching signal or the second passive switching signal; the seventh general input and output end PA3 of the microprocessor U1 is used as the first PWM signal output end of the master control circuit 101, and is connected with the first output circuit 30, so as to output the first PWM signal; the eighth general input and output end PA4 of the microprocessor U1 is used as the second PWM signal output end of the master control circuit 101, and is connected with the second output circuit 30, so as to output the second PWM signal.
[0090] The ninth general input and output end PG2 of the microprocessor U1 is used as the power supply signal output end of the master control circuit 101, and is connected with the switch circuit 50, so as to output the power supply signal.
[0091] The microprocessor U1 has high stability and low power consumption, and the data throughput rate is up to 1MIPS / MHz, so that the contradiction between the power consumption and the processing speed of the master control circuit 101 can be relieved.
[0092] The digital-to-analog conversion circuit 103 comprises a digital-to-analog converter U3.
[0093] The first device address end A0 of the digital-to-analog converter U3 and the second device address end A1 of the digital-to-analog converter U3 are collectively used as the selection signal input end of the digital-to-analog conversion circuit 103, and are connected with the master control circuit 101 to input a selection signal; the serial data input end DIN of the digital-to-analog converter U3 and the serial clock input end SCLK of the digital-to-analog converter U3 are collectively used as the digital adjustment signal input end of the digital-to-analog conversion circuit 103, and are connected with the master control circuit 101 to input a digital adjustment signal; the first analog output voltage output end OUTA of the digital-to-analog converter U3 is used as the first adjustment signal output end of the digital-to-analog conversion circuit 103, and is connected with the first power supply circuit 20 to output a first adjustment signal; the second analog output voltage output end OUTB of the digital-to-analog converter U3 is used as the second adjustment signal output end of the digital-to-analog conversion circuit 103, and is connected with the second power supply circuit 20 to output a second adjustment signal.
[0094] The digital-to-analog converter U3 can preset an output voltage range.
[0095] The digital-to-analog converter U3 has a 16-bit resolution, does not require an external reference source, provides accurate analog outputs, supports four independent channels, is suitable for multi-output channel applications, has a minimum voltage step value of 0.012V, and can meet the requirement of a step voltage of 0.1V in a use scenario.
[0096] The drive circuit 102 comprises a Darlington array U2.
[0097] The first input end IN1 of the Darlington array U2 is used as the first active switching signal input end of the drive circuit 102 and the first passive switching signal input end of the drive circuit 102, and is connected with the master control circuit 101 to input a first active switching signal or a first passive switching signal; the second input end IN2 of the Darlington array U2 is used as the second active switching signal input end of the drive circuit 102 and the second passive switching signal input end of the drive circuit 102, and is connected with the master control circuit 101 to input a second active switching signal or a second passive switching signal; the first output end OUT1 of the Darlington array U2 is used as the first active mode signal output end of the drive circuit 102 and the first passive mode signal output end of the drive circuit 102, and is connected with the first output circuit 30 to output a first active mode signal or a first passive mode signal; the second output end OUT2 of the Darlington array U2 is used as the second active mode signal output end of the drive circuit 102 and the second passive mode signal output end of the drive circuit 102, and is connected with the second output circuit 30 to output a second active mode signal or a second passive mode signal.
[0098] Darlington array U2 can drive up to 500mA load, suitable for high power applications, and contains seven independent channels, easy to control multiple loads, while also having a reverse function to prevent current damage to microprocessor U1, enhancing reliability.
[0099] Isolation amplifier U4 is an analog input terminal VIN as the isolation amplifier circuit 104 conditioning signal input terminal, with digital to analog conversion circuit 103, to input conditioning signal; isolation amplifier U4 positive output terminal OUTP as the isolation amplifier circuit 104 conditioning signal output terminal, with power supply circuit 20, to output isolation after conditioning signal.
[0100] Isolation amplifier U4 is an analog input terminal VIN as the isolation amplifier circuit 104 conditioning signal input terminal, with digital to analog conversion circuit 103, to input conditioning signal; isolation amplifier U4 positive output terminal OUTP as the isolation amplifier circuit 104 conditioning signal output terminal, with power supply circuit 20, to output isolation after conditioning signal.
[0101] Isolation amplifier U4 is a high performance isolation amplifier, based on nanometer core micro capacitor isolation technology, its output and input separation, single ended input signal range 0.02V to 2V, with low distortion and high linearity, suitable for accurate signal transmission.
[0102] Isolation conversion circuit 201 includes DC-DC converter U5, the first fuse F1 and the first capacitor C1.
[0103] The first end of the first fuse F1 as the input voltage input terminal of the isolation conversion circuit 201, with the switching circuit 50, to input the input voltage; the second end of the first fuse F1, the first end of the first capacitor C1 and the positive input terminal Vin+ of the DC-DC converter U5 are connected, the positive output terminal Vo+ of the DC-DC converter U5 as the first voltage output terminal of the isolation conversion circuit 201, with the adjustable power supply circuit 202, to output the first voltage; the negative input terminal Vin- of the DC-DC converter U5 and the second end of the first capacitor C1 are commonly connected to the digital ground; the negative output terminal Vo- of the DC-DC converter U5 is connected to the analog ground.
[0104] Adjustable power supply circuit 202 includes adjustable power supply U6, second capacitor C2 and inductance L1.
[0105] The external supply positive input end VIN+ of the adjustable power supply U6 is connected with the isolation conversion circuit 201 as the first voltage input end of the adjustable power supply circuit 202 to input the first voltage; the external voltage control end CONTROL of the adjustable power supply U6 is connected with the control circuit 10 as the adjustment signal input end of the adjustable power supply circuit 202 to input the adjustment signal; the external positive output power supply end VOUT+ of the adjustable power supply U6, the first end of the second capacitor C2 and the first end of the inductor L1 are connected, and the second end of the inductor L1 is connected with the output circuit 30 as the variable voltage output end of the adjustable power supply circuit 202 to output the variable voltage; the external negative output power supply end VOUT- of the adjustable power supply U6, the first external supply input reference ground VIN- of the adjustable power supply U6 and the second end of the second capacitor C2 are commonly connected to the analog ground.
[0106] The switch module 301 includes a relay K1.
[0107] The first end of the coil of the relay K1 is connected with the first power supply, the second end of the coil of the relay K1 is connected with the control circuit 10 as the active mode signal input end of the switch module 301 and the passive mode signal input end of the switch module 301 to input the active mode signal or the passive mode signal; the common end of the relay is connected with the power supply circuit 20 as the variable voltage input end of the switch module 301 to input the variable voltage; the normally open contact of the relay is connected with the output module 302 as the variable voltage output end of the relay to output the variable voltage.
[0108] The output module 302 includes a first optocoupler EL1 and a second fuse F2.
[0109] The anode of the first optocoupler EL1 is connected with the control circuit 10 as the PWM signal input end of the output module 302 to input the PWM signal; the collector of the first optocoupler EL1 and the first end of the second fuse F2 are connected, and the second end of the second fuse F2 is connected with the switch module 301 as the variable voltage input end of the output module 302 to input the variable voltage; the emitter of the first optocoupler EL1 is connected as the active output signal output end of the output module 302 and the passive output signal output end of the output module 302 to output the active output signal or the passive output signal, and the cathode of the first optocoupler EL1 is connected to the digital ground.
[0110] The optocoupler has fast response speed and low delay, so the first optocoupler EL1 is used here to reduce the delay time of the hardware as much as possible.
[0111] The switch circuit 50 includes a first field effect transistor Q1, a second field effect transistor Q2, a first resistor R1 and a second resistor R2.
[0112] The first end of the first resistor R1 and the source of the first field effect transistor Q1 are connected as an input voltage input end of the switching circuit 50 to input an input voltage; the second end of the first resistor R1, the gate of the first field effect transistor Q1 and the drain of the first field effect transistor Q1 are connected, the gate of the first field effect transistor Q1 and the first end of the second resistor R2 are connected as a power supply signal input end of the switching circuit 50, and are connected with the control circuit 10 to input a power supply signal; the drain of the first field effect transistor Q1 is connected as an input voltage output end of the switching circuit 50 and is connected with the power supply circuit 20 to output the input voltage; and the source of the first field effect transistor Q1 and the second end of the second resistor R2 are connected to a digital ground.
[0113] The field effect transistor has a fast switching speed, reduces the conduction and turn-off loss, improves the efficiency, reliability and service life of the switching circuit 50; the field effect transistor supports a high switching frequency, is suitable for an application scenario requiring fast switching, reduces electromagnetic interference, improves the electromagnetic compatibility of the switching quantity channel test circuit, and improves the response speed and performance of the switching quantity channel test circuit.
[0114] The working principle is further described below. Figure 9
[0115] The data receiving end RXD1 of the microprocessor U1 and the data sending end TXD1 of the microprocessor U1 input a test signal, and the following is described by taking two-channel verification as an example.
[0116] When the test signal carries source test information, the first general-purpose input / output terminal PB1 of the microprocessor U1 and the second general-purpose input / output terminal PB2 of the microprocessor U1 jointly output a digital adjustment signal to the serial data input terminal DIN of the digital-to-analog converter U3 and the serial clock input terminal SCLK of the digital-to-analog converter U3; the third general-purpose input / output terminal PB5 of the microprocessor U1 outputs a low-level signal to the first device address terminal A0 of the digital-to-analog converter U3, and the fourth general-purpose input / output terminal PB6 of the microprocessor U1 outputs a low-level signal to the second device address terminal A1 of the digital-to-analog converter U3, so that the selection signal is 00, the digital-to-analog converter U3 performs digital-to-analog conversion on the digital adjustment signal to generate a first adjustment signal, and maintains the output of the first adjustment signal to the analog input terminal VIN of the isolation amplifier U4 in the first isolation amplification circuit 104 according to the selection signal 00, the isolation amplifier U4 performs isolation amplification on the first adjustment signal, and outputs the isolation-amplified adjustment signal from the positive output terminal OUTP of the isolation amplifier U4 to the external voltage control terminal CONTROL of the adjustable power supply U6 in the first power supply circuit 20, after a preset time interval, the third general-purpose input / output terminal PB5 of the microprocessor U1 outputs a low-level signal to the first device address terminal A0 of the digital-to-analog converter U3, and the fourth general-purpose input / output terminal PB6 of the microprocessor U1 outputs a high-level signal to the second device address terminal A1 of the digital-to-analog converter U3, so that the selection signal is 01, the digital-to-analog converter U3 performs digital-to-analog conversion on the digital adjustment signal to generate a second adjustment signal, and the digital-to-analog converter U3 maintains the output of the second adjustment signal to the second isolation amplification circuit 104 according to the selection signal 01, and the second isolation amplification circuit 104 outputs the isolation-amplified second adjustment signal to the second power supply circuit 20.
[0117] The ninth general-purpose input / output terminal PG2 of the microprocessor U1 outputs a power supply signal to the gate of the first field effect transistor Q1 and the first terminal of the second resistor R2, the second field effect transistor Q2 is turned on, and then the first field effect transistor Q1 is turned on, the first terminal of the first resistor R1 and the source of the first field effect transistor Q1 are connected to the input voltage, the drain of the first field effect transistor Q1 outputs the input voltage to the first terminal of the first fuse F1, the input voltage is isolated and voltage-converted by the DC-DC converter U5, and a first voltage is output from the positive output terminal Vo+ of the DC-DC converter U5 to the external power supply positive input terminal VIN+ of the adjustable power supply U6. The adjustable power supply U6 adjusts the first voltage according to the adjustment signal, and outputs a variable voltage to the common terminal of the relay through the inductor L1.
[0118] The fifth general input / output terminal PA5 of the microprocessor U1 outputs a first active switching signal to the first input terminal IN1 of the Darlington array U2, the sixth general input / output terminal PA6 of the microprocessor U1 outputs a second active switching signal to the second input terminal IN2 of the Darlington array U2, the Darlington array U2 converts the first active switching signal into a first active mode signal and outputs the first active mode signal from the first output terminal OUT1 of the Darlington array U2 to the second end of the coil of the relay K1 in the first output circuit 30, the Darlington array U2 converts the second active switching signal into a second active mode signal and outputs the second active mode signal from the second output terminal OUT2 of the Darlington array U2 to the second output circuit 30, the relay K1 operates, and the variable voltage is output from the normally open contact of the relay K1 to the second end of the second fuse F2, the seventh general input / output terminal PA3 of the microprocessor U1 outputs a first PWM signal to the anode of the first optocoupler EL1, and the first optocoupler EL1 outputs a first active output signal based on the first PWM signal and the first variable voltage. The eighth general input / output terminal PA4 of the microprocessor outputs a second PWM signal to the second output circuit 30, and the second output circuit 30 outputs a second active output signal based on the second active mode signal and the second PWM signal.
[0119] When the test signal carries passive test information, the fifth general input / output terminal PA5 of the microprocessor U1 outputs a first passive switching signal to the first input terminal IN1 of the Darlington array U2, the sixth general input / output terminal PA6 of the microprocessor U1 outputs a second passive switching signal to the second input terminal IN2 of the Darlington array U2, the Darlington array U2 converts the first passive switching signal into a first passive mode signal and outputs the first passive mode signal from the first output terminal OUT1 of the Darlington array U2 to the second end of the coil of the relay K1 in the first output circuit 30, the relay K1 is disconnected, the seventh general input / output terminal PA3 of the microprocessor U1 outputs a first PWM signal to the anode of the first optocoupler EL1, and the optocoupler EL1 outputs a passive output signal based on an external power supply and the first PWM signal. The Darlington array U2 converts the second passive switching signal into a second passive mode signal and outputs the second passive mode signal from the second output terminal OUT2 of the Darlington array U2 to the second output circuit 30. The second output circuit 30 outputs a second passive output signal based on the second passive mode signal.
[0120] An electronic device comprising the switch channel inspection circuit described above, the electronic device further comprising a touch display circuit.
[0121] The touch display circuit is configured to output a test signal according to an operation.
[0122] The touch display circuit is also used for displaying a mode selection page, and test requirements are obtained through the touch display module, so that the operation process is simplified.
[0123] In order to reduce the burden of the microprocessor on display data exchange, improve sampling accuracy and speed, the touch display circuit can include a 4.3-inch integrated capacitive touch serial screen. The display screen can be a 16-bit true color RGB display, has a wide voltage input range, a real-time clock, a built-in standard 8*16, 12*24, 16*32, 32*64 ASCII character library, supports BMP, JPEG, WMF, PNG and GIF picture formats, and has button controls, text controls, drop-down controls and progress bar controls and other configuration controls.
[0124] It should be understood that the size of the serial number of each step in the above embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0125] The above-described embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A switched quantity channel verification circuit, characterized by The application relates to a switch quantity channel test circuit. The control circuit is used for outputting multiple active mode signals, multiple PWM signals and multiple adjustment signals according to the active test information, or outputting multiple passive mode signals according to the passive test information; the switch quantity channel test circuit comprises multiple power supply circuits and multiple output circuits, and the power supply circuits and the output circuits correspond to each other. The control circuit comprises a master control circuit, multiple drive circuits and a digital-analog conversion circuit. The master control circuit is used for outputting multiple active switching signals, multiple PWM signals, digital adjustment signals and selection signals according to the active test information, or outputting multiple passive switching signals according to the passive test information.
2. The switch quantity path verification circuit of claim 1, wherein, The drive circuit is connected with the master control circuit and is used for outputting the active mode signal according to the active switching signal, or outputting the passive mode signal according to the passive switching signal.
3. The switch quantity path verification circuit of claim 2, wherein, The digital-analog conversion circuit is connected with the master control circuit and is used for carrying out digital-analog conversion on the digital adjustment signal to generate an adjustment signal and maintaining output of the adjustment signal to the power supply circuit corresponding to the selection signal. The control circuit further comprises multiple isolation amplification circuits. The isolation amplification circuit is connected with the digital-analog conversion circuit and is connected with the power supply circuit one by one, and is used for carrying out isolation and amplification on the adjustment signal to output the isolated and amplified adjustment signal. The power supply circuit is specifically used for inputting the input voltage and converting the input voltage based on the isolated and amplified adjustment signal to output a variable voltage.
4. The switch quantity path verification circuit of claim 3, wherein, The master control circuit comprises a microprocessor. A data receiving end of the microprocessor and a data sending end of the microprocessor are used as a test signal input end of the master control circuit to input the test signal; a first general input and output end of the microprocessor and a second general input and output end of the microprocessor are used as a digital adjustment signal output end of the master control circuit and are connected with the digital-analog conversion circuit to output the digital adjustment signal. 5. The switch quantity path verification circuit of claim 4, wherein, The third general input and output end of the microprocessor and the fourth general input and output end of the microprocessor are used as the selection signal output end of the master control circuit together, connected with the digital-analog conversion circuit to output the selection signal; the fifth general input and output end of the microprocessor is used as the first active switching signal output end of the master control circuit and the first passive switching signal output end of the master control circuit, connected with the driving circuit to output the first active switching signal or the first passive switching signal; the sixth general input and output end of the microprocessor is used as the second active switching signal output end of the master control circuit and the second passive switching signal output end of the master control circuit, connected with the driving circuit to output the second active switching signal or the second passive switching signal; the seventh general input and output end of the microprocessor is used as the first PWM signal output end of the master control circuit, connected with the first output circuit to output the first PWM signal; the eighth general input and output end of the microprocessor is used as the second PWM signal output end of the master control circuit, connected with the second output circuit to output the second PWM signal.
6. The switch quantity path verification circuit of claim 4, wherein, The digital-analog conversion circuit comprises a digital-analog converter; The first device address end of the digital-analog converter and the second device address end of the digital-analog converter are used as the selection signal input end of the digital-analog conversion circuit together, connected with the master control circuit to input the selection signal; the serial data input end of the digital-analog converter and the serial clock input end of the digital-analog converter are used as the digital adjustment signal input end of the digital-analog conversion circuit together, connected with the master control circuit to input the digital adjustment signal; The first analog output voltage output end of the digital-analog converter is used as the first adjustment signal output end of the digital-analog conversion circuit, connected with the first power supply circuit to output the first adjustment signal; the second analog output voltage output end of the digital-analog converter is used as the second adjustment signal output end of the digital-analog conversion circuit, connected with the second power supply circuit to output the second adjustment signal.
7. The switch quantity path verification circuit of claim 1, wherein, The power supply circuit comprises: An isolation conversion circuit for isolating and voltage converting the input voltage to output a first voltage; An adjustable power supply circuit connected with the isolation conversion circuit, the output circuit and the control circuit, for adjusting the first voltage according to the adjustment signal to output the variable voltage.
8. The switch quantity path verification circuit of claim 1, wherein, The output circuit comprises: A switching module connected with the control circuit and the power supply circuit, for transmitting the variable voltage in response to the active mode signal and for stopping transmitting the variable voltage in response to the passive mode signal; An output module connected with the control circuit and the switching module, for outputting a passive output signal based on the disconnection of the variable voltage or outputting an active output signal based on the PWM signal and the variable voltage.
9. The switch quantity path verification circuit of claim 1, wherein, Further comprising: A voltage conversion circuit connected with the control circuit, for voltage converting the input voltage to output an operating voltage; The control circuit is specifically configured to output the active mode signal, the PWM signal and the adjustment signal according to the active test information or output the passive mode signal according to the passive test information according to the working voltage.
10. The switch quantity path verification circuit of claim 1, wherein, The control circuit is further configured to output a power supply signal. The switch quantity channel inspection circuit further comprises: A switching circuit connected with the control circuit and the power supply circuit, configured to transmit the input voltage according to the power supply signal.
11. An electronic device, comprising: The electronic device further comprises: A touch display circuit configured to output a test signal according to an operation.