Background of the Invention
Due to the continual use of more and more electronics in vehicles, the Society of Automotive Engineers (SAE) encouraged the entire automotive industry to develop a standard data link, preferably a medium-speed (Class B) multiple access serial communications link. Already, SAE has established Recommended Practice J1850 (a set of technical requirements and parameters) and the industry has accepted a Class B data link as a J1850 as the recommended practice.
J1850 specifies use of symbols for communicating serial data over a communications bus. In variable pulse width modulation (VPWM) encoding, as used in the present invention, a symbol comprises a voltage logic level that extends for a period of time and then a voltage transition or edge.
The amount of time and the voltage level between trip points of the previous edge and the current edge defines the meaning of the symbol. For example, a logic zero bit which can be either a short low of 64 .mu.s or a long high of 128 .mu.s represents the time between edges or transitions of the VPWM signal. J1850 specifies 3.875 volts as a nominal receiver trip point voltage parameter.
To minimize EMC problems during each transition of waveforms containing symbol information, waveshaping of the VPWM edges must take place. To satisfy RFI requirements of signals that reach the bus, each edge must have a certain slope and corner shape.
Within a transceiver, problems result in trying to maintain consistent transmitted trip points. Since the trip point of the previous edge provides the point of reference for the current edge, a problem occurs if the trip points of the transitions occur at different times.
J1850 specifies that communication busses may be a single wires routed throughout the network.
In prior systems, reshaping VPWM pulses to satisfy RFI requirements occur, but usually without considering maintaining consistent transmitted pulse trip-points. Probably the prior system designers focus more attention to problems of voltage offset between nodes rather than transmitting clean pulses.
In prior systems, to address noise spikes on the bus, designers have incorporated filtering schemes. Usually, filters used with line drivers help in eliminating short duration noise spikes and transition noise from incoming waveforms. But, such arrangements cause delays in transition time of the pulses.
In prior single wire bus systems, symbol pulse widths have not been affected by multiple nodes trying to transmit at the same time during arbitration. This is because a single node effectively dominates each transition. It is the first node to leave the passive state or the last node to leave the active state. However, feed-back type approaches have been employed to maintain the integrity of voltage levels and the shape of pulses reshaped to combat EMI noise. Such systems tend to be prone to some oscillation and weakness with respect to dealing with pulse width distortion due to undesirable pulses on the single-wire bus.
In an effort to find a bus driver capable of transmitting symbol messages over a single wire bus with minimal distortion of symbol time spans, and with some immunity from undesirable noise spikes, a search took place to find bus driver arrangements which could control current and voltage changes, including spikes without destroying the integrity of the transmitted messages. This search resulted in the present invention which uses voltage levels of the inputed pulse signals to control current signals on the bus in a manner which maintains the integrity of the transmitted messages.
Summary of the Invention
A transceiver in a multi-node communications network contains a ground translation circuit which transfers transmitted signal reference to a signal ground return to an independent bus ground return. The transceiver also contains a bus driver circuit which transmits signals if the bus voltage levels remain below a varying voltage reference contained in the bus translation circuit. The bus driver circuit also has a circuit which cuts off transmissions if the bus voltage level remains higher than the varying voltage reference in the bus translation circuit.
In the Drawings
FIG. 1 illustrates in block diagram form a communications network employing a transmitter circuit of this invention in a transceiver;
FIG. 2 depicts in schematic diagram form a portion of the transmitter circuit containing novel ground translation and bus driver circuits of this invention; and
FIG. 3A-3F depicts signal arbitration using a series of waveform diagrams.
Detailed Description of a Preferred Embodiment
FIG. 1 depicts a multiplexing network 1 that includes the novel bus driver scheme contained in a transceiver of the present invention. With the negative terminal grounded to the chassis of a vehicle, battery 2 supplies battery power (+V.sub.batt) to the network nodes.
Each 5-volt DC regulated power supply 3 of nodes 4--4 receives V.sub.batt and provides at an output terminal suitable regulated 5 Vdc to a plurality of signal conditioning circuits. In addition to the regulated power source 3, each node 4 contains a microcontroller (MCU) 5, preferably an 8-bit, single-chip microcontroller, a suitable symbol encoder/decoder(SED) 7, a transceiver 10 and a termination network 11.
MCU 5 receives sensor or switch signals of measurands (which are common measured variables such as pressure, rate of flow, thickness, temperature, and speed, etc.) and then uses the signals to generate control signals for manipulating SED 7 to produce a plurality of message symbols in a suitable VPWM format. Transceiver 10, interfaced with bus 18 through a termination network 11, accepts the message symbols from SED 7. Transceiver 10 translates message symbols referenced with respect to a signal ground return to message symbols referenced with respect to a bus ground return. Then transceiver 10 transmits the messages over bus 18 in an analog VPWM format to other nodes 4--4.
Each transceiver 10 contains waveshaping and ground translation circuits. A separate ground return (signal ground return 12) relates to waveshaping circuits while an independent ground return 19 relates to ground translation circuits. The waveshaping circuits of the transceiver appear in a co-pending patent application of the present inventor and a co-inventor, Frederick Miesterfeld, Ser. No. 07/951,988, filed Sep. 28, 1992. The ground translation circuit of the transceiver appears in another co-pending patent application of the present inventor and a co-inventor, Frederick Miesterfeld, Ser. No. 07/951,989, filed Sep. 28, 1992.
Bus 18, unlike conventional single-wire buses, does not depend on a large number of turns of twisted wire or shielding material to minimize noise. Bus 18 routes throughout the small area network as an untwisted wire with untwisted wire extensions depending from each node. Noise control results from modifications of the VPWM signals received an the transmitting and receiving portion of transceiver 10.
Also in FIG. 1, the block diagrams portray several other nodes 4--4 employing the transceiver 10. The single-wire bus 18 routes to interconnect the other nodes 4--4. Transceiver 10 includes both transmitter (TRMTR) 16 and receiver (RCVR) 20 circuits. This invention discloses the bus drivers in TRMTR 16.
The Transceiver Circuits
With reference now to FIG. 2, this figure depicts in partial block diagram and schematic diagram form a transceiver 10 of the present invention. SED 7 of FIG. 1 produces a plurality of message symbols in a suitable VPWM square-wave format. The square wave signal enters buffer 22 at port A of FIG. 2 and then leaves through port B to enter bounded integrator 24.
Bounded Integrator
Integrator 24 inverts and integrates the square-wave signal and then produces at an output port C a symmetrical trapezoid type waveform signal. The trapezoid signal carries pulses having edges with lengthened rise and fall times, reduced amplitudes and established trigger-point voltages. The established trigger-point voltages maintain each symbol length equidistant with respect to the pulse width of the symbols expressed in the input square-wave waveform.
Bounded Waveshaper
Bounded waveshaper 36 receives the ,output signal from bounded integrator 24 at point C. Waveshaper 36 reshapes both pulse corners at the extremities of each edge over a chosen duration. Then it produces at port D another trapezoid waveform signal in phase with the input waveforms which includes pulses with increased curvature corners and increased amplitudes with respect to the trip-point voltage.
Voltage-to-Current Converter
The reshaped trapezoid waveform signal at point D enters voltage-to-current converter device 54 and gets transformed into a controlling voltage for the input loop of buffer transistor 60.
The voltage-to-current converter device 54 includes a operational amplifier (op-amp) 58 and transistor 60. The reshaped trapezoid waveform signal at port D applies to a non-inverting terminal of op-amp 58. Op-amp 58 performs a voltage difference measurement with respect to a comparable waveform generated from a feedback associated circuit 70 applied to an inverting terminal. The output of op-amp 58, an analog signal, gets amplified and applied to the base of transistor 60 through a base resistor 62 providing base current to the input loop of the transistor. Battery current from ground translation circuit 80 enters, through the collector terminal, the output loop of transistor 60. This output loop provides a programmed current-sink circuit used to sink current at port E routed from the ground translation circuit 80. Transistor 60 controls the amount of current-sinking between the collector and emitter terminals. Changes in the base voltage cause corresponding changes in the emitter voltage across the emitter resistor 64.
Ground Translation Circuit
Ground translation circuit 80, connected in this embodiment to raw battery power through resistors 86 and 88, reacts to controlled current signals of buffer transistor 60 in the voltage-to-current converter device 54 connected to one output of circuit 80. Ground translation circuit 80 uses a current mirror technique of matched base-emitter biasing of matched-pair dual PNP transistors 82 and 84 to produce a current source output which mirrors the controlled current signal. Transistor 82 of the matched pairs acts as a reference diode, with its base terminal, shorted to the collector terminal.
The current output path of referenced diode 82 routes to the collector of buffer transistor 60 of device 54 and returns to signal ground 12. When transistor 60 operates, it sinks the reference diode current to signal ground. This causes a Vbe of transistor 82 appropriate to that current at the circuit temperature and for that transistor type. Transistor 84 matched to transistor 82 thereby sources the same current to another transistor 92 connected as a reference diode. The emitter of transistor 92 returns current through an emitter resistor 94 to bus return 19, a return independent of signal ground 12.
With transistor 92 connected as the second reference diode, the voltage across resistor 94 is clamped at one diode drop below the voltage appearing at port F.
The pulse voltage across resistor 94 and independent ground 19, illustratively, of about 8.0 V.sub.p-p, exhibits about 4 times the pulse voltage appearing across resistor 64 and signal ground 12. The PW of both pulses remain constant at, illustratively, 64 .mu.s at the trip points regardless of the changes in ground potential in each node of the network. Hence, any voltage offsets of the signal and bus grounds in each node will not affect the symbol timing content of the messages transferred over the bus.
Bus Driver Circuit
As mentioned supra, the voltage appearing at port F, about 4 times the pulse voltage across resistor 64 of device 54, provides base current to the input loop of transistor 96 through base resistor 124. Raw battery current flowing through emitter resistors 120 and 122 and to a current mirror circuit 91 of bus driver 90 enters the collector terminal in the output loop of transistor 96. This output loop provides a programmed current-sink circuit used to sink current from the reference diode circuit 98 of current mirror circuit 91. Transistor 96 controls the amount of current-sinking between the collector and emitter terminals. Changes in the base voltage cause corresponding changes in the emitter voltage across the emitter resistor 126.
A nearly identical current flowing through the reference diode 98 of current mirror 91 gets reflected into the output loop of transistor 116. When transistor 116 operates, it sources the reflected current to single wire bus 18.
The pulse voltage across resistor 126 and independent ground 19, illustratively, of about 8.0 V.sub.p-p, also exhibits about 4 times the pulse voltage appearing across resistor 64 and signal ground 12. The PW of both pulses remain constant at, illustratively, 64 .mu.s at the trip points regardless of the changes in ground potential in each node of the network. Hence, any voltage offsets of the signal and bus grounds in each node will not affect the symbol timing content of the messages transferred over the bus.
Receiver Circuit
From bus 18 at node 21, bus current, referenced to bus return 19, and symbol information immediately route back to the input of receiver 20, an active load. There, another voltage-to-current converter circuit 100, including an operational amplifier 102 and a buffer transistor 104, controls the pulse current in an input circuit of another current mirror circuit 106.
Current mirror circuit 106 comprised of referenced diode 108 and output transistor 110 supplies programmed pulse current to load resistor 112 referenced now to signal ground 12 in an output circuit. Translation of signals from bus return 19 back to signal return 12 occurs in current mirror circuit 106. Comparator 114 compares the voltage across resistor 112 with a fixed referenced voltage. The output of comparator 114 provides digital pulse signals referenced with respect to signal ground to SED 7 of FIG. 2. SED 7 uses the digital signal to extract symbol information from the pulses.
Operation of the Driver Circuit
During operation of bus driver 90, the varying trapezoidal waveforms at terminal F represent a reference voltage signal and the programmed current signals through resistor 126 represents a reference current. With these references, the bus driver circuit can assert unusually tight control over the voltage and current signals placed on the bus. The messages contained in the trapezoidal reference signals get reflected on to the bus and transferred to other nodes. Yet, the reference signals at terminal F are unaffected by what happens on the bus because no feedback paths exist between the bus and nodes. Even without feedback paths, these references at terminal F permit automatic circuit reaction to undesirable disturbances on bus 18. By utilizing these references, the bus output waveforms remain stable and do meet the requirements of SAE J1850 without unusual oscillations, glitches or overshoots. The driver circuit produces the desired waveshaped, single-wire bus output over a wide range of bus load resistances, capacitances and inductances and during arbitration. Bus transient noise such as spikes also have less of an effect on the transmitted waveform messages during system operation.
Affects of Bus Currents and Voltages
The amount of reference current through reference current resistor 126 and the amount that gets reflected into the output circuit of transistor 132 controls the amount of available current sourced to other nodes 4--4 of FIG. 1 connected to bus 18. Also, mismatches of voltage references, timing between nodes, and loss of arbitration affect the manner bus driver circuit 90 reacts to bus and voltage currents.
The number of nodes on the bus affect current demands of the bus driver circuit, still the references signals at terminal F remain unaffected. Current requirements for a single or a very small number of nodes minimizes the current demand. Adding nodes cause an increase in current demand.
Also, without affecting the reference signals at terminal F, if the voltage on bus 18 goes lower than the voltage amplitudes of the reference signal at terminal F, then bus driver 90 will source current signals representing the symbol messages appearing at terminal F. The current in the program current leg of the current mirror circuit 91 (i.e., current through resistor 120 and transistor 98) will reflect a mirrored current into the output leg (i.e., current through the output loop of transistor 116) and then through the output loop of output transistor 132 onto bus 18.
If the voltage on bus 18 exceeds the amplitude of the reference signal at terminal F, then the current in the input loop of transistor 132 will not sufficiently bias on transistor 132. Hence, transistor 132 will cutoff. Although not cutoff, an increase in input loop current of transistor 116 (about equal to about half the normal output loop current) will divert through the common base junctions of current mirror 91 and join a reduced mirrored current flowing through referenced diode connected transistor 98. The sum of these two currents (approximately equal to the normal output current of the current mirror) will then flow through the output loop of turned-on, current-programming transistor 96 through the referenced current resistor 126 to bus ground 19. This current diverting will continue until the reference voltage amplitude exceeds the voltage on the bus.
Arbitration
During arbitration, the receiver 20 plays a major part in whether a node wins or loses arbitration. To illustrate a typical example of arbitration, refer to FIGS. 3A-3F. Assume FIGS. 3A through 3C represent node 1 waveforms while FIGS. 3E through 3F represent Node 2 waveforms. FIG. 3A depicts the reference signal at terminal F of node 1 as a waveform carrying a short symbol while FIG. 3D depicts a reference signal at terminal F of node 2 as a waveform carrying a long symbol with the rising edge occurring slightly delayed with respect to rising edge of the waveform at node 1. As shown in FIGS. 3B and 3E, the current outputed from the bus driver circuit of node 1 will dominate the bus until the falling edge of the reference signal of node 1 occurs (see FIG. 3A). Since the receivers of both nodes 1 and 2 sense the waveform on the bus as carrying a long symbol rather than a short, the reference signal from node 2 causes the output current from node 2 to start to dominate over the current placed on the bus by the receding current which was sourced by node 1.
As shown in FIGS. 3B and 3E, almost immediately, node 1 ceases sourcing current to bus 18 and node 2 starts to provide bus current. Node 2 continues to source current until the long symbol gets transmitted to all the nodes listening to the signals on bus 18. Hence, node 2 wins the arbitration.
Under normal conditions, during arbitration, a node transmitting a high long symbol wins arbitration over another node transmitting a high short symbol. Likewise, a node transmitting a short, low symbol dominates over another node transmitting a long low symbol.
It is to be understood that the above-described embodiment mainly illustrates the principles of the present invention. Although a combination of discrete component/integrated circuit embodiment is disclosed, a combination integrated circuit/firmware/software equivalent could be developed. One skilled in the art may make changes; and modifications to the embodiment disclosed herein and may devise other embodiments without departing from the scope and essential characteristics thereof.