Method and apparatus for accommodating multiple dimming strategies

Abstract: An input circuit is used in combination with a dimming circuit control unit wherein the input circuit includes a first input line (14) to receive a first input voltage signal and a second input line (34) to receive a second input voltage signal. A first voltage divider (16) is electrically connected to the first input line (14) to receive the first input voltage signal and to divide the first voltage of the first input voltage signal. A second voltage divider (36) is electrically connected to the second input line (34) to receive the second input voltage signal and to divide a second voltage of the second input voltage signal. An inverter (20) is connected to the output of the first voltage divider (16) to invert the output of the first voltage divider (16). The output of the second voltage divider (36) and the inverted output of the first voltage divider (16) are then ORed and, once loaded for the proper logic levels, input into the dimming circuit control unit to control the dimming of the lamp and/or display.

Description: The present invention relates to dimmers, and more particularly, to a method and apparatus for accommodating the dimming of a display and/or lamp regardless of the dimming strategy used by the host motor vehicle. Automobiles and other vehicles are generally provided with electronic indicating panels on dashboards and the like which are controlled by driving circuits. These vehicles are similarly equipped with audio systems which have respective electronic indicators used for tuning, station identification, volume control and similar adjustments by the user. These electronic indicators have typically been provided with means to adjust the intensity of the vacuum-fluorescent display and/or illuminating lamps, if any, in accordance with the ambient lighting conditions, the running condition of the vehicle and the user preferences. For example, when the vehicle is being operated in areas of high external illumination such as in urban districts, it may desirable to increase the intensity of the illumination of the display and/or illuminating lamps, so that the visibility of instruments may be increased. Similarly, when the vehicle is operated on less frequently travelled routes, it may be desirable to decrease the intensity of illumination of the illuminating lamp or lamps to prevent the distraction or fatigue to the operator or user. An additional problem with displays and/or illuminating lamps occurs in audio systems which are typically designed without knowing the specific dimming strategy for the host motor vehicle. United States Patent No. 5,339,009 issued to Lai discloses a method and apparatus for distinguishing input signals to generate a common dimming signal. The apparatus converts a signal once it is passed through an optoisolator where it is converted from an analogue to a digital signal. Once the signal has been converted, sampling processes are used to determine the common dimming signal required to dim a lamp or series of lamp lines. This disclosure does not, however, disclose a solution to the problem of creating a dimming circuit which can universally receive and accommodate different types of signals and dim a lamp appropriately based on the input signal regardless of the type of signal. EP-A-0 714 224 describes a method for controlling an appliance such as an electronic light controller included in a discharge lamp in which an analogue or a digital signal for controlling the operating status of the appliance is connectable to a common control circuit. The appliance identifies the type of control signal and deciphers the information it receives on the basis of the signal type. US-A-5 355 136 describes an analogue to digital converter circuit to control the speed of an electric motor. The circuit comprises a low-pass filter receiving an analogue speed instruction voltage, a comparator, a microprocessor incorporating a timer and an inverter that controls the speed of the motor. The comparator compares the output signal from the filter with a triangular wave having a given frequency and a given amplitude. The output signal from the comparator is applied to the microprocessor which produces a digital signal corresponding to the speed instruction voltage by making use of internal clock pulses. The speed of the motor is detected by an encoder. The microprocessor controls the inverter in such a way that the difference between the speed detected by the encoder and the speed indicated by the digital signal becomes null. US-A-5 245 343 has for its object to enable a delta-sigma analogue to digital converter to convert an analogue signal into a digital signal of finite precision within a shorter period of time. The converter is provided with a multi-stage shift register coupled to receive as its input the output from a quantizer including an analogue integrator. The serial digital output signal train from the shift register is fed back to the input of the integrator and because of the frequency division which takes place, for a given high clock rate, an operational amplifier with a lower gain/bandwidth product may be employed. According to the present invention, there is provided an input circuit for a dimming circuit control unit, said input circuit comprising: a first voltage signal input line; a first voltage input circuit electrically connected to said first signal input line to receive a voltage thereon, said first voltage input circuit having a first output terminal said first voltage input circuit comprising a first voltage divider electrically connected to said first voltage signal input line to receive a first voltage input signal in the form of either an analogue signal or a pulse-width modulated signal of a first polarity and to divide said first voltage input signal, the output signal of said first voltage divider being supplied to said first output terminal; characterised by; a second voltage signal line; a second voltage input circuit electrically connected to said second voltage signal input line to receive a voltage thereon, said second voltage input circuit having a second output terminal; said second voltage input circuit comprising a second voltage divider electrically connected to said second voltage signal input line to receive a second voltage input signal in the form of a pulse-width modulated signal of a second polarity and to divide said second voltage input signal; the output signal of said second voltage divider being supplied to said second output terminal; an OR terminal connecting said first output terminal over an inverter to said second output terminal; said inverter connected between said first voltage divider and said OR terminal being adapted to invert said first input voltage signal to eliminate one of the first and second signal polarities to be received by the dimming circuit control unit. Further, according to the present invention, there is provided a method of using such an input circuit to receive an input voltage signal at the first input line or the second signal input line, the signal input at the first signal input line being in the form of either an analogue input voltage signal or a pulse-width modulated input signal of the first signal polarity and the input voltage signal at the second input line being in the form of a pulse-width modulated signal of the second signal polarity; and employing the inverter to eliminate one of the first and second signal polarities to be received by the dimming control circuit. One advantage of the present invention is the ability to accommodate many types of dimming modules with no hardware changes or option straps. Another advantage associated with the present invention is the accommodation of many types of dimming modules without software changes or reconfigurations. Yet another advantage associated with the present invention is the reduced cost in the manufacturing of the circuit based on the simplicity and uniformity of the input circuit. Still another advantage associated with the present invention is the ability to provide more combinations of audio systems and vehicles based on the increased compatibility of each system using the present invention. The invention will now be described, by way of example, with reference to the accompanying drawings, in which: FIG. 1 is schematic diagram of one embodiment of the input circuit according to the present invention; FIG. 2 is a flow chart of one embodiment of a called part of a method of the present invention; and FIG. 3 is a flow chart of one embodiment of an interrupt service routine used in the method of the present invention. Referring to FIG. 1, an input circuit 10 for a control unit 12 which is used to control the dimming of a vacuum-fluorescent display and/or lamps (not shown) is generally indicated. The input circuit 10 is capable of receiving three different types of signals. These three different types of signals are potential dimming strategies which are currently used in motor vehicles today. The first type of signal is an analogue signal. This analogue is created by a rheostat (not shown). The rheostat generates an analogue DC voltage signal between the ranges of four volts and the maximum voltage provided by the battery of the motor vehicle (not shown). This maximum voltage may ideally vary between twelve and fourteen volts, depending on the condition of the battery. The voltage of the DC signal would be at a level which is dependent upon a setting made by the user. Maximum brightness of the lamps is indicated by the voltage of the analogue signal being close to the maximum voltage provided by the battery. Minimum brightness is indicated when the analogue signal has a voltage approximately 4.5 volts. A second type of signal receivable by the input circuit 10 is a positive pulse-width modulation signal. In this situation, a signal having a pulse train indicates the brightness level of the lamps. In this situation, the brightness of the lamp is directly proportional to the duty cycle of the pulse train. The third type of signal receivable by the input circuit is a negative pulse-width modulated signal. In this situation, the brightness of the lamps is inversely proportional to the duty cycle of the pulse train modulated signal. In any given motor vehicle, only one of the three options is available. Therefore, it is desirable to create a dimming circuit which may accommodate any one of these three options. The input circuit 10 includes a first input line 14 which receives one of the three above-mentioned signals. With the analogue signal, the first input line 14 receives the analogue signal. With the positive pulse-width modulated signal, the first input line also receives the signal. In the third situation, however, the first input line 14 maintains the voltage level of the battery of the motor vehicle. A first voltage divider 16 is electrically connected to the first input line 14 to receive the first input voltage signal, regardless of the type of signal, and divides a first voltage of the first input voltage signal. The first voltage divider 16 has a first output terminal 18. The first-output terminal 18 is connectable to an inverter 20, discussed subsequently, and an input line 22 to an analogue-to-digital converter 21. The analogue-to-digital converter 21 is used to convert the analogue signal created by the rheostat into a digital signal, the output of which is sent to the control unit 12 to determine the dimming level of the lamps. It may be appreciated by those skilled in the art that the analogue-to-digital converter 21 may be integrated into the control unit 12. The first voltage divider 16 includes a first capacitive unit 24 which includes a first capacitor and second capacitor 26,28. The first 26 and second 28 capacitors are used to limit the frequencies transmitted through the first voltage divider 16 and to suppress any transients which may be received through the first input line 14. The first capacitor 26 is connected between the first input line 14, ground, and a first resistor 30. The second capacitor 28 is connected between the first resistor 30, the first output terminal 18, a second resistor 32 and ground. The first resistor 30 is connected between the first input line 14, the first capacitor 26, the second resistor 32, the second capacitor 28, and the first output terminal 18. The input circuit 10 also includes a second input line 34 which receives a second input voltage signal. In the situations where the input circuit 10 is connected to a system which produces either the analogue signal or the positive pulse-width modulated signal, the second input line 34 is connected to a zero volt source. In the situation where the input circuit 10 is connected to a system using the negative pulse-width modulated signal strategy, the second input line 34 receives the negative pulse-width modulated signal. In this situation, the first input line 14 is connected to the battery. A second voltage divider 36 is connected to the second input line 34. The second voltage divider 36 includes a second capacitive unit 38 which, similar to the first capacitive unit 24, limits the frequencies passed therethrough as well as suppresses all transients passed therethrough also. The second capacitive unit 38 includes a third capacitor 40 and a fourth capacitor 42. The second voltage divider 36 also includes a third resistor 44 and a fourth resistor 46. The third resistor 44 is connected to the second input line 34, the third capacitor 40, the fourth resistor 46, the fourth capacitor 42, and a first diode 48. The first diode 48 is used to insure proper logic levels. The first diode 48 is a type of interface between the second voltage divider 36 and the control unit 12. The third capacitor 40, the fourth capacitor 42, and fourth resistor 46 are all connected to ground. The inverter 20 receives the signal from the first input line 14 after it has been divided by the first voltage divider 16. The inverter 20 is connected to the first output terminal 18 of the first voltage divider 16. The inverter 20 inverts the signal received by the first input line so that the control unit 12 perceives the positive pulse-width module it signal as a negative pulse-width modulated signal. This inverter 20 greatly reduces the amount of controls required by the control unit 12 because it effectively combines two of the strategies used to dim lamps. The inverter 20 includes a transistor 50 with the emitter thereof connected to ground. The base of the transistor 50 is connected to a fifth resistor 52. The collector of the transistor 50 is connected to a sixth resistor 54 and a seventh resistor 56. The sixth resistor 54 is connected to a five voltage DC power source 58. A second diode 60 is connected in series between the fifth resistor 52 and the first output terminal 18 of the first voltage divider 16. The second diode 60 is necessary to insure that the transistor 50 turns off completely when the positive pulse-width modulated signal is low. The output of the inverter 20 is loaded with the seventh resistor 56 to provide a proper logic level for the control unit 12. In one embodiment, the control unit 12 operates using CMOS logic. Also, an eighth resistor 62 is connected between the second voltage divider 36 and the control unit 12 to insure proper logic levels are received by the control unit 12. An OR terminal 64 is connected between the seventh resistor 56 and the eight resistor 62 and the control unit 12. The OR terminal is a wired-OR terminal and provides a single input for the control unit 12 from the first input line 14 and the second input line 34. Referring to FIG. 2, a method for dimming a lamp and, more particularly, a vacuum-fluorescent display, is shown. The method continually computes the intensity the vacuum-fluorescent display as a function of the input signal provided by the input circuit 10. The dimming of the vacuum-fluorescent display is continually updated, in real-time, to the intensity level computed. The method is capable of sensing the type of dimming module present by processing the input signals for both types of strategies, i.e., the pulse-width modulated (PWM) and analogue to determine the type of dimming used (the "dimming type"). Once the dimming type is selected, the corresponding input signal is processed to determine a dimming step, which is then used to compute the brightness of the display. The default type of dimming is to treat the input signal initially as an analogue signal. Once a dimming type is selected, it remains selected until the state of the analogue and PWM signals exhibit behaviour that is unquestionably associated with the other of the two dimming types. The method begins by receiving a signal at 66. Immediately, it is determined whether the interrupt service routine (ISR) is running at 68. The ISR is shown in detail in FIG. 3 and will be discussed subsequently. One test for determining whether the signal received is an analogue signal or a pulse-width signal is by counting a predetermined figure or number of times the ISR has run. In one embodiment, it is determined that a pulse-width modulated signal, either positive or negative, is present if the ISR is executed at least once immediately before a called part of the method (discussed subsequently) is run, for a duration of six consecutive runs of the called part. The default dimming type is analogue upon initial powering. If it is determined that the ISR is not running, it is determined whether the dimming type signal has previously been determined to be a pulse-width modulated signal at 70. If not, the analogue-to-digital converter 21 converts the analogue input at 72. It is here that the display intensity is computed and updated using a variable dimming factor when the signal received by the input circuit 10 is an analogue signal. If it is determined, at 70, that the dimming type is PWM, it is determined if the signal indicates that the headlights are on at 74. It is then determined if the signal cannot be PWM at 75 by testing an analogue-to-digital threshold. If a analogue-to-digital value falls below the analogue-to-digital threshold and a PWM signal does not appear (the appearance of which is due to the duty cycle dropping below 100%), the signal is determined to be analogue. The dimming type is then set to analogue at 77. After which the analogue signal is converted to a digital signal at 72. Although any type of test may used to determine when a minimum amount of ambient light is present around the motor vehicle and/or the display, the method chosen in the this embodiment is whether the headlights have been turned on. It may be appreciated by those skilled in the art that sensing ambient light directly or sensing other events could determined the amount of ambient light present. If the headlights are turned on indicating a minimum amount of ambient light is present, the display is updated for maximum night time intensity at 76. If not, however, the display is updated using the variable dimming factor for daytime intensity at 78. Regardless of whether the headlights are on or not, once the intensity has been adjusted, the method is immediately returned to determine whether the ISR is running. If it has been determined that the ISR is running at 68, it is determined at 80 that the dimming type signal is a pulse-width modulated signal. If so, the dimming type is set to PWM at this time. The ISR is instructed to capture period values of the pulse-width modulated signal. It is then determined at 82 whether the ISR has captured the period values of the pulse-width modulated signal at 82. A loop 84 insures that the period values of the pulse-width modulated signal are not computed until the ISR has captured the period values. When the ISR has captured the period values, the period of the pulse-width modulated signal is computed at 86. It is also at this time that the ISR is instructed to capture an edge, namely a rising edge in the pulse-width modulated signal. It is determined at 88 whether the ISR has captured the rising edge of the pulse-width modulated signal. When the ISR has captured the rising edge of the pulse-width modulated signal, the duty cycle of the pulse-width modulated signal is calculated at 90. The duty cycle of the pulse-width modulated signal is defined as the amount of time the pulse-width modulated signal is in a low state divided by the time of the whole period. Based on the duty cycle of the pulse-width modulated signal, the display is updated at 92 by updating the variable dimming factor. Because the display is continually updated, the method returns to diamond 68 where it is determined whether the ISR is running. Referring to FIG. 3, the ISR is shown as a closed loop. The ISR is shown as a closed loop because it is constantly running whenever a pulse-width modulated signal is present and power is received by the battery and/or generator system of the motor vehicle. The first portion of FIG. 3 is the detection of an edge on the input signal at 94. If, in the situation where the input signal is an analogue signal, the ISR will not be invoked and the first step 98 thereof will not be executed. In a motor vehicle with a pulse-width modulated signal, the ISR, beginning at 98, runs up on the occurrence of each edge. If an edge is detected in the input signal, the ISR notifies the called part, the portion of the method shown in FIG. 2, that the ISR has run at 98. Once the called part, FIG. 2, has been signalled that the ISR has run, it is determined whether a request for a period capture from the called part has been received at 100. If so, it is determined whether a falling edge has been captured at 102. If not, the ISR loops back to determine whether an edge has been detected in the input signal at 94. If so, it is determined whether the falling edge captured is the first falling edge at 104. If the falling edge captured is the first falling edge, the time at which the first falling edge occurred is stored at 106. The ISR is returned to the edge detection test at 94. If the falling edge which is captured is not the first falling edge, the falling edge is determined to be the second or subsequent falling edge of the period at 108. The time at which the second falling edge occurs is stored at 108 and the called part of the method is sent an indication that the period capture has been completed. If it is determined, at 100, that the period capture has not been requested, it is determined at 110 whether a falling edge has been captured. If so, the time in which the falling edge was captured is stored at 112. If not, it is determined whether a falling edge has already been captured at 114. If not, the ISR is looped back to the edge detection test at 94. If, however, the falling edge has already been captured the time at which an intermediate or rising edge is detected is stored at 116. It is at this time that the ISR indicates to the called part of the method that the low time has been captured. The low time, in combination with the period time, is used by the called part of the method at 90 to compute the duty cycle of the pulse modulated signal.

Claims: An input circuit (10) for a dimming circuit control unit (12), said input circuit comprising: a first voltage signal input line (14); a first voltage input circuit (16) electrically connected to said first signal input line (14) to receive a voltage thereon, said first voltage input circuit (16) having a first output terminal (18); said first voltage input circuit (16) comprising a first voltage divider (16) electrically connected to said first voltage signal input line (14) to receive a first voltage input signal in the form of either an analogue signal or a pulse-width modulated signal of a first polarity and to divide said first voltage input signal, the output signal of said first voltage divider (16) being supplied to said first output terminal (18); characterised by ; a second voltage signal line (34); a second voltage input circuit (36) electrically connected to said second voltage signal input line (34) to receive a voltage thereon, said second voltage input circuit (36) having a second output terminal; said second voltage input circuit (36) comprising a second voltage divider (36) electrically connected to said second voltage signal input line (34) to receive a second voltage input signal in the form of a pulse-width modulated signal of a second polarity and to divide said second voltage input signal; the output signal of said second voltage divider (36) being supplied to said second output terminal; an OR terminal (64) connecting said first output terminal (18) over an inverter (20) to said second output terminal; said inverter (20) connected between said first voltage divider (16) and said OR terminal (64) being adapted to invert said first input voltage signal to eliminate one of the first and second signal polarities to be received by the dimming circuit control unit (12). An input circuit as claimed in claim 1, wherein said first voltage divider (16) includes an analogue output terminal connected to transmit the first input voltage signal to an analogue-to-digital converter (21). An input circuit as claimed in claim 2, wherein said first voltage divider (16) includes a first capacitive unit (24) to limit frequencies and suppress transients. An input circuit as claimed in any one of claims 1 to 3, wherein said second voltage divider (36) includes a second capacitive unit (38) to limit frequencies and suppress transients. A method of using the input circuit of claim 1, 2, 3 or 4 to receive an input voltage signal at the first input line (14) or the second signal input line (34), the signal input at the first signal input line being in the form of either an analogue input voltage signal or a pulse-width modulated input signal of the first signal polarity and the input voltage signal at the second input line (34) being in the form of a pulse-width modulated signal of the second signal polarity; and employing the inverter (20) to eliminate one of the first and second signal polarities to be received by the dimming control circuit (12). The method of claim 5, comprising the further steps of; detecting an edge in an input voltage signal received at one of the input signal lines (14,34); initiating an interrupt service routine when the edge is detected; detecting a subsequent edge in the signal; measuring the time between the edge and the subsequent edge; identifying when the interrupt service routine has run; calculating a pulse width defined by the edge and the subsequent edge; calculating a duty cycle of the pulse width; and determining a dimming factor to be used to dim the display. The method of claim 6, including the step of counting each time the step of identifying when the interrupt service has run. The method of claim 7, including the step of identifying the signal as a pulse-width modulated signal when the step of counting exceeds a predetermined figure. The method of claim 7, including the step of identifying the signal as an analogue signal when the step of counting does not exceed the predetermined number. The method of claim 6, wherein the step of calculating the duty cycle includes the step of detecting an intermediate edge in the signal between the edge and the subsequent edge.

Inventors: PALARSKI GREGORY E, WALSH KATHLEEN ANN, PALARSKI, GREGORY E., WALSH, KATHLEEN ANN
Applicants: FORD MOTOR CO, FORD MOTOR COMPANY
Application year: 1997
Main classification: H05B41
IPC codes: H05B39, H05B37, H05B41, B60Q1