1. Field of the Invention
The present invention relates to a real time clock having a register, and more particularly to a real time clock using a control command of a preinstalled central processing unit to hold a time stamp in an external register of the real time clock, so as to achieve the function of accurately reading the exact time of issuing a read command by the central processing unit regardless of whether or not the preinstalled central processing unit is at a busy state.
2. Description of Related Art
As the present electronic technology grows rapidly, various different electronic products have become indispensable tools for our life or work. However, a real time clock is an electronic component that works silently and also plays an important role in various different electronic products such as computers and automated control equipments.
If a real time clock in a general electronic system loses its accuracy, and the electronic system such as a server has to provide data and time of transmitting data to a user over the network or a computer system has to provide accurate date and time of executing an application program, then the overall system performance and accuracy will be affected adversely, or the server will be crashed due to errors.
Further, a general computer system always comes with a real time clock for counting time in the computer system, and the real time clock is usually used for producing a time record of data access and program computation. To achieve the aforementioned functions, the real time clock is used directly as a device for reading a computer system time, and the current available method of reading a real time clock reads the time counted by a real time clock chip through a serial method. If the real time clock chips still counts the time while the central processing unit is reading a serial data, then the time so read will not be the desired moment. If the reading time of the central processing unit is too long, even the number of seconds or minutes will be read, so that if the number of second is precisely equal to 0 minute 59 seconds which is rounded up to 1 minute 0 second, but the real time so read is equal to 0 minute 0 second, the read time will be one minute slower than the actual time. Similarly, if the carry is precisely a whole hour, a whole day or even a whole month, the error of real time so read will be very large, and thus greatly increasing the instability of the electronic system.
Obviously, the prior art requires further improvements, and such improvements become good research and development subjects for manufacturers in the related industry.
In view of the foregoing shortcomings and deficiency, the inventor of the present invention based on years of experience in the related industry to conduct extensive researches and experiments, and finally invented a real time clock having a register in accordance with the present invention.
Therefore, it is a primary objective of the present invention to adopt an external register in a real time clock chip module to accurately read the correct time of a read command given by the central processing unit, regardless of whether or not the central processing unit is situated at a busy state of executing other programs.
A secondary objective of the present invention is to use an interrupt signal pin in an external control terminal to read and determine the time of an occurrence of an external event, such that if there is a special event occurred in the program or system, the read signal start pin will be triggered, and thus users can accurately check the exact triggering time of the event.
To achieve the foregoing objectives and effects, the objectives, structure, innovative features, and performance of the present invention will be apparent in the following detailed description of the preferred embodiments with reference to the accompanying drawings.
Referring to
The controller 11 is a control unit of a real time clock chip module 1, and an external control terminal of the controller 11 can be used for controlling the operations of the timing generator 12 and the external register 13 that are electrically coupled to the controller 11.
The timing generator 12 is provided for generating a time stamp including year, month, day, hour, minute, and second, etc.
The external register 13 is electrically coupled to the timing generator 12 and capable of saving the time stamp produced by the timing generator 12 into the external register 13.
Referring to
Referring to
Referring to
Referring to
The aforementioned central processing unit 2 could be the S3C2500B chip produced Samsung, and the logic gate 31 could be the 74LVC1G32 logic gate produced by Texas Instruments. Further, the time stamp could be in a unit of time such as year, month, day, hour, minute, second or millisecond.
While the invention has been described by means of specific embodiments, numerous modifications and variations could be made thereto by those skilled in the art without departing from the scope and spirit of the invention set forth in the claims.
In summation of the description above, the technical measures and implementation method of the real time clock having a register of the invention have the following advantages over the prior art:
(1) The external register 13 installed in the real time clock chip module 1 of the invention can accurately read the correct time of a read command issued by the central processing unit 2, regardless of whether or not the central processing unit 2 is situated at a busy state of executing other programs. Unlike the traditional real time clock chip that may read an unintended moment while the chip is still counting the time, the present invention will not result a time jump even if the reading time of the central processing unit 2 is too long, and users need not use software to avoid a carry error of the time counted by the real time clock.
(2) The present invention uses the interrupt signal pin 33 installed in the external control terminal 3 to add and determine the reading of time when an external event occurs. If there is a special event occurred in the program or system, the read signal start pin 32 will be triggered, such that the external register 13 records the triggering time of the event, and thus users can accurately check the correct triggering time of the event.
(3) The present invention uses a plurality of external registers 13 to add the reading of the triggering time to the central processing unit 2. If there is one or more special events occurred in the program or system, the central processing unit 2 allows one or more external registers 13 to record the triggering time of the event, and thus users can accurately check the correct time for triggering different events.
While the invention has been described by means of specific embodiments, numerous modifications and variations could be made thereto by those skilled in the art without departing from the scope and spirit of the invention set forth in the claims.