This nonprovisional application claims priority under 35 U.S.C. § 119(a) to German Patent Application No. 10 2023 104 775.2, which was filed in Germany on Feb. 27, 2023, and which is herein incorporated by reference.
The present invention relates to an interface for a two-wire bus. In particular, the present invention relates to an interface for a two-wire bus with adjustable pull-up/pull-down resistance values.
In order to avoid reflections, termination resistors can be arranged at the ends of the bus line. When the bus is not in use, these tend to pull the voltage between the bus lines to zero. Because zero can be an undefined input level for bus subscribers, additional “pull-up” and “pull-down” resistors can be provided to prevent undefined input levels to occur when the bus is not in use.
A device according to the invention comprises a bus interface for a two-wire bus comprising a first terminal and a second terminal for connection to the two-wire bus, a pull-up resistor device connected to the first terminal for a first conductor of the two-wire bus, and a pull-down resistor device connected to the second terminal for a second conductor of the two-wire bus. The pull-up resistor device is arranged to set a pull-up resistance value based on a pull-up control signal and the pull-down resistor device is arranged to set a pull-down resistance value based on a pull-down control signal.
In this regard, the term “bus interface”, can be understood to be, for example, as an interface that is arranged for connection to and communication via a bus. The bus interface can be arranged to implement the communication via the bus in accordance with a bus protocol, wherein the bus protocol can (directly or indirectly) specify when which bus subscriber is allowed to (actively) use the bus for communication. Furthermore, the term “two-wire bus”, can be understood to be, for example, a bus that transmits data by mapping the data to be transmitted to a course of a voltage between two conductors. For example, the device may comprise a transceiver for communication which is connected to the first terminal and the second terminal and derives symbols representing bus communication data from an electrical voltage between the first terminal and the second terminal.
Further, the term “terminal” can be understood to be, for example, a terminal point which is arranged and provided for electrically connecting a conductor to the device. Furthermore, the term “pull-up/pull-down resistor device”, can be understood to be, for example, a device which is arranged to connect the conductor connected to the “pull-up”/“pull-down” resistor device via a resistor to the positive pole of a DC voltage source of the device or to the negative pole of the DC voltage source. Furthermore, the term “resistance value”, can be understood to be, for example, as the value of an ohmic resistance.
The pull-up resistor device can be designed as a digital potentiometer. Likewise, the pull-down resistor device can be designed as a digital potentiometer.
The pull-up resistor device may comprise at least one first switch, wherein the first switch is arranged to activate a first current path, which extends from the first terminal via a first pull-up resistor. The pull-down resistor device may comprise at least one second switch, wherein the second switch is arranged to activate a second current path, which extends from the second terminal via a first pull-down resistor.
The pull-up resistor device may comprise a second pull-up resistor and a third switch. Closing the third switch activates a third current path, which extends from the first terminal via the second pull-up resistor. Closing the third switch can deactivate the first current path.
The pull-down resistor device may comprise a second pull-down resistor and a fourth switch. Closing the fourth switch activates a fourth current path, which extends from the second terminal via the second pull-down resistor. Closing the fourth switch can deactivate the second current path.
The first pull-up resistor can be connected in series with the first switch. The second pull-up resistor can be connected in series with the third switch. The branches connected in series can be connected in parallel with each other.
The first pull-down resistor can be connected in series with the second switch. The second pull-down resistor can be connected in series with the fourth switch. The branches connected in series can be connected in parallel with each other.
The first pull-up resistor and the second pull-up resistor can be connected in series. The first pull-down resistor and the second pull-down resistor can be connected in series.
The device may further comprise a computing unit for executing the configuration routine. The computing unit can, for example, be designed as a controller or microcontroller. The computing unit can comprise a measurement input for evaluating voltages on the first line and on the second line, and can be arranged to output the pull-up control signal and/or the pull-down control signal based on the evaluation.
A method according to the invention comprises providing a bus interface, wherein the bus interface comprises a first input and a second input and is arranged to monitor an electrical voltage between the first input and the second input and to derive data from values of the monitored voltage, to activate, as part of a configuration routine, a first current path, which extends from the first input via a first pull-up resistor, by the bus interface, and/or to activate, as part of the configuration routine, a second current path which extends from the second input via a first pull-down resistor, by the bus interface, wherein the first current path and the second current path remain activated during a control operation of the bus interface following the configuration routine.
The method may further comprise activating, by means of the device, as a part of the configuration routine executed by the device, a third current path which extends from the first input via a second pull-up resistor, and activating, as a part of the configuration routine executed by the device, a fourth current path which extends from the second input via a second pull-down resistor.
The first pull-up resistor and the second pull-up resistor may be connected in series or in parallel. The first pull-down resistor and the second pull-down resistor may be connected in series or in parallel.
It is further to be understood that all features of the device described in the foregoing and the following may be features of the method and vice versa.
Further scope of applicability of the present invention will become apparent from the detailed description given hereinafter. However, it should be understood that the detailed description and specific examples, while indicating preferred embodiments of the invention, are given by way of illustration only, since various changes, combinations, and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.
The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus, are not limitive of the present invention, and wherein:
As shown in
Further, the device 100 comprises a pull-up resistor device 150 connected to terminal 120 and a pull-down resistor device 160 connected to terminal 130. The pull-up resistor device 150 is arranged to set a pull-up resistance value based on a pull-up control signal output by a computing unit 170. The pull-down resistor device 160 is arranged to set a pull-down resistance value based on a pull-down control signal output by the computing unit 170. For example, the pull-up resistor device 150 and the pull-down resistor device 160 can be designed as digital potentiometers.
As shown in
As shown in
As shown in
The invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are to be included within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
10 2023 104 775.2 | Feb 2023 | DE | national |