Control device and method based on one wire communication protocol chip

By using a switching unit to manage the I/O port signal status in the control device of the OneWire communication protocol chip, the problem of false triggering during power-on initialization was solved, and stable chip configuration and troubleshooting were achieved.

CN116232882BActive Publication Date: 2026-01-06SENKSEMI-ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211710794.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2026-01-06
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

When a chip based on the OneWire communication protocol is powered on and initialized, the analog output signal is used as a digital input signal through the I/O port to enter the chip's communication module, which causes the chip's communication to be triggered erroneously, resulting in a malfunction.

Method used

A control device that uses I/O ports to multiplex analog output signals and digital input/output signals includes first and second switching units and a control unit. The state of the switching units is managed by control signals to avoid accidental communication triggering.

Benefits of technology

This effectively avoids the risk of accidental communication triggering during chip power-on initialization, ensuring proper chip configuration and troubleshooting, and improving system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232882B_ABST
    Figure CN116232882B_ABST
Patent Text Reader

Abstract

The application discloses a control device and method based on a OneWire communication protocol chip. In the factory configuration, the first switch unit for transmitting the digital input signal received by the IO port to the internal communication module of the chip is kept closed, so that the chip cannot be triggered by the self output to avoid the fault, and the means for debugging the fault chip to eliminate the fault is reserved. For the chip with the factory setting completed, the first switch unit is kept closed only for a short time after power on, and then is automatically disconnected, so that the chip cannot be triggered by the self output to avoid the fault.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic circuit technology, and in particular to a control device and method based on a OneWire communication protocol chip. Background Technology

[0002] OneWire (single-bus) uses a single signal line to transmit data signals bidirectionally, transmitting both clock signals and data, and enabling two-way communication. Compared to buses like SPI, I2C, and SCI, which require at least two communication lines, OneWire offers numerous advantages, including saving I / O lines, a simpler resource structure, lower cost, and easier bus expansion and maintenance. Common devices using one-wire buses include sensors, EEPROMs, and unique serial number chips.

[0003] To further conserve I / O resources, analog output signals and digital input / output signals are typically multiplexed using the same I / O port. During chip power-on initialization, an analog output signal may be used as a digital input signal through the I / O port to enter the chip's communication module, thereby rewriting the chip configuration and causing false triggering of chip communication, resulting in chip malfunction.

[0004] Therefore, how to effectively avoid the risk of accidental triggering of chip communication is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] The purpose of this invention is to provide a control device and method based on a OneWire communication protocol chip, so as to solve the technical problem that existing OneWire communication protocol chips have analog output signals entering the chip communication module through the IO port as digital input signals during power-on initialization, causing false triggering of chip communication. This invention can effectively avoid the risk of false triggering of chip communication.

[0006] To achieve the above objectives, the present invention provides a control device based on a OneWire communication protocol chip. The device includes: an I / O port, which multiplexes analog output signals and digital input / output signals; a first switching unit, configured to transmit digital input signals received by the I / O port to a communication module inside the chip in response to a first control signal; a second switching unit, configured to output analog output signals to the I / O port in response to a second control signal; and a control unit, configured to output the first control signal in response to the chip's power-on operation in its initial state, thereby controlling the first switching unit to close, allowing the user to program the chip based on the OneWire communication protocol to complete factory configuration; and to output the second control signal in response to the factory configuration operation based on the OneWire communication protocol, thereby controlling the second switching unit to close for factory configuration, while simultaneously controlling the first switching unit to remain closed and the switching state during the closure period is configurable.

[0007] In some embodiments, the control unit is further configured to configure the switching state of the first switching unit to be open when it is determined that the first switching unit receives a first communication command during the closing period.

[0008] In some embodiments, the control unit is further configured to configure the switching state of the first switching unit to remain closed when it is determined that the first switching unit receives a second communication command during the closing period.

[0009] In some embodiments, the control unit is further configured to output the first control signal in response to the power-on action of the chip that has completed factory settings, so as to control the first switch unit to remain closed for a preset time and then open.

[0010] To achieve the above objectives, the present invention also provides a control method for a chip based on the OneWire communication protocol, employing the apparatus described in the present invention; the method includes: outputting a first control signal in response to the power-on action of the chip in its initial state, controlling a first switch unit to close, so as to transmit the digital input signal received by the I / O port to the communication module inside the chip, enabling the user to program the chip based on the OneWire communication protocol to complete factory configuration; and outputting a second control signal in response to the factory configuration operation based on the OneWire communication protocol, controlling a second switch unit to close for factory configuration, while controlling the first switch unit to remain closed and the switch state during the closure period is configurable.

[0011] In some embodiments, the step of controlling the first switch unit to remain closed and the switch state during the closure period to be configurable further includes: when it is determined that the first switch unit receives a first communication command during the closure period, configuring the switch state of the first switch unit to be open; and when it is determined that the first switch unit receives a second communication command during the closure period, configuring the switch state of the first switch unit to remain closed.

[0012] In some embodiments, the method further includes: outputting the first control signal in response to the power-on action of the chip after factory configuration, so as to control the first switch unit to remain closed for a preset time and then open.

[0013] This invention, by controlling the first switch unit—which transmits digital input signals received from the I / O port to the chip's internal communication module—to remain closed during factory configuration, ensures that the chip will not be erroneously triggered by its own output to avoid malfunctions, while retaining the means to debug and troubleshoot faulty chips. For chips that have completed factory settings, the first switch unit is kept closed for a short period after power-on and then automatically opened, ensuring that the chip will not be erroneously triggered by its own output to avoid malfunctions. Attached Figure Description

[0014] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 A schematic diagram of a control device based on a OneWire communication protocol chip provided in an embodiment of the present invention;

[0016] Figure 2 A flowchart illustrating a control method based on a OneWire communication protocol chip provided in an embodiment of the present invention. Detailed Implementation

[0017] The technical solutions in the embodiments of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] One embodiment of the present invention provides a control device based on a OneWire communication protocol chip, which can ensure that the chip will not be accidentally triggered by its own output to avoid failure, while retaining the means to debug the faulty chip.

[0019] Please see Figure 1 This is a schematic diagram of a control device based on a OneWire communication protocol chip provided in an embodiment of the present invention. Figure 1 As shown, the chip includes a communication module 101. The device in this embodiment includes an I / O port 19, a first switch unit 11, a second switch unit 12, and a control unit 18.

[0020] Specifically, analog output signals and digital input / output signals reuse the I / O port 19 to save I / O resources. The first switching unit 11 is used to transmit the digital input signal Dig_Input received by the I / O port 19 to the communication module 101 in response to the first control signal O_data_ie. The second switching unit 12 is used to output the analog output signal Ana_Output to the I / O port 19 in response to the second control signal O_ana_oe. The control unit 18 is used to output the first control signal O_data_ie in response to the power-on action of the chip in the initial state to control the first switching unit 11 to close, so that the user can program the chip based on the OneWire communication protocol to complete the factory configuration; and to output the second control signal O_ana_oe in response to the factory configuration operation based on the OneWire communication protocol to control the second switching unit 12 to close for factory configuration, while controlling the first switching unit 11 to remain closed and the switching state during the closure period is configurable.

[0021] In some embodiments, the control unit 18 is further configured to configure the switching state of the first switching unit 11 to be open when it is determined that the first switching unit 11 receives a first communication command during the closing period. The first communication command is an erroneous communication command. That is, if the first switching unit 11 receives an erroneous communication command during the closing period, the first switching unit 11 immediately opens, ensuring that the chip is not mistakenly triggered by its own output of a communication command, thereby avoiding malfunctions.

[0022] In some embodiments, the control unit 18 is further configured to configure the switch state of the first switch unit 11 to remain closed when it is determined that the first switch unit 11 receives a second communication command during the closing period. The second communication command is a normal communication command. That is, if the first switch unit 11 receives a correct communication command during the closing period, the first switch unit 11 remains in the closed state and does not automatically open, facilitating debugging of the faulty chip to troubleshoot the problem.

[0023] In some embodiments, the control unit 18 is further configured to output a first control signal O_data_ie in response to the power-on action of a chip that has completed factory settings, so as to control the first switch unit 11 to remain closed for a preset time (less than a time threshold) and then open. For chips that have completed factory settings, the first switch unit 11 is controlled to remain closed for only a short time (less than a time threshold) after power-on, and then automatically opened, to ensure that the chip is not mistakenly triggered to output communication commands, thereby avoiding malfunctions.

[0024] In some embodiments, the apparatus further includes: a third switching unit 13; the third switching unit 13 is configured to output a digital output signal Dig_output generated by the communication module 101 to the I / O port 19 in response to a third control signal O_data_oe; the control unit 18 is further configured to output the third control signal O_data_oe in response to a read operation based on the OneWire communication protocol, to control the third switching unit 13 to close, so as to output the digital output signal Dig_output to the I / O port 19. That is, the third switching unit 13 is closed only during a read operation based on the OneWire communication protocol.

[0025] In some embodiments, each switching unit may employ a corresponding switching transistor, and the control signal for controlling the closing of the corresponding switching unit may be a high-level signal.

[0026] Based on the same inventive concept, the present invention also provides a control method based on a OneWire communication protocol chip. Using the control device based on the OneWire communication protocol chip described above, the chip can be guaranteed not to be erroneously triggered by its own output to avoid failure, while retaining the means to debug the faulty chip to eliminate the fault.

[0027] Please see Figure 2 This is a flowchart illustrating a control method based on a OneWire communication protocol chip according to an embodiment of the present invention. The method can employ... Figure 1 The aforementioned device is implemented, specifically, as follows: Figure 2 As shown, the method described in this embodiment includes the following steps: S1, in response to the power-on action of the chip in the initial state, outputting a first control signal to control the first switch unit to close, so as to transmit the digital input signal received by the IO port to the communication module inside the chip, so that the user can program the chip based on the OneWire communication protocol to complete the factory configuration; and S2, in response to the factory configuration operation based on the OneWire communication protocol, outputting a second control signal to control the second switch unit to close for factory configuration, while controlling the first switch unit to remain closed and the switch state during the closure period is configurable.

[0028] In some embodiments, the step of controlling the first switch unit to remain closed and configuring the switch state during the closure period further includes: when it is determined that the first switch unit receives a first communication command during the closure period, configuring the switch state of the first switch unit to be open. Wherein, the first communication command is an erroneous communication command. That is, if the first switch unit receives an erroneous communication command during the closure period, the first switch unit immediately opens, ensuring that the chip is not mistakenly triggered by its own output of a communication command, thereby avoiding malfunctions.

[0029] In some embodiments, the step of controlling the first switch unit to remain closed and configuring the switch state during the closure period further includes: when it is determined that the first switch unit receives a second communication command during the closure period, configuring the switch state of the first switch unit to remain closed. The second communication command is a normal communication command. That is, if the first switch unit receives a correct communication command during the closure period, the first switch unit remains in the closed state and does not automatically open, facilitating debugging of the faulty chip to troubleshoot the problem.

[0030] In some embodiments, the method further includes: S3, outputting a corresponding control signal in response to the power-on action of the chip that has completed factory settings, to control the first switch unit to remain closed for a preset time (less than a time threshold) and then open. For chips that have completed factory settings, the first switch unit 11 is controlled to remain closed for only a short time (less than a time threshold) after power-on, and then automatically opened, ensuring that the chip will not be erroneously triggered by its own output of communication commands, thereby avoiding malfunctions.

[0031] In some embodiments, the device further includes: a third switching unit; the third switching unit is configured to output the digital output signal Dig_output generated by the communication module to the IO port in response to a third control signal O_data_oe, such as... Figure 1 Accordingly, the method further includes: in response to a read operation based on the OneWire communication protocol, outputting the third control signal O_data_oe, controlling the third switch unit to close, so as to output the digital output signal Dig_output to the IO port. That is, the third switch unit will only close during a read operation based on the OneWire communication protocol.

[0032] As can be seen from the above, this invention, by controlling the first switch unit, which transmits digital input signals received from the I / O port to the chip's internal communication module, to remain closed during factory configuration, ensures that the chip will not be erroneously triggered by its own output to avoid malfunctions, while retaining the means to debug and troubleshoot faulty chips. For chips that have completed factory settings, the first switch unit is only kept closed for a short period after power-on, and then automatically opened, ensuring that the chip will not be erroneously triggered by its own output to avoid malfunctions.

[0033] It should be noted that the above embodiments are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The terms "comprising" and "having," and their variations, used in this invention document are intended to cover non-exclusive inclusion. The terms "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence, unless explicitly indicated by the context. It should be understood that such data can be used interchangeably where appropriate. Furthermore, embodiments and features within embodiments of this invention can be combined with each other unless otherwise specified. In addition, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of this invention.

[0034] The above description is only a preferred embodiment of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A control device based on a OneWire communication protocol chip, characterized in that, The device comprises: an IO port, an analog output signal and a digital input / output signal multiplexing the IO port; a first switch unit for transmitting a digital input signal received by the IO port to a communication module inside the chip in response to a first control signal; a second switch unit for outputting an analog output signal to the IO port in response to a second control signal; and a control unit for outputting the first control signal in response to a power-on action of a chip in an initial state to control the first switch unit to be closed, so that a user can program the chip based on a OneWire communication protocol to complete a factory configuration, and outputting the second control signal in response to a factory configuration operation based on the OneWire communication protocol to control the second switch unit to be closed for the factory configuration, while controlling the first switch unit to remain closed and a switch state during the closing to be configurable.

2. The apparatus of claim 1, wherein, The control unit is further configured to configure the switch state of the first switch unit to be open when it is determined that the first switch unit receives a first communication command during the closing.

3. The apparatus of claim 2, wherein, The control unit is further configured to configure the switch state of the first switch unit to remain closed when it is determined that the first switch unit receives a second communication command during the closing.

4. The apparatus of claim 1, wherein, The control unit is further configured to output the first control signal in response to a power-on action of a chip with a factory setting completed to control the first switch unit to remain closed for a preset time and then to be open.

5. The apparatus of claim 1, wherein, The device further comprises a third switch unit for outputting a digital output signal generated by the communication module to the IO port in response to a third control signal; and the control unit is further configured to output the third control signal in response to a read operation based on the OneWire communication protocol to control the third switch unit to be closed to output the digital output signal to the IO port.

6. A control method based on OneWire communication protocol chip, using the device of claim 1 to implement; characterized in that, The method comprises: outputting a first control signal in response to a power-on action of a chip in an initial state to control a first switch unit to be closed to transmit a digital input signal received by an IO port to a communication module inside the chip, so that a user can program the chip based on a OneWire communication protocol to complete a factory configuration; and outputting a second control signal in response to a factory configuration operation based on the OneWire communication protocol to control a second switch unit to be closed for the factory configuration, while controlling the first switch unit to remain closed and a switch state during the closing to be configurable.

7. The method of claim 6, wherein, The step of controlling the first switch unit to remain closed and the switch state during the closing to be configurable further comprises: configuring the switch state of the first switch unit to be open when it is determined that the first switch unit receives a first communication command during the closing; and configuring the switch state of the first switch unit to remain closed when it is determined that the first switch unit receives a second communication command during the closing.

8. The method of claim 7, wherein, The first communication command is an error communication command, and the second communication command is a correct communication command.

9. The method of claim 6, wherein, The method further comprises outputting the first control signal to control the first switch unit to remain closed for a preset time and then open in response to a power-on action of a chip completing a factory setting.

10. The method of claim 6, wherein, The apparatus further comprises a third switch unit for outputting a digital output signal generated by the communication module to the IO port in response to a third control signal, and the method further comprises outputting the third control signal to control the third switch unit to close to output the digital output signal to the IO port in response to a read operation based on the OneWire communication protocol.

Citation Information

Patent Citations

  • Single-bus temperature acquisition system integrated chip

    CN103528708A

  • Primary side dimming method adopting single-wire PWM regulation and control and mode switching

    CN108307562A