Darlington driving chip of double-wire communication protocol
Through the Darlington driver chip with the dual-wire communication protocol, the clock signal and data signal bus are used to achieve control and communication of multiple Darlington tubes, solving the unidirectionality and inconvenient use of the microcontroller control method, reducing costs And improves security and feedback capabilities.
Patent Information
- Application Number
- CN202411042368.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-31
AI Technical Summary
In the prior art, the method of controlling the Darlington tube by microcontrollers has problems such as one-way control function, inconvenient use, high cost and inability to monitor the load status in real time, resulting in safety hazards and the risk of chip damage.
Darlington driver chip adopts the dual-wire communication protocol to control and communicate multiple Darlington tubes through the clock signal bus and the data signal bus, including signal input port, data reception module, logic control module and Darlington output The port can extract the address, function and control data in serial data, perform multiplexed Darlington tube control, monitor abnormal data and temperature, and provide feedback to the microcontroller.
It realizes flexible control and real-time monitoring of multiple Darlington tubes, reduces the number of output ports and signal lines of the microcontroller, reduces costs, and improves the security of use and feedback capabilities, avoiding chip damage.
Smart Images

Figure CN118964268A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of circuit design, and in particular to a Darlington driver chip of a two-wire communication protocol. Background Art
[0002] The Darlington tube is also called a composite tube. It connects two triodes in series to form an equivalent new triode. The characteristic of the Darlington tube is that the amplification factor is very high, so it is often used in power amplifiers and voltage regulators.
[0003] The traditional control method is to directly control the Darlington tube through a single-chip microcomputer, and its control line corresponds to the number of Darlington tubes. Figure 1 It can be seen that an 8-way Darlington tube requires an 8-way MCU port for control. As the number of Darlington tube combinations continues to increase, the control line of the MCU must also change accordingly, which not only causes inconvenience in use, but also increases costs. For MCUs with fewer pins, they may even need to be replaced. In addition, the traditional MCU control method generally only has a one-way control function and cannot synchronize safety issues that arise during work, such as: the overcurrent protection point is fixed and cannot flexibly adapt to different loads; excessive temperature can cause the chip to burn out; the load working status cannot be monitored in real time and cannot be adjusted in real time; there is no overcurrent and short-circuit protection, which can easily cause chip damage.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a Darlington driver chip with a two-wire communication protocol is provided, aiming to solve the problem that the existing single-chip microcomputer control method only has a one-way control function and needs to be changed according to the number of Darlington tubes, which is inconvenient to use.
[0006] The present application provides a Darlington driver chip with a two-wire communication protocol, which adopts the following technical solution:
[0007] A Darlington driver chip of a two-wire communication protocol comprises: a signal input port, a data receiving module, a logic control module, a Darlington output port and a multi-channel Darlington tube;
[0008] The signal input port is connected to the clock signal output end and the data signal output end of the microcontroller, and the Darlington output port has multiple output channels, and the multiple output channels are respectively connected to the multiple Darlington tubes correspondingly;
[0009] The signal input port is used to receive a serial data signal from the data signal output end based on the clock signal output by the clock signal output end, and transmit the received serial data signal to the data receiving module;
[0010] The data receiving module extracts address data from the address field of the serial data signal, and compares the address data with the address bit of the current Darlington driver chip, and when the address bit is the same as the address data, extracts function data and control data from the function field and control field of the serial data signal, and transmits the function data and control data to the logic control module;
[0011] The data receiving module is also used for, when the address bit is the same as the address data, receiving abnormal data of the Darlington driver chip and the Darlington tube fed back by the logic control module, and feeding back the abnormal data to the microcontroller;
[0012] The logic control module sends a control signal to the multi-channel Darlington tubes through the Darlington output port based on the function data and the control data, so as to control the operation of the multi-channel Darlington tubes.
[0013] Furthermore, the data receiving module is also used for:
[0014] When the address bit is the same as the address data, the frame format of the serial data signal is checked, the frame format of the serial data signal includes: an address field, a function field, a control field, and a check field, and the check items include at least one of the following: checking whether the number of bits and the number of valid bits included in each field of the serial data signal are preset numbers; checking whether the value corresponding to the valid bit of each field in the serial data signal is a preset value; and whether the parity check bit in the check field is correct.
[0015] Furthermore, the data receiving module is also used for:
[0016] When the address bit is the same as the address data and the serial data signal is verified to be correct, the Darlington driver chip updates the content of the data receiving module, reads abnormal data from the logic control module, and feeds the abnormal data back to the microcontroller.
[0017] Furthermore, the data receiving module is also used for:
[0018] When the address bit is not the same as the address data, or the serial data signal is incorrectly checked, the Darlington driver chip discards the serial data signal, and the microcontroller resends the serial data signal.
[0019] Furthermore, the function data is used to indicate the function of each output channel, and the logic control module generates a function signal based on the function data, and sends the function signal to each Darlington tube through the Darlington output port to drive each Darlington tube to turn on or off.
[0020] Furthermore, the control data is used to indicate the parameters of each output channel, and the logic control module generates a control signal based on the control data, and sends the control signal to each Darlington tube through the Darlington output port to control the current parameters of each Darlington tube.
[0021] Furthermore, the Darlington driver chip further includes: an exception handling module;
[0022] The abnormality processing module is used to: monitor whether the output current of each output channel is abnormal, and generate an abnormality signal;
[0023] The exception handling module is further used to: transmit the exception signal to the logic control module, and close the output channel in the abnormal state.
[0024] Furthermore, the Darlington driver chip further comprises: a reference module and a temperature protection module;
[0025] The temperature protection module is connected to the reference module and the logic control module respectively, and the reference module is used to provide a corresponding reference point for the Darlington driver chip;
[0026] The temperature protection module is used to monitor whether the temperature of the Darlington driver chip exceeds a preset temperature threshold according to the reference point;
[0027] When the temperature of the Darlington driver chip exceeds a preset temperature threshold;
[0028] The temperature protection module generates an over-temperature signal and transmits the generated over-temperature signal to the logic control module;
[0029] The logic control module turns off the Darlington output port according to the over-temperature signal.
[0030] Furthermore, it also includes: an overcurrent detection module;
[0031] The overcurrent detection module is connected to the reference module and the logic control module respectively;
[0032] The overcurrent detection module is used to detect whether the working current of the Darlington driver chip exceeds the overcurrent value according to the reference point;
[0033] When the operating current of the Darlington driver chip exceeds the overcurrent value;
[0034] The overcurrent detection module generates an overcurrent signal and transmits the generated overcurrent signal to the logic control module;
[0035] The logic control module closes the Darlington output port according to the overcurrent signal.
[0036] Furthermore, it also includes: a clock module;
[0037] The clock module is connected to the logic control module and the exception handling module, and is used to provide a clock reference.
[0038] Beneficial effects of the present invention: The present invention sets a clock signal output port and a data signal output port on a microcontroller, and adopts a clock signal bus and a data signal bus to connect the clock signal output port with the clock signal input port of a Darlington driver chip, and the data signal output port with the data signal input port of the Darlington driver chip. The Darlington output port is connected to multiple Darlington tubes. The signal input port receives a serial data signal from the microcontroller C based on the clock signal sent by the microcontroller C. The signal receiving module extracts address data from the address field of the serial data signal, and compares the address data with the current Darlington driver chip. The built-in address bits of the chip are compared. When the address data is consistent with the built-in address bits of the current Darlington driver chip and the check bit extracted from the check field of the serial data signal is also correct, the serial data signal is valid. The logic control module extracts the function data and the control data based on the function field and the control field in the serial data signal, and then controls the operation of the multi-channel Darlington tubes through the Darlington output port. At the same time, the data receiving module reads the abnormal information of the Darlington driver chip and the multi-channel Darlington tubes stored in the logic control module, and provides it to the microcontroller, so that the abnormal information is fed back in time, thereby realizing the control and communication functions based on two signal buses. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the prior art.
[0040] Figure 2 It is a schematic diagram of an application scenario of a Darlington driver chip of a two-wire communication protocol provided in an embodiment of the present invention.
[0041] Figure 3 It is a schematic diagram of further application scenarios of the Darlington driver chip of the two-wire communication protocol provided in an embodiment of the present invention.
[0042] Figure 4 It is a schematic diagram of a chip architecture of a Darlington driver chip of a two-wire communication protocol provided in an embodiment of the present invention.
[0043] Figure 5Schematic diagram of another chip architecture of the Darlington driver chip of the two-wire communication protocol provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The present invention discloses a Darlington driver chip of a two-wire communication protocol. In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0045] like Figure 1 and Figure 2 As shown, the embodiment of the present application discloses a Darlington driver chip of a two-wire communication protocol, wherein the Darlington driver chip is connected between a microcontroller (MCU, Micro Control Unit) C and a Darlington tube, wherein the microcontroller may also be referred to as a single-chip microcomputer, and the Darlington tube is set to at least two channels, and the microcontroller controls the operation of multiple Darlington tubes through two data transmission lines. Compared with the existing N-channel Darlington that requires N data lines for control, the control method is greatly simplified and the cost is reduced. Moreover, through the Darlington driver chip, not only the control and communication functions are realized at the same time, but also the abnormal problems existing in the driver chip and the Darlington tube during the control process can be fed back in time, and the microcontroller controls the Darlington driver chip or the Darlington tube to stop working, thereby ensuring the safety of use.
[0046] In an embodiment of the present application, the microcontroller C may include a clock signal output terminal and a data signal output terminal. The Darlington driver chip includes a signal input port and a Darlington output port, wherein the signal input port includes a clock signal input port and a data signal input port. The clock signal input port of the Darlington driver chip is connected to the clock signal output terminal of the microcontroller C through a clock signal bus, and the data signal input port of the Darlington driver chip is connected to the data signal output terminal of the microcontroller C through a data signal bus. The Darlington output port of the Darlington driver chip includes multiple output channels, and the multiple output channels are connected to the Darlington tubes one by one. The microcontroller C may include, but is not limited to, various control devices such as PLC (Programmable Logic Controller), FPGA (Field-Programmable Gate Array), and single-chip microcomputers.
[0047] In the embodiment of the present application, the Darlington driver chip receives the serial data signal through the data signal input port based on the clock signal received by the clock signal input port. The Darlington driver chip compares the address bit pre-set in the Darlington driver chip with the address data of the address field in the serial data signal. When the address bit in the Darlington driver chip is the same as the address data of the address field in the serial data signal, based on the function data and control data of the function field in the serial data signal, the control signal is sent to each Darlington tube through the Darlington output port, and the abnormal signal inside the Darlington driver chip and the abnormal signal of each Darlington tube are fed back to the microcontroller C, thereby realizing the control and communication functions.
[0048] from Figure 3It can be seen that the microcontroller C controls the Darlington driver chip through two signal lines, and then controls the multi-channel Darlington tubes, and the multi-channel Darlington tubes are connected to the multi-channel loads, and the loads may include but are not limited to relays and other devices, wherein the multi-channel Darlington tubes are integrated on the Darlington driver chip, so that the microcontroller C controls the multi-channel Darlington tubes through two signal lines, and the existing microcontroller C directly controls the multi-channel Darlington driver chip, which requires N IO ports to correspond to the N-channel Darlington tubes, so the present application realizes the dual-line control and communication functions by designing a Darlington driver chip integrated with multi-channel Darlington tubes. Therefore, by setting the Darlington driver chip, the microcontroller C only needs to set the two output ports of the clock signal output port and the data signal output port, and only needs to connect the two signal buses of the clock signal bus and the data signal bus, so as to realize the control and communication of the multi-channel Darlington tubes. However, in the prior art, when it is necessary to control the operation of multiple Darlington tubes, the microcontroller C needs to set up multiple output ports and connect multiple signal lines. The number of the output ports of the microcontroller C and the number of the signal lines correspond to the number of Darlington tubes to be controlled. For example, when it is necessary to control the operation of 8-way Darlington tubes, the microcontroller C in the prior art needs to set up 8 output ports (except the power supply terminal and the ground terminal), and the microcontroller C needs to be connected to the 8-way Darlington tubes through 8 signal lines, thereby greatly increasing the number of ports of the microcontroller and the number of connected signal lines. In addition, in the prior art, the microcontroller C only has a one-way control effect on the multiple Darlington tubes, that is, the microcontroller C can only control the Darlington tubes to work or not work, and cannot obtain real-time feedback information. For example, when a Darlington tube is abnormal, the microcontroller cannot know which specific Darlington tube is abnormal, and then give a control signal to shut it down. In the embodiment of the present application, when controlling the operation of the multi-channel Darlington tube, the microcontroller C only needs to set two output ports, and connect the two buses with the Darlington driver chip through a clock signal bus and a data signal bus, so as to realize the functions of control and communication at the same time. Thus, compared with the prior art, the present application controls the operation of the multi-channel Darlington tube through the Darlington driver chip, which can reduce the number of output ports of the microcontroller and the number of signal lines required to be connected, thereby reducing the complexity of the microcontroller C, and then reducing the production cost of the microcontroller and the cost of the signal line, and, compared with the prior art, the Darlington driver chip of the present application also has the function of feeding back abnormal information, thereby forming a signal reverse communication between the microcontroller and the Darlington driver chip and the multi-channel Darlington tube, and improving the safety of use.
[0049] Below Figure 4 Take the Darlington driver chip shown in as an example, combined with Figure 4 and Figure 5 , which describes the structure and working principle of the Darlington driver chip in more detail. Please continue to refer to Figure 4 , Figure 4Schematic diagram of a chip architecture of a Darlington driver chip provided in an embodiment of the present application. Figure 4 As shown, the Darlington driver chip includes a signal input port, a data receiving module, a logic control module and a Darlington output port; the signal input port includes a clock signal input port and a data signal input port, and the signal input port is connected to the clock signal output terminal and the data signal output terminal of the microcontroller C; the data receiving module is located between the signal input port and the logic control module, and the logic control module is located between the data receiving module and the Darlington output port. The signal input port receives a serial data signal from the microcontroller C based on the clock signal sent by the microcontroller C. The serial data signal received by the signal output port is stored in a register in the data receiving module to save the received serial data signal.
[0050] The data receiving module moves the serial data signal in the register to the logic control module according to the preset frame format. Figure 5 As shown, the frame format of the serial data signal may include a start field, an address field, a function field, a control field, a check field, and an end field. The start field is located at the beginning of the serial data signal, and is used to ensure the identification of the serial data signal. For example, "11110" is used as the start field, so when "11110" is identified, it is a new serial data signal, and the "1111" field will not appear in the subsequent fields to ensure the accurate identification of the signal. After the start field is identified, the data signal is counted. To ensure that the data received by the data receiving end is valid, the Darlington driver chip has a built-in address bit, and the data receiving module extracts the address data from the address field of the serial data signal. Only when the address data is consistent with the built-in address bit of the current Darlington driver chip, the serial data signal is valid. If the address data is inconsistent with the built-in address bit of the current Darlington driver chip, the current Darlington driver chip does not perform any data update. At this time, its built-in address bit can be changed by wire bonding or trimming. In order to improve the anti-interference capability of the driver chip, the data receiving module can check the frame format of the serial data signal, and execute subsequent actions after the check is successful. If the check is unsuccessful, the serial data signal is discarded.
[0051] Specifically, the check items for the frame format of the serial data signal may include at least one of the following: checking whether the number of bits included in each field in the serial data signal and the number of valid bits (also referred to as check bits) are preset numbers; checking whether the value corresponding to the valid bit of each field in the serial data signal is a preset value; and checking whether the parity bit in the field is correct. For example, assuming that the frame format of the pre-agreed serial data signal is 22 bits, such as "11110ABC0LMN0RST0XYZ0D", the last bit of each field is agreed to be the check bit of each field, and the value of the last bit of each field is agreed to be "0". When checking the address field, it can be checked whether the bits included in the address field (ABC0) are four bits and whether the fourth bit in the address field is "0". If after checking, the address field does not include four bits, or the value of the last bit in the address field is not "0", the serial data signal is invalid, and the Darlington driver chip does not update the data. If after checking, the address field includes four bits, and the value of the last bit in the address field is "0" at the same time, the check field continues to be checked, that is, whether the parity check bit "Z" in the check field (XYZ0) is correct. If the value of the parity check bit "Z" in the check field is also correct at the same time, the serial data signal will be updated to the register of the Darlington driver chip. It should be noted that the data receiving module needs to check each field, and the value of the last bit of each field is agreed to be "0". That is to say, when checking, in addition to checking the number of bits in each field, it is also necessary to check whether the value of the last bit in each field is "0". When the number of bits in each field is consistent and the value of the last bit in each field is "0", the field is considered correct. When all fields are correct and the parity bit in the check field is also correct, the serial data signal can be identified as a valid signal, and the Darlington driver chip will update the serial data signal to the register inside the driver chip. The end field indicates that the data transmission is completed and the communication is over.
[0052] If the address data is inconsistent with the built-in address bit of the current Darlington driver chip, or the check item is incorrect, the serial data signal can be discarded; when the address data in the address field is consistent with the built-in address bit of the current Darlington driver chip, and the check item is also correct, the function data and control data corresponding to the function field and the control field are extracted, and the function data and control data are transmitted to the logic control module; specifically, the function data is used to indicate the function of each output channel, thereby controlling the closing or opening of each Darlington tube, and the control data is used to indicate the parameters of each output channel. For example, it is agreed that only 1 channel output is set, and the function field is: 10000000; it is agreed that the current output gear of each channel is the second gear, and the control field is: 0010. That is to say, the logic control module generates a function signal based on the function data, and sends it to each Darlington tube through the Darlington output port to control the opening or closing of each Darlington tube, that is, the function data is used to indicate the working state of which Darlington tube is connected to the Darlington driver chip. The control data is used to indicate the parameters of each output channel. The logic control module generates a control signal based on the control data and sends it to each Darlington tube through the Darlington output port to control the output current of each Darlington tube, that is, the control data is used to indicate the current gear of each Darlington tube connected to the Darlington driver chip.
[0053] After the data receiving module transmits the functional data and control data to the logic control module, the data receiving module reads the abnormal signal in the logic control module and feeds back the abnormal signal to the microcontroller end. Specifically, the abnormal signal may include the overcurrent signal and overtemperature signal of the Darlington driver chip, and the abnormal signal of each output channel about each Darlington tube. During the use of the device, it is inevitable to generate heat and sudden situations, which make the Darlington driver chip in an overcurrent and overtemperature state. At the same time, each output channel may also have short circuit, overcurrent, or even device damage. By feeding back these abnormal signals to the microcontroller end, it is possible to clearly know which specific component has an abnormality, and then an alarm can be used by a buzzer or voice prompt to remind the user, so that the user can understand the use of the device. After the logic control module feeds back the abnormal signal to the data receiving module, it can also process the abnormal signal. For example, when the driver chip overcurrent or overtemperature occurs, the logic control module can close all output channels to ensure the safety and reliability of the chip. It should be noted that when the data receiving module reads the abnormal signal in the logic control module, the clock signal remains unchanged, and the data signal bit changes from input to output. For example, it is agreed that the data read under abnormal conditions is 1. If channel 8 is abnormal, the data read from the logic control module is: 00000001.
[0054] By adopting the format of the serial data signal, not only the control function of the microcontroller C on the multi-channel Darlington tubes is realized, but also the reverse communication function of the multi-channel Darlington tubes (Darlington driver chip) to the microcontroller C is realized, thereby realizing a two-wire communication method integrating control and communication. The control of the multi-channel Darlington tubes by the microcontroller C is realized through two signal buses, which is not only simple to control, but also can monitor the working status of the Darlington driver chip in real time and obtain timely feedback, which is safer and more convenient to use.
[0055] Please continue to refer to Figure 5 , Figure 5 is another chip architecture schematic diagram of the Darlington driver chip provided in the embodiment of the present application. Figure 4 The difference between the Darlington driver chip shown is that Figure 3 The Darlington driver chip shown includes Figure 4 In addition to the structure of the Darlington driver chip shown, it also includes an exception handling module, a reference module, a clock module, an overcurrent detection module and a temperature protection module. Among them, the exception handling module is connected to the logic control module and the Darlington output port, and is used to detect whether the Darlington tubes connected to each output channel are working abnormally, such as short circuit or overcurrent. At the same time, the exception handling module can also process the abnormal signal. When an overcurrent occurs in a Darlington tube, the exception handling module can close the corresponding overcurrent output port and pass the abnormal signal to the logic control module, which is fed back to the microcontroller end for signal prompting. The Darlington driver chip can output multiple control signals at the same time to control the operation of multiple Darlington tubes. The multiple control signals are independent of each other and can also be related to each other to ensure the safety and reliability of the system. The following is explained by example. For example, if the 4th output channel has an abnormal condition such as short circuit or overcurrent, the abnormal handling module first controls the 4th channel to be closed, generates a 4-channel abnormal signal at the same time, and sends the 4-channel abnormal signal to the logic control module. Then the signal receiving module reads the 4-channel abnormal signal in the logic control module and provides it to the microcontroller, thereby realizing reverse communication of information, and timely understanding the abnormal information of the Darlington driver chip or Darlington tube. When the 4th output channel and the 5th output channel both have an abnormal condition such as short circuit or overcurrent, the abnormal handling module can simultaneously output two control signals to control the 4th channel and the 5th channel to be closed, and generate a 4-channel abnormal signal and a 5-channel abnormal signal, and sequentially feedback to the microcontroller end through the logic control module and the signal receiving module to realize the signal communication function. The clock module is connected to the logic control module and the abnormal handling module respectively. The clock module provides a reference clock signal. The clock module calibrates the reference clock signal based on the clock signal sent by the microcontroller C, so that the clock signal of the Darlington driver chip and the clock signal between the microcontroller C are synchronized, so as to accurately receive the serial data signal or send the abnormal signal based on the clock cycle.
[0056] The overcurrent detection module and the temperature protection module are connected to the reference module and the logic control module respectively, and the reference module can provide the reference data and reference signal inside the Darlington driver chip. For example, the reference module can provide the reference current source of the clock module. In addition, the reference module can also save the overcurrent point and the preset temperature threshold. The overcurrent detection module detects the current of the Darlington driver chip in real time, and compares the detected current value with the preset overcurrent point stored in the reference module, and transmits the comparison result to the logic control module. When the current value of the Darlington driver chip is greater than or equal to the preset overcurrent point, the logic control module controls each Darlington tube to stop working by closing all Darlington output ports. In addition, since the Darlington driver chip has a communication function, the user can change the overcurrent protection point of the Darlington driver chip according to the feedback information, and the overcurrent protection point can be changed in real time through the control end of the overcurrent detection module to increase the flexible applicability of the Darlington driver chip.
[0057] In some embodiments, the Darlington driver chip may also include an overcurrent timing module, which is connected to the overcurrent detection module. After detecting that the control signal output by the overcurrent detection module is valid, the overcurrent timing module may set the overcurrent time through the control signal. When the overcurrent time reaches the set time point, the overcurrent time signal is output to the logic control module. The logic control module closes the corresponding overcurrent output port according to the control signal of the overcurrent detection module and the overcurrent time signal of the overcurrent timing module. The temperature protection module detects the temperature of the Darlington driver chip in real time, and compares the detected temperature value with the preset temperature threshold stored in the reference module, and transmits the comparison result to the logic control module. When the temperature value of the Darlington driver chip is greater than or equal to the temperature threshold, the logic control module controls each Darlington tube to stop working by closing the Darlington output port to ensure the safety and reliability of the Darlington driver chip. In the process of driving household appliances (such as relays, LED lights, display screens, etc.), heat is inevitably generated. When driving more Darlington tubes, the driving current will inevitably increase. Therefore, by setting an overcurrent detection module and a temperature protection module, the current value and temperature of the Darlington driver chip are monitored in real time to avoid damage to the chip due to excessive temperature or current value, thereby protecting the Darlington driver chip from overheating and overcurrent.
[0058] In summary, compared with the prior art, the present invention has the following advantages: the present invention sets a clock signal output port and a data signal output port on the microcontroller, and adopts a clock signal bus and a data signal bus to connect the clock signal output port with the clock signal input port of the Darlington driver chip, and the data signal output port with the data signal input port of the Darlington driver chip. The Darlington output port is connected to multiple Darlington tubes. The signal input port receives a serial data signal from the microcontroller C based on the clock signal sent by the microcontroller C. The signal receiving module extracts address data from the address field of the serial data signal, and compares the address data with the current address field. The built-in address bits of the Darlington driver chip are compared. When the address data is consistent with the built-in address bits of the current Darlington driver chip and the check bits extracted from the check field of the serial data signal are also correct, the serial data signal is valid. The logic control module extracts the function data and the control data based on the function field and the control field in the serial data signal, and then controls the operation of the multi-channel Darlington tubes through the Darlington output port. At the same time, the data receiving module reads the abnormal information of the Darlington driver chip and the multi-channel Darlington tubes stored in the logic control module, and provides it to the microcontroller C, so that the abnormal information is fed back in time, thereby realizing the dual-function effect of control and communication based on two signal buses.
[0059] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A Darlington driver chip with a two-wire communication protocol, characterized in that: include: Signal input port, data receiving module, logic control module, Darlington output port and multi-channel Darlington tube; The signal input port is connected to the clock signal output end and the data signal output end of the microcontroller, and the Darlington output port has multiple output channels, and the multiple output channels are respectively connected to the multiple Darlington tubes correspondingly; The signal input port is used to receive a serial data signal from the data signal output end based on the clock signal output by the clock signal output end, and transmit the received serial data signal to the data receiving module; The data receiving module extracts address data from the address field of the serial data signal, and compares the address data with the address bit of the current Darlington driver chip, and when the address bit is the same as the address data, extracts function data and control data from the function field and control field of the serial data signal, and transmits the function data and control data to the logic control module; The data receiving module is also used for, when the address bit is the same as the address data, receiving abnormal data based on the Darlington driver chip and the Darlington transistor fed back by the logic control module, and feeding back the abnormal data to the microcontroller; The logic control module sends a control signal to the multi-channel Darlington tubes through the Darlington output port based on the function data and the control data, so as to control the operation of the multi-channel Darlington tubes.
2. The Darlington driver chip of the two-wire communication protocol according to claim 1, characterized in that: The data receiving module is also used for: When the address bit is the same as the address data, the frame format of the serial data signal is checked, the frame format of the serial data signal includes: an address field, a function field, a control field, and a check field, and the check items include at least one of the following: checking whether the number of bits and the number of valid bits included in each field of the serial data signal are preset numbers; checking whether the value corresponding to the valid bit of each field in the serial data signal is a preset value; and whether the parity check bit in the check field is correct.
3. The Darlington driver chip of the two-wire communication protocol according to claim 2, characterized in that: The data receiving module is also used for: When the address bit is the same as the address data and the serial data signal is verified to be correct, the Darlington driver chip updates the content of the data receiving module, reads abnormal data from the logic control module, and feeds the abnormal data back to the microcontroller.
4. The Darlington driver chip of the two-wire communication protocol according to claim 2, characterized in that: The data receiving module is also used for: When the address bit is not the same as the address data, or the serial data signal is incorrectly checked, the Darlington driver chip discards the serial data signal, and the microcontroller resends the serial data signal.
5. The Darlington driver chip of the two-wire communication protocol according to claim 1, characterized in that: The function data is used to indicate the function of each output channel. The logic control module generates a function signal based on the function data, and sends the function signal to each Darlington tube through the Darlington output port to drive each Darlington tube to turn on or off.
6. The Darlington driver chip of the two-wire communication protocol according to claim 1, characterized in that: The control data is used to indicate the parameters of each output channel. The logic control module generates a control signal based on the control data, and sends the control signal to each Darlington tube through the Darlington output port to control the current parameters of each Darlington tube.
7. The Darlington driver chip of the two-wire communication protocol according to claim 1, characterized in that: The Darlington driver chip further includes: an exception handling module; The abnormality processing module is used to: monitor whether the output current of each output channel is abnormal, and generate an abnormality signal; The exception handling module is further used to: transmit the exception signal to the logic control module, and close the output channel in the abnormal state.
8. The Darlington driver chip of the two-wire communication protocol according to claim 1, characterized in that: The Darlington driver chip also includes: a reference module and a temperature protection module; The temperature protection module is connected to the reference module and the logic control module respectively, and the reference module is used to provide a corresponding reference point for the Darlington driver chip; The temperature protection module is used to monitor whether the temperature of the Darlington driver chip exceeds a preset temperature threshold according to the reference point; When the temperature of the Darlington driver chip exceeds a preset temperature threshold; The temperature protection module generates an over-temperature signal and transmits the generated over-temperature signal to the logic control module; The logic control module turns off the Darlington output port according to the over-temperature signal.
9. The Darlington driver chip of the two-wire communication protocol according to claim 8, characterized in that: Also includes: Overcurrent detection module; The overcurrent detection module is connected to the reference module and the logic control module respectively; The overcurrent detection module is used to detect whether the working current of the Darlington driver chip exceeds the overcurrent value according to the reference point; When the operating current of the Darlington driver chip exceeds the overcurrent value; The overcurrent detection module generates an overcurrent signal and transmits the generated overcurrent signal to the logic control module; The logic control module closes the Darlington output port according to the overcurrent signal.
10. The Darlington driver chip of the two-wire communication protocol according to claim 7, characterized in that: Also includes: Clock module; The clock module is connected to the logic control module and the exception handling module, and is used to provide a clock reference.
Citation Information
Patent Citations
Automatic switch system for connecting electric signal data sampling sensor
CN101101698A
Driving chip
CN113497612A
Motor driving chip and motor driving device
CN117879398A
