US6418546B1 - Circuit for checking a tristate detection circuit - Google Patents

Circuit for checking a tristate detection circuit Download PDF

Info

Publication number
US6418546B1
US6418546B1 US09/351,097 US35109799A US6418546B1 US 6418546 B1 US6418546 B1 US 6418546B1 US 35109799 A US35109799 A US 35109799A US 6418546 B1 US6418546 B1 US 6418546B1
Authority
US
United States
Prior art keywords
circuit
voltage
terminal
controllable switches
resistors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
US09/351,097
Inventor
Paul Hartl
Hermann Haberer
Paul Haberl
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leuze Electronic GmbH and Co KG
Original Assignee
Leuze Lumiflex GmbH and Co KG
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Leuze Lumiflex GmbH and Co KG filed Critical Leuze Lumiflex GmbH and Co KG
Assigned to LEUZE LUMIFLEX GMBH + CO reassignment LEUZE LUMIFLEX GMBH + CO ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HABERER, HERMANN, HABERL, PAUL, HARTL, PAUL
Application granted granted Critical
Publication of US6418546B1 publication Critical patent/US6418546B1/en
Assigned to LEUZE ELECTRONIC GMBH AND CO. KG. reassignment LEUZE ELECTRONIC GMBH AND CO. KG. CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: LEUZE LUMIFLEX GMBH & CO. KG.
Assigned to LEUZE LUMIFLEX GMBH & CO. KG. reassignment LEUZE LUMIFLEX GMBH & CO. KG. CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: LEUZE LUMIFLEX GMBH & CO.
Assigned to LEUZE ELECTRONIC GMBH AND CO. KG. reassignment LEUZE ELECTRONIC GMBH AND CO. KG. CORRECTIVE ASSIGNMENT TO CORRECT THE ADDRESS OF ASSIGNEE PREVIOUSLY RECORDED ON REEL 038963 FRAME 0324. ASSIGNOR(S) HEREBY CONFIRMS THE CHANGE OF NAME. Assignors: LEUZE LUMIFLEX GMBH & CO. KG.
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3185Reconfiguring for testing, e.g. LSSD, partitioning
    • G01R31/318502Test of Combinational circuits

Definitions

  • the invention relates generally to test circuitry and, particularly, to a circuit arrangement for checking a tristate detection circuit.
  • tristate logic In digital technology, for reasons of miniaturization and reducing the number of connections or terminals, a so-called tristate logic is used in which three differentiable logic states can be generated on the terminals. These states are: 1) terminal at logical “1” (supply voltage); 2) terminal at logical “0” (ground); and 3) high-impedance state in which the terminal as such is set to an undefined potential and by means of an additional circuit, it can be set to a potential that is different from the supply voltage and ground. Those skilled in the art employ tristate detection circuits for detecting which of the three states is present.
  • the invention meets the above needs and overcomes the deficiencies of the prior art by providing a circuit for checking a tristate detection circuit.
  • a circuit for checking a tristate detection circuit may be noted the provision of such a circuit that permits reliable detection of all possible errors in a tristate detection circuit; and the provision of such a circuit that is economically feasible and commercially practical.
  • a circuit embodying aspects of the invention simulates the three states of the detection circuit by controllable switches.
  • a connector that can assume the three states is connected in the middle of a symmetrical voltage divider between supply voltage and ground.
  • the detection circuit has comparators that respond to a voltage drop across resistors of the voltage divider.
  • the controllable switches in the active state connect these resistors and, therefore, a connector of the comparator to ground or to supply voltage, so that regardless of the momentary state to be detected at the connector, the output signal of the comparators will be forced to a defined value (logical “0” or logical “1”).
  • a defined value logical “0” or logical “1”.
  • the voltage divider has four resistors connected in series.
  • the connection to be monitored is connected by a first pair of resistors connected in series to supply voltage, and via a second pair, which is symmetrical to the first, of resistors connected in series to ground.
  • the common node of the resistors of one pair forms a “measured input” of the allocated comparator. This point is forced to supply voltage or to ground by means of the controllable switch, regardless of the state of the connection, since this is “decoupled” electrically from the common node of the resistors of a pair by means of a corresponding resistor.
  • controllable switches are activated and deactivated alternately in all allowed combinations during a test sequence, so that the comparators have to switch on and also switch off during the course of one complete test cycle.
  • a test sequence is structured so that after one test phase with an activated, controllable switch, a “read phase” will follow, in which the state of the connection is queried.
  • the comparators are designed preferably as inverting comparators, that is, at their outputs they have a logical “1” if they have not been “tripped,” i.e., the voltage drop at the resistor allocated to it is below a response threshold, and a logical “0” if they have been tripped, i.e., the voltage drop at the allocated resistor is above the response threshold.
  • the invention may comprise various other methods and systems.
  • FIG. 1 a fundamental circuit diagram of the circuit arrangement according to the invention.
  • FIG. 2 a more detailed circuit diagram of the circuit arrangement according to FIG. 1 .
  • the circuit arrangement queries the electrical state of a terminal K 1 , which can assume three “states,” namely: 1) supply voltage Vcc; 2) ground potential; and 3) a high-impedance state. These states can be achieved, for example, as follows:
  • the terminal K 1 is connected to supply voltage Vcc by means of a switch S 1 ;
  • the terminal K 1 is connected to ground potential by means of a switch S 2 ;
  • the terminal K 1 is located in the middle of a symmetrical voltage divider comprised of resistors R 3 , R 1 and resistors R 2 , R 4 .
  • the voltage divider as a whole lies between supply voltage Vcc and ground potential.
  • the resistors R 1 and R 2 have the same resistance value (e.g., 1.8 k ⁇ ).
  • the resistors R 3 and R 4 preferably have the same resistance value (e.g., 560 ⁇ ) and, thus, in an actual design example, the resistors R 3 and R 4 have less resistance than the resistors R 1 and R 2 . If both switches S 1 and S 2 are open, then half the supply voltage Vcc is applied to the terminal K 1 . It should be stressed that the terminal K 1 in this circuit always has a flowing current, which increases the dependability of the switching of switch S 1 and/or S 2 .
  • the voltage drop across the resistors R 3 and R 4 is monitored by a comparator circuit, which includes comparators 1 and 2 , respectively. These comparators are adjusted so that in case of a large and average voltage drop at their outputs O 1 or O 2 , they will take on a control state (here: a logical “0”), and in case of a voltage drop of zero, the other control state (here: a logical “1”).
  • the solution principle of the invention provides for simulation of the control states of the switches S 1 and S 2 in an internal circuit, so that controllable switches 3 - 6 are created.
  • Each pair of switches 3 , 4 ; 5 , 6 is connected in series between supply voltage Vcc and ground, where the common node of the switches 3 and 4 is connected to the common node P 1 of the resistors R 1 and R 3 , and the common node of the switches 5 and 6 is connected to the common node P 2 of the resistors R 2 and R 4 .
  • the switches 3 and 5 simulate the state of the switch S 1 and the switches 4 and 6 simulate that of switch S 2 .
  • both switches 3 and 4 are open, which corresponds to the high-impedance state of the terminal K 1 , then the same, average voltage drop occurs across both resistors R 3 and R 4 .
  • Both comparators 1 and 2 have a logical “0” at their outputs.
  • the circuit arrangement has a two-channel design.
  • the second channel is formed by the switches 5 and 6 with the control lines 8 and 8 ′, as well as the point P 2 .
  • the testing of the circuit arrangement by means of the switches 3 to 6 occurs independently of the setting of the switches S 1 and S 2 and is carried out as a dynamic test, i.e., changes in the control states are implemented at the outputs O 1 and O 2 .
  • the control state of the switches S 1 and S 2 does not affect the test, since the terminal K 1 and thus, the switches S 1 and S 2 , are “decoupled” from test points P 1 and P 2 by means of the resistors R 1 and R 2 .
  • test sequence is run through cyclically within a few microseconds, alternating with the checking of the state of terminal K 1 , and the states presented in the following TABLE II are checked.
  • test sequence 0 the switch 3 is closed, the point P 1 goes to supply voltage. There is no voltage drop across resistor R 3 , the output O 1 goes to “1” independently of the switch setting S 1 and S 2 . The output signal corresponding to the state of the terminal K 1 is applied to the output O 2 due to the setting of the switch S 1 and S 2 .
  • the switch 3 is again opened, the state of the terminal K 1 is queried and at least one of the two states O 1 or O 2 must be at logical “0”.
  • all switches are opened again and queried to determine whether one of the outputs O 1 or O 2 has a logical “0”.
  • sequence 4 the switch 4 is closed, thus, the point P 1 is thus set to ground. The output O 1 must then be at logical “0”.
  • sequence 5 all switches are opened again and at least one of the two signals O 1 or O 2 must be at logical “0”.
  • both outputs O 1 and O 2 switch in both directions, i.e., that they can be switched both on and off. Thus, all possible faults will be detected. For example, if one of the comparators 1 or 2 is defective, then the allocated output signal O 1 or O 2 cannot be switched any more, which will be detected by the test sequence.
  • a self-test of the test circuit can be performed. For example, if one of the switches 3 to 6 cannot be switched, e.g., because a corresponding transistor has failed, then the fault will also be detected by the test sequence, since the switching cannot always be carried out in the test sequences described above. Also, a line break to the terminal K 1 will be detected, since at least one of the signals to O 1 or O 2 must be logical “0” in the test sequences 1 , 3 , 5 and 7 of TABLE III.
  • FIG. 2 shows a more detailed circuit diagram of the circuit arrangement according to the invention, where the same reference symbols used in FIG. 1 denote the same or functionally equivalent components.
  • a resistor 11 is connected with the other terminal of the resistor 10 and with the supply voltage.
  • the common node of resistors 13 and 14 is connected to the base of another transistor 15 , whose emitter is grounded and whose collector is connected via resistor 16 to a positive voltage Ub of, e.g., +5V, and corresponds to the logic voltage of a microprocessor connected to the terminal O 1 .
  • the resistor 16 acts as a so-called pull-up resistor.
  • the output O 1 is placed between a voltage divider made of resistors 17 and 18 .
  • R 17 and R 18 are provided in order to decouple the channels of the two microcontrollers.
  • the resistor R 3 has no current, i.e., if it has no voltage drop, then the transistor 12 is blocked, the base of the transistor 15 is set to ground and thus, also the transistor 15 is blocked, so that its collector is at the voltage Ub by means of the pull-up resistor 16 .
  • the output O 1 has a logical “1”.
  • the transistor 12 completes the circuit, and thus the base voltage to transistor 15 increases to that it will also complete the circuit.
  • the output O 1 thus goes to logical “0”.
  • a comparator is designed with resistors 19 and 20 and a transistor 21 whose collector is connected to the voltage Ub via a pull-up resistor 22 in parallel with the resistor R 4 .
  • the output O 2 i.e., the collector of the transistor 21 , is connected between the resistors 23 and 24 which compose a voltage divider. If there is no voltage drop across resistor R 4 , then the transistor 21 is blocked and the voltage +Ub is applied to the output O 2 via the pull-up resistor 22 . If the voltage drop across resistor R 4 is sufficiently large, then the transistor 21 switches and the output O 2 goes to logical “0”, i.e., ground potential.
  • the switches 3 to 6 here are designed as transistor switches.
  • the switches 3 and 5 or 4 and 6 have the same design, which is why their components have the same reference designations, which differ from those used for switches 5 and 6 only by use of a designation.
  • the switch 3 has a transistor 29 , whose emitter is connected to supply voltage Vcc and whose collector is connected to the point P 1 .
  • the base of the transistor 29 is connected between two resistors 27 and 28 .
  • the resistor 28 is connected to the supply voltage Vcc.
  • the resistor 27 is connected to the collector of a transistor 26 , whose emitter is set to ground potential.
  • the base of the transistor 26 is connected to ground via resistor 25 .
  • the base of the transistor 26 or 26 ′ is connected via a base series resistor 25 a to a control input 7 or 8 . If a positive control voltage is applied to the control input 7 or 8 , then the transistor 26 or 26 ′ will conduct. The base voltage of the transistor 29 is reduced, so that it will likewise conduct, so that the point P 1 will be set to supply voltage.
  • the switch 4 contains a transistor 32 whose collector is connected to the point P 1 and whose emitter is connected to ground.
  • a base resistor 31 is connected to ground.
  • the base of the transistor 32 is connected via a resistor 30 to the control input 7 ′ or 8 ′. If a control voltage is applied to the control input 7 ′ or 8 ′, then the transistor 32 conducts and connects the point P 1 to ground.
  • switches 5 and 6 are connected to the control input 8 or 8 ′ at the point P 2 .
  • the switches 3 to 6 are driven by means of an inverting gate 33 , 34 , or 33 ′, 34 ′.
  • the input to the gate 33 is connected to a control input A for the first channel.
  • the output of the gate 33 is connected to the control input 7 ′ of the switch 4 and to one input of the gate 34 , whose output is connected to the control input 7 .
  • the gates 33 ′ and 34 ′ are connected to the control inputs 8 and 8 ′ of the switches 5 and 6 .
  • the input of the gate 33 ′ is connected to one control input B, to which the test signal is applied for the second channel.
  • the gates 33 and 34 or 33 ′ and 34 ′ each have enable inputs that are connected in pairs to inputs ENAQ or ENBQ. The following allocation of trigger signals is obtained for the test sequences provided in TABLE III:
  • the triggering takes place by means of one microprocessor, or in the case of two-channel operation, by means of two microprocessors corresponding to the microprocessor ⁇ P of FIG. 1 .
  • the microprocessors then check signals at the outputs O 1 and O 2 and if an error is found, they implement suitable control actions, such as shutting down a machine.

Abstract

A circuit arrangement for testing of a tristate detection circuit has controllable switches (3-6) which simulate the three states: logical “1”, logical “0”, and high-impedance on a terminal (K1). Inputs (P1, P2) from comparators (1, 2) of the detection circuit are set to supply voltage or to ground. Switching of the comparators (1, 2) on and off is checked independently of the state on the terminal (K1).

Description

CROSS REFERENCE TO FOREIGN APPLICATION
This application claims priority based on German Utility Model 198 31 088.9, filed Jul. 10, 1998, the entire disclosure of which is incorporated herein by reference.
BACKGROUND OF THE INVENTION
The invention relates generally to test circuitry and, particularly, to a circuit arrangement for checking a tristate detection circuit.
In digital technology, for reasons of miniaturization and reducing the number of connections or terminals, a so-called tristate logic is used in which three differentiable logic states can be generated on the terminals. These states are: 1) terminal at logical “1” (supply voltage); 2) terminal at logical “0” (ground); and 3) high-impedance state in which the terminal as such is set to an undefined potential and by means of an additional circuit, it can be set to a potential that is different from the supply voltage and ground. Those skilled in the art employ tristate detection circuits for detecting which of the three states is present.
In safety-related applications (e.g., accident prevention grating, light barriers and the like), in which fail-safe operation is required, it is necessary to check the detection circuit for how it is operating to bring a monitored machine into a safe state in the case of a malfunction of the detection circuit. Therefore, a circuit arrangement is desired for checking a tristate detection circuit to reliably detect all possible errors in the detection circuit.
SUMMARY OF THE INVENTION
The invention meets the above needs and overcomes the deficiencies of the prior art by providing a circuit for checking a tristate detection circuit. Among the several objects and features of the present invention may be noted the provision of such a circuit that permits reliable detection of all possible errors in a tristate detection circuit; and the provision of such a circuit that is economically feasible and commercially practical.
Briefly described, a circuit embodying aspects of the invention simulates the three states of the detection circuit by controllable switches.
According to a preferred embodiment of the invention, a connector that can assume the three states is connected in the middle of a symmetrical voltage divider between supply voltage and ground. The detection circuit has comparators that respond to a voltage drop across resistors of the voltage divider. The controllable switches in the active state connect these resistors and, therefore, a connector of the comparator to ground or to supply voltage, so that regardless of the momentary state to be detected at the connector, the output signal of the comparators will be forced to a defined value (logical “0” or logical “1”). By means of an alternating opening and closing of the individually controllable switches, a change of state will also be created at the output of the comparators. In one test sequence, all permissible combinations of positions of the controllable switches will be run through, so that not only the static state of the output signals of the comparators will be checked, but also their dynamic state, i.e., whether they switch on or off. To increase the fail-safe operation, the circuit arrangement is designed with two channels.
In one embodiment, the voltage divider has four resistors connected in series. The connection to be monitored is connected by a first pair of resistors connected in series to supply voltage, and via a second pair, which is symmetrical to the first, of resistors connected in series to ground. Thus, an electric current flows steadily along the connection, which has the advantage that external switches, which set the connector into the particular electrical state, are always switched under current.
The common node of the resistors of one pair forms a “measured input” of the allocated comparator. This point is forced to supply voltage or to ground by means of the controllable switch, regardless of the state of the connection, since this is “decoupled” electrically from the common node of the resistors of a pair by means of a corresponding resistor.
Preferably, the controllable switches are activated and deactivated alternately in all allowed combinations during a test sequence, so that the comparators have to switch on and also switch off during the course of one complete test cycle. Thus, not only are the states of the individual comparators checked statically, but also a dynamic testing of the changeover of the comparators takes place. Preferably, a test sequence is structured so that after one test phase with an activated, controllable switch, a “read phase” will follow, in which the state of the connection is queried.
The comparators are designed preferably as inverting comparators, that is, at their outputs they have a logical “1” if they have not been “tripped,” i.e., the voltage drop at the resistor allocated to it is below a response threshold, and a logical “0” if they have been tripped, i.e., the voltage drop at the allocated resistor is above the response threshold.
Alternatively, the invention may comprise various other methods and systems.
Other objects and features will be in part apparent and in part pointed out hereinafter.
BRIEF DESCRIPTION OF THE DRAWINGS
The invention will be explained in greater detail below in conjunction with the figures and based on one design example. Shown are:
FIG. 1, a fundamental circuit diagram of the circuit arrangement according to the invention; and
FIG. 2, a more detailed circuit diagram of the circuit arrangement according to FIG. 1.
Corresponding reference characters indicate corresponding parts throughout the drawings.
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
The circuit arrangement queries the electrical state of a terminal K1, which can assume three “states,” namely: 1) supply voltage Vcc; 2) ground potential; and 3) a high-impedance state. These states can be achieved, for example, as follows:
1) The terminal K1 is connected to supply voltage Vcc by means of a switch S1;
2) The terminal K1 is connected to ground potential by means of a switch S2; and
3) If both switches S1 and S2 are open, then the potential of terminal K1 is undefined and it is specified only by an external circuit that designates this state as high-impedance, which can be different from the other two states in a three valve logic (also called tristate logic).
The terminal K1 is located in the middle of a symmetrical voltage divider comprised of resistors R3, R1 and resistors R2, R4. The voltage divider as a whole lies between supply voltage Vcc and ground potential. In one preferred embodiment, the resistors R1 and R2 have the same resistance value (e.g., 1.8 kΩ). Likewise, the resistors R3 and R4 preferably have the same resistance value (e.g., 560Ω) and, thus, in an actual design example, the resistors R3 and R4 have less resistance than the resistors R1 and R2. If both switches S1 and S2 are open, then half the supply voltage Vcc is applied to the terminal K1. It should be stressed that the terminal K1 in this circuit always has a flowing current, which increases the dependability of the switching of switch S1 and/or S2.
Depending on the control state of the switches S1 and S2, different size currents flow through the voltage dividers R1-R4, so that the voltage drop to the resistors R3 and R4 also depends on the control state of the switches S1 and S2. For example, if the switch S1 is closed and the terminal K1 is set to supply voltage Vcc, then no current will flow through the resistors R3 and R1, instead it will only flow through the resistors R2 and R4. Thus, the voltage drop across resistor R3 goes to zero, and the voltage drop across resistor R4 is relatively great. But if the terminal K1 is set to ground potential, i.e., S1 is open and S2 is closed, then a current will flow only from Vcc through R3 and R1 to ground; the voltage drop across R3 is large, and across R4 is zero.
If both switches S1 and S2 are open, the terminal K1 is in the high-impedance state and, thus, the current will flow from Vcc through R3, R1, R2 and R4 to ground. The voltage drop to R3 and R4 is the same and has a smaller value than in the other two stated cases. This value is designated as the average value.
To differentiate the three defined states, the voltage drop across the resistors R3 and R4 is monitored by a comparator circuit, which includes comparators 1 and 2, respectively. These comparators are adjusted so that in case of a large and average voltage drop at their outputs O1 or O2, they will take on a control state (here: a logical “0”), and in case of a voltage drop of zero, the other control state (here: a logical “1”). The three possible states of the terminal K1 (ground=GND; high-impedance=Z; supply voltage=Vcc) generate the values stated in the following TABLE I for the outputs O1 and O2 of the comparators 1 and 2; these values distinguish the individual states from each other.
TABLE I
K1 O1 O2
GND (ground) 0 1
z (high-impedance) 0 0
Vcc (supply voltage) 1 0
The state O1=O2=1 is thus not allowed. To check for satisfactory operation, the solution principle of the invention provides for simulation of the control states of the switches S1 and S2 in an internal circuit, so that controllable switches 3-6 are created. Each pair of switches 3, 4; 5, 6 is connected in series between supply voltage Vcc and ground, where the common node of the switches 3 and 4 is connected to the common node P1 of the resistors R1 and R3, and the common node of the switches 5 and 6 is connected to the common node P2 of the resistors R2 and R4. Thus, the switches 3 and 5 simulate the state of the switch S1 and the switches 4 and 6 simulate that of switch S2.
For example, if the switch 3 is closed by a control signal to a control line 7, then supply voltage Vcc is applied to the point P1. Thus, the voltage drop across R3 will go to zero and the voltage drop across R4 increases and the comparator 2 has a logical “0” at its output O2, while the output O1 of the comparator 1 is set to logical “1”. In a corresponding way, when switch 3 is open and switch 4 is closed, the point P1 is set to ground. There is a large voltage drop across R3. The output O1 of the comparator 1 is then at logical “0”. There is no voltage drop across resistor R4. The output O2 of the comparator 2 is at logical “1”. If both switches 3 and 4 are open, which corresponds to the high-impedance state of the terminal K1, then the same, average voltage drop occurs across both resistors R3 and R4. Both comparators 1 and 2 have a logical “0” at their outputs.
The circuit arrangement has a two-channel design. The second channel is formed by the switches 5 and 6 with the control lines 8 and 8′, as well as the point P2.
The testing of the circuit arrangement by means of the switches 3 to 6 occurs independently of the setting of the switches S1 and S2 and is carried out as a dynamic test, i.e., changes in the control states are implemented at the outputs O1 and O2. The control state of the switches S1 and S2 does not affect the test, since the terminal K1 and thus, the switches S1 and S2, are “decoupled” from test points P1 and P2 by means of the resistors R1 and R2. For example, if S1 is closed, K1 is at supply voltage and the voltage drop across R3 will be zero, and thus, the closing of switch 4 will cause the point P1 to go to ground potential so that a voltage drop will occur across R3 and the output O1 will switch to logical “0”.
When running through a test cycle, all possible errors are detected, regardless of the setting of the switches S1 and S2. A test sequence is run through cyclically within a few microseconds, alternating with the checking of the state of terminal K1, and the states presented in the following TABLE II are checked.
TABLE II
P1 P2 O1 O2
1 z 1
z 1 0
0 z 0
z 0 1
z z neither “1”
The states of the outputs O1 and O2 denoted by “-” are not evaluated, since they may be dependent on the setting of the switches S1 and S2.
In the initial state the four switches 3 to 6 are open, the state of the terminal K1 is queried and passed along to the outputs O1 and O2 according to TABLE I. Then the test sequences SQ denoted in TABLE III are run through.
TABLE III
SQ P1 P2 Test
0 1 z K = 0 (O1 = 1) Can O1 be switched on?
1 z z O1 or O2 = 0 Can at least O1 or O2 be switched off?
2 z 1 K = 0 (O2 = 0 Can O2 be switched off?
3 z z O1 or O2 = 0) Can at least O1 or O2 be switched off?
4 0 z K = 1 (O1 = 0) Can O1 be switched off?
5 z z O1 or O2 = 0 Can at least O1 or O2 be switched off?
6 z 0 K = 1 (O2 = 1) Can O2 be switched on?
7 z z O1 or O2 = 0 Can at least O1 or O2 be switched off?
In test sequence 0, the switch 3 is closed, the point P1 goes to supply voltage. There is no voltage drop across resistor R3, the output O1 goes to “1” independently of the switch setting S1 and S2. The output signal corresponding to the state of the terminal K1 is applied to the output O2 due to the setting of the switch S1 and S2. In the next sequence 1, the switch 3 is again opened, the state of the terminal K1 is queried and at least one of the two states O1 or O2 must be at logical “0”. In sequence 3, all switches are opened again and queried to determine whether one of the outputs O1 or O2 has a logical “0”. In sequence 4, the switch 4 is closed, thus, the point P1 is thus set to ground. The output O1 must then be at logical “0”. In sequence 5, all switches are opened again and at least one of the two signals O1 or O2 must be at logical “0”.
In sequence 6, the switch 6 is closed. Thus, the point P2 is at ground potential. The output O2 then must have a “1”. In the last sequence 7, all switches 3 to 6 are opened again and at least one of the signals O1 or O2 must be at logical “0”.
With these tests it can be determined whether both outputs O1 and O2 switch in both directions, i.e., that they can be switched both on and off. Thus, all possible faults will be detected. For example, if one of the comparators 1 or 2 is defective, then the allocated output signal O1 or O2 cannot be switched any more, which will be detected by the test sequence.
Also, a self-test of the test circuit can be performed. For example, if one of the switches 3 to 6 cannot be switched, e.g., because a corresponding transistor has failed, then the fault will also be detected by the test sequence, since the switching cannot always be carried out in the test sequences described above. Also, a line break to the terminal K1 will be detected, since at least one of the signals to O1 or O2 must be logical “0” in the test sequences 1, 3, 5 and 7 of TABLE III. But in case of a line break, R1 and R2 will be high-impedance, and thus no current will flow along the path Vcc-R3-R1-R2-R4-ground; both outputs O1 and O2 are then at logical “1”, which is defined as an impermissible state (compare TABLE II), so that this error will also be recognized.
FIG. 2 shows a more detailed circuit diagram of the circuit arrangement according to the invention, where the same reference symbols used in FIG. 1 denote the same or functionally equivalent components.
The comparator 1 of FIG. 1, whose input terminals are in parallel with resistor R3, has a resistor 10 that is connected to the point P1. A resistor 11 is connected with the other terminal of the resistor 10 and with the supply voltage. In parallel with the resistor 11 there is a base-emitter path of a transistor 12, whose collector is connected in series with resistors 13 and 14, where the resistor 14 is connected to ground. The common node of resistors 13 and 14 is connected to the base of another transistor 15, whose emitter is grounded and whose collector is connected via resistor 16 to a positive voltage Ub of, e.g., +5V, and corresponds to the logic voltage of a microprocessor connected to the terminal O1. The resistor 16 acts as a so-called pull-up resistor. Finally, the output O1 is placed between a voltage divider made of resistors 17 and 18. R17 and R18 are provided in order to decouple the channels of the two microcontrollers.
If the resistor R3 has no current, i.e., if it has no voltage drop, then the transistor 12 is blocked, the base of the transistor 15 is set to ground and thus, also the transistor 15 is blocked, so that its collector is at the voltage Ub by means of the pull-up resistor 16. Thus, the output O1 has a logical “1”. In the case of a sufficiently large voltage drop across R3, the transistor 12 completes the circuit, and thus the base voltage to transistor 15 increases to that it will also complete the circuit. The output O1 thus goes to logical “0”.
In a similar manner, a comparator is designed with resistors 19 and 20 and a transistor 21 whose collector is connected to the voltage Ub via a pull-up resistor 22 in parallel with the resistor R4. Here, too, the output O2, i.e., the collector of the transistor 21, is connected between the resistors 23 and 24 which compose a voltage divider. If there is no voltage drop across resistor R4, then the transistor 21 is blocked and the voltage +Ub is applied to the output O2 via the pull-up resistor 22. If the voltage drop across resistor R4 is sufficiently large, then the transistor 21 switches and the output O2 goes to logical “0”, i.e., ground potential.
The switches 3 to 6 here are designed as transistor switches. The switches 3 and 5 or 4 and 6 have the same design, which is why their components have the same reference designations, which differ from those used for switches 5 and 6 only by use of a designation. The switch 3 has a transistor 29, whose emitter is connected to supply voltage Vcc and whose collector is connected to the point P1. The base of the transistor 29 is connected between two resistors 27 and 28. The resistor 28 is connected to the supply voltage Vcc. The resistor 27 is connected to the collector of a transistor 26, whose emitter is set to ground potential. The base of the transistor 26 is connected to ground via resistor 25. The base of the transistor 26 or 26′ is connected via a base series resistor 25 a to a control input 7 or 8. If a positive control voltage is applied to the control input 7 or 8, then the transistor 26 or 26′ will conduct. The base voltage of the transistor 29 is reduced, so that it will likewise conduct, so that the point P1 will be set to supply voltage.
The switch 4 contains a transistor 32 whose collector is connected to the point P1 and whose emitter is connected to ground. A base resistor 31 is connected to ground. In addition, the base of the transistor 32 is connected via a resistor 30 to the control input 7′ or 8′. If a control voltage is applied to the control input 7′ or 8′, then the transistor 32 conducts and connects the point P1 to ground.
In an analogous manner, the switches 5 and 6 are connected to the control input 8 or 8′ at the point P2.
The switches 3 to 6 are driven by means of an inverting gate 33, 34, or 33′, 34′. The input to the gate 33 is connected to a control input A for the first channel. The output of the gate 33 is connected to the control input 7′ of the switch 4 and to one input of the gate 34, whose output is connected to the control input 7. In an analogous manner, the gates 33′ and 34′ are connected to the control inputs 8 and 8′ of the switches 5 and 6. The input of the gate 33′ is connected to one control input B, to which the test signal is applied for the second channel. The gates 33 and 34 or 33′ and 34′ each have enable inputs that are connected in pairs to inputs ENAQ or ENBQ. The following allocation of trigger signals is obtained for the test sequences provided in TABLE III:
TABLE IV
SQ P1 P2 A ENAQ B ENBQ
0 1 z 1 0 x 1
1 z z x 1 x 1
2 z 1 x 1 1 0
3 z z x 1 x 1
4 0 z 0 0 x 1
5 z z x 1 x 1
6 z 0 x 1 0 0
7 z z x 1 x 1
The triggering takes place by means of one microprocessor, or in the case of two-channel operation, by means of two microprocessors corresponding to the microprocessor μP of FIG. 1. In the individual control states, the microprocessors then check signals at the outputs O1 and O2 and if an error is found, they implement suitable control actions, such as shutting down a machine.
In view of the above, it will be seen that the several objects of the invention are achieved and other advantageous results attained.
As various changes could be made in the above constructions and methods without departing from the scope of the invention, it is intended that all matter contained in the above description or shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.

Claims (11)

What is claimed is:
1. A checking circuit for detecting errors in a tristate detection circuit, said detection circuit having an input receiving a signal representative of one of three logical states, said checking circuit comprising:
a plurality of controllable switches simulating three logical states at the input to the detection circuit.
2. The circuit of claim 1 further comprising a symmetrical voltage divider between a supply voltage and ground, said voltage divider having a terminal connected in the middle of the voltage divider for assuming the three states, and further comprising a comparator circuit responding to a voltage drop across the voltage divider.
3. The circuit of claim 2 wherein the controllable switches have an active state for setting the potential on the resistors of the voltage divider to ground or to supply voltage, independently of the state to be detected at the terminal.
4. The circuit of claim 2 wherein the voltage divider comprises four resistors connected in series and has a first branch located between the supply voltage and the terminal and a second branch located between the terminal and ground, each branch having a pair of resistors, each pair of resistors of each branch having a common node connected to a measured input of an associated comparator of the comparator circuit and a pair of associated controllable switches.
5. The circuit of claim 2 wherein the terminal has a current flowing through the voltage divider during fail-safe operation, independent of its electrical state.
6. The circuit of claim 2 wherein the comparator circuit comprises two inverting comparators, each of said inverting comparators providing a logical “0” at its output when a difference in voltage on its inputs exceeds a threshold value and providing a logical “1” at its output when the difference in voltage on its inputs is below the threshold value.
7. The circuit of claim 6 further comprising a pull-up resistor connecting the output of each comparator to a logic voltage.
8. The circuit of claim 2 wherein the plurality of controllable switches are divided into pairs and each pair of controllable switches is connected in series between the supply voltage and ground and has a common node connected to one input of an associated comparator of the comparator circuit.
9. The circuit of claim 1 further comprising two mutually independent operating channels.
10. A checking circuit for detecting errors in a tristate detection circuit, said detection circuit having an input receiving a signal representative of one of three logical states, said checking circuit comprising:
a plurality of controllable switches simulating three logical states at the input to the detection circuit; and
at least one microprocessor continuously and cyclically creating control signals for default sequences of switch settings of the controllable switches.
11. The circuit of claim 10 wherein each control sequence continuously and alternately activates one of the controllable switches and subsequently deactivates all controllable switches, and in the latter phase, the state of the terminal is queried while a self-test is conducted with an activated, controllable switch.
US09/351,097 1998-07-10 1999-07-09 Circuit for checking a tristate detection circuit Expired - Lifetime US6418546B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
DE19831088 1998-07-10
DE19831088A DE19831088C2 (en) 1998-07-10 1998-07-10 Circuit arrangement for checking a tri-state detection circuit

Publications (1)

Publication Number Publication Date
US6418546B1 true US6418546B1 (en) 2002-07-09

Family

ID=7873715

Family Applications (1)

Application Number Title Priority Date Filing Date
US09/351,097 Expired - Lifetime US6418546B1 (en) 1998-07-10 1999-07-09 Circuit for checking a tristate detection circuit

Country Status (4)

Country Link
US (1) US6418546B1 (en)
DE (1) DE19831088C2 (en)
FR (1) FR2781058B1 (en)
IT (1) IT1313223B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6624751B2 (en) * 2000-08-07 2003-09-23 Leuze Lumiflex Gmbh & Co. Kg Method for monitoring an entrance to a hazardous area
US20050270184A1 (en) * 2004-06-04 2005-12-08 Texas Instruments Incorporated Tri-value decoder circuit and method
CN104991184A (en) * 2015-07-29 2015-10-21 英特格灵芯片(天津)有限公司 On-chip tri-state signal detecting apparatus and detecting method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3764995A (en) 1971-12-21 1973-10-09 Prd Electronics Inc Programmable test systems
US5432440A (en) * 1991-11-25 1995-07-11 At&T Global Information Solutions Company Detection of tri-state logic signals
US5714892A (en) * 1996-04-04 1998-02-03 Analog Devices, Inc. Three state logic input
DE19736216A1 (en) 1996-09-24 1998-03-26 Siemens Ag Device for diagnosis of state of tri=state output
US5969540A (en) * 1997-10-28 1999-10-19 Winbond Electronics Corp. Three-level detector without standby current
US6028443A (en) * 1996-10-11 2000-02-22 Nec Corporation Test circuit for semiconductor integrated logic circuit using tristate buffers allowing control circuit for tristate to be tested
US6133753A (en) * 1998-11-25 2000-10-17 Analog Devices, Inc. Tri-state input detection circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3764995A (en) 1971-12-21 1973-10-09 Prd Electronics Inc Programmable test systems
US5432440A (en) * 1991-11-25 1995-07-11 At&T Global Information Solutions Company Detection of tri-state logic signals
US5714892A (en) * 1996-04-04 1998-02-03 Analog Devices, Inc. Three state logic input
DE19736216A1 (en) 1996-09-24 1998-03-26 Siemens Ag Device for diagnosis of state of tri=state output
US6028443A (en) * 1996-10-11 2000-02-22 Nec Corporation Test circuit for semiconductor integrated logic circuit using tristate buffers allowing control circuit for tristate to be tested
US5969540A (en) * 1997-10-28 1999-10-19 Winbond Electronics Corp. Three-level detector without standby current
US6133753A (en) * 1998-11-25 2000-10-17 Analog Devices, Inc. Tri-state input detection circuit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6624751B2 (en) * 2000-08-07 2003-09-23 Leuze Lumiflex Gmbh & Co. Kg Method for monitoring an entrance to a hazardous area
US20050270184A1 (en) * 2004-06-04 2005-12-08 Texas Instruments Incorporated Tri-value decoder circuit and method
US7098833B2 (en) * 2004-06-04 2006-08-29 Texas Instruments Incorporated Tri-value decoder circuit and method
CN104991184A (en) * 2015-07-29 2015-10-21 英特格灵芯片(天津)有限公司 On-chip tri-state signal detecting apparatus and detecting method thereof
CN104991184B (en) * 2015-07-29 2018-05-25 英特格灵芯片(天津)有限公司 Ternary signal detection device and its detection method on a kind of chip slapper

Also Published As

Publication number Publication date
DE19831088C2 (en) 2001-02-08
DE19831088A1 (en) 2000-02-24
ITMI991472A0 (en) 1999-07-02
ITMI991472A1 (en) 2001-01-02
IT1313223B1 (en) 2002-06-17
FR2781058A1 (en) 2000-01-14
FR2781058B1 (en) 2005-07-15

Similar Documents

Publication Publication Date Title
JP3177517B2 (en) Method and apparatus for monitoring whether an electrical load works properly
US5304935A (en) Load driver and system with fault detection apparatus for providing a sequence of fault detection logic states
CA1181531A (en) Interconnect fault detector for lsi logic chips
US8589139B2 (en) Method and circuit configuration for simulating fault states in a control unit
US4926281A (en) Fail-safe and fault-tolerant alternating current output circuit
US5488323A (en) True hysteresis window comparator for use in monitoring changes in switch resistance
US4845377A (en) Circuit arrangement for the actuation of a safety system
US4762663A (en) Self-testing monitoring circuit
US4342112A (en) Error checking circuit
US4130794A (en) Methods and means for identifying and testing circuit connections
US6418546B1 (en) Circuit for checking a tristate detection circuit
US4743842A (en) Tri-state circuit tester
US5193177A (en) Fault indicating microcomputer interface units
CN105067996B (en) The detection method and detecting system of a kind of toggle switch
EP3474027B1 (en) Method for identifying a fault at a device output and system therefor
US4726026A (en) Fault-tolerant voted output system
EP0664512B1 (en) Design for testability technique of CMOS and BiCMOS ICs
Rahaman et al. Easily testable realization of GRM and ESOP networks for detecting stuck-at and bridging faults
JP3695234B2 (en) Analog signal output device
US4604570A (en) System for comparing conditions between selected pairs of terminals in test circuit with conditions between like terminal pairs in reference circuit
EP0133215B1 (en) Circuit for dc testing of logic circuits
JP2760333B2 (en) Semiconductor device
JPH06350092A (en) High-reliability integrated circuit structure for mos power device
SU1520522A1 (en) Input device with self-check
JP2885575B2 (en) Auxiliary relay drive circuit

Legal Events

Date Code Title Description
AS Assignment

Owner name: LEUZE LUMIFLEX GMBH + CO, GERMANY

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:HARTL, PAUL;HABERER, HERMANN;HABERL, PAUL;REEL/FRAME:010108/0809

Effective date: 19990207

STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

REMI Maintenance fee reminder mailed
FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY

REMI Maintenance fee reminder mailed
FPAY Fee payment

Year of fee payment: 8

SULP Surcharge for late payment

Year of fee payment: 7

FPAY Fee payment

Year of fee payment: 12

AS Assignment

Owner name: LEUZE LUMIFLEX GMBH & CO. KG., GERMANY

Free format text: CHANGE OF NAME;ASSIGNOR:LEUZE LUMIFLEX GMBH & CO.;REEL/FRAME:038925/0001

Effective date: 20020128

Owner name: LEUZE ELECTRONIC GMBH AND CO. KG., GERMANY

Free format text: CHANGE OF NAME;ASSIGNOR:LEUZE LUMIFLEX GMBH & CO. KG.;REEL/FRAME:038963/0324

Effective date: 20081103

AS Assignment

Owner name: LEUZE ELECTRONIC GMBH AND CO. KG., GERMANY

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE ADDRESS OF ASSIGNEE PREVIOUSLY RECORDED ON REEL 038963 FRAME 0324. ASSIGNOR(S) HEREBY CONFIRMS THE CHANGE OF NAME;ASSIGNOR:LEUZE LUMIFLEX GMBH & CO. KG.;REEL/FRAME:039250/0242

Effective date: 20081103