ENTERTAINMENT DEVICE, DATA PROCESSING DEVICE AND PORTABLE STORAGE DEVICE

Abstract: A portable storage device detachably mounted to an entertainment system capable of communicating with an information processing unit without providing any special parts having a special mechanism and increasing the processing load of the entertainment system is provided. When a file management system is loaded to a main storage device, a particular value is set to a register. ACPU checks if the contents of the register are in coincidence with the particular value before accessing a flash ROM based on the loaded contents. If they are in coincidence, the CPU accesses the flash memory and otherwise re-loads the file management system.

Description: TECHNICAL FIELD The present invention relates to an entertainment system, an information processing unit used therefor, and a portable storage device detachably mounted to the information processing unit. BACKGROUND ART In an entertainment system including an information processing unit and a memory card detachably mounted to the unit, the memory card serves as an external storage device for the information processing unit. The memory card includes a flash ROM, a control circuit, a clock generating circuit, and a connection terminal. When the memory card is connected to the information processing unit, the memory card communicates with the information processing unit through the connection terminal. The control circuit executes communication control and reading and writing control from/to the flash ROM. The control circuit is formed of a gate array. Power for operating the memory card is supplied from the information processing unit through the connection terminal. The memory card stores information in the flash ROM on a file basis. In a particular region of the memory card, there is provided a file management system for managing the files. The file management system manages the use condition of the flash ROM such that addresses in the flash ROM and files stored in the flash ROM correspond. The file management system is stored in a particular region on the flash ROM. The file management system is first loaded onto the memory of the main body of the information processing unit from the flash ROM so that the information processing unit can access the memory card. Then, referring to information in the loaded file management system, an address of a file to be accessed or of an empty region is obtained. When the information processing unit access the flash ROM, the information processing unit directly specifies the address and reading and writing is performed from/to the address. When the information processing unit updates or deletes a file on the flash ROM, the state of the flash ROM changes. At this time, the information processing unit updates the file management system loaded to the main body of the information processing unit. Then, the contents of the updated new file management system is written back to the memory card. Note, however, it takes a longer period for the information processing unit to read/write from/to the flash ROM than to access the memory of the main body of the information processing unit. Therefore, if reading and writing must often be executed from/to the flash ROM, the processing speed of the entire entertainment system itself is lowered. As a result, once the file management system has been loaded into the information processing unit, the file management system is not reloaded unless the state of the flash ROM changes. This prevents the processing speed from unnecessarily being lowered. DISCLOSURE OF THE INVENTION Here, there is a problem associated with insertion/extraction of the memory card. The entertainment system allows the memory card to be inserted/extracted as desired, while the power supply for the information processing unit is on. This is for the convenience of the user. The file management system however is peculiar to each memory card. For example, assuming that a file management system is loaded to the main body of an information processing unit from a memory card, and then the memory card is replaced with another memory card. The file management system loaded is not a file management system for the inserted memory card. At this time, when the flash ROM of the memory card is accessed based on information in the loaded file management system, the contents of data may be contradictory, or the contents of the flash ROM could be destroyed. Therefore, the information processing unit must know insertion/extraction of the memory card. One method therefor is to provide a switch at a connector portion of the information processing unit. More specifically, the switch is adapted to output an on/off signal when the memory card is inserted/extracted. When these signals are transmitted to a CPU by an interrupt, the information processing unit can be informed of the insertion/extraction of the memory card in real time. In this case, however, such a switch must be separately provided. This increases the number of parts, which pushes up the cost. Patent Abstracts of Japan vol. 0172, no. 80 (P-1547) and JP 5 012 131-A disclose such a system. The CPU may monitor the insertion/extraction of the memory card for every fixed time period. However, the insertion/extraction of the memory card does not occur very often in normal use. Therefore, the time spent by the CPU for monitoring could be mostly wasted. As a result, the processing efficiency of the entire entertainment system is lowered. Patent Abstracts of Japan vol. 0154, no. 95 (P-1288) and JP 3214384-A (Dainippon Printing Co Ltd) disclose an identification code, which is lost when the CPU powers down so that the identification code simply serves to enable detection of powering down of the CPU due to disconnection from a power source supply. Patent Abstracts of Japan vol. 0121, no. 04 (P-685) and JP 62237538-A (NEC Corp) discloses a file management system for updating file management information by transferring file management information from a low-speed secondary storage medium to a high-speed secondary storage medium. A host computer stores file management information in a control table in accordance with an input identification code of the low-speed secondary storage medium. Patent Abstracts of Japan vol. 0145, no. 29 (P-1133) and JP2222028-A (NEC Corp) disclose a system for designation of a file label address of an optical disc file. According to this system a file label address and the name for an optical disc associated with a previously closed optical disk file are stored in a database. The file label address is acquired from the database when an optical disc file the same as the one previously closed is subsequently opened. Embodiments of the present invention can provide an information processing unit which can be kept informed of the insertion/extraction of a portable storage device without any special parts having a special mechanism, and without increasing the processing load of the information processing unit and a portable storage device detachable to the information processing unit. An entertainment system according to the invention is defined in claim 1. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is an overview of an information processing unit and a memory card according to the present invention; Fig. 2 is a diagram showing a hardware arrangement of an information processing unit and a memory card according to the present invention; Fig. 3 is a functional block diagram of a main controller in an information processing unit according to the present invention; Fig. 4 is a functional block diagram of a control circuit in a memory card according to the present invention; Fig. 5 is a diagram illustrating a method of communication between an information processing unit and a memory card according to the present invention; and Fig. 6 is a diagram illustrating the process of accessing a memory card by an information processing unit according to the present invention. BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be now described in conjunction with the accompanying drawings. In the following description of the embodiment, an information processing unit capable of gaming, reproducing images, reproducing sounds, communication and the like, and a memory card detachably mountable to the information processing unit will be described by way of illustration. Note that when a game is played in the information processing unit, and the game is interrupted for example, the process of manipulation until the interruption is written to the memory card, and stored as data. When the game is resumed, the data about the process of manipulation can be used to resume the game from the point of interruption. Fig. 1 is an overview of a memory card 100 and an information processing unit 200 according to the present embodiment. The memory card 100 is inserted to a memory card insertion hole 250 at the front of the information processing unit 200. In addition, a controller and a TV monitor (both not shown) are connected to the information processing unit 200 to form together an entertainment system 10. The controller is connected by inserting a cable and a plug connected thereto (both not shown) to a connector insertion hole 260. Fig. 2 is a diagram of a hardware arrangement of the memory card 100 and the information processing unit 200 according to the present embodiment. The memory card 100 includes a connection terminal 110, a control circuit 120, a clock generating circuit 130, a flash ROM 140, and a housing 150 storing these. (see Fig. 1). The connection terminal 110 comes into contact with a connection terminal 210 of the information processing unit 200 when the memory card 100 is inserted to the memory card insertion hole 250 of the information processing unit 200. As a result, the information processing unit 200 and the memory card 100 are electrically joined. The control circuit 120 is for example formed of a gate array. One of a gate circuit in the array is used as a register 121. The clock generating circuit 130 generates a clock signal to allow the memory card to operate. Information transmitted from the information processing unit 200 is stored in a flash ROM 140 on a file basis. The flash ROM 140 is a non-volatile memory. A file management systeml41 is stored in a particular region of the flash ROM 140. The file management system 141 includes information related to the use condition of the flash ROM 140. For example, the file management system 141 stores an address in the flash ROM 140 and the name of a file stored at the address in association with each other. The memory card 100 does not have a power supply and therefore is supplied with power from the information processing unit 200 through the connection terminal 110. As a result, when the memory card 100 is connected to the information processing unit 200, the power supply is turned on and when the card is extracted, the power supply is turned off. The memory card 100 does not have a power supply back up function. Therefore, when the power supply is turned off, the contents of the control circuit 120 including the register 121 will not be held. In this sense, the control circuit 120 is a volatile storage device. Thus, the contents of the register 121 will be changed. The information processing unit 200 includes at least the connection terminal 210, a power supply circuit 220, a main controller 230, an external storage device 240 and a disc drive device 250. The main controller 230 includes at least a CPU 231, and a main memory 232. The power supply circuit 220 supplies power to the information processing unit 200 and the memory card 100. The functional block of the main controller 230 is shown in Fig. 3. The main controller 230 includes at least a memory card management unit 300 which manages the memory card, and an application function (hereinafter referred to as the "AP") 400 implemented by executing an application program. The memory card management unit 300 receives a request from the AP 400 and manages the input/output of the memory card 100. The AP 400 issues a request for reading and writing on a file basis to the memory card management unit 300. The memory card management unit 300 further includes a command generating unit 301, a communication control unit 302, and a file management system table 303. The file management system table 303 is formed by loading a file management system 141 of the memory card 100. The command generating unit 301 receives a request for reading and writing on a file basis from the AP 400 and issues a command to access the memory card. The command generating unit 301 refers to the file management system table 303 as necessary to obtain an address or the like. The communication control unit 302 controls communication with the memory card 100. The functional block of the control circuit 120 is shown in Fig. 4. The control circuit 120 includes at least a communication control unit 501, a command analysis unit 502, a buffer 503, and a reading and writing control unit 504. The communication control unit 501 receives a command from the information processing unit 200 and outputs a result of process. The command analysis unit 502 analyzes the received command. The command analysis unit 502 then outputs to the reading and writing control unit 504 instructions of reading and writing from/to the flash ROM 140. The command analysis unit 502 writes and refers to the register 121. The buffer 503 temporarily stores the contents of data to be read/written. The reading and writing control unit 504 controls reading and writing data from/to the flash ROM 140. According to this embodiment, the control circuit 120 is formed of a gate array. Therefore, the above-described functions are all implemented by hardware logics. However, a memory circuit may be provided with a microcomputer to achieve the functions by software. An operation of the memory card 100 and the information processing unit 200 as described above will be now described. When the memory card 100 is inserted to the information processing unit 200, the connection terminals 110 and 210 are coupled with each other. This turns on the power supply of the memory card 100. When the power supply of memory card 100 is turned on, the control circuit 120 is reset. At this time, the register 121 in the control circuit 120 is also reset. More specifically, the register 121 is set to a prescribed initial value. A process of generating and analyzing a command will be now described in conjunction with Fig. 5. The AP 400 issues an access request for writing, reading and erasure or the like to and from the memory card 100. Upon receipt of the request, the command generating unit 301 generates a command to be transmitted to the memory card 100 (S110, S120). At this time, the file management system table 303 is referred as necessary to obtain an address. The generated command is sent to the memory card 100 through the communication control unit 302 (S130). In the memory card 100, the command is receives by the communication control unit 501 (S210). The contents of the received command are analyzed by the command analysis unit 502 (S220). Based on the result of analysis, the reading and writing control unit 504 executes accumulation of data in the buffer 503 or accessing process to the flash ROM 140 (S230). After completion of the process, the communication control unit 501 returns a notification of the completion of the process to the information processing unit 200 (S240). The process from issuance of an accessing request to the memory card 100 from the AP 400 to execution of the accessing will be now described in conjunction with Fig. 6. Note that in this process, the processes of generating, analyzing, and executing a command are as described above and therefore descriptions are not provided. The information processing unit 200 checks if the memory card 100 is connected (S310). Here, as a method of checking the connection, a reset command is issued, and determination is made based on the presence/absence of a response. However, the connection does not have to be checked by the above method using the reset command. More specifically, an arbitrary command may be issued to the memory card 100, and it may be determined that the memory card 100 is not connected when there is no response in a prescribed time period. When the connection of the memory card 100 is confirmed, the information processing unit 200 writes to the register 121 an authentication value to establish the identity of the memory card 100 (S320). The authentication value is a particular value different from the initial value. The information processing unit 200 reads out the file management system 141. The read out file management system 141 is loaded to the file management system table 303 in the information processing unit 200 (S330). Once the process to S330 has been completed, the memory card management unit 300 will be able to access the memory card 100. The memory card management unit 300 waits for a request from the AP 400 (S340). When the memory card management unit 300 accepts an access request from the AP 400, the memory card management unit 300 refers to the contents of the register 121 (S350). Then, the referred contents and the authentication value set at S320 are compared to determine when they are identical (S360). When they are not identical, it is determined that the memory card 100 whose the file management system 141 has been loaded into the information processing unit 200 and the presently connected memory card 100 are different. Then, the processes in S320 and S330 are executed, and the file management system 141 is re-loaded to the file management system table 303. As described above, when the memory card 100 is extracted from the information processing unit 200, the power supply of the memory card 100 is turned off. Therefore, turning off the power supply prevents the contents of the register 121 from being held, and this characteristic is utilized. Furthermore, when the memory card 100 is inserted and the power supply is turned on, the contents of the register 121 are initialized, so that accidental coincidence is not possible. After the file management system 141 loaded in the file management system table 303 is confirmed as the system of the memory card 100 presently connected, a command is issued to the memory card 100 based on the contents of the file management table 303 (S370). When the memory card is updated at S370, the contents of the flash ROM 140 has been changed. As a result, the file management system table 303 is updated and written back to the flash ROM 140 to update the file management system 141 (S380, S390). In this embodiment, when data in the flash ROM 140 is read out (read) or erased, or data is written (write) in to the flash ROM 140, a set of a plurality of commands, or a command set is used. More specifically, both a reading command set and a writing command set include an address setting command to set an address to be accessed, a transmission/reception command to transmit/receive data, and an execution command to instruct accessing execution. An erasing command set includes the address setting command and the executing command. Each of the commands is sent from the information processing unit 200 to the memory card 100. The address setting command in each command set specifies an address in the flash ROM 140 at which data is to be subjected to reading, writing or erasure. In the reading command set, the transmission/reception command has data read out from the flash ROM 140 and received in the information processing unit 20. In the writing command set, the transmission/reception command transmits data to be written into the flash ROM 140 to the memory card 100. The data transmitted to the memory card 100 is temporarily stored in the buffer 503. The following processes are executed by the execution command. For the writing command set, data held in buffer 503 is written into the flash ROM 140 by the execution command, and the contents of the flash ROM 140 is updated. For the reading command set, data read from the flash ROM 140 is completed. For erasing command set, data in a prescribed region of the flash ROM 140 is erased. More specifically, a series of processes of reading, writing and erasure are each completed by the execution command. Here, in the memory card 100 which has accepted the address setting command, once the process of the address setting command is completed, the memory card 100 issues a completion notification to the information processing unit 200. The information processing unit 200 issues the next command after receiving this completion notification. Therefore, the completion notification is indispensable. So, the completion notification of the address setting command may include the contents of the register 121. Thus, the process being independently executed at S350 can be included in the address setting command. As a result, the number of communication between the information processing unit 200 and the memory card 100 can be reduced. At S310, the memory card 100 is reset to confirm the connection of the memory card 100. The resetting is executed before the start of communication between the memory card 100 and the information processing unit 200, and therefore S320 and S330 may be included in a part of the resetting process. As described in the foregoing, according to the present embodiment, the insertion/extraction of the memory card can be confirmed using a simple and inexpensive structure without providing a switch at the memory card insertion hole. As a result, the number of parts used for the entertainment system can be reduced, which reduces the cost. Furthermore, data contradiction or memory card destruction can be prevented without constantly monitoring the insertion/extraction of the memory card. According to the present invention, the insertion/extraction of the portable storage device can be kept informed without any special parts having a special mechanism and increasing the processing load of the entertainment system.

Claims: An entertainment system comprising a portable storage device (100) and an information processing unit (200) to which said portable storage device is detachably connected, said portable storage device (100) comprising: a first storage unit (140) whose storage contents are held when disconnected from said information processing unit, said first storage unit (140) having a plurality of storage regions, and holding storage unit information (141) containing storage contents identification information to show what kind of information is held in each of said storage regions and containing information related to an address where information specified by said storage contents identification information is stored; and a second storage unit (121) whose storage contents are not held when disconnected from said information processing unit; and said information processing unit comprising: initialization means for initializing identification information in said second storage unit (121) when said portable storage device (100) is connected to the information processing unit (200); setting means for setting, to said second storage unit, identification information indicating that said information processing unit and said portable storage device are connected, the identification information set by said setting means being different to the identification information initialized by the initialization means; reading means for reading said storage unit information; determining means (300) for referring to said second storage unit and determining whether said second storage unit (121) holds identification information that coincides with the identification information set at an earlier stage by said setting means; means for accessing said first storage unit, said accessing means referring to or updating the contents of information stored in said first storage unit (140) based on said storage unit information (141) read by said reading means; in which: said reading means (302) is operable to read said storage unit information when the result of determination by said determination means does not indicate a coincidence or after said information processing unit has set said identification information to said second storage unit. A system according to claim 1, in which: said first storage unit (140) is non-volatile; and said second storage unit (121) is volatile. A system according to claim 2, in which: said first storage unit is formed of a flash ROM; and said second storage unit is formed of a gate circuit. A system according to claim 1, in which: said determining means is operable to make said determination before said accessing means refers to or updates the contents of information stored in said first storage unit.

Inventors: TANAKA MAKOTO, TANAKA, MAKOTO, TANAKA, Makoto Sony Computer Entertainment Inc.
Applicants: SONY COMP ENTERTAINMENT INC, SONY COMPUTER ENTERTAINMENT INC.
Application year: 2000
Main classification: G06K19
IPC codes: G06F12, G06K17, G06F3, G06K19