Claims
- 1. A time synchronization device of a power monitor for synchronizing a time of an internal clock to a line frequency, the internal time advancing at a predetermined rate, the device comprising:
a counter operative to count cycles of the line frequency after each elapse of a predetermined time period, said elapse of said predetermined time period defining a present window and a previous window; a processor operative to calculate a counting error and a change in counting error, said change in counting error being the difference of a counting error calculated for said present window and a counting error calculated for said previous window; wherein said processor detects when said change in counting error is within a predetermined range; and adjusting means for adjusting the internal clock to the line frequency according to said counting error calculated for said present window when said change in counting error is within said predetermined range.
- 2. The device according to claim 2, wherein said adjusting means modifies the count of a decrement counter that keeps time for the internal clock.
- 3. A method for synchronizing a time of an internal clock to a periodically stable frequency which provides accurate time intervals, the method comprising the steps of:
counting cycles of the periodically stable frequency after each elapse of a predetermined time period, said elapse of said predetermined time period defining a present window and a previous window; calculating a counting error and a change in counting error, said change in counting error being the difference of a counting error calculated for said present window and a counting error calculated for said previous window; detecting when said change in counting error is within a predetermined range; and adjusting the internal clock to the periodically stable frequency according to said counting error calculated for said present window, when said change in counting error is within said predetermined range.
- 4. The method according to claim 3, wherein said predetermined period is about 3600 seconds.
- 5. The method according to claim 3, wherein said predetermined range is about minus one to one.
- 6. The method according to claim 3, further comprising the steps of:
receiving a time synchronization message from an entity at a first free running counter count, said time synchronization message containing a universal time when the time synchronization message was sent; processing said time synchronization message at a second free running counter count to determine said universal time.
- 7. The method according to claim 6, wherein said entity is a master computer.
- 8. The method according to claim 6, wherein said entity is a global positioning system.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] The following co-pending and commonly assigned U.S. patent applications have been filed on the same date as the present application. All of these applications relate to and further describe other aspects of the embodiments disclosed in the present application and are all herein incorporated by reference.
[0002] U.S. patent application Ser. No. ______, “REVENUE METER WITH POWER QUALITY FEATURES”, (Attorney Ref. No. 06270/22), filed
[0003] U.S. patent application Ser. No. ______, “A-BASE REVENUE METER WITH POWER QUALITY FEATURES”, (Attorney Ref. No. 06270/32), filed ______.
[0004] U.S. patent application Ser. No. ______, “REVENUE METER WITH GRAPHIC USER INTERFACE”, (Attorney Ref. No. 06270/23), filed ______.
[0005] U.S. patent application Ser. No. ______, “REVENUE METER BLADE ASSEMBLY AND METHOD OF ATTACHMENT”, (Attorney Ref. No. 06270/25), filed ______.
[0006] U.S. patent application Ser. No. ______, “METHOD AND APPARATUS FOR AUTOMATICALLY CONTROLLED GAIN SWITCHING OF POWER MONITORS”, (Attorney Ref. No. 06270/27), filed ______.
[0007] U.S. patent application Ser. No. ______, “EXTERNAL COMMUNICATIONS INTERFACE FOR A REVENUE METER”, (Attorney Ref. No. 06270/26), filed ______.
[0008] U.S. patent application Ser. No. ______, “A KEYPAD FOR A REVENUE METER”, (Attorney Ref. No. 06270/34), filed ______.