The present invention relates in general to a method and device for clock calibration, and more particularly, to a method and device utilizing the inputted external clock signal to calibrate the internal generated clock signals.
Nowadays a computer becomes a daily use in almost every house. The computer can help people to do a lot of things and is playing an important role in the modern life. Some people usually work outside, a laptop computer is more convenient. The laptop computer can utilize an adapter connected to a plug for receiving power. When users take the laptop computer outside, the laptop computer can use a rechargeable battery to provide power.
With reference to
The protecting unit timely detects the voltage and current of the battery. If only one cell with lower voltage is detected, the protecting unit will stop all cells supplying power. Then, all cells are charged until the cell with higher voltage finishes charging; however, it may happen that the cell with lower voltage is still not charged enough. In other words, it is possible that not all the cells are charged to have a predetermined amount of electrical energy.
The power monitoring unit measures the quantity of electricity by multiplying the current running for a specified time detected by the clock signal. Conventional method utilizes an interior clock generator installed in the power monitoring unit to generate the clock signal. However, this kind of clock generator can not provide precise clock signal so that the measured quantity of electricity may not be accurate. Another method utilizes an exterior clock generator to input more precise clock signal; however, the cost is higher.
The present invention provides a method and a device for utilizing an accurate clock signal inputted outside from the power monitoring unit to calibrate an clock generator installed inside the power monitoring unit.
Accordingly, the method for calibrating an interior clock generator installed inside the power monitoring unit of a rechargeable battery includes providing an external clock signal from an exterior clock generator installed outside the power monitoring unit, setting a register to output a starting signal, activating a calibration timer control circuit by the starting signal, activating a counter to count the outside clock signal and a timer to count a internal clock signal generating from the interior clock generator simultaneously, stop counting the counter and the timer when a predetermined number of counting is achieved, and comparing a first count of the timer to the second count of the counter so as to calibrate the interior clock generator.
The objectives of the present invention will become obvious to those of ordinary skill in the art after reading the following detailed description of preferred embodiments.
It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the invention as claimed.
These as well as other features of the present invention will become more apparent upon reference to the drawings therein:
Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Referring to
In the preferred embodiment, the input pin 1 is an inputting terminal of the system management bus (SMBUS SCL) of the power monitoring unit 1 to input the outside clock signal.
The register 2 is used to generate a start signal for outputting.
The calibration timer control circuit 3 is connected to the input pin 1 and the register 2, and is activated to calibrate the timer 5 by the start signal from the register 2.
The counter 4 is connected to the calibration timer control circuit 3. When the calibration timer control circuit 3 is activated, the counter 4 starts simultaneously to count the inputting outside clock signal, and the timer 5 also starts simultaneously to count the interior clock signal from the oscillator installed inside the power monitoring unit 1.
The timer 5 is bi-directionally connected to the calibration timer control circuit 3. When the counter 4 stop counting according to the inputting outside clock signal, the timer 5 also stop counting at the same time via the control of the calibration timer control circuit 3. As such, the clock calibration is achieved by comparing the clock count of the counter 4 and timer 5.
Referring to
In step 7, the register 2 has the bit thereof equal to one. The calibration timer control circuit 3 is activated to start clock calibration.
In step 8, when the calibration timer control circuit 3 is activated, the counter 4 and the timer 5 are activated at the same time. The counter 4 starts to accumulate the first clock count from the SCL pin 1. The timer 5 starts to accumulate the second clock count from the oscillator.
In step 9, the counter 4 stops counting when the first clock count is equal to a predetermined number. The timer 5 also stops counting at the same time by generating an interrupt signal (CALIF interrupt).
In step 10, the second clock count is compared with the first clock count to calibrate the oscillator. Such that, the voltage, current and temperature of the battery can be accurately measured.
While an illustrative and presently preferred embodiment of the invention has been described in detail herein, it is to be understood that the inventive concepts may be otherwise variously embodied and employed and that the appended claims are intended to be construed to include such variations except insofar as limited by the prior art.
Number | Name | Date | Kind |
---|---|---|---|
5493684 | Gephardt et al. | Feb 1996 | A |
5514946 | Lin et al. | May 1996 | A |
5541489 | Dunstan | Jul 1996 | A |
5565759 | Dunstan | Oct 1996 | A |
5572110 | Dunstan | Nov 1996 | A |
5600230 | Dunstan | Feb 1997 | A |
5619430 | Nolan et al. | Apr 1997 | A |
5633573 | van Phuoc et al. | May 1997 | A |
5646508 | van Phuoc et al. | Jul 1997 | A |
5955869 | Rathmann | Sep 1999 | A |
6025695 | Friel et al. | Feb 2000 | A |
6025698 | Kim et al. | Feb 2000 | A |
6208117 | Hibi | Mar 2001 | B1 |
6463545 | Fisher et al. | Oct 2002 | B1 |
6486636 | Stolitzka et al. | Nov 2002 | B1 |
6522100 | Hansford | Feb 2003 | B2 |
6661204 | Malcolm | Dec 2003 | B2 |
6671221 | Beer et al. | Dec 2003 | B2 |
6856922 | Austin et al. | Feb 2005 | B1 |
20010009361 | Downs et al. | Jul 2001 | A1 |
20030169020 | Malcolm | Sep 2003 | A1 |
20060005055 | Potega | Jan 2006 | A1 |
20060113960 | Thulesius et al. | Jun 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20060122799 A1 | Jun 2006 | US |