Background of the Invention
1. Field of the invention
The present invention relates to an integrated circuit which may be internally configured by programming, for controlling the switching of a driving current through a single or multiple inductive loads connected across output terminals of the integrated device in accordance with one of several different connection schemes which may be selected for a particular application.
2. Description of the prior art
The controlled driving of stepping motors, transformers, electromagnets and similar actuating means, typically representing inductive loads, is commonly implemented by employing an integrated device combining the output power transistors, typically four power switching transistors connected to a virtual ground node which are referred to as "low-side drivers" and one or more often two power switching transistors connected to the supply rail, known as "high-side driver(s)", and a driving circuit. The latter typically includes a pulse-width-modulation (PWM) control loop, driven by a clock signal, which controls the "duty-cycle" of driving signals fed to the output power switching transistors in function of the detected value of the current flowing through the external load and of a control reference voltage.
Integrated circuits of this kind are well known to a skilled technician and may take different forms, more or less advantageous under certain aspects, but which essentially remain based upon PWM control loops. Among these types of circuits, particularly advantageous is a control circuit based upon a current sharing principle described in the pending U.S. patent application Ser. No. 07/245,657, filed on Sept. 16, 1988 and claiming a Convention priority date of Oct. 5, 1987, wherein by employing a single current sensing resistor for the current flowing through the external loads, it is possible to adjust independently the current flowing through two external loads connected according to a "dual-half-bridge" scheme or according to a "unipolar motor" connection scheme. The description of such a switching control circuit is here incorporated. On the other hand, the kind of the external inductive load or loads to be driven by the integrated circuit, whether represented by ..an.!. a unipolar motor or by one or more unidirectional motors, solenoids, and the like normally requires a specific design of the integrated switching control circuit compatible with the particular drive configuration or connection scheme of the external load or loads to be driven. In the accompanying FIGS. 1a, 1b, 1c and 1d, several well known driving schemes for inductive loads (L), according to a bridge, dual-half-bridge, electromagnet, and unipolar motor drive configuration are respectively depicted. In these illustrations six power switching transistors indicated with HSD1, HSD2 (that is the two High-Side Drivers), LSD1, LSD2, LSD3 and LSD4 (that is the four Low-Side Drivers), respectively, are shown, each being provided with a power diode for the recirculation of the discharge current of the relative external inductive load L. In case of driving an electromagnet, as depicted in FIG. 1c, the integrated circuit may contain also two additional recirculation diodes D1 and D2 as it is well known to a skilled technician. In all the examples shown, a single sensing resistor (Rsense), connected between a virtual ground node and the real ground of the supply circuit is shown. Obviously the use of a single sensing resistor in the case of the circuit of FIG. 1b, that is a dual-half-bridge drive configuration for two external loads L and L', necessarily requires a current sharing kind of switching control circuit when an individual control of the two loads is desired, as described in the above cited application.
According to the prior art, the integrated circuit for controlling the switching must essentially be designed specifically for the contemplated application, for example a bridge type application (FIG. 1a), a unipolar motor application (FIG. 1d), and so forth.
Therefore it would be of great utility to provide an integrated device for controlling the switching of a drive current across external inductive loads (single or multiple loads), which could be internally configured so as to be usable for a driving scheme selectable among a number of possible driving schemes of the externally connected load or loads.
Summary of the Invention
The main objective of the present invention is that of providing an integrated circuit for controlling the switching which may be internally configured by means of selection logic means controllable by the user for making the control circuit functionally suited for a certain driving scheme of an external load or loads which may be implemented by suitable bridging output terminals of the integrated circuit and connecting the external load of loads thereto.
This and other objectives and advantages which will emerge during the following description, are achieved by the switching mode, driving circuit of the present invention, which may also conveniently use a single PWM control loop utilizing a single sensing resistor connected between a virtual ground node to which four "low-side drivers" are connected and the real ground of the supply circuit and which is capable of generating at least a control signal, the "duty-cycle" of which is determined by means of a clock signal and a reference voltage. This control signal generated by the PWM control loop is substantially fed to the input of a configurable logic circuit, which may comprise a read-only memory (ROM) and/or a similarly programmable logic array (PLA) and suitable selection registers (programming registers). The configurable logic circuit produces drive signals for as many output power switching transistors that are used (that is, for the four "low-side drivers" and for the unique or for the two "high-side drivers") in conformity with a selected driving scheme to be implemented.
According to a preferred embodiment of the invention, the use of relatively slow ROM or PLA, that is, with a relatively long access time, is made possible without such a speed limit of the programmable logic circuit having a negative effect upon the correct driving in a switching mode of the external load or loads.
Brief Description of the Drawings
FIGS. 1a, 1b, 1c and 1d depict driving schemes of one or more external loads which are commonly adopted in the art, as described above;
FIG. 2 is a basic block diagram of the integrated driving circuit of the present invention;
FIG. 3 is a block diagram of an embodiment of the circuit of the present invention suitable to utilize programmable devices having a relatively long access time;
FIG. 4 is a circuit diagram of one of the ..block.!. blocks of the diagram of FIG. 3;
FIG. 5 is a more detailed functional block diagram of a circuit of the present invention.
Description of Preferred Embodiments
A basic block diagram of the integrated driving circuit of the present invention is depicted in FIG. 2. The two power devices connected to the supply rail Vs, that is, the two "high-side drivers" HSD1 and ..HSd2.!. HSD2, and the four power devices which are connected to the virtual ground node VG of the output supply circuit, that is the four "low-side drivers" LSD1, LSD2, LSD3 and LSD4, are represented as a whole by the block labelled "power drivers", which has six respective output terminals HSD1, HSD2, LSD1 . . . LSD4, whereby any one of the supply schemes for single or multiple loads depicted in FIGS. 1a, . . . 1d, may be implemented. In the particular example shown in FIG. 2, it is easily recognized that the implemented supply scheme is the one used for controlling an electromagnet. The load L is connected between the two "high-side drivers" and the four "lowside drivers", which are respectively connected in parallel by means of the indicated external connections.
The integrated device has preferably an external terminal VG for allowing the connection of an external sensing resistance Rsense between such a virtual ground terminal VG and the real ground of the circuit powering the external load L.
Naturally the six power switching devices will have customarily a respective integrated diode for recirculation, as shown in FIGS. 1a, 1b, . . . 1d.
The voltage signal across the sensing resistor Rsense is fed to a PWM block wherein such a signal is detected and compared with a control reference voltage Vref and a pulse-width-modulation control circuit generates at least a control signal IN1, the frequency and "duty-cycle" of which may be adjusted by means of the control reference voltage Vref and the Clock signal. The signal (or the two nonsuperimposing driving signals which are needed in case a dual-half-bridge supply scheme for two distinct loads or a supply scheme for a unipolar motor utilizing a single sensing resistor and a single PWM control loop as described in the above cited pending application are implemented) is not fed directly or through inverters to the respective driving terminals of the six output power switching devices but such a driving signal (or two nonsuperimposing driving signals) is fed to an input of a logic circuit labelled ROM - PLA which may be configured by programming and which generates on at least six output terminals thereof, signals which are replica and inverse signals of such a single signal IN1 (or of two nonsuperimposing signals) which is generated by the PWM control loop. The outpost signals (CA, CB, C0, C1, C2 and C3) of the configurable logic circuit (ROM - PLA) are respectively fed to the six driving terminals of the output power drivers. The configurable logic circuit (ROM - PLA) is provided with at least a first register R1 for the selection of the driving configuration of the external load, which is connected, in conformity with such a selected configuration to the relative output terminals of the integrated circuit, a second register R2 for controlling the driving conditions of the load thus connected and preferably a read-only memory (ROM) capable of storing the data of the two registers and/or a logic circuit array whose configuration may be programmed (PLA) and/or equivalent combinatory logic circuitry and determines a configuration of the six output signals in conformity with the data stored in the two registers R1 and R2.
In view of the fact that especially when using ROM and/or PLA having a relatively long access time, the delays imputable to the access time of the programmable circuits may interfere with a correct driving in a switching mode of the external load or loads, an embodiment as the one depicted in FIGS. 3 and 4 which is particularly suited when the fabrication technology is such as to determine relatively long access times for ROM and for PLA, may be preferred.
As schematically shown in FIG. 3, the function of selecting the configuration of the six output terminals CA, CB, C0, C1, C2 and C3 of the configurable logic circuit is performed by utilizing six "speed-up" circuits, identified by H1, H2, L1, . . . L4, respectively. Each block is formed by an AND gate followed by an EX-OR gate as depicted in FIG. 4. A first signal of a pair of signals coming from the ROM is fed to an input terminal of the AND gate of the speed-up circuits as a "forcing" signal of a respective logic state and the second is fed to an input terminal of the EX-OR gate of the speed-up circuits as a "selection of inversion" signal. According to this preferred embodiment the use of relatively slow programmable arrays for implementing the read-only-memory function of the integrated circuit of the invention is made possible.
A more detailed diagram of the circuit of the invention according to such a particularly preferred embodiment, is depicted in FIG. 5.
In the embodiment shown in FIG. 5, the six integrated power switching devices: HSD1, HSD2, LSD1, LSD2, LSD3 and LSD4, provided with their respective recirculation diodes, are shown. Each power switching device commutes a respective output terminal either to the supply rail Vs or to the virtual ground note VG. In the example shown a single external sensing resistor Rsense is connected between the virtual ground note VG and the ground of the supply circuit of one or more external loads (not shown in this figure) which will be connected to the appropriate output terminals, in accordance with a selected supply scheme. Each power switching device is driven by a signal coming respectively from the output terminals CA, CB, C0, C1, C2 and C3 of the programmable logic circuit, as clearly shown.
The voltage signal present across the sensing resistor Rsense, by means of the shown connection, and the control signals Vref and Clock are fed to a PWM control circuit of a substantially customary type. The control signal IN1 produced by the PWM control circuit is fed to the input of a speed-up, "flexibility bridge" circuit BFG, one function of which is that of allowing to control a number of half-bridge circuits, eventually coupled in a bridge configuration, thus permitting to control the driving by means of a single control signal IL or IR (assuming that a "low-side driver" is always inverting in respect to the respective "high-side driver" as it is easily understood by a skilled technician), because by considering for example a single left-hand half-bridge (formed by HSD1, LSD1 and LSD2 of the scheme depicted in FIG. 1b) the control signal IL will always be a function of the signal IN1 or of the inverse of the latter; that is always "high" or always "low", and therefore the AND gate followed by ..and.!. an EX-OR gate of the BFG circuit will control the function: IL=S (IN1) through the respective left-phase (PL) and left- inversion (XL) signals coming from the ROM. Obviously the same type of control is duplicated by the BFG circuit through the respective PR an XR signals coming from the ROM for generating an IR driving signal for an eventual right-hand half-bridge (formed by HSD1, LSD3 and LSD4 in FIG. 1b). An advantage of such a solution is the small number of components which are necessary for implementing the double half-bridge control as well as the possibility of employing a very slow ROM, because the delay between the signal IN1 generated by the PWM control circuit and the control signals IL and/or IR remains always extremely small, as already observed in relation to the more general schemes of FIGS. 3 and 4.
As it will be evident to the skilled technician, in a case where a "full-bridge" supply scheme is utilized, the functions of the "current sharing" CS block are no longer required and the signal "CS disable" coming from the ROM will assume a logic value equivalent to "1" such as to disable the two OR output gates of the CS block. In a case where a "dual-half-bridge" or a "unipolar motor" supply scheme is selected, the "CS disable" signal will assume a ".phi." logic value and the two output signals of the current sharing control circuit "CSC", "IL enable" and "IR enable", are fed to the respective inputs of the two AND gates. The output signals of the two AND gates: IL and IR, essentially correspond to the signals PA and PB of the circuit depicted in FIG. 4 of the cited prior application Ser. No. 245,657 of Sept. 16, 1988, so as the "IL enable" and "IR enable" signals correspond ..sustantially.!. substantially to the two signals Qz and Qz of that circuit.
In a case where a bridge scheme is selected, the two output signals IL and IR of the two AND gates are fed in a replica and in an inverse form, through the shown inverters, to a lag time generating circuit "RTL", i.e., to a circuit capable of determining a certain delay in the transfer of a positive ramp, which circuit has the function of positively excluding simultaneous conduction of a "high-side driver" and of a respective "low-side driver", according to a common technique.
The pair or the pairs of signals, IL' and IL' and IR' and IR', respectively, are fed through a multiplexer "MX" to the respective driving terminals of the power switching devices, as it will be described further on.
In a case where a unipolar-motor mode of operation is selected by means of the register R1 (FIG. 1d scheme), the four control phases (phase 1, 2, 3 and 4) are set by means of the register R2 and through the shown connections these signals are fed to the respective inputs of the multiplexer MX to which also the two control signals IR and IL generated as described before by means of the PWM control circuit, the CS current sharing circuit and the BFG circuit are fed. By means of the "unipolar/bridge select" signal coming from the ROM, the multiplexer MX is preset and the six driving signals CA, CB, C3, C2, C1 and C0 for the respective six power switching devices are enabled by means of two enable/disable signals, respectively "R enable" and "L enable" also coming from ROM and which, by means of the six AND gates connected on the six outputs of the multiplexer MX permit to force to an OFF state (disable) the driving signals.
The use of the multiplexer MX is particularly effective for performing a selection among bridge type and unipolar-motor type supply schemes which are radically different from each other and this allows to reduce the number of components which are required for implementing the programmable logic circuitry which is employed in the integrated device of the present invention.
The driving signals relating to the implementation of a bridge type supply scheme or of a solenoid control, are grouped in FIG. 5 by the label "bridge drive signals", while the ensemble of driving signals relating to the implementation of a unipolar-motor supply scheme are labelled "unipolar drive signals" in the diagram of the same FIG. 5.
Notwithstanding the fact that only few preferred embodiments of the invention have been illustrated wherein a ROM is employed, it will be evident to the skilled technician that the ROM may also be substituted by an equivalent logic circuit such as, for example, a programmable logic array (PLA, PAL, etc.) or by equivalent combinatory logic circuitry. Moreover the invention may be practiced in different embodiments, modified in respect to the embodiments which have been described herein for purely illustrative purposes.