Slave control circuit, device and apparatus
Patent Information
- Application Number
- CN202311775667.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-21
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-12-21
AI Technical Summary
[0004]鉴于此,为解决上述UART通讯过程中由于更换从机芯片的原因导致光耦不能饱和导通以及影响光耦使用寿命的技术问题,本申请实施例提供一种从机控制电路、装置及设备
[0036] The slave control circuit provided in this application embodiment comprises a slave chip, an adjustment module, and a control module. The slave chip has a first pin connected to a slave signal receiver, a second pin connected to a slave signal transmitter, a third pin connected to a master signal transmitter, a fourth pin connected to a master signal receiver, a fifth pin connected to a first input terminal of the adjustment module, and a sixth pin connected to a second input terminal of the adjustment module. The adjustment module has a first output terminal connected to a first input terminal of the control module and a second output terminal connected to a second input terminal of the control module. The control module has a third input terminal connected to a master signal transmitter, a fourth input terminal connected to a slave signal transmitter, a first output terminal connected to a master signal receiver, and a second output terminal connected to a slave signal receiver. When the slave chip detects that the master's transmitted and received signals are at a low level, it outputs a control signal. The adjustment module uses this control signal to boost the output signal, enabling the control module to control the internal optocoupler to reach a saturated conduction state based on the increased electrical signal. This solution ensures the optocoupler remains saturated when the slave chip is replaced, thus improving the lifespan of the optocoupler.
Smart Images

Figure CN117872855B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication control technology, and in particular to a slave control circuit, device, and equipment. Background Technology
[0002] UART communication is widely used in circuit design as a communication method. In actual use, it is common to see situations where the master circuit remains unchanged, but the master chip of the slave circuit is replaced. Different master chips have different voltages, and the optocoupler after replacing the master chip cannot be saturated and conduct. As a result, the slave receiving line and the master receiving line cannot receive low-level signals. Therefore, when the master chip of the UART communication slave circuit is replaced, the circuit needs to be modified and cannot adapt to the new master chip.
[0003] Based on the operating characteristics of optocouplers in the amplification region, the output collector current IC = input forward current IF * current transfer ratio CTR. The current transfer ratio is affected by factors such as temperature and will vary within a certain range. In current UART communication slave circuits, the input forward current of the optocoupler is constant. The optocoupler must be able to provide current normally even under extreme conditions (minimum current transfer ratio, maximum required output collector current), so the input forward current is the maximum current under these extreme conditions. However, the output current will not always be a large current, and the current transfer ratio will not always remain at its minimum, but the input forward current will always be a large current. In this case, the optical attenuation of the optocoupler is significant, affecting its lifespan. Summary of the Invention
[0004] In view of this, in order to solve the technical problems of the optocoupler not being able to saturate and conduct due to the replacement of the slave chip in the above-mentioned UART communication process and the impact on the service life of the optocoupler, the embodiments of this application provide a slave control circuit, device and equipment.
[0005] In a first aspect, embodiments of this application provide a slave control circuit, including:
[0006] Slave chip, adjustment module, and control module;
[0007] The first pin of the slave chip is connected to the slave signal receiving terminal, the second pin is connected to the slave signal transmitting terminal, the third pin is connected to the master signal transmitting terminal, the fourth pin is connected to the master signal receiving terminal, the fifth pin is connected to the first input terminal of the adjustment module, and the sixth pin is connected to the second input terminal of the adjustment module.
[0008] The first output terminal of the adjustment module is connected to the first input terminal of the control module, and the second output terminal is connected to the second input terminal of the control module.
[0009] The third input terminal of the control module is connected to the host signal transmitter, the fourth input terminal is connected to the slave signal transmitter, the first output terminal is connected to the host signal receiver, and the second output terminal is connected to the slave signal receiver.
[0010] In one possible implementation, after receiving low-level signals from the host signal transmitter and host signal receiver, the slave chip inputs an adjustment signal to the adjustment module. The adjustment module outputs a high-level signal to the control module according to the adjustment signal. After receiving the high-level signal, the control module controls the internal optocoupler to reach saturation conduction.
[0011] In one possible implementation, the adjustment module includes: an adjustment chip and an adjustment unit;
[0012] The first pin of the regulating chip is connected to the fifth pin of the slave chip for receiving a first regulating signal. The second pin of the regulating chip is connected to the sixth pin of the slave chip for receiving a second regulating signal. The third pin of the regulating chip is connected to the slave power output terminal. The fourth pin is connected to the first input terminal of the regulating unit. The fifth pin is connected to the second input terminal of the regulating unit. The sixth pin is connected to the third input terminal of the regulating unit. The seventh pin is connected to the fourth input terminal of the regulating unit. The regulating chip is used to boost the signal output by the slave chip.
[0013] The first output terminal of the adjustment unit is connected to the first input terminal of the control module, and the second output terminal is connected to the second input terminal of the control module. The adjustment unit is used to output the control signal after the adjustment chip has been boosted to the control module.
[0014] In one possible implementation, the adjustment unit includes: a first capacitor, a second capacitor, and a third capacitor;
[0015] One end of the first capacitor is connected to the third pin of the regulating chip, and the other end is connected to the second ground terminal;
[0016] One end of the second capacitor is connected to the sixth pin of the regulating chip and the first output terminal of the regulating module, and the other end is connected to the seventh pin of the regulating chip and the third ground terminal.
[0017] One end of the third capacitor is connected to the fifth pin of the regulating chip and the second output terminal of the regulating module, and the other end is connected to the fourth ground terminal.
[0018] In one possible implementation, the control module includes: a slave interface, a first control unit, and a second control unit;
[0019] The slave interface is connected to the host power output terminal and the first input terminal of the second control unit at the first end, the host signal transmitting terminal and the first input terminal of the first control unit at the second end, the host signal receiving terminal and the output terminal of the second control unit at the third end, and the fifth ground terminal and the second output terminal of the second control unit at the fourth end.
[0020] The second input terminal of the first control unit is connected to the first output terminal of the adjustment module, the third input terminal is connected to the slave power output terminal, and the output terminal is connected to the slave signal receiving terminal. The first control unit is used to control the transmission of signal data when the internal device is in saturation conduction.
[0021] The second input terminal of the second control unit is connected to the second output terminal of the adjustment module, and the third input terminal is connected to the slave signal transmitting terminal. The second control unit is used to control the transmission of signal data when the internal device is in saturation conduction.
[0022] In one possible implementation, the first control unit includes:
[0023] The first resistor, the fourth capacitor, the second resistor, and the first optocoupler;
[0024] One end of the first resistor is connected to the first output terminal of the adjustment module, and the other end is connected to the first input terminal of the first optocoupler and one end of the fourth capacitor.
[0025] The other end of the fourth capacitor is connected to the second end of the slave interface and the second input end of the first optocoupler.
[0026] The first output terminal of the first optocoupler is connected to one end of the second resistor and the slave signal receiving terminal, and the second output terminal is connected to the sixth ground terminal;
[0027] The other end of the second resistor is connected to the slave power output terminal.
[0028] In one possible implementation, the second control unit includes: a third resistor, a fourth resistor, and a second optocoupler;
[0029] One end of the third resistor is connected to the first end of the slave interface and the power output end of the host, and the other end is connected to the third end of the slave interface, the signal receiving end of the host, and the first output end of the second optocoupler.
[0030] The second output terminal of the second optocoupler is connected to the fourth terminal and the fifth ground terminal of the slave interface, the first input terminal is connected to one end of the fourth resistor, and the second input terminal is connected to the slave signal transmitting terminal;
[0031] The other end of the fourth resistor is connected to the second output terminal of the adjustment module.
[0032] In one possible implementation, the slave control circuit is connected to the master circuit;
[0033] After the host chip is connected to the slave control circuit, it transmits signal data via UART communication.
[0034] In a second aspect, embodiments of this application provide a slave control device, comprising: the device including a master circuit and a slave control circuit as described in any of the first aspects.
[0035] Thirdly, embodiments of this application provide a communication device, including: the device includes a slave control device as described in the second aspect.
[0036] The slave control circuit provided in this application embodiment comprises a slave chip, an adjustment module, and a control module. The slave chip has a first pin connected to a slave signal receiver, a second pin connected to a slave signal transmitter, a third pin connected to a master signal transmitter, a fourth pin connected to a master signal receiver, a fifth pin connected to a first input terminal of the adjustment module, and a sixth pin connected to a second input terminal of the adjustment module. The adjustment module has a first output terminal connected to a first input terminal of the control module and a second output terminal connected to a second input terminal of the control module. The control module has a third input terminal connected to a master signal transmitter, a fourth input terminal connected to a slave signal transmitter, a first output terminal connected to a master signal receiver, and a second output terminal connected to a slave signal receiver. When the slave chip detects that the master's transmitted and received signals are at a low level, it outputs a control signal. The adjustment module uses this control signal to boost the output signal, enabling the control module to control the internal optocoupler to reach a saturated conduction state based on the increased electrical signal. This solution ensures the optocoupler remains saturated when the slave chip is replaced, thus improving the lifespan of the optocoupler. Attached Figure Description
[0037] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0040] Figure 1 This is a schematic diagram of a slave control circuit provided in an embodiment of this application;
[0041] Figure 2 This is a schematic diagram of another slave control circuit provided in an embodiment of this application;
[0042] Figure 3 A schematic diagram of another slave control circuit provided in the embodiments of this application;
[0043] Figure 4 This application provides a schematic flowchart of a control method based on a slave control circuit.
[0044] Figure 5 This is a schematic diagram of a slave control device provided in an embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] The terms "comprising" and "having" in the embodiments of this application are used to indicate an open-ended inclusion, meaning that there may be other elements / components / etc. in addition to the listed elements / components / etc.; the terms "first" and "second," etc., are used only as labels and are not intended to limit the number of objects. Furthermore, the different elements and areas in the drawings are only schematic, therefore this application is not limited to the dimensions or distances shown in the drawings.
[0047] To facilitate understanding of the embodiments of this application, the following will provide further explanation and description with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of this application.
[0048] Figure 1 This is a schematic diagram of a slave control circuit provided in an embodiment of this application. It is used to ensure that the optocoupler in the slave circuit remains saturated and conductive after replacing the slave chip. According to... Figure 1 The provided diagram shows that the slave control circuit specifically includes:
[0049] Slave chip MCU, adjustment module 11 and control module 12.
[0050] The first pin of the slave chip MCU is connected to the slave signal receiver TXS, the second pin is connected to the slave signal transmitter RXS / A, the third pin is connected to the master signal transmitter TXS1, the fourth pin is connected to the master signal receiver B, the fifth pin is connected to the first input terminal of the adjustment module 11, and the sixth pin is connected to the second input terminal of the adjustment module 11.
[0051] The first output terminal of the adjustment module 11 is connected to the first input terminal of the control module 12, and the second output terminal is connected to the second input terminal of the control module 12.
[0052] The third input terminal of the control module 12 is connected to the host signal transmitter TXS1, the fourth input terminal is connected to the slave signal transmitter TXS, the first output terminal is connected to the host signal receiver B, and the second output terminal is connected to the slave signal receiver RXS / A.
[0053] In this process, after receiving low-level signals from the host signal transmitter TXS1 and the host signal receiver B, the slave chip MCU inputs an adjustment signal to the adjustment module 11. The adjustment module 11 outputs a high-level signal to the control module 12 according to the adjustment signal. After receiving the high-level signal, the control module 12 controls the internal optocoupler to reach saturation conduction.
[0054] according to Figure 1 The provided diagram shows that after the slave chip MCU is replaced, the magnitudes of the master signal TXS1 output by the master signal transmitter connected to the slave chip pin and the slave signal TXS output by the slave signal transmitter are detected. When both electrical signals are detected to be low, it indicates that the device in the control module is in an unsaturated state. By outputting the corresponding control signal to the adjustment module, the optocoupler device in the control module is made to achieve saturation conduction.
[0055] The slave control circuit provided in this application embodiment comprises a slave chip, an adjustment module, and a control module. The slave chip has its first pin connected to the slave signal receiver, its second pin connected to the slave signal transmitter, its third pin connected to the master signal transmitter, its fourth pin connected to the master signal receiver, its fifth pin connected to the first input of the adjustment module, and its sixth pin connected to the second input of the adjustment module. The adjustment module has its first output connected to the first input of the control module and its second output connected to the second input of the control module. The control module has its third input connected to the master signal transmitter, its fourth input connected to the slave signal transmitter, its first output connected to the master signal receiver, and its second output connected to the slave signal receiver. When the slave chip detects that the master's transmitted and received signals are at a low level, it outputs a control signal. The adjustment module uses this control signal to boost the output signal, enabling the control module to control the internal optocoupler to reach a saturated conduction state based on the increased electrical signal. This solution ensures the optocoupler remains saturated when the slave chip is replaced, thus improving the lifespan of the optocoupler.
[0056] In an optional embodiment of this application, the adjustment module includes: an adjustment chip and an adjustment unit; a first pin of the adjustment chip is connected to the fifth pin of the slave chip for receiving a first adjustment signal, a second pin of the adjustment chip is connected to the sixth pin of the slave chip for receiving a second adjustment signal, a third pin of the adjustment chip is connected to the slave power output terminal, a fourth pin is connected to the first input terminal of the adjustment unit, a fifth pin is connected to the second input terminal of the adjustment unit, a sixth pin is connected to the third input terminal of the adjustment unit, and a seventh pin is connected to the fourth input terminal of the adjustment unit. The adjustment chip is used to boost the signal output from the slave chip; a first output terminal of the adjustment unit is connected to the first input terminal of the control module, and a second output terminal is connected to the second input terminal of the control module. The adjustment unit is used to output the boosted control signal from the adjustment chip to the control module.
[0057] In an optional embodiment of this application, the adjustment unit includes: a first capacitor, a second capacitor, and a third capacitor; one end of the first capacitor is connected to the third pin of the adjustment chip, and the other end is connected to the second ground terminal; one end of the second capacitor is connected to the sixth pin of the adjustment chip and the first output terminal of the adjustment module, and the other end is connected to the seventh pin of the adjustment chip and the third ground terminal; one end of the third capacitor is connected to the fifth pin of the adjustment chip and the second output terminal of the adjustment module, and the other end is connected to the fourth ground terminal.
[0058] In an optional embodiment of this application, the control module includes: a slave interface, a first control unit, and a second control unit; the first end of the slave interface is connected to the host power output and the first input of the second control unit, the second end is connected to the host signal transmitting end and the first input of the first control unit, the third end is connected to the host signal receiving end and the output of the second control unit, and the fourth end is connected to the fifth grounding end and the second output of the second control unit; the second input of the first control unit is connected to the first output of the adjustment module, the third input is connected to the slave power output, and the output is connected to the slave signal receiving end; the first control unit is used to control the internal devices to transmit signal data when they are in saturation conduction; the second input of the second control unit is connected to the second output of the adjustment module, and the third input is connected to the slave signal transmitting end; the second control unit is used to control the internal devices to transmit signal data when they are in saturation conduction.
[0059] In an optional embodiment of this application, the first control unit includes: a first resistor, a fourth capacitor, a second resistor, and a first optocoupler; one end of the first resistor is connected to the first output terminal of the adjustment module, and the other end is connected to the first input terminal of the first optocoupler and one end of the fourth capacitor; the other end of the fourth capacitor is connected to the second terminal of the slave interface and the second input terminal of the first optocoupler; the first output terminal of the first optocoupler is connected to one end of the second resistor and the slave signal receiving terminal, and the second output terminal is connected to the sixth ground terminal; the other end of the second resistor is connected to the slave power output terminal.
[0060] In an optional embodiment of this application, the second control unit includes: a third resistor, a fourth resistor, and a second optocoupler; one end of the third resistor is connected to the first end of the slave interface and the host power output end, and the other end is connected to the third end of the slave interface, the host signal receiving end, and the first output end of the second optocoupler; the second output end of the second optocoupler is connected to the fourth end and the fifth ground end of the slave interface, the first input end is connected to one end of the fourth resistor, and the second input end is connected to the slave signal transmitting end; the other end of the fourth resistor is connected to the second output end of the adjustment module.
[0061] In one optional embodiment of this application, the slave control circuit is connected to the master circuit; after the master chip is connected to the slave control circuit, signal data is transmitted through UART communication.
[0062] The following will take the slave chip, the adjustment module including the adjustment chip and the adjustment unit, and the control module including the slave interface, the first control unit and the second control unit as examples for introduction. Figure 2 This is a schematic diagram of another slave control circuit provided in an embodiment of this application. Figure 2 This is based on the previous embodiment. Figure 2The provided diagram shows the specific structure of the slave control circuit, including:
[0063] Slave chip MCU, adjustment module 11 and control module 12.
[0064] according to Figure 2 The provided diagram shows that the adjustment module 11 in the slave control circuit includes: an adjustment chip U1 and an adjustment unit 111.
[0065] The first pin PWM of the regulating chip U1 is connected to the fifth pin of the slave chip MCU to receive the first regulating signal PWM1. The second pin PWM of the regulating chip U1 is connected to the sixth pin of the slave chip MCU to receive the second regulating signal PWM2. The third pin of the regulating chip U1 is connected to the output terminal of the slave power supply VCC2. The fourth pin is connected to the first input terminal of the regulating unit 111. The fifth pin is connected to the second input terminal of the regulating unit 111. The sixth pin is connected to the third input terminal of the regulating unit 111. The seventh pin is connected to the fourth input terminal of the regulating unit 111. The regulating chip U1 is used to boost the signal output from the slave chip MCU.
[0066] The first output terminal of the adjustment unit 111 is connected to the first input terminal of the control module 12, and the second output terminal is connected to the second input terminal of the control module 12. The adjustment unit 111 is used to output the control signal after the adjustment chip U1 has been boosted to the control module 12.
[0067] according to Figure 2 The provided diagram shows that after the slave chip MCU is changed, the signals of the slave signal transmitter and the master signal transmitter connected to the slave chip MCU are detected. When both are detected to be low level, it indicates that the control module in the current communication circuit has an optocoupler that is not saturated and conducting. By outputting the first adjustment signal PWM1 and the second adjustment signal PWM2, the adjustment chip U1 increases the voltage value of the output signal according to the received first adjustment signal PWM1 and second adjustment signal PWM2. The adjustment unit outputs the voltage-enhanced output signal. The control module uses the input voltage-enhanced electrical signal to achieve the purpose of saturated conduction of the internal optocoupler.
[0068] according to Figure 2 The provided diagram shows that the control module 12 in the slave control circuit includes: a slave interface CN1, a first control unit 121, and a second control unit 122.
[0069] The first terminal of the slave interface CN1 is connected to the output terminal of the host power supply VCC1 and the first input terminal of the second control unit 122. The second terminal is connected to the host signal transmitter TXS1 and the first input terminal of the first control unit 121. The third terminal is connected to the host signal receiver B and the output terminal of the second control unit 122. The fourth terminal is connected to the fifth ground terminal GND and the second output terminal of the second control unit 122.
[0070] The second input terminal of the first control unit 121 is connected to the first output terminal of the adjustment module 11, the third input terminal is connected to the output terminal of the slave power supply VCC2, and the output terminal is connected to the slave signal receiving terminal RXS / A. The first control unit 121 is used to control the transmission of signal data when the internal devices are in saturation conduction.
[0071] The second input terminal of the second control unit 122 is connected to the second output terminal of the adjustment module 11, and the third input terminal is connected to the slave signal transmitting terminal TXS. The second control unit 122 is used to control the transmission of signal data when the internal device is in saturation conduction.
[0072] Optionally, the slave control circuit is connected to the master circuit; after the master chip is connected to the slave control circuit, signal data is transmitted through UART communication.
[0073] according to Figure 2 The provided diagram shows that after the slave MCU chip is replaced, when both the master and slave signals are detected to be low, it indicates that the optocoupler in the control module 12 of the current circuit is in a non-saturated conduction state. By outputting a control signal, the adjustment module 11 increases the voltage value of the output signal, and the increased voltage signal is input to the first control unit 121, causing the optocoupler inside the first control unit 121 to achieve saturated conduction. Similarly, the increased voltage signal is input to the second control unit 122, causing the optocoupler inside the second control unit 122 to achieve saturated conduction. This achieves the technical effect of ensuring saturated conduction of the optocoupler when replacing the slave MCU chip, thereby improving the service life of the optocoupler.
[0074] This application provides a slave control circuit that detects the output master signal and slave signal through a slave chip. When both are at a low level, it ensures that the optocoupler in the control module has an unsaturated conduction phenomenon. By outputting a control signal, it controls the adjustment module to increase the output voltage. The first control unit, based on the input increased voltage signal, causes the internal optocoupler to saturate conduction. The second control unit, based on the input increased voltage signal, also causes the internal optocoupler to saturate conduction. This achieves the technical effect of ensuring the optocoupler is saturated when replacing the slave chip MCU, thereby improving the service life of the optocoupler.
[0075] The following will be an introduction using the slave chip, the regulating chip, the regulating unit including a first capacitor, a second capacitor and a third capacitor, the slave interface, the first control unit including a first resistor, a fourth capacitor, a second resistor and a first optocoupler, and the second control unit including a third resistor, a fourth resistor and a second optocoupler as examples. Figure 3 This is a schematic diagram of another slave control circuit provided in an embodiment of this application. Figure 3 This is based on the first embodiment. Figure 3 The provided diagram shows that the slave control circuit specifically includes:
[0076] Slave chip MCU, regulating chip U1, regulating unit 111, slave interface CN1, first control unit 121 and second control unit 122.
[0077] according to Figure 3 The provided diagram shows that the adjustment unit 111 in the slave control circuit includes: a first capacitor C1, a second capacitor C2, and a third capacitor C3.
[0078] One end of the first capacitor C1 is connected to the third pin of the regulating chip U1, and the other end is connected to the second ground terminal GND_D.
[0079] One end of the second capacitor C2 is connected to the sixth pin of the regulating chip U1 and the first output terminal of the regulating module 11, and the other end is connected to the seventh pin of the regulating chip U1 and the third ground terminal GND_D.
[0080] One end of the third capacitor C3 is connected to the fifth pin of the regulating chip U1 and the second output terminal of the regulating module 11, and the other end is connected to the fourth ground terminal GND_D.
[0081] Among them, the first capacitor C1, the second capacitor C2, and the third capacitor C3 are filter capacitors.
[0082] according to Figure 3 The provided diagram shows that after the regulating chip U1 receives the regulating signal (including PWM1 signal and PWM2 signal), the voltage value of the output signal is increased by the filtering effect of the first capacitor C1, the second capacitor C2 and the third capacitor C3, thereby obtaining the first output signal VOUT1 and the second output signal VOUT2, providing a higher voltage signal to the control module.
[0083] according to Figure 3 The provided diagram shows that the first control unit 121 in the slave control circuit includes:
[0084] The first resistor R1, the fourth capacitor C4, the second resistor R2, and the first optocoupler U2.
[0085] One end of the first resistor R1 is connected to the first output terminal of the adjustment module 11, and the other end is connected to the first input terminal of the first optocoupler U2 and one end of the fourth capacitor C4.
[0086] The other end of the fourth capacitor C4 is connected to the second end of the slave interface CN1 and the second input end of the first optocoupler U2.
[0087] The first output terminal of the first optocoupler U2 is connected to one end of the second resistor R2 and the slave signal receiving terminal RXS / A, and the second output terminal is connected to the sixth ground terminal GND_D.
[0088] The other end of the second resistor R2 is connected to the output terminal of the slave power supply VCC1.
[0089] Furthermore, the current input to the first optocoupler U2 by the first output signal VOUT1 is IF1. When the first output signal VOUT1 increases, the current input to the first optocoupler U2 increases. According to the formula that the collector current IC1 at the output terminal of the first optocoupler is equal to the forward current IF1 at the input terminal and the current transfer ratio CTR is constant, the current value at the output terminal of the first optocoupler can be increased by increasing the value of IF1. By continuously increasing the value of the output signal VOUT1, the first optocoupler is saturated and turned on. Since the current maintains the current output, the optical decay of the first optocoupler is reduced, and the service life of the first optocoupler is improved.
[0090] according to Figure 3 The provided diagram shows that the second control unit 122 in the slave control circuit includes: a third resistor R3, a fourth resistor R4, and a second optocoupler U3.
[0091] One end of the third resistor R3 is connected to the first terminal of the slave interface CN1 and the output terminal of the host power supply VCC1, and the other end is connected to the third terminal of the slave interface CN1, the host signal receiving terminal B, and the first output terminal of the second optocoupler U3.
[0092] The second output terminal of the second optocoupler U3 is connected to the fourth terminal and the fifth ground terminal GND of the slave interface CN1, the first input terminal is connected to one end of the fourth resistor R4, and the second input terminal is connected to the slave signal transmitting terminal TXS.
[0093] The other end of the fourth resistor R4 is connected to the second output terminal of the adjustment module 11.
[0094] The current output by the second output signal VOUT2 to the second optocoupler U3 is IF2.
[0095] Furthermore, the current input to the second optocoupler U3 by the second output signal VOUT2 is IF2. When the second output signal VOUT2 increases, the current input to the second optocoupler U3 increases. According to the formula: the collector current IC2 at the output terminal of the second optocoupler = the forward current at the input terminal IF2 * the current transfer ratio CTR, while the current transfer ratio CTR remains unchanged, the current value at the output terminal of the second optocoupler can be increased by increasing the value of IF2. By continuously increasing the value of the output signal VOUT2, the second optocoupler is saturated and turned on. Since the current maintains the current output, the optical decay of the second optocoupler is reduced, and the service life of the second optocoupler is improved.
[0096] In one possible scenario of power dynamics... Figure 4 This is a schematic flowchart of a control method based on a slave control circuit provided in an embodiment of this application. Figure 4 The provided diagram illustrates the specific steps of the slave control method, including:
[0097] Step 1: Identify the voltage at the master-send signal TXS1 and slave-send signal TXS pins of the slave chip MCU.
[0098] Step 2: When the voltage at the master transmit signal TXS1 and the slave transmit signal TXS is high, the slave chip does not perform any processing, and the output VOUT1 / VOUT2 of the control adjustment module remains unchanged at the initial level V1 / V2.
[0099] Step 3: When the voltage at TXS1 / TXS is low, identify the voltages of pins RXS / A and B in the slave chip.
[0100] Step 4: Determine whether the voltages at pins RXS / A and B are 0.
[0101] Step 5: When the voltage of pins RXS / A and B is 0, it indicates that optocouplers U2 and U3 are in saturation conduction state. The slave chip MCU controls the regulating chip U1 to maintain the output voltage VOUT1 / VOUT2 unchanged at this time.
[0102] Step 6: When the voltages of pins RXS / A and B are not 0, the slave chip MCU controls the regulating chip U1 to increase the output voltage VOUT1 / VOUT2 to N volts respectively, so that the output voltage is large enough, thereby controlling the optocouplers U2 and U3 to achieve saturation conduction.
[0103] In one possible scenario, when the slave circuit of UART communication is working, the slave chip MCU in the slave circuit identifies the voltage level at the TXS1 / TXS pins. If the voltage at the TXS1 / TXS pins is high, the slave chip MCU does not process it, and VOUT1 / VOUT2 is initially at a lower level V1 / V2. If the voltage at the TXS1 / TXS pins is low, the slave chip MCU identifies the voltage at the A / B pins. If the voltage at the A / B pins is 0, the slave chip MCU controls the regulating chip U1 to maintain the output voltage VOUT1 / VOUT2 at this time. If the voltage at the A / B pins is not 0, it means that the optocoupler U2 / U3 is not saturated and conducting. At this time, the slave chip MCU outputs PWM1 / PWM2 signals to control the regulating chip U1 (e.g., IC GP8401) to increase the output voltage VOUT1 / VOUT2. N volts are used to increase the forward current IF1 / IF2 at the input terminals of optocouplers U2 and U3, so that optocouplers U2 / U3 can be saturated and turned on. The slave chip MCU identifies the voltage at pins A and B every T seconds. If the voltage is still not 0, it continues to control the regulating chip U1 to increase the output voltage VOUT1 / VOUT2. If the voltage is 0, it maintains the output voltage of the regulating chip U1 at this time.
[0104] Figure 5 This is a schematic diagram of a slave control device provided in an embodiment of this application. Figure 5 The provided diagram shows that the slave control device 1000 includes a master circuit 10 and, as shown in the diagram, a slave control device 1000. Figure 1-3 The slave control circuit 100 described in any of the above.
[0105] The control device provided in this embodiment can be as follows: Figure 5 The control device shown can perform, for example Figure 1-3 All the structures of the slave control circuit, thus realizing Figure 1-3 For details on the technical effects of the slave control circuit shown, please refer to [link / reference]. Figure 1-3 The relevant descriptions are presented concisely and will not be elaborated upon here.
[0106] This application provides a slave control device. The slave control device includes, as in... Figure 5 Any of the slave control devices described herein.
[0107] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above description is only a specific embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A slave control circuit, characterized in that, include: Slave chip, adjustment module, and control module; The first pin of the slave chip is connected to the slave signal receiving terminal, the second pin is connected to the slave signal transmitting terminal, the third pin is connected to the master signal transmitting terminal, the fourth pin is connected to the master signal receiving terminal, the fifth pin is connected to the first input terminal of the adjustment module, and the sixth pin is connected to the second input terminal of the adjustment module. The first output terminal of the adjustment module is connected to the first input terminal of the control module, and the second output terminal is connected to the second input terminal of the control module. The third input terminal of the control module is connected to the host signal transmitting terminal, the fourth input terminal is connected to the slave signal transmitting terminal, the first output terminal is connected to the host signal receiving terminal, and the second output terminal is connected to the slave signal receiving terminal. In this process, after receiving low-level signals from the host signal transmitter and host signal receiver, the slave chip inputs an adjustment signal to the adjustment module. The adjustment module then outputs a high-level signal to the control module based on the adjustment signal. Upon receiving the high-level signal, the control module controls the internal optocoupler to achieve saturation conduction.
2. The circuit according to claim 1, characterized in that, The adjustment module includes: an adjustment chip and an adjustment unit; The first pin of the regulating chip is connected to the fifth pin of the slave chip for receiving a first regulating signal. The second pin of the regulating chip is connected to the sixth pin of the slave chip for receiving a second regulating signal. The third pin of the regulating chip is connected to the slave power output terminal. The fourth pin is connected to the first input terminal of the regulating unit. The fifth pin is connected to the second input terminal of the regulating unit. The sixth pin is connected to the third input terminal of the regulating unit. The seventh pin is connected to the fourth input terminal of the regulating unit. The regulating chip is used to boost the signal output by the slave chip. The first output terminal of the adjustment unit is connected to the first input terminal of the control module, and the second output terminal is connected to the second input terminal of the control module. The adjustment unit is used to output the control signal after the adjustment chip has been boosted to the control module.
3. The circuit according to claim 2, characterized in that, The adjustment unit includes: a first capacitor, a second capacitor, and a third capacitor; One end of the first capacitor is connected to the third pin of the regulating chip, and the other end is connected to the second ground terminal; One end of the second capacitor is connected to the sixth pin of the regulating chip and the first output terminal of the regulating module, and the other end is connected to the seventh pin of the regulating chip and the third ground terminal. One end of the third capacitor is connected to the fifth pin of the regulating chip and the second output terminal of the regulating module, and the other end is connected to the fourth ground terminal.
4. The circuit according to claim 1, characterized in that, The control module includes: a slave interface device, a first control unit, and a second control unit; The slave interface is connected to the host power output terminal and the first input terminal of the second control unit at the first end, the host signal transmitting terminal and the first input terminal of the first control unit at the second end, the host signal receiving terminal and the output terminal of the second control unit at the third end, and the fifth ground terminal and the second output terminal of the second control unit at the fourth end. The second input terminal of the first control unit is connected to the first output terminal of the adjustment module, the third input terminal is connected to the slave power output terminal, and the output terminal is connected to the slave signal receiving terminal. The first control unit is used to control the transmission of signal data when the internal device is in saturation conduction. The second input terminal of the second control unit is connected to the second output terminal of the adjustment module, and the third input terminal is connected to the slave signal transmitting terminal. The second control unit is used to control the transmission of signal data when the internal device is in saturation conduction.
5. The circuit according to claim 4, characterized in that, The first control unit includes: The first resistor, the fourth capacitor, the second resistor, and the first optocoupler; One end of the first resistor is connected to the first output terminal of the adjustment module, and the other end is connected to the first input terminal of the first optocoupler and one end of the fourth capacitor. The other end of the fourth capacitor is connected to the second end of the slave interface and the second input end of the first optocoupler. The first output terminal of the first optocoupler is connected to one end of the second resistor and the slave signal receiving terminal, and the second output terminal is connected to the sixth ground terminal; The other end of the second resistor is connected to the slave power output terminal.
6. The circuit according to claim 4, characterized in that, The second control unit includes: a third resistor, a fourth resistor, and a second optocoupler; One end of the third resistor is connected to the first end of the slave interface and the power output end of the host, and the other end is connected to the third end of the slave interface, the signal receiving end of the host, and the first output end of the second optocoupler. The second output terminal of the second optocoupler is connected to the fourth terminal and the fifth ground terminal of the slave interface, the first input terminal is connected to one end of the fourth resistor, and the second input terminal is connected to the slave signal transmitting terminal; The other end of the fourth resistor is connected to the second output terminal of the adjustment module.
7. The circuit according to claim 1, characterized in that, The slave control circuit is connected to the master circuit; After the host circuit is connected to the slave control circuit, signal data is transmitted via UART communication.
8. A slave control device, characterized in that, include: The device includes a host circuit and a slave control circuit as described in any one of claims 1-6.
9. A communication device, characterized in that, include: The device includes the slave control device as described in claim 8.
Citation Information
Patent Citations
MBUS host sending circuit, bus system and signal sending method
CN112886813A
Optocoupler fault detection circuit and method and communication system
CN113433485A
Isolation controllable filter circuit for optocoupler input
CN116470897A