This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2011-054526 filed on Mar. 11, 2011, the disclosure of which is incorporated by reference herein.
1. Technical Field
The present invention relates to a clock display device, and in particular, to a clock display device that uses an LCD or the like and has a programmable display allocation function.
2. Related Art
LCD panels for visibly displaying various types of information are provided at portable terminals, electronic equipment and the like. Clock display is an example of the state of the display thereof.
In the conventional LCD clock display circuit, the real-time clock circuit 105, that is provided at a clock information generating circuit 103, generates clock information, and, at a fixed cycle, generates an interruption with respect to the CPU 101. When the CPU 101 receives an interruption request from the real-time clock circuit 105, the CPU 101 reads-out the clock information from the real-time clock circuit 105, and processes the data in order to display the information on an LCD panel 130. Then, due to the CPU 101 writing the processed data to an LCD display register 108 that structures an LCD control circuit 107, clock display on the LCD panel 130 is carried out.
On the other hand, Japanese Patent Application Laid-Open (JP-A) No. 7-120571 discloses a technique (clock counter and semiconductor integrated circuit device incorporating the clock counter therein) of transferring clock information, that is generated at a clock counter, to a display system driver section by a DMA (Direct Memory Access) section, and carrying out clock display.
When carrying out clock display by the above-described conventional LCD clock display circuit, the CPU 101 always receives an interruption request from the real-time clock circuit 105 at a fixed cycle. Therefore, at the conventional LCD clock display circuit, even in a halt mode, i.e., even when the clock supply to the CPU 101 is stopped and the CPU 101 is in a state in which operation thereof is suspended, there is the need to come out of the halt mode and transition to the usual operation mode by starting the supply of the clock. This means that the halt mode cannot be maintained because of the clock display. As a result, in a conventional LCD clock display circuit, there is the problem that a reduction in the current that is consumed (the electric power that is consumed) at the CPU cannot be devised, and wasteful consumption of electric power occurs.
Further, in the conventional LCD clock display circuit, when clock display is carried out at the LCD panel 130, the data that is transferred to the LCD display register 108 must be processed so as to conform to the LCD panel 130. If the LCD panel 130 is a 7-segment type display device for example, in a case in which the hours, minutes and seconds are managed as the clock information by 4-bit decimal numbers, the clock information within the real-time clock circuit 105 must be data processed in accordance with the conversion table shown in
Processing of display data such as described above is problematic also in the device disclosed in JP-A No. 7-120571. Namely, this is because, in the device disclosed in JP-A No. 7-120571, transfer of clock information using DMA is carried out and the load on the software is reduced, but at the display system driver section that receives the clock information generated at the clock/calendar function section, there is the need to separately process, for LCD display, this clock information.
The present invention is proposed in order to overcome the above-described problems, and an object thereof is to provide a clock display device that suppresses the amount of electric power that is wastefully consumed at a central processing unit at the time of clock display, and that can prevent an increase in the load on the central processing unit that accompanies clock display.
In order to achieve the above-described object, an aspect of the present invention provides a clock display device including:
a central processing unit;
a liquid crystal display section that can display plural digits, and at which a display portion of each digit is formed from plural display segments;
a clock information generating section that generates clock information;
a converting section that converts the clock information into character data for display at the liquid crystal display section;
a direct memory access section that fetches the character data for display without going through the central processing unit, and transfers the fetched character data for display without going through the central processing unit;
a display register that stores the character data for display, that is transferred from the direct memory access section, with a single address being given to each digit;
a programmable display allocating section that, on the basis of allocation information that is set in advance, allocates correspondences between respective bits of the character data for display that is within the display register, and respective display segments of the liquid crystal display section; and
a display control section that, on the basis of results of the allocation, visibly displays the clock information at the liquid crystal display section.
In accordance with the present invention, there are the effects that, at the time of clock display, clock display control that does not depend on a central processing unit is possible, and a decrease in the load on the central processing unit is possible, and the amount of electric power that is wastefully consumed at the central processing unit can be suppressed.
Exemplary embodiments of the present invention will be described in detail based on the following figures, wherein:
Preferred exemplary embodiments of the present invention are described in detail hereinafter with reference to the drawings.
The LCD control circuit 7 is structured by an LCD display register 8 that is the transfer destination of the display data from the DMA controller 6, a programmable display allocation circuit 10 that has a programmable display allocation function that is described later, and a driver 9 that drives an LCD panel 30 in order to visibly display the time on the LCD panel 30 by hours, minutes and seconds, on the basis of clock information.
The CPU 1 functions as a central processing unit that governs control of the entire LCD clock display device 50. A control program of the LCD clock display device 50, and the like are stored within the ROM 2, and the CPU 1 successively reads-out and executes this program. A real-time clock circuit 5, which is provided at the clock information generating circuit 3, generates predetermined clock information, and, at a fixed cycle, generates an “interruption request” with respect to the DMA controller 6. Further, a 7-segment character converting circuit 4 converts clock information, that is a decimal number expressed by 4 bits and is generated by the real-time clock circuit 5, into an 8-bit character for a 7-segment type LCD. The data that is character-converted in this way is read by the DMA controller 6 via the system bus 20, and the DMA controller 6 transfers this data, that has been converted into characters, to the LCD display register 8. Due thereto, the clock information is updated appropriately at the LCD display register 8.
Note that, at the 7-segment character converting circuit 4, the method of converting the 4-bit (decimal number) clock information into an 8-bit character for a 7-segment type LCD is the same as the method shown in
The clock display operation at the LCD clock display device relating to the exemplary embodiment of the present invention is described next. Here, explanation is given by using, as an example, operation that visibly displays, on the LCD panel 30 and each one second, the clock information that is generated at the real-time clock circuit 5 of the LCD clock display device 50.
In order to display clock information on the LCD panel 30 per second, the clock information generating circuit 3 of the LCD clock display device 50 is set in advance such that the interruption cycle of the real-time clock circuit 5 that generates the clock information is “1 second”, and so as to output this interruption to the DMA controller 6. The real-time clock circuit 5 that is set in this way outputs an interruption request to the DMA controller 6 each one second. Then, the DMA controller 6 that receives the interruption request reads-out the clock information from the real-time clock circuit 5, at each interruption. Note that the interruption cycle is not limited to the above-described example provided that it is a cycle at which the time (the second) can be displayed, each one second, in the one-second place.
The clock information that is read-out from the real-time clock circuit 5 goes through the 7-segment character converting circuit 4, and is taken-into the DMA controller 6 via the system bus 20. At this time, the 7-segment character converting circuit 4 converts the clock information that is a decimal number expressed by 4 bits into an 8-bit character for 7-segment LCD display, and therefore, the clock information after the conversion is taken-into the DMA controller 6. Thereafter, the DMA controller 6 transfers the taken-in clock information to the LCD display register 8 within the LCD control circuit 7, via the system bus 20.
Note that the transfer source (here, the clock information generating circuit 3 or the like) and the transfer destination (here, the LCD display register 8 within the LCD control circuit 7) of the data that the DMA controller 6 transfers are set in advance at the DMA controller 6.
In the example shown in
The DMA controller merely has the function (a data transferring function) of inputting and outputting a designated address range to a designated memory, without going through a processor such as a CPU or the like. Therefore, in the data transfer by the DMA controller, the address of the transfer source, the address of the transfer destination, and the bit order of the transfer data, that are needed for this data transfer, must be the same format. As a result, a DMA controller, that does not carry out rearranging or the like of the data and has only the function of transferring data to a predetermined, set address, cannot be used with respect to an LCD display register that has a structure in which it is necessary to write the individual clock data corresponding to the respective numbers (respective places) to plural addresses as shown in
Thus, in the LCD clock display device 50 relating to the present exemplary embodiment, as shown in
By utilizing such a structure, the clock data of the digit that is the object can be acquired collectively merely by accessing one address of the LCD display register. In the example shown in
In the LCD clock display device 50 relating to the present exemplary embodiment, the programmable display allocation circuit 10 that has a programmable display allocation function is positioned between the LCD display register 8 and the 7-segment type LCD panel 30 that visibly displays the hour, minute and second, and has the function of freely allocating the “bit” and “adr” of the LCD display register 8 shown in
The programmable display allocation function is a function that can, by software or the like, arbitrarily allocate the correspondence between respective bits (whose bit values express the lit/unlit state) of the LCD display register and display positions (the respective display segments) on the LCD panel. As disclosed in JP-A No. 5-216427 (Japanese Patent No. 3188280) for example, the programmable display allocation circuit 10 is structured so as to store, in a display position definition storing area, allocation information that can be arbitrarily set and changed by input from the exterior or the like and that is for designating display data within the display memory, and so as to convert the display data designated by this allocation information into bit strings by a bit selector, and so as to successively transfer these bit strings in parallel to the LCD side via a shift register. Accordingly, here, illustration and explanation of the structure and the like, for realizing the programmable display allocation function at the programmable display allocation circuit 10, are omitted.
In a conventional LCD clock display circuit that does not have a programmable display allocation function (also called fixed display allocation), as shown in
In the LCD clock display device relating to the present exemplary embodiment, a user can, via an unillustrated signal terminal or the like, carry out arbitrary allocating with respect to the address conversion information memory 12 within the programmable display allocation circuit 10, by inputting information for display allocation or by changing allocation information that has already been inputted. For example, when the bit value “1” is to be written to the bit designated at adr0-bit0 of the LCD display register 8, the programmable display allocation circuit 10 refers to the address conversion information memory 12, and reads-out information expressing which SEG/COM the adr0-bit0 is to be allocated to. If adr0-bit0 is to be allocated to SEG1-COM3, the programmable display allocation circuit 10 sends control signals to the SEG/COM terminals of the LCD panel 30 via the driver 9, so that the segment “0A” of the 7-segment type LCD panel 30 is lit.
In the example shown in
As described above, the LCD clock display device relating to the present exemplary embodiment is structured such that, without going through a CPU, clock data is read from the clock information generating circuit, and this clock data is transferred to the LCD display register without going through a CPU. Due thereto, complication of processing, that accompanies display data processing and the like at the CPU at the time of carrying out clock display, is avoided, and the load on the CPU in the clock display processing can be reduced. Further, by providing the 7-segment character converting circuit 4, there is no need for the CPU to data-process the 4-bit clock information into an 8-bit character for a 7-segment type LCD, for the hour, minute and second display data each time display is carried out, as is the case conventionally. Therefore, complicating of the processing at the CPU and an increase in the load can be avoided.
Further, by carrying out clock data transfer without going through the CPU, even when the CPU is in a halt mode, there is no need to cancel the halt mode for the clock display processing, and the halt mode is maintained as is. Due thereto, there are the effects that a reduction in the electric power that is consumed at the CPU can be aimed for, and wasteful electric power consumption that accompanies clock display processing does not arise.
Moreover, by employing the programmable display allocation function, the clock data per display digit can be acquired collectively merely by accessing a single address of the LCD display register, and further, the allocating of the respective bits of the LCD display register and the respective display segments on the 7-segment type LCD panel can be carried out arbitrarily by software or the like. Accordingly, in the LCD clock display device relating to the present exemplary embodiment, the transfer of clock data, that conforms with character data for display, between memories within the LCD clock display device is possible by using a DMA controller that has only the function of transferring data to a set address and that could not be employed in a conventional LCD clock display circuit.
Note that, in the above-described exemplary embodiment, an example is given of a structure in which, even at the time of the clock display processing, the halt mode of the CPU is maintained, and the amount of current that is consumed at the CPU is reduced. However, the present invention is not limited to the same. For example, there may be a structure in which the processing capability (performance) of the system overall is improved by, at the time of the clock display processing, causing the CPU to carry out a processing other than the clock display processing.
Number | Date | Country | Kind |
---|---|---|---|
2011-054526 | Mar 2011 | JP | national |