Technical Field
The present invention relates to electrical charge dissipation control in integrated circuits and, in particular, to reduction of peak currents on capacitively loaded CMOS ports.
Background of the Invention
When a capacitively loaded CMOS port transitions to ground potential, large amounts of charge are rapidly injected into the local ground plane ("Vss") of the integrated circuit ("IC"). Because charge is injected faster than it can be dissipated, Vss experiences a momentary jump in voltage. This is known as "ground bounce."
Ground bounce may cause errors within the IC and can degrade the certainty of IC logic. For example, internal flip-flops sometimes rely upon Vss as a reference voltage. If Vss bounces while it is used as a voltage reference, signals evaluated with reference to Vss may be mistakenly categorized.
The instantaneous relationship between current ("i"), voltage ("v"), and capacitance ("C") can be expressed as:
while the associated expression relating voltage and inductance ("L") is given by:
These expressions show that increasing the discharge time, the "dt" term, will reduce the peak current and the peak voltage and reduce, therefore, the ground bounce.
A variety of methods have been offered to decrease ground bounce. Some techniques reduce the current drive capacity of a single pull-down transistor by decreasing its channel width. Such methods however, often degrade the high-speed performance of the circuit.
Other methods suggest the use of parallel pull-down transistors, but many utilize complicated control circuitry to match charge dissipation rates to the magnitude of the impulse or particular desired waveform shapes. For example, in U.S. Pat. No. 5,218,239 to Boomer, a variety of control inputs are purportedly used to switch transistors to provide a digitally selectable choice of transition times.
Other systems vary the voltage to the gates of the pull-down transistors to slowly turn on multiple charge dissipation routes. Examples of such methods are purportedly taught in U.S. Pat. No. 5,124,579 to Naghshineh.
The prior art has generally focused on the field of high speed circuitry where ground bounce is implicated by parasitic capacitive and inductive characteristics. In the area of game port peripheral switching, however, ground bounce is caused when large capacitive loads are intentionally used to map joystick coordinates. Unlike DRAM design where parasitic capacitances of hundreds of pico-farads must be regulated, joystick loads present many thousands of intentionally stored pico-farads of charge. Consequently, many of the offered ground bounce solutions are not adapted for game port peak current control. What is needed therefore, is an inexpensive and simple circuit to reduce peak transition currents on capacitively loaded game ports.
Summary of the Invention
An object of the present invention is, therefore, to provide a method and apparatus for reducing peak transition currents during IC port switching of capacitive loads.
Another object of this invention is to provide such a method and apparatus adaptable to automatic operation on specific ports.
A further object of the present invention is to provide such a method and apparatus adapted to personal computer game port peripheral charging and discharging control.
The present invention uses a cascade of triggering circuits to sequentially activate a series of parallel pull-down paths in reflexive response to a pull-down signal indicating correspondence between the potential on a capacitively loaded port and a selectable threshold voltage. The triggering circuits are clocked with a common signal to sequentially propagate the pull-down signal from prior to subsequent triggering stages to sequentially activate corresponding parallel paths. Because the rate of charge dispersion depends upon fixable values such as the number of pull-down paths, individual path resistance, and the common clock frequency, anticipated capacitive loads may be accurately and predictably regulated without computational overhead.
In a preferred embodiment, D flip-flops arranged in a sequential cascade control multiple pull-down paths to regulate charging and discharging of a joystick capacitive load on a monolithic audio personal computer IC game port. To initiate charging of the joystick capacitor, the flip-flops simultaneously disable the pull-down paths in response to a system WRITE signal. To discharge the joystick capacitor, the flip-flops propagate a comparator-derived pull-down signal to sequentially enable the pull-down paths to controllably dissipate the accumulated charge.
Brief Description of the Drawings
FIG. 1 is a block diagram of an IC game port without specific provision for load charge dissipation.
FIG. 2 is a block diagram of a load charge dissipation system arranged and controlled in accordance with the present invention.
FIG. 3A is a graph of a typical current waveform generated during the dissipation of a joystick capacitive load charge by the system of FIG. 2.
FIG. 3B is a graph of a typical voltage waveform generated during the discharging of a joystick capacitive load by the system of FIG. 2.
Detailed Description of a Preferred Embodiment
FIG. 1 shows an IC game port system 10 nominally designed without specific provision for regulating load charge dissipation. System 10 is built into a personal computer monolithic integrated audio circuit, having an analog-to-digital and digital-to-analog signal conversion module and a digital audio signal synthesizer module.
The comparator signal from system 10 is used to evaluate elapsed charging times of a joystick capacitor 24, and therefore, joystick controller 22 coordinates. System 10 compares the load signal 21 from the joystick 22 with a digitally selected threshold signal 23 to determine whether the load signal 21, and consequently, the capacitor 24 has reached the threshold level.
As depicted in FIG. 1, the load signal 21 provided to comparator 20 from joystick 22 expresses the voltage of joystick capacitor 24. Capacitor 24 is charged from Vcc through potentiometer 26 and resistor 28. Potentiometer 26 is a variable resistance element controlled by a movable joystick control handle. The joystick control handle varies the amount of current flowing through potentiometer 26 and thereby the charging rate of capacitor 24. The time required to charge capacitor 24 to a selected threshold voltage indicates the coordinate position of the joystick control handle.
The load signal 21 from joystick 22 enters the monolithic integrated circuit through pad 30 and is directed to the inverting input of comparator 20. Comparator 20 compares the load signal 21 potential with a threshold signal 23 controllably provided comparator 20 by digital-to-analog ("DAC") converter 31 controlled by microprocessor 32.
The output of comparator 20 is inverted by inverter 33 to produce a pull-down signal provided to pull-down path 34. When the potential of the load signal 21 surpasses the threshold signal 23 potential, the output of comparator 20 goes LOW. Inverter 33 inverts the LOW output of comparator 20 to produce a HIGH pull-down signal 35 that activates transistor 36 in pull-down path 34. When transistor 36 becomes active, current from capacitor 24 flows through the load signal line 21 into transistor 36 and to Vss through resistor 38.
Those skilled in the art will recognize that other than the value of resistor 38 and the dimensions of transistor 36, there are no provisions in the schematic design of system 10 to limit the rate of current discharge through pull-down path 34. Consequently, as the charge from capacitor 24 is dissipated through pull-down path 34, the IC ground plane may experience an instantaneous, and deleterious, jump in voltage.
FIG. 2 is a diagram of system 40 depicting a preferred embodiment of the present invention. Network 40 employs flip-flops 42, 44, 46, and 48 to controllably and predictably discharge capacitor 24.
With reference to FIG. 2, the load signal 21 provided to comparator 20 expresses the voltage of joystick capacitor 24. As in the system of FIG. 1, the load signal 21 enters the monolithic integrated circuit through pad 30 and is directed to the inverting input of comparator 20.
Four conduction paths through pull-down transistors 52, 54, 56, and 58 are available to divert the charge on capacitor 24 from the load signal 21 line to a "dirty" IC metal ground. As depicted in FIG. 2, the gate of each pull-down transistor is controlled by the Q output of a corresponding flip-flop. When the system WRITE signal 41 is asserted LOW, the Q outputs of flip-flops 42, 44, 46, and 48 are fixed LOW causing transistors 52, 54, 56, and 58 to present a high impedance to the load signal line 21. Asserting WRITE 41 overrides all flip-flop inputs and fixes all Q outputs LOW to initiate charging of capacitor 24.
When the charge on capacitor 24 reaches a potential surpassing the threshold signal 23 from DAC 31, the comparator output signal goes LOW. In a preferred embodiment, DAC 31 obtains the digital representation of the microprocessor selected threshold signal 23 value from joystick trim register 39 on-board the monolithic IC. DAC 31 may alternatively receive digital data from a register located off the IC either internal or external to the controlling microprocessor. When the comparator output signal goes LOW, system WRITE 41 is released, freeing the flip-flop cascade for normal flip-flop propagation of D input states to Q outputs in response to state changes of clock 62.
When the comparator output signal goes LOW, the FLIP-FLOP pull-down signal 61 from dual-NAND gate flip-flop 60 goes HIGH. The HIGH pull-down signal propagates from the D input to the Q output of flip-flop 42 when clock 62 changes from LOW to HIGH. As the Q output of flip-flop 42 goes HIGH, transistor 52 activates and current begins to flow from capacitor 24 through transistor 52 to the ground plane. The rate of current flow through transistor 52 is controlled by appropriately sizing transistor 52. Those skilled in the art will recognize, however, that transistor 52 may be linked to Vss through a resistor for more limited initial current flow to ground in response to the state change of flip-flop 42.
Inverter 64 inverts the clock 62 waveform to present a LOW to HIGH clock transition at the clock inputs of flip-flops 44 and 48 in opposition to the state change of clock 62. In the preferred embodiment of FIG. 2, this allows the flip-flop cascade to propagate the FLIP-FLOP pull-down signal 61 in the appropriate amount of time.
As the clock input to flip-flop 44 changes from LOW to HIGH, the HIGH FLIP-FLOP pull-down signal 61 on the Q output of flip-flop 42 propagates through flip-flop 44 to appear at the Q output of flip-flop 44 and activate transistor 54. In response, now active transistors 52 and 54 conduct current from capacitor 24 to the ground plane. Transistor 54 is linked to Vss through an N.sup.+ implant resistor 55 having a nominal value of approximately 300 ohms.
The next state change of clock 62 propagates the HIGH pull-down signal at the Q output of flip-flop 44 from the D input to the Q output of flip-flop 46 activating transistor 56. In response, current from discharging capacitor 24 now flows through transistors 52, 54, and 56 to ground. Transistor 56 is linked to Vss through N.sup.+ implant resistor 57 having a nominal impedance of approximately 150 ohms.
The values of resistors 55 and 57 may be derived to limit the peak current flow while dissipating the charge on capacitor 24 in the desired amount of time. Other resistors may also be placed between transistors 52 and 58 and the charge absorbing ground plane. Consequently, the sizes of resistors 55 and 57 and other optional resistors associated with transistors 52 and 58 will depend upon the size of capacitor 24, the dimensions of transistors 52, 54, 56, and 58, the desired discharge time, and the maximum allowable peak current.
As clock 62 next changes state, the HIGH pull-down signal appearing at the Q output of flip-flop 46 propagates through flip-flop 48 to appear at the Q output of flip-flop 48 and activate transistor 58. Current from discharging capacitor 24 flows through all four conduction paths as the remaining charge in capacitor 24 controllably dissipates into the ground plane.
In the preferred embodiment of FIG. 2, clock 62 oscillates at 1 mega-Hertz and capacitor 24 is discharged in approximately 2 microseconds. Other discharging times may be selected by varying the number of pull-down conduction paths and transistors, the resistance in each conduction path to ground and the clock speed.
FIG. 3A depicts the waveform of the current flowing through pad 30 when the system of FIG. 2 is used to discharge capacitor 24. In FIGS. 3A and 3B, clock 62 is cycling at 1 mega-Hertz and capacitor 24 is a 6500 pico-farad capacitor charged from a Vcc of 5 volts through a resistance of 2K ohms.
With reference to FIG. 3A, reference character 70 identifies the activation of transistor 52. Character 72 identifies the activation of transistor 54, while character 74 marks the activation of transistor 56 and character 76 notes the activation of transistor 58. The resulting slope of the current waveform can be varied to fit system timing needs by changing the number of pull-down paths, the size of the pull-down transistors and resistors and the clock speed.
FIG. 3B depicts the waveform of the voltage on pad 30 loaded with a 6500 pF capacitor 24 to Vss and a 2K ohm resistor to Vcc. As FIG. 3B shows, waveform 80 declines with substantial linearity from approximately 5 volts to zero volts in about 2 microseconds as charge from capacitor 24 is dissipated to the IC ground.
It will be obvious to those having skill in the art that many changes may be made in the above-described details of a preferred embodiment of the present invention without departing from the underlying principles thereof. The scope of the present invention should, therefore, be determined only by the following claims.