Portable electronic memorandum device

Abstract: A portable electronic memorandum device is set to a password mode by a switching operation. If, in this password set mode, data (0 - 9, alphabete) is entered, the entered data is stored as a pasword (step 58) in a password memory (S58) in the case, where no password has been stored there (S51). If on the other hand, the password has already been entered in that memory, the entered data are compared to the password in the memory and is only displayed when a coincidence occures between the two.

Description: This invention relates to a portable electronic memorandum device capable of storing secret data in a data memory and which allows reading/writing of character data items such as names, telephone numbers, addresses, schedules and the like. The secret data is protected against unauthorised access by a password which may be changed without compromising the secrecy of the secret data. Recent commercially available electronic wrist watches, small electronic calculators, etc. are usually provided with time display and calculating functions. Some of this type of electronic devices additionally have a so-called data bank function. These devices with the data bank function have memories for storing item data such as names, telephone numbers, and schedules. Users can read out desired item data from the memories at any time. More specifically, this type of electronic device usually has a secret function for protecting such data from being stolen by other persons. To this end, the device uses passwords, or secret words, without which the item data cannot be read out. For example, U.S. Patent No. 4117542 discloses two types of electronic data bank device with the so-called secret function. In the first type of electronic data bank device, the user presets secret codes of his own in the RAM of the device. For reading out desired data later, he enters a preset secret code associated with that data. In the second type of electronic data bank device, secret codes have been fixed in the ROM at the factory. The user uses these fixed secret codes later for his desired data retrieval through appropriate keyboard operations. However, the second type of electronic device, in which secret codes have been stored in the manufacturing stage, has disadvantages. For example, if the user forgets the password, he cannot use the memory area of the device unless he can recall the password or find it out from the maker. The first type of electronic device, in which the user himself enters the password data into the RAM, has the following disadvantages. If the user, with a specified device model, sets the password data, for example, by key operation, it is naturally set with the procedure specified for that model. If the model device being operated by the user is one widely marketed in great numbers, the password data setting, cancellation, and change procedures for that model will be known by many people. As a result, even though the password is supposed to be secret, the cancellation and change of the password can be very easily performed by other persons, and there is a danger that the secrecy will not be maintained. It is accordingly the object of the present invention to provide a portable memorandum device which can ensure secrecy of data stored in the memory even if other persons know the way of how to set the password. In order to achieve this object, there is provided a portable electronic memorandum device according to claim 1. In the memorandum device according to the present invention the password can be set in just the same way as a switching operation whereby secret data is read out by entering a password in the case where that password has been stored in the device. According to another aspect only the first switching operation for reading out secret data through the entering of a password serves to set the password and the second and subsequent switching operations serve to read out the secret data because the password has already been stored in the device. By restricting the setting of the password to only a first one, the entering of a new password is prevented, thus ensuring the secrecy of data. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: Fig. 1 shows an external view of an electronic wrist watch incorporating this invention; Fig. 2 shows a front view of a display section of the wrist watch, which illustrates a layout of display figures; Fig. 3 shows a block diagram of the wrist watch shown in Fig. 1; Fig. 4 shows a diagram showing a memory map of RAM 13 in Fig. 3; Fig. 5 shows a general flow chart of the circuit shown in Fig. 3; Fig. 6A to 6C show flow charts illustrating in detail step S4 of the general flow chart shown in Fig. 5; and Fig. 7 shows a diagram illustrating a sequence of changing displays when the switching operation is performed in the wrist watch shown in Fig. 1. Some preferred embodiments of this invention will be described referring to the accompanying drawings. In Fig. 1, there is shown an electronic wrist watch with data bank function to which the present invention is applied. Keyboard 1 and display device 2 are located on the face of this electronic wrist watch. Display device 2 displays the time, data, etc. and also selectively displays the password data (secret code) when the password data (secret code) is set or key operation is made. Further, pages of data composed of people's names and their telephone numbers are displayed successively. Keyboard 1 has page feed keys SP1 and SP2 besides every kind of alphabetic and numeric operational keys. In a data bank mode to be given later, these keys cause each display device 2 to change the displayed contents page by page. Key SP1 causes the display device to display the next page, while key SP2 causes it to display the preceding page. Switches S1 to S3, and Sc are provided on the sides of the watch case. Switch S3 is a mode select switch for selecting either the data bank mode or a watch mode. Switch S2 selects either a write mode or a read mode when the electronic device is in the data bank mode. In this instance, the item data such as people's names and addresses consists of secret data which cannot be displayed without entering the password data, and normal data which can be displayed at will. Switch S1 is a double-function key. In a readout (display) mode for the data bank, it switches the mode between the normal mode for reading out normal data and the secret mode for reading out secret data. In the write mode for the data bank, it serves as a correction digit select key. Switch Sc is a clear key for clearing the secret data and password data. Fig. 15 shows a layout of display figures on the display device 2. These display figures are made of liquid crystal. A main digital display section 2A including eight digits of numeral 8 shaped figures is located in the lower part of the display device 2. Laid out in the upper part are a sub digital display section 2B made up of four digits of numeral 8 shaped figures, a matrix display section 2C of five digits, AM and PM indicators, and a secret mode mark indicator 2D. These sections and indicators are laid out in this order from right to left as viewed in the drawing. A circuit configuration of the wrist watch will be given referring to Fig. 3. This watch is designed on the basis of the microprogram control system by 8-bit parallel processing. ROM 11 stores a microprogram for controlling all the operations of the wrist watch, and provides microinstructions OP, DO and NA in a parallel fashion. Microinstruction OP is transferred to instruction decoder 12. The decoder decodes this instruction to transfer it as a data read command or a write command to the input terminal R/W of RAM (random access memory) 13, and as an operation command to the input terminal S of arithmetic/logic unit (ALU) 14. Microinstruction DO is input as address data to the input terminal Adder of RAM 13, and as numerical data to the input terminal of DI2 of arithmetic/logic unit 14. Further, it is input to address control unit 15. Microinstruction NA is the next address data to be input to address control unit 15, whose output is input to the input terminal Adder of ROM 11. RAM 13 includes registers for temporarily storing data and for operating data, and are used for clock, key-in and operation processings, and the like. It is operated under control of instruction decoder 12. The data read out DO from RAM 13 is applied to the input terminal DI1 and DI2 of ALU 14, and is displayed by display unit 17 under control of display control unit 16. In response to operation commands from instruction decoder 12, ALU 14 executes various types of operations. Data representing the result of an operation is applied to the input terminal DI of RAM 13, and loaded into the memory. When the judge operation is executed, ALU 14 outputs a signal representative of the presence or absence of the operation result data and of the carrier, and applies it to address control unit 15. Finally, it changes the address in ROM 11. Address control unit 15 is applied with a clock signal at 16 Hz, which is formed by appropriately frequency dividing the reference clock signal from oscillator 18 by frequency divider 19. According to this 16 Hz signal, the clock processing is executed with the interrupt every 1/16 second. A signal at a predetermined frequency as output from frequency divider 19 is applied to timing generator 20 and causes it to produce various types of timing signals, which are applied to related circuits. Key codes output from key-in unit 21 are applied to the input terminal DI2 of ALU 14. The technique, in which the clocking and other operations are executed according to a predetermined control flow, using the hardware including ROM, RAM, instruction decoder, ALU, and the like, as shown in Fig. 3, has been known, as disclosed in U.S. Patent Nos. 4274146 and 4181963, for example. Fig. 4 shows a memory map of RAM 13. RAM 13 has a memory area for storing clock data, system control data, and item data such as names and telephone numbers, which can freely be written and read out through the key operation by the user. As shown in Fig. 4, in RAM 13, register T is for storing current time. Register D is for storing date. Password memory section Z stores preset 4-digit passwords. Data memory DM stores various types of item data for the data bank such as normal data and secret data. Memory A stores all items of normal data as stored in this data memory DM. Memory B stores all items of secret data as stored in data memory DM. Normal display page pointer AD stores the displayed page number of the normal data. RAM 13 is further provided with secret display page pointer BD for storing the displayed page number of secret data, and flag registers Ff, Fq and Fs. Data memory DM can store item data up to 50 pages corresponding to the digits "1" to "50". Data memory DM consists of 50 memory addresses, whose memory areas can store a maximum of 50 pages of item data. Normal data is stored from address No.1 in numerical sequence. Secret data is stored starting at address No. 50, in reverse numerical sequence. The number of addresses having normal and secret data as stored are not necessarily divided equally (25 and 25), but differ according to the quantity of each type of data. For example, if there are 30 pages of normal data, there is only room for 20 pages of secret data, because the maximum total number of addresses in the memory is 50. Therefore, if either normal or secret data is not stored, up to 50 pages of the other data can be stored in the memory. Thus, in this embodiment, the names and telephone numbers required by the user are listed as one set. The telephone numbers which the user does not want other people to know are classified as secret data, and the remaining numbers as normal data. Then, the names are compiled in alphabetical order and stored into the memory. The operation of the electronic memorandum device according to this invention will be described referring to Figs. 5 to 7. Figs. 5, and 6A to 6C show flowcharts describing the operations. Fig. 7 illustrates the states of displays which are changed by the operation switches. An outline of the overall operation of the device will be given with reference to the general flowchart of Fig. 5. In step S1, the memorandum device remains in a standby state until it is required by watch timing or key-in. When a clock signal of 16 Hz is output from frequency divider 19, the control by CPU proceeds to step S2, and clock processing is executed. After this, the alarm processing of step S3 is executed. When a key code corresponding to the operated key is output from key-in unit 21, a key processing program as specified by this key code is specified, and key processing and display processing are executed by step S4. Figs. 6A through 6C show flowcharts illustrating in detail the key processing and display processing of step 4 of Fig. 5. When the mode is changed from clock mode to data bank mode or vice versa by operating switch S3, this change is detected in step S11. After the mode change processing is executed in step S12, register Fs is cleared in step S13. Register Fs stores a flag indicating the secret mode or the normal mode. When the contents of Fs are "1", the secret mode is specified, and when it is "0", the normal mode is specified. Accordingly, after a mode change is accomplished by operation of the switch S3, register Fs is automatically placed in the "0" or normal mode. In the clock mode, when switches other than switch S3 have been operated, the control flows from step S11 through step S14 for a mode check and proceeds to step S15. In this step S15, the processing as specified by the operated key in the clock mode, such as correction processing and alarm time setting processing, is performed. When the mode is set to the data bank mode, this condition is detected in step S14, and the control proceeds to step S16. Step S16 checks whether switch S2 has been operated or not. Switch S2 is used to select either the read out mode or write mode in the data bank mode. If step S16 confirms that switch S2 has been operated, step S17 checks, according to the contents of register Ff, if the present mode is the read out mode or the write mode. If the contents of register Ff are "1", the write mode is valid, and if they are "0", the read out mode is valid. If the write mode is specified, register Ff is cleared in step S18, and the read out mode is set up. If the read out mode is set up, the control of step S19 sets "1" to register Ff to set up the write mode. During such a mode select processing, when the read out mode for the data bank is set up, that is, "0" is set in register Ff, if page feed key S is operated, the operation of key SP is checked and the control advances to step S21. In this step, according to the contents of register Fs, the mode of the device is checked if it is normal or secret, the normal data is cyclically read out page by page from data memory DM of RAM 13 every time switch SP1 is operated, and displayed. This is because the device has been set in the normal mode in step S13. In this step, the display page of the normal data stored in normal display page pointer Ad is compared with all items of normal data as stored in memory A. If the former is smaller than the latter, the control of the next step S23 increments by one the display page number of normal display number pointer AD. As a result, if the display page number is smaller than the all items of data, the normal data is still stored in the data memory DM. This is detected by step S24, and then the control goes to step S27. In this step, the normal data corresponding to the display page number is read out and displayed. As the result of the increment processing, if the display page number exceeds the all-items data, viz. switch SP is operated when the final normal data is being displayed, step S25 is executed and the blank display is made to indicate a blank page. Under this condition, if switch SP1 is further operated, the controls goes from step S22 to step S26. In this step, "1" is set to normal display page pointer AD. The first normal data is read out and displayed. In Fig. 7, the block X enclosed by the broken line in Fig. 7 indicates the displays in the normal data read out mode. In this display, every time switch SP1 is operated, the normal data is successively read out from data memory DM in the direction of address "1" to "50", and is displayed successively. When the final normal data is displayed, the next switch operation of switch SP1 causes the blank display. The additional switch operation of switch SP1 causes the display to display the first normal data. In this way, the normal data is cyclically displayed. In the secret data read out mode in which the contents of register Fs are "1", if switch SP1 is operated, the processings S28 to S33 corresponding to the above steps S22 to S27 are executed. At this time, the secret data has been stored in data memory DM in the order from address "50" to "1". Therefore, in steps S28 and S30, the value obtained by subtracting the number of secret data from the contents at address "51" is compared with the display page number of the secret data. In step S29, the secret data is read out in the direction from the address "50" to address 21" of data memory DM. Accordingly, the contents of secret display page pointer BD are decremented by one every time switch SP1 is operated. In step S32, to cyclically display normal data, the contents at address "50" are set in secret display page pointer BD. The block Y enclosed by a broken line in Fig. 7 shows the displays in the secret data read out mode. Every time switch SP1 is operated, the secret data is successively read out in the order from address "50" to address "1" of data memory DM, and is displayed in successive manner. When the final secret data is displayed, the blank display is made by operation of switch SP1. A further operation of switch SP1 causes the display to display the first secret data. In this way, to change the normal data read out mode to the secret data read out mode, switch S1 is operated and then a password is input. When switch S1 is operated, this switch operation is detected in step S34 and the control advances to step S35. In the step, a check is made whether the mode set up is the write mode or read out mode for the data bank. The next step S36 further checks if the mode is the normal mode or the secret mode. Since the present mode is the normal data read out mode, the control proceeds to step S18. This step sets "1" in register Fq. This register is for storing a flag showing the permission or prohibition of of inputting the pass-word. Setting a "1" in the flag specifies password input permission, while a "0" specifies password input prohibition. Thus, in the normal data read out mode, if switch S1 is operated, the password input permission is set up. At the same time, in step S39, the display for password input permission is performed. The block Z-1 in Fig. 7 shows the display at this time. This display contains the display "No ?" to specify the inputting of the password, and the display of cursor "-" corresponding to each digit for showing input digits (4 digits) as well. At the initial stage of the display, the display for the first digit flickers at 1 Hz. After checking the initial display for password input, if the numeric keys are operated for inputting the password of four digits. Then control advances from step S41 to step S47. Step S41 checks if clear switch Sc is cleared. At this time, if switch Sc is not operated, the CPU considers that the numeric or alphabet keys were operated, and executes step S47. This step checks if the password input is permitted on the basis of the contents of register Fq. At present, switch S1 is operated in the normal data read out mode, and hence the password is placed in the input permission state. Therefore, the control goes to step S48 where one character input processing is performed. The first data as input in step S48 is displayed as the first digit data of the password in step S49. In step S50, a check is made whether or not all digits of the password (four digits in this instance) have been input. Since the first digit is input in the first place, the sequence of processings from step S41 to S44 are repeated until all of the digits have been input. Upon completion of the password inputting, step S51 checks if the password is stored (registered) in the password memory Z in RAM 13. If it is registered, step S52 compares the password stored in password memory Z with the input password to check if these are coincident with each other. If these are not coincident with each other, register Fq is cleared in the next step S53 and the password input prohibition state is set up. In the next step S54, "ERROR" is displayed, as shown in the block Z-3 in Fig. 7. If the registered password and the input password are coincident with each other, "1" is set in register Fs in step S55 to change the mode from the normal mode to the secret mode. Thus, the secret mode, in the normal mode, is automatically changed through the procedure that following the operation of switch S1, the password is input, and the CPU considers that it is correct. In the next step S56, register Fq is cleared, and the password prohibition state is set up. In the next step S57, "K" is displayed, as shown by the block Z-2 in Fig. 7. In step S51, if the CPU confirms that the password is not yet registered, the 4-digit numerical data as input in step S58 is sent to and stored in password memory Z of RAM 13. Further, in step S59, register Fq is cleared. Thus, when the correct password is input, register Fs contains "1" and the mode is automatically changed to the secret mode. Further, when switch SP1 is operated, the control advances from step S21 to step S28, allowing the secret data to be read out. If the input password is detected to be in error, no mode change to the secret mode occurs, so that the secret data can not be read out. As seen from this feature, the secret data stored in the secret area of RAM can not be read out by other persons than the person who knows the password. In other words, only the owner of the wrist watch who sets the password can read out the secret data for display, thereby to keep the secrecy of his private data. If the owner forgets his password, it is only necessary that he clears only the secret data in the secret area of RAM, and sets new secret data and the password associated with it. Specifically, by operating clear switch Sc, the control advances from step S41 to S42 where a check is made if the mode is the write mode or the read mode, on the basis of the contents of register Ff. Since the present mode of the electronic memorandum device is the read out mode, the control goes to step S43. In this step, the memory B in RAM 13 is cleared, so that all items of secret data are all "0's". Subsequently, in step S44, "1" is set in register Fs. In the next step S45, the password memory Z of RAM 13 is cleared. In step S46, the blank display is performed. The block YC in Fig. 7 shows the display at this time. As recalled, the mode is changed to the secret mode by the operation of clear switch Sc. At this time, all items of the secret data are cleared. Under this condition, if page change key SP1 is operated, the display is left in the blank display. If page feed key SP1 is operated when memory B is cleared, the control starts at step S20, proceeds through steps S21 and S28 to step S32. The display page number of the secret data is necessary "50". The control proceeds from step S30 to step S31, to keep the blank display. Thus, when clear switch Sc is operated, the read out of the secret data is prohibited and the secret data area of data memory DM is cleared. Under such a clear state in the secret mode, if switch S1 is operated, the control proceeds to step S37 through steps S35 to S36. In this step, register Fs is cleared to set up the normal mode. In this case, steps S38 and S39 are not executed. By operating page feed key SP1 after the normal mode is changed, the normal data can be cyclically read out and displayed through the execution of steps S22 and S27. As seen from above, even if clear switch Sc is operated, only the secret data is cleared, while keeping the normal data in its state. Therefore, it is possible to read out the normal data at will. The data write operation of the electronic memorandum device will be described. As a first step, in the data bank mode, by operating switch S2, "1" is set to register Ff to set up the write mode. In this write mode, the numeric keys are operated to enter telephone numbers, and the alphabet keys are operated to enter names. Then, the control advances from step S41 to step 47. At this time, register Fq is still in the password inhibition state. Therefore, the control proceeds to step S60. In this step, a check is made whether the mode is the read out mode or the write mode on the basis of the contents of register Ff. Since the memorandum device is now in the write mode, the entry of characters is executed in the next step S61. Then, in step S62, the characters entered are each displayed at the digit position corresponding to the displayed cursor position. A check is made if the mode is the normal mode or the secret mode on the basis of the contents of register Fs. If it is the normal mode, the control goes to step S64. In this step, the entered characters are stored into the data memory area DM, which corresponds to the normal display page of the normal display pointer. If it is the secret mode, the next step S65 is executed to enter input characters into the memory area of data memory DM, which corresponds to the secret display page of secret display page pointer BD. In this way, the data of one page is formed. Upon completion of this writing operation, page feed key SP1 is operated to alter the contents of normal display page pointer AD or secret display page pointer BD. Further, the numeric and alphabet keys are operated to enter the data of one page. In this way, both the normal data and the secret data can be written into the memory. In the write mode, if switch S1 is operated, the control advances through steps S34 and S35 to step S40. The cursor displayed is shifted by one digit. Even if clear switch Sc is operated, its operation is invalid in this write mode. As described above, in this embodiment, in case the user forgets his password, by operating clear switch Sc only the secret data is cleared, while the normal data is left as it is, allowing it to be read out. In such a case, accordingly, it is merely required to write only the secret data into the memory. In this respect, the data writing operation is simple. In the above-mentioned embodiment, the contents or memory B for storing all items of secret data are cleared. Alternatively, "0 0 ..." is written into the memory area for secret data, and then is cleared. Although in the aforementioned embodiment the secret data has been explained as being optically displayed on liquid crystal display device 2, it may be printed out by, for example, a printer. This invention can be applied not only to an electronic timepiece as set forth above, but also to any proper device, such as a disk time-keeper, compact type electronic calculator, or IC card.

Claims: A portable electronic memorandum device comprising: a secret data memory section (DM) for storing secret data, said memory section allowing said secret data to be read out therefrom; input means (21) for inputting password data; comparison means (S52) for comparing the password data input by the input means (21) with password data stored in password data memory means (Z); and display means (Y) for displaying the secret data stored in said secret data memory section only when password data which has been input coincides with the password data stored in the password data memory means, characterized by further comprising: password checking means (S51), operated in response to data input by the input means, for checking whether password data is stored in the password data memory means; and password data recording/controlling means (S58) for recording the data input by the input means in the password memory means as password data and preventing the comparison means from executing comparison, when the password checking means determines that no password data is stored in the password data memory means. A portable electronic memorandum device according to claim 1, characterized in that said password checking means includes check means for checking whether or not numerical data is present in said password data memory means. A portable electronic memorandum device according to claim 1, characterized by further comprising switch means (S) for changing between a write mode allowing the entry of data from said input means and a mode prohibiting said data entry, and wherein said password checking means, password data memory control means, comparing means and display means operate when the write mode is set by said switch means. A portable electronic memorandum device according to claim 1, characterized in that said secret data contains persons' names and telephone numbers. A portable electronic memorandum device according to claim 1, characterized in that the operations of said password checking means, said password data recording/controlling means, said comparing means and said display means are under control of a microprogram as stored in a Read Only Memory-. A portable electronic memorandum device according to claim 1, characterized by further comprising clock means for counting the current time, and clock display means for displaying the current time as counted by the clock means. A portable electronic memorandum device according to claim 1, characterized in that said display means comprises printing means which prints the secret data stored in said secret data memory section.

Inventors: FUJII HIROSHI, FUJII, HIROSHI, Fujii, Hiroshi, Pat. Dep. Dev. Div., Hamura R&amp;D C.
Applicants: CASIO COMPUTER CO LTD, CASIO COMPUTER COMPANY LIMITED
Application year: 1986
Main classification: G06F1
IPC codes: G06F21, G06F15