Electronic display device for displaying calendar information

Abstract: An electronic device having a calendar display function is capable of changing calendar formats to be presented on a display screen. The formats include a "Sunday through Saturday" mode and a "Monday through Sunday" mode. The device comprises a date counter (6) which counts a date number from the first to the last days of a month. These date data are written into a display memory (8) for the display screen (10) and then are displayed on the display screen (10) at appropriate locations which are different depending on which mode has been selected, in order to provide a desired calendar format.

Description: The present invention relates to an electronic device having a display means for displaying a calendar information associated with "year" and "month" data input from a keyboard. A calculator calculates calendar information based on input "year" and "month" data. Designating devices variably designate a calendar display format defining an arrangement of days of week. Controllers control said display means to display the calendar information according to the display format designated by said designation devices. The said display comprises a display screen containing a first display section for displaying days-of-week information and a second display section for displaying date information about a month, which second display section includes a plurality of display lines, each line having seven display areas, and said controllers include means for entering date data into said display area in a predetermined order. A memory stores a plurality of different display patterns representing days of week to be displayed on said first display section of said display screen. A selector selects one of said display patterns from said memory to be displayed on said display section. The said memory includes a memory means for storing at least a "Sunday through Saturday" display pattern and a "Monday through Sunday" display pattern. A key input directs a change in a calendar display format between a "Sunday through Saturday" mode and a "Monday through Sunday" mode, and said controllers include means for supplying days-of-week data to said first display section according to said designating device and means for supplying date data to said second display section relative to days-of-week data displayed on said first display section. An electronic device described above is known from EP 0344803 which falls under Article 54(3) EPC. The disadvantage is that for determination of the days of week of a designated month several calculations are necessary. One step of calculation is the calculation of the day of week of the first day of the designated month. From this disclosure it cannot be learned how to calculate and display the single days of the designated month in an arrangement of days of week after the above mentioned calculation was made. It is an object of this invention to provide a method for calculation and displaying a day of week arrangement of a designated month in "Sunday through Saturday" and "Monday through Sunday" mode using a low expense circuit. The solution to this object is given in the main claim and more detailed features of the invention are named in the subclaims. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram of an electronic device according to an embodiment of the present invention; Fig. 2 is a schematic representation of a memory for calendar information; Figs. 3A and 3B are views of displayed calendars in "Sunday through Saturday" and "Monday through Sunday" modes, respectively; and Fig. 4 is a flow chart of an operation of the illustrated embodiment. Referring now to Fig. 1, there is shown an electronic display device having a calendar display function. The electronic device comprises keyboard 1 coupled to control unit 2. Keyboard 1 includes a "S/M" key la for designating or selecting a (monthly) calendar display mode from either "Sunday through Saturday" or "Monday through Sunday" mode, and "calendar" key 1b for causing displaying of the calendar. Keyboard 1 further includes other function keys and numerical keys, not shown in this figure. Key input data from keyboard 1 is supplied to control unit 2. Control unit 2 includes read only memory (ROM) storing programs for controlling all circuits in the electronic device. Upon receiving "S/M" key input data from keyboard 1, control unit 2 writes or updates mode memory 3 with flag data indicative of the calendar display mode designated by the "S/M" key. Flag data "1" represents "Sunday through Saturday" mode, while flag data "0" represents "Monday through Sunday" mode. The flag is toggled by successive "S/M" key operations. "Year" and "month" data are entered from keyboard 1 and transferred to A-register 51 in data memory 5 through control unit 2. Calendar data calculating unit 4 determines, based on the data of A-register 51, "day of the week" of the first day of the month associated with the "year" and "month" data stored in A-register 51 and "data of the month" of the last day of the same month. A method of this calculation is described in detail in USP 4,205,516, the entire contents of which are incorporated herein by reference. According to this calculation, Sunday to Saturday are represented by successive number "0" to "6" respectively. First day data indicative of "day of the week", obtained by the calculation of the calendar data calculating unit 4, is stored in B-register 52, and the last day data indicative of "date of the month" is stored in C-register 53. Date counter 6 is reset and incremented by control unit 2, when a calendar display function is performed. The count of the date counter 6 is supplied to comparator 9 for comparison with the last date data in C-register 53 in data memory 5. The comparison result of the comparator 9 is inputted to control unit 2 which uses it to terminate the task of calendar display. Display memory 8 stores date data for display areas of display unit 10. Memory control unit 7 includes pointer 71 which locates an area of display memory 8 where date data from the date counter 6 is stored. Correspondence between areas in display memory 8 and values of pointer 71 are shown in Fig. 2. Display unit 10 comprises first or day display area 101 for displaying days of the week, and second or date display area 102 for displaying calendar dates of one month, as shown in Fig. 3A or Fig. 3B. These display areas preferably comprise a matrix type liquid crystal display unit. The first display area 101 is divided into seven day display blocks, and the second display area 102 has thirty-seven display blocks therein. Dates (numeral) and days of the week (characters) are indicated by dot matrix patterns. The "days of week" data, which is week pattern data to be displayed on the first display area 101, is supplied from week-format ROM 11 which stores two different week-format data, "SU MO ... SA" and "MO TU ... SU". One of them is selected by the flag state of mode memory 3. Operation of the above-described device will be described below with reference to Figs. 1 to 4. When calendar display function is performed, its mode is previously set to either "Sunday through Saturday" mode or "Monday through Sunday" mode according to "S/M" key operation. Then "year" and "month" data is inputted and "calendar" key 1b is depressed. The inputted "year" and "month" data is stored into A-register 51 and a calendar displaying process represented by the flow chart or Fig. 4 is performed. It is assumed here that "1989" as year data and "1 (January)" as month data are inputted from keyboard 1. At first, calendar data calculating unit 4 determines "day of the week" of the first day of the month and "last date" of the month in step A1. This results in day data of "0 (Sunday)" for the first day of the month of January (1989) and date data of "31" for the last day of the month. The first day data "0" is entered into B-register 52, and the last date data "31" is entered into C-register 53. Then the pointer 71 is set to the first day data in step A2. In this case, the pointer 71 is set to "0". Next, in step A3, the display mode is checked. If the "Sunday through Saturday" mode has been set by mode memory 3, the process is advanced to step A4. In step A4, the pattern of SU MO TU ... SA" is read out from week-format ROM 11 and entered into the display memory 8 at locations corresponding to the day display area 101 of the display unit 10. In step A5, control unit 2 sends a signal to reset the date counter 6 to "1" indicative of the first date. In step A6, this count "1" is written into the display memory 8 at a location pointed by the pointer 71, here, having a value of "0". In the next step A7, the comparator 9 compares the count of the date counter 6 with the last date data of "31" in C-register 53. The comparison results in a mismatch here, so that process goes to step A8 in which date counter 6 and pointer 71 are incremented by one. At the next step A6, the incremented value "2" of the date counter 6 is written into the display memory 8 at a second date location specified by the pointer 71 having a value of "1". The loop of the steps A6, A7 and A8 is repeated until the incremented value of date counter 6 reaches the last date value of C-register 53. Thus, the successive counts "3, 4, ..." of date counter 6 are written into the display memory 8 at locations pointed by pointer 71 value of "2, 3, ...", respectively. When the last date value "31" of date counter 6 is written into the display memory 8 at a location addressed by the pointer 71 value "30" at step A6, the process is advanced to the next step A9 through step A7 to display the calendar of "1989, January" on the display unit 10 as shown in Fig. 3A. If "Monday through Sunday" mode is found in step A3, the process moves the step A10 in which the pattern of MO TU WE ... SU" is read out from week-format ROM 11 and written into display memory 8. This week-format data is displayed on the first display area 101 of the display unit 10. The next step All checks to see whether or not "day of the week" of the first day of the month is Sunday. Since "1989. 1. January" is Sunday as described above, this is the case where the process goes to step A12. In step A12, the pointer 71 is set to "7". And then the value of pointer 71 is decremented by one at step A13. This descrementing process means changing the calendar display format from "Sunday through Saturday" mode to "Monday through Sunday" mode. The step A12, which changes the pointer 71 to "7" from "0" previously set in step A2, is to avoid an invalied calculation "0-1" in step A13 when the first day of the month is Sunday. In step A5 after step A13, the date counter 6 is initialized to "1". In the next step A6, this "1" is entered into the display memory area designated by pointer 71, which value is now "6" and is shown to point to the memory location of "6" in Fig. 2. The process represented by steps A6-A8 is the same as described before. The final step A8 controls the display unit 10 to indicate the month calendar of "1989, January" in the Monday through Sunday" mode as shown in Fig. 3B. If "day of the week" the first day of the month is not Sunday, the check in step A11 yields NO. In this case, the process directly moves from step A11 to step A13 in which the "day of week" value of the first day of the month is decremented by one. The process after step A13 is the same as mentioned before. As seen from above, the calendar display format is easily changed by a key operation between "Sunday through Saturday" and "Monday through Sunday" modes. This will help users make their own time schedules and proceed with their work accordingly. Various modifications and alternations of the illustrative embodiment will be obvious to a person skilled in the art without departing from the scope of the invention as defined by the appended claims. For example, other calendar display modes may be provided in which a week is shown to start with a day other than Sunday or Monday.

Claims: An electronic device, having a display means for displaying calendar information, comprising: display means (8, 10) comprising a display screen which includes a first display section (101) for displaying days-of-week information and a second display section (102), which includes a plurality of display lines each having seven display areas, for displaying monthly date information; a keyboard means (1) for inputting year and month information to display a calendar on the display means; calculating means (4) for determining a last day of a month by calculating a day of the week of a first day of the month designated in accordance with the year and month information input from the keyboard (1) using values 0 to 6 which correspond to Sunday through Saturday, respectively; memory means (11) for storing a display pattern of days-of-week information of Sunday through Saturday and a display pattern of days-of-week information of Monday through Sunday; designating means (1a, 2, 3) for selecting one of the display patterns of days-of-week information, stored in the memory means to be displayed on the first display section, by changing calendar display formats between a Sunday-through-Saturday mode and a Monday-through-Sunday mode; and control means (2, 6, 7, 9) for supplying the days-of-week information to the first display section in accordance with the display format designated by the designating means and for entering the date information into the second display section based upon the day of the week of the first day and the last day of the month obtained by the calculating means, in correspondence with the days-of-week information displayed on the first display section; characterized in that said display areas of the second display section are numbered 0 to 36 from left to right, with 0 corresponding to a leftmost area of a first line and with 36 corresponding to a second area from left of a sixth line; and said control means (2, 6, 7, 9) comprises: pointer means (71) for consecutively designating the display areas of the second display section in due order; first means (2) for initializing the pointer means (71) to set a numerical value corresponding to the day of the week of the first day of the month calculated by the calculating means, as an initial value when the Sunday-through-Saturday mode is designated by the designating means; second means (2) for initializing the pointer means (71) to set a value obtained by decrementing 1 from 7, as an initial value when the Monday-through-Sunday mode is designated by the designating means and a first day of the month falls on Sunday and for initializing a value obtained by decrementing 1 from a numerical value corresponding to the day of the week of the first day of the month calculated by the calculating means when the Monday-through-Sunday mode is designated by the designating means and the first day of the month does not fall on Sunday and counting means (6), setting 1 as an initial value and incremented, along with the pointer means, by one up to the last day value of the month calculated by the calculating means, for entering a count value as date information into the display area of the second means designated by the numerical value set by the pointer means.

Inventors: KURIYAMA YUUJI C O PAT DEP DEV, KURIYAMA, YUUJI, C/O PAT. DEP. DEV.DIV. HAMURA R&D, Kuriyama, Yuuji, c/o Pat. Dep. Dev.Div. Hamura R&amp;D
Applicants: CASIO COMPUTER CO LTD, CASIO COMPUTER COMPANY LIMITED
Application year: 1990
Main classification: G09D3
IPC codes: G09D3, G06F3