Data processor, data processing method therefor and storage medium stored with computer readable program
Abstract
[Task] Even if the card device is inserted and removed from the data processing device, the data processing on the data processing device side can be executed without any trouble, and the data can be reliably transitioned to the state where the data can be accessed via the card device.
Solution.The card controller 27 and the CPU 21 monitor the insertion / removal of the card device 29 into the data processing device, and when the card insertion is detected, different processes are sequentially executed at minute time intervals to transition to an accessible confirmed state, and the card is entered. It is characterized in that the power supply from the data processing device main body to the card device 29 is cut off at the time of sampling detection.

Term
Term ended
Projected expiry passed 17 July 2018, 8.2 years ago.
- Priority and filed
- Published
- Projected expiry
- Today
24 claims: 3 independent, 21 dependent
- 1【特許請求の範囲】 【請求項1】 データ処理装置本体より電源供給を受けて特定のデータ処理を行うカードデバイスを前記データ処理装置本体に挿抜するための接続ユニットを備えるデータ処理装置であって、 前記接続ユニットに対する前記カードデバイスの挿抜状態を検知する検知手段と、 前記検知手段により前記カードデバイスの挿入が検知された場合に、微小時間間隔で断続的に異なる処理を順次実行してアクセス可能な確定状態に遷移させる第1の制御手段と、 前記検知手段により前記カードデバイスの抜き取りが検知された場合に、前記データ処理装置本体から前記カードデバイスに対する電源供給を遮断する第2の制御手段と、を有することを特徴とするデータ処理装置。
- 2【請求項2】 前記検知手段は、カードデバイスの抜き取り状態を割込み信号により検知することを特徴とする請求項1記載のデータ処理装置。
- 3【請求項3】 前記第1の制御手段は、微小時間間隔で断続的に異なる電源供給処理,初期化処理,カード情報解析処理,カード種別決定処理,カードデバイスのメモリ割り当て処理を順次実行してアクセス可能な確定状態に遷移させることを特徴とする請求項1記載のデータ処理装置。
- 4【請求項4】 前記第2の制御手段は、前記データ処理装置本体から前記カードデバイスに対する電源供給を遮断した後、前記カードデバイスからの割込みを禁止することを特徴とする請求項1記載のデータ処理装置。
- 5【請求項5】 前記カードデバイスに対するアクセス要求を監視して前記カードデバイスに対する電源供給を断続制御する電源制御手段を有することを特徴とする請求項1記載のデータ処理装置。
- 6【請求項6】 前記検知手段は、カードデバイスの抜き取り状態を割込み信号により検知することを特徴とする請求項1記載のデータ処理装置。
- 7【請求項7】 前記検知手段は、カードデバイスの挿入に伴う割込み信号のオンオフを微小時間監視して暴走状態を検知することを特徴とする請求項1記載のデータ処理装置。
- 8【請求項8】 前記第1の制御手段は、前記検知手段がカードデバイスの挿入に伴う割込み信号のオンオフを微小時間監視して暴走状態を検知した場合に、前記カードデバイスに対して微小時間間隔で断続的に異なる処理を順次実行してアクセス可能な確定状態に遷移させることを特徴とする請求項1記載のデータ処理装置。
- 9【請求項9】 データ処理装置本体より電源供給を受けて特定のデータ処理を行うカードデバイスを前記データ処理装置本体に挿抜するための接続ユニットを備えるデータ処理装置のデータ処理方法であって、 前記接続ユニットに対する前記カードデバイスの挿抜状態を検知する検知工程と、 前記検知工程により前記カードデバイスの挿入が検知された場合に、微小時間間隔で断続的に異なる処理を順次実行してアクセス可能な確定状態に遷移させる確定工程と、 前記検知工程により前記カードデバイスの抜き取りが検知された場合に、前記データ処理装置本体から前記カードデバイスに対する電源供給を遮断する遮断工程と、を有することを特徴とするデータ処理装置のデータ処理方法。
- 10【請求項10】 前記検知工程は、カードデバイスの抜き取り状態を割込み信号により検知することを特徴とする請求項9記載のデータ処理装置のデータ処理方法。
- 11【請求項11】 前記確定工程は、微小時間間隔で断続的に異なる電源供給処理,初期化処理,カード情報解析処理,カード種別決定処理,カードデバイスのメモリ割り当て処理を順次実行してアクセス可能な確定状態に遷移させることを特徴とする請求項9記載のデータ処理装置のデータ処理方法。
- 12【請求項12】 前記遮断工程は、前記データ処理装置本体から前記カードデバイスに対する電源供給を遮断した後、前記カードデバイスからの割込みを禁止することを特徴とする請求項9記載のデータ処理装置のデータ処理方法。
- 13【請求項13】 前記確定工程は、前記カードデバイスに対するアクセス要求を監視して前記カードデバイスに対する電源供給を断続することを特徴とする請求項9記載のデータ処理装置のデータ処理方法。
- 14【請求項14】 前記検知工程は、カードデバイスの抜き取り状態を割込み信号により検知することを特徴とする請求項9記載のデータ処理装置のデータ処理方法。
- 15【請求項15】 前記検知工程は、カードデバイスの挿入に伴う割込み信号のオンオフを微小時間監視して暴走状態を検知することを特徴とする請求項9記載のデータ処理装置のデータ処理方法。
- 16【請求項16】 前記確定工程は、前記検知工程がカードデバイスの挿入に伴う割込み信号のオンオフを微小時間監視して暴走状態を検知した場合に、前記カードデバイスに対して微小時間間隔で断続的に異なる処理を順次実行してアクセス可能な確定状態に遷移させることを特徴とする請求項9記載のデータ処理装置のデータ処理方法。
- 17【請求項17】 データ処理装置本体より電源供給を受けて特定のデータ処理を行うカードデバイスを前記データ処理装置本体に挿抜するための接続ユニットを備えるデータ処理装置を制御するコンピュータが読み出し可能なプログラムを格納した記憶媒体であって、 前記接続ユニットに対する前記カードデバイスの挿抜状態を検知する検知工程と、 前記検知工程により前記カードデバイスの挿入が検知された場合に、微小時間間隔で断続的に異なる処理を順次実行してアクセス可能な確定状態に遷移させる確定工程と、 前記検知工程により前記カードデバイスの抜き取りが検知された場合に、前記データ処理装置本体から前記カードデバイスに対する電源供給を遮断する遮断工程と、 を有することを特徴とするコンピュータが読み出し可能なプログラムを格納した記憶媒体。
- 18【請求項18】 前記検知工程は、カードデバイスの抜き取り状態を割込み信号により検知することを特徴とする請求項17記載のコンピュータが読み出し可能なプログラムを格納した記憶媒体。
- 19【請求項19】 前記確定工程は、微小時間間隔で断続的に異なる電源供給処理,初期化処理,カード情報解析処理,カード種別決定処理,カードデバイスのメモリ割り当て処理を順次実行してアクセス可能な確定状態に遷移させることを特徴とする請求項17記載のコンピュータが読み出し可能なプログラムを格納した記憶媒体。
- 20【請求項20】 前記遮断工程は、前記データ処理装置本体から前記カードデバイスに対する電源供給を遮断した後、前記カードデバイスからの割込みを禁止することを特徴とする請求項17記載のコンピュータが読み出し可能なプログラムを格納した記憶媒体。
- 21【請求項21】 前記確定工程は、前記カードデバイスに対するアクセス要求を監視して前記カードデバイスに対する電源供給を断続することを特徴とする請求項17記載のコンピュータが読み出し可能なプログラムを格納した記憶媒体。
- 22【請求項22】 前記検知工程は、カードデバイスの抜き取り状態を割込み信号により検知することを特徴とする請求項17記載のコンピュータが読み出し可能なプログラムを格納した記憶媒体。
- 23【請求項23】 前記検知工程は、カードデバイスの挿入に伴う割込み信号のオンオフを微小時間監視して暴走状態を検知することを特徴とする請求項17記載のコンピュータが読み出し可能なプログラムを格納した記憶媒体。
- 24【請求項24】 前記確定工程は、前記検知工程がカードデバイスの挿入に伴う割込み信号のオンオフを微小時間監視して暴走状態を検知した場合に、前記カードデバイスに対して微小時間間隔で断続的に異なる処理を順次実行してアクセス可能な確定状態に遷移させることを特徴とする請求項17記載のコンピュータが読み出し可能なプログラムを格納した記憶媒体。
Independent claims24
303 paragraphs in 1 section, as filed
Description: TECHNICAL FIELD [Detailed description of the invention]
【0001】
[Technical field to which the invention belongs]
The invention, specific function processing by insertion of the card device for executing the data processing method and computer-readable program for each device-specific data processing extension processing data processing apparatus and the data processing apparatus stores the beam It is related to the storage medium.
【0002】
[Conventional technology]
Conventionally, in this type of data processing device, when a card device that executes a specific function process is inserted or removed, a card-type device drive device such as a socket that connects to the card device keeps the card device attached / detached at regular intervals (conventional). For example, a polling method is adopted in which detection is performed at 100 mS), and the card is initialized and power is managed based on the detection result. Then, when the insertion of the card is detected, the initialization process of the card-type device is continuously performed, and when the extraction is detected, the termination process of the card-type device is performed.
【0003】
[Problems to be Solved by the Invention]
However, with this method, the delay time from the actual removal of the card to the execution of the termination process increases in proportion to the polling interval. As a result, the device continues to operate unstable with the remaining signal pins until the power pin of the card device leaves the contact of the device drive (socket or slot), and there is a risk of destroying the internal element of the card. Increase.
【0004】
Also, if the initialization process is performed at once when it detects that the card device has been inserted into the socket, other processing of the system (for example, character input processing) will be completely interrupted, and the system performance will deteriorate. There were problems such as.
【0005】
The present invention has been made to solve the above problems, and an object of the present invention is to monitor the insertion / removal of a card device into a data processing device, and when the card insertion is detected, it is intermittently different at minute time intervals. Even if the device is inserted or removed from the data processing device by sequentially executing the processes to transition to an accessible confirmed state and cutting off the power supply from the data processing device main body to the card device when the card insertion is detected. , While executing data processing on the data processing device side without any trouble, it is possible to reliably transition to a state where data can be accessed via the card device, and data access via the card device due to potential fluctuation immediately after card insertion / removal. It provides a data processing device that can surely prevent a situation that prevents the situation, a data processing method of the data processing device, and a storage medium that stores a program that can be read by a computer.
【0006】
[Means for solving problems]
The first invention according to the present invention is a data processing device including a connection unit for inserting and removing a card device that receives power from a data processing device main body and performs specific data processing into the data processing device main body. When the detection means for detecting the insertion / removal state of the card device with respect to the connection unit and the detection means detect the insertion of the card device, it is possible to access by sequentially executing different processes intermittently at minute time intervals. The first control means for transitioning to the definite state and the second control means for shutting off the power supply from the data processing device main body to the card device when the detection means detects the removal of the card device. Have.
【0007】
In the second invention according to the present invention, the detection means detects the extraction state of the card device by an interrupt signal.
【0008】
In the third invention according to the present invention, the first control means intermittently differs in power supply processing, initialization processing, card information analysis processing, card type determination processing, and memory allocation processing of the card device at minute time intervals. Are sequentially executed to transition to an accessible confirmed state.
【0009】
In the fourth invention according to the present invention, the second control means prohibits an interrupt from the card device after cutting off the power supply from the data processing device main body to the card device.
【0010】
A fifth invention according to the present invention has a power supply control means for monitoring an access request to the card device and intermittently controlling the power supply to the card device.
【0011】
In the sixth aspect of the present invention, the detection means detects the extraction state of the card device by an interrupt signal.
【0012】
In the seventh aspect of the present invention, the detection means detects a runaway state by monitoring the on / off of an interrupt signal accompanying the insertion of a card device for a minute time.
【0013】
According to the eighth aspect of the present invention, when the first control means detects a runaway state by monitoring the on / off of an interrupt signal accompanying the insertion of a card device for a minute time, the first control means applies to the card device. On the other hand, different processes are sequentially executed intermittently at minute time intervals to transition to an accessible definite state.
【0014】
A ninth aspect of the present invention is a data processing method for a data processing device including a connection unit for inserting and removing a card device that receives power from the data processing device main body and performs specific data processing into the data processing device main body. Therefore, when the detection step of detecting the insertion / removal state of the card device with respect to the connection unit and the insertion of the card device are detected by the detection step, different processes are sequentially executed at minute time intervals. It has a confirmation step of transitioning to an accessible confirmation state, and a cutoff step of shutting off the power supply from the data processing device main body to the card device when the extraction of the card device is detected by the detection step. Is.
【0015】
In the tenth invention according to the present invention, the detection step detects the extraction state of the card device by an interrupt signal.
【0016】
In the eleventh invention according to the present invention, in the determination step, intermittently different power supply processing, initialization processing, card information analysis processing, card type determination processing, and card device memory allocation processing are sequentially executed at minute time intervals. To transition to an accessible confirmed state.
【0017】
In the twelfth invention according to the present invention, the cutoff step prohibits an interrupt from the card device after cutting off the power supply from the data processing device main body to the card device.
【0018】
In the thirteenth invention according to the present invention, the determination step monitors an access request to the card device and interrupts the power supply to the card device.
【0019】
In the fourteenth invention according to the present invention, the detection step detects the extraction state of the card device by an interrupt signal.
【0020】
In the fifteenth invention according to the present invention, the detection step detects a runaway state by monitoring the on / off of an interrupt signal accompanying the insertion of a card device for a minute time.
【0021】
In the sixteenth invention according to the present invention, in the determination step, when the detection step monitors the on / off of the interrupt signal accompanying the insertion of the card device for a minute time and detects a runaway state, the detection step is minute with respect to the card device. It executes different processes intermittently at time intervals to transition to an accessible confirmed state.
【0022】
The seventeenth invention according to the present invention is a computer that controls a data processing device including a connection unit for inserting and removing a card device that receives power from a data processing device main body and performs specific data processing into the data processing device main body. Is a storage medium in which a readable program is stored, and a detection step of detecting the insertion / removal state of the card device with respect to the connection unit, and a minute time interval when the insertion of the card device is detected by the detection step. When the extraction of the card device is detected by the confirmation step and the detection step of intermittently executing different processes in order to transition to an accessible confirmation state, the power supply from the data processing device main body to the card device. A computer-readable program having a shutoff step of shutting off supply is stored in a storage medium.
【0023】
In the eighteenth invention according to the present invention, in the detection step, a computer-readable program that detects the extraction state of the card device by an interrupt signal is stored in a storage medium.
【0024】
In the nineteenth invention according to the present invention, in the determination step, intermittently different power supply processing, initialization processing, card information analysis processing, card type determination processing, and memory allocation processing of the card device are sequentially executed at minute time intervals. A computer-readable program that is transitioned to an accessible definite state is stored in a storage medium.
【0025】
In the twentieth invention according to the present invention, in the cutoff step, a computer-readable program that prohibits interrupts from the card device after cutting off the power supply from the data processing device main body to the card device is stored as a storage medium. It is stored in.
【0026】
In the 21st invention according to the present invention, in the determination step, a computer-readable program that monitors an access request to the card device and interrupts the power supply to the card device is stored in a storage medium.
【0027】
In the 22nd invention according to the present invention, in the detection step, a computer-readable program that detects the extraction state of the card device by an interrupt signal is stored in a storage medium.
【0028】
In the 23rd invention according to the present invention, in the detection step, a computer-readable program that monitors the on / off of an interrupt signal accompanying the insertion of a card device for a minute time and detects a runaway state is stored in a storage medium. is there.
【0029】
In the twenty-fourth invention according to the present invention, in the determination step, when the detection step monitors the on / off of the interrupt signal accompanying the insertion of the card device for a minute time and detects a runaway state, the detection step is minute with respect to the card device. A computer-readable program that sequentially executes different processes intermittently at time intervals to transition to an accessible definite state is stored in a storage medium.
【0030】
BEST MODE FOR CARRYING OUT THE INVENTION
[First Embodiment] An embodiment of the present invention will be described below with reference to the drawings. In the following embodiments, an example in which the present invention is applied to an information processing device having a peripheral device will be described.
【0031】
In the present embodiment, a stepwise initialization process after detecting that the card has been inserted and a rapid termination process performed when it is detected that the card has been removed will be described.
【0032】
FIG. 1 is a diagram illustrating a configuration of a data processing system to which the data processing apparatus according to the present invention can be applied.
【0033】
In the figure, reference numeral 11 denotes a display device (display) such as a CRT, which displays various information processed by the data processing device main body 12. The data processing apparatus main body 12 is provided with a control board including a CPU, RAM, and ROM.
【0034】
Reference numeral 13 denotes a memory unit, which stores a program 14 that controls power supply, initialization processing, and the like to the card medium when the card medium described later is inserted and removed. Reference numeral 15 is a keyboard for inputting character information to the data processing device main body 12.
【0035】
Reference numeral 16 denotes an external storage device such as a hard disk, which stores information processing result data and various application programs in the data processing device main body 12.
【0036】
Reference numeral 17 denotes a card adapter, which may be directly connected to the internal bus of the data processing device main body 12 onboard, or may be connected to the internal bus of the data processing device main body 12 via an external bus. .. Reference numeral 18 denotes a printer, which communicates with the data processing device main body 12 via various communication media to print the result of information processing including the figure or character information on the data processing device main body 12.
【0037】
FIG. 2 is a block diagram illustrating a configuration of a data processing device showing the first embodiment of the present invention.
【0038】
In the figure, 21 is a CPU, which is connected to the I / O controller 26, RAM22, ROM23, non-volatile memory 24, etc. via the data bus 25. It is assumed that the BIOS that controls the above is also stored. The CPU 21 transmits necessary signals to peripheral device control via the data bus 25.
【0039】
The I / O controller 26 transmits a command received from the CPU 21 to peripheral devices such as a card device and a display. Reference numeral 27 denotes a card controller (PCIC), which controls access to the card device 29 connected to the card socket (socket) 28 by a command from the CPU 21.
【0040】
FIG. 3 is a diagram showing a transition example of the insertion / removal state of the card device 29 that is inserted / removed from the socket 28 shown in FIG.
【0041】
In the figure, reference numeral 31 denotes a cardless state in which the card device 29 is pulled out from the socket 28. 33 is configured with the card device 29 inserted in the socket 28, and the transition condition 32 from the state 31 to the state 33 is from the state 33 to 31 by detecting the presence of the card by polling. The selection condition 34 is to detect the absence of a card by a hardware interrupt.
【0042】
In the present embodiment, since the transition from the state 33 to the state 31 is detected by the hardware interrupt, high-speed power processing is possible even if the card device 29 is removed from the socket 28 under the active state. , Contributes to the protection of the elements inside the card.
【0043】
Hereinafter, the characteristic configuration of the present embodiment will be described with reference to FIG. 2 and the like.
【0044】
A data processing device including a connection unit (socket 28) for inserting and removing a card device that receives power from the data processing device main body configured as described above and performs specific data processing into the data processing device main body. , A detection means (card controller 27) that detects the insertion / removal state of the card device with respect to the connection unit, and when the detection means detects the insertion of the card device, intermittently different processes are sequentially performed at minute time intervals. When the first control means (CPU 21 executes a control program stored in ROM 23 or the like to make a transition) and the detection means detect the removal of the card device. In addition, since it has a second control means (controller 27) that cuts off the power supply from the data processing device main body to the card device, it is possible to access by sequentially executing different processes intermittently when the card device is inserted. Since the state is changed to the fixed state, it is possible to avoid a situation in which the data processing efficiency is lowered by continuously interrupting the data processing being executed on the data processing device side, and when the card device is removed, power is supplied instantly. Is cut off, access to the card device is executed in a state where the power supply is unstable, and it is possible to reliably prevent a situation in which various elements in the device are destroyed.
【0045】
Further, since the detection means (card controller 27) detects the withdrawal state of the card device 29 by the interrupt signal, the power supply to the card device 29 can be interrupted momentarily.
【0046】
Further, the first control means (CPU21) sequentially executes different power supply processing, initialization processing, card information analysis processing, card type determination processing, and memory allocation processing of the card device 29 at minute time intervals. Since the transition to the accessible confirmed state is performed, it is possible to reliably avoid a situation in which the data processing being executed is interrupted and the data processing efficiency of the data processing apparatus main body is lowered when the card device is inserted.
【0047】
Further, since the second control means (CPU 21) prohibits an interrupt from the card device 29 after cutting off the power supply from the data processing device main body to the card device 29, the card device 29 immediately after the power is cut off. It is possible to prevent the occurrence of an illegal interrupt due to noise by surely prohibiting the interrupt request from.
【0048】
Further, since it has a power supply control means (by the MMU 91 and the CPU 21 shown in FIG. 8) that monitors the access request to the card device 29 and intermittently controls the power supply to the card device, after the card device 29 is inserted, Power consumption can be reduced by power saving control without constantly supplying power, and the data processing time when driven by a battery can be extended.
【0049】
Further, since the detection means (card controller 27) detects the withdrawal state of the card device 29 by the interrupt signal, the withdrawal state of the card device 29 can be reliably detected without a time lag.
【0050】
Further, since the detection means (card controller 27) monitors the on / off of the interrupt signal accompanying the insertion of the card device 29 for a minute time to detect the runaway state, unstable static electricity or the like is applied when the card device is pulled out. This makes it possible to identify and detect runaway caused by transient potential fluctuations.
【0051】
Further, when the detection means monitors the on / off of the interrupt signal accompanying the insertion of the card device for a minute time and detects a runaway state, the first control means (CPU21) has a minute time with respect to the card device 29. Since different processes are executed intermittently at intervals to transition to an accessible confirmed state, even if unstable static electricity is applied when the card device is removed and potential fluctuations occur, data processing may run out of control. It can be circumvented and automatically transitioned to a normally accessible state with the card device.
【0052】
FIG. 4 is a flowchart showing an example of the first data processing procedure in the data processing apparatus according to the present invention, and corresponds to the card presence detection processing procedure of the card device 29. Note that (1) to (3) indicate each step.
【0053】
First, when the card device 29 is not inserted into the socket 28, the card port is read and monitored (1), and in step (2), it is determined whether or not the card is present, and the card is detected. If this is the case, the card confirmation processing routine described later is executed (3), and the process shifts to the cardless detection process.
【0054】
On the other hand, if no card is detected in step (2), the process returns to step (1) to monitor the card port.
【0055】
FIG. 5 is a flowchart showing an example of the second data processing procedure in the data processing apparatus according to the present invention, and corresponds to the detailed procedure of the card presence confirmation processing routine shown in FIG. Note that (1) to (6) indicate each step.
【0056】
First, in step (1), power is supplied to the card device 29, and in step (2), electrical initialization is performed on the card device 29. Next, in step (3), the information recorded in the attribute area of the card device 29 is acquired and analyzed, and in step (4), the card type of the card device 29 is determined based on the analysis information, and the step In (5), set the access IO and memory window. Since the processing up to this point is divided at 100mS intervals, other processing will not be stopped during the card confirmation processing in the real-time system.
【0057】
Finally, in step (6), the hardware interrupt of the PC card is permitted so that when the card device 29 is pulled out from the socket 28, the steps (1) and subsequent steps shown in FIG. 6 to be described later operate. ..
【0058】
FIG. 6 is a flowchart showing an example of the third data processing procedure in the data processing apparatus according to the present invention, and corresponds to the cardless detection processing procedure. Note that (1) to (3) indicate each step.
【0059】
First, in step (1), when the card device 29 is inserted into the socket 28, the hardware interrupt of the PC card is waited for, and if the PC card interrupt is detected, the card device 29 is in step (2). It is determined whether the interrupt is due to being removed, and if it is determined that there is no card, the cardless confirmation processing routine is executed in step (3), and the process proceeds to the card presence detection process shown in FIG.
【0060】
FIG. 7 is a flowchart showing an example of the fourth data processing procedure in the data processing apparatus according to the present invention, and corresponds to the detailed procedure of the cardless confirmation processing routine shown in FIG. Note that (1) and (2) indicate each step.
【0061】
First, in step (1), the power supply of the card device 29 is cut off. This is done for the purpose of preventing the elements inside the card device 29 from being damaged if the signal pins of the socket 28 and the card device 29 are disconnected while the power is being supplied.
【0062】
Next, in step (2), the PC card interrupt is disabled and the process is returned. This prevents the occurrence of unauthorized interrupts due to noise.
【0063】
Since the control program of the present embodiment operates in the data processing device for the processing described above, the insertion detection of the card device 29 is performed without degrading the performance of the real-time system, and when the card is removed, the card device 29 is sent. It is possible to minimize the damage of.
【0064】
[Second Embodiment] In the first embodiment, power is always supplied to the card device 29 from the data processing device side from the time when the card device 29 is inserted into the socket 28 to the time when the card device 29 is removed. However, in a data processing device for which power consumption is desired to be suppressed as much as possible, for example, a portable computer may be configured to add power management to the card unit during card insertion. Hereinafter, the embodiment will be described.
【0065】
FIG. 8 is a block diagram illustrating a configuration of a data processing apparatus showing a second embodiment of the present invention, and the same components as those in FIG. 1 are designated by the same reference numerals.
【0066】
In the figure, reference numeral 91 denotes a memory management unit (MMU), which is a mechanism for detecting access to an arbitrary address area and notifying the system program as an interrupt. This MMU91 may be incorporated inside the CPU21 or may be arranged outside the CPU21 as in the present embodiment.
【0067】
FIG. 9 is a timing chart for explaining the power supply control state in the data processing device according to the second embodiment of the present invention, in which the card device 29 is inserted and removed, the access state of the card memory in the card device 29, and the power supply to the card. Corresponds to the state of.
【0068】
In the figure, the card device 29 is inserted into the socket 28 at timing Tl, and when the state changes from ST2 without a card to ST1 with a card, the control program detects the card insertion state at timing T4. , The power supply voltage is changed from the non-supply state of the state ST6 to the supply state of the ST5 state.
【0069】
Then, when the card initialization process of the control program is completed, the power supply is temporarily stopped at the timing T5, the access to the card memory in the card device 29 is waited, and the memory access state is the non-state ST4 at the timing T2. When the access status changes from the access status to the access status of status ST3, power supply is restarted at timing T6, and after memory access is completed at timing T3, wait for, for example, 3 minutes (the monitoring time intended by the user may be set). Then, turn off the power supply at timing T7.
【0070】
The reason for waiting for 3 minutes from timing T3 to timing T7 is to reduce the overhead by preventing the power supply restart and the card information recovery process from being performed again when the access is resumed immediately after the timing T3.
【0071】
As a result, access to memory cards such as SRAM and EEPROM is monitored and power ON / OFF is controlled. In this way, power is supplied only when a memory reference is required, which is efficient.
【0072】
FIG. 10 is a flowchart showing an example of the fifth data processing procedure in the data processing apparatus according to the present invention, and corresponds to the card confirmation processing procedure. Note that (1) to (7) indicate each step. Further, in this process, when it is detected that the card device 29 is inserted into the socket 28 in the step (2) shown in FIG. 4 described above, the process proceeds to the step (1) shown in FIG. 10 and the card is present. It shall shift to the final processing.
【0073】
First, in step (1), power is supplied to the card device 29, and in step (2), the card device 29 is electrically initialized. Next, in step (3), the information recorded in the attribute area of the card is acquired and analyzed, and in step (4), the card type is determined based on the analysis information. Here, the information obtained in steps (3) and (4) is stored in a predetermined area of RAM 22 shown in FIG.
【0074】
Next, in step (5), the power supply to the card device 29 is turned off. Then, in step (6), the hardware interrupt of the card device 29 is permitted to prepare for the interrupt when the card device 29 is removed. Next, in step (7), the preprocessing for the transition to the memory access monitoring mode is performed, and the transition to the memory access monitoring mode processing shown in FIG. 11 is performed.
【0075】
FIG. 11 is a flowchart showing an example of the sixth data processing procedure in the data processing apparatus according to the present invention, and corresponds to the memory access monitoring mode processing procedure.
【0076】
First, in step (1), the card device 29 monitors the memory access to the card area, determines whether or not an access interrupt is detected, and if an access interrupt is detected, proceeds to step (5). Restore (restore) the card type information acquired in steps (3) and (4) shown in Fig. 10, and set the access I / O and memory window in step (6). Now that the card device 29 can access the memory of the card area, in step (7), the card device 29 waits until the memory access to the card area is lost. Then, if the memory access to the card area is interrupted in the card device 29, in step (8), the process shifts to timer processing, the current time is acquired and held in the variable Timer, and in step (9), the variable. Substitute the current time in eTimer as well.
【0077】
Next, in step (10), the card device 29 monitors the memory access to the card area, and if the access to the card area is detected, the process returns to step (7), and if the memory access is not detected, the process returns to step (7). , In step (11), the difference between the variable eTimer and the variable Timer is compared, for example, it is determined whether or not it is 3 minutes or more, and if it is determined that it is 3 minutes or more, the step shown in FIG. Move to (5) and turn off the power supply to the card device 29.
【0078】
On the other hand, if it is determined in step (11) that it is within 3 minutes, the process returns to step (9).
【0079】
On the other hand, if it is determined in step (1) that the memory access to the card area is not detected in the card device 29, the hardware interrupt of the card device 29 is waited in step (2), and then step (3). Then, it is determined whether or not there is an interrupt due to the extraction of the card device 29, and if it is determined that there is no interrupt, the process returns to step (1).
【0080】
On the other hand, when an interrupt is detected in step (3), the card device 29 is being removed. Therefore, in step (4), the same cardless confirmation processing routine as shown in FIG. 7 is called. The process proceeds to the card presence detection process in step (5) shown in FIG.
【0081】
Since the processing described above operates in the data processing device as the control program of the present embodiment, a system configuration that minimizes the power consumption of the card device can be realized.
【0082】
[Third Embodiment] Since the card device 29 of the present embodiment can be freely inserted and removed from the socket 28, static electricity charged on the human body may fall on the card device 29 when it is touched by a hand. In this case, the firmware built into the card device 29 malfunctions at about 3 KV or higher. To recover from this state, it is necessary to remove and reinsert the card device 29 or turn off the power supply and then turn it on again. As a result, the user is forced to bear the burden of recovery processing. Therefore, it may be configured to automate the return process. Hereinafter, the embodiment will be described.
【0083】
FIG. 12 is a timing chart for explaining the detection processing operation of the firmware runaway in the data processing apparatus showing the third embodiment of the present invention.
【0084】
In the figure, when the card device 29 is inserted at the timing Tl, the power supply state STll is set at the timing Tll. Then, at the timing T8, when the static electricity drops in a short time and the voltage suddenly changes from the state ST8 the state ST7 the state ST8, the firmware in the card changes from the normal state ST10 to the runaway state ST9.
【0085】
The control program detects this runaway state ST9, turns off the power supply once at timing Tl2, and supplies power again at timing T13. By this operation and the card initialization process, the in-card firmware returns to the normal state at timing T10.
【0086】
FIG. 13 is a diagram illustrating an operation transition state of the in-card firmware shown in FIG.
【0087】
In the figure, the normal state S131 is shifted to the runaway state 132 by the electrostatic drop 134 as a transition condition. The runaway state 132 shifts to the recovery process of the state 133 by the runaway detection 136, and returns to the normal operation state 131 when the recovery process is completed 135.
【0088】
FIG. 14 is a flowchart showing an example of the seventh data processing procedure in the data processing apparatus according to the present invention, and corresponds to the cardless detection processing procedure. Note that (1) to (6) indicate each step. Further, in the present embodiment, the in-card device described later includes an internal device such as a modem, a network, and a hard disk.
【0089】
First, in step (1), the hardware interrupt of the card device 29 is waited, and if it is determined in step (2) that the interrupt is due to card removal, the cardless confirmation processing routine is called and executed in step (5). Return to step (1).
【0090】
On the other hand, if it is determined in step (2) that it is not an interrupt for removing the card, it is determined in step (3) whether it is an interrupt for the device in the card device 29, and it is determined that it is an interrupt for the device in the card. If it is determined, it is operating normally, so in step (6), interrupt processing for each device is performed, and the process returns to step (1).
【0091】
On the other hand, if it is determined in step (3) that it is not an in-card device interrupt, it is determined that it is in a runaway because it is an interrupt without a factor, and in step (4), runaway is detected, and card information and resources are available. Initialize, move to step (1) shown in Fig. 4, and execute the card presence detection process.
【0092】
Since the process described above operates in the embodiment of the present invention, the control program automatically recovers even if the firmware in the card runs out of control. As a result, it is not necessary for the user to insert and remove the card device 29 every time such a runaway occurs, the burden on the user can be reduced, and the contact life of the card device 29 and the data processing device main body can be extended.
【0093】
In addition, since the operator can concentrate on the work without being aware of the runaway of the firmware in the card, it contributes to the improvement of the operability of the information processing device.
【0094】
Hereinafter, the characteristic configuration of the present embodiment will be described with reference to the flowcharts shown in FIGS. 4 to 7, 10, 11, and 14.
【0095】
Data of a data processing device including a connection unit (socket 28) for inserting and removing a card device 29 that receives power from the data processing device main body configured as described above and performs specific data processing into the data processing device main body. It is a processing method, or it can be read by a computer that controls a data processing device that includes a connection unit for inserting and removing a card device that receives power from the data processing device main body and performs specific data processing into the data processing device main body. The insertion of the card device was detected by the detection step (step (2) in FIG. 4) for detecting the insertion / removal state of the card device with respect to the connection unit and the detection step. In this case, a confirmation step (step (3) in FIG. 4) in which different processes are sequentially executed at minute time intervals to transition to an accessible confirmation state, and the detection step detects the removal of the card device. In this case, since it has a shutoff step (step (2) in FIG. 6) for shutting off the power supply from the data processing device main body to the card device, different processes are intermittently executed when the card device is inserted. Since the transition to the accessible confirmed state can be avoided, it is possible to avoid a situation in which the data processing efficiency is lowered by continuously interrupting the data processing being executed on the data processing device side, and when the card device is removed, It is possible to reliably prevent a situation in which the power supply is cut off instantly, access to the card device is executed in a state where the power supply is unstable, and various elements in the device are destroyed.
【0096】
Further, in the detection step (step (2) of FIG. 6), the extraction state of the card device is detected by the interrupt signal (step (1) of FIG. 6), so that the power supply to the card device can be interrupted momentarily. ..
【0097】
Further, the determination steps (steps (1) to (6) in FIG. 5) include power supply processing, initialization processing, card information analysis processing, card type determination processing, and card device memory that are intermittently different at minute time intervals. Since the allocation process is sequentially executed to transition to the accessible confirmed state, it is necessary to reliably avoid the situation where the data processing being executed is interrupted and the data processing efficiency of the data processing device itself is lowered when the card device is inserted. Can be done.
【0098】
Further, in the cutoff step (step (1) in FIG. 7), after the power supply from the data processing device main body to the card device is cut off, the interrupt from the card device is prohibited, so that the card device immediately after the power cutoff is performed. It is possible to prevent the occurrence of an illegal interrupt due to noise by surely prohibiting the interrupt request from.
【0099】
Further, in the determination step, the access request to the card device is monitored and the power supply to the card device is interrupted (steps (1) to (11) in FIG. 11). Power consumption can be reduced by power saving control without supplying power, and the data processing time when driven by a battery can be extended.
【0100】
Further, in the detection step (step (2) of FIG. 14), the withdrawal state of the card device is detected by the interrupt signal, so that the withdrawal state of the card device can be reliably detected without a time lag.
【0101】
Further, in the detection process, the runaway state is detected by monitoring the on / off of the interrupt signal accompanying the insertion of the card device for a minute time (step (4) in FIG. 14), so that unstable static electricity or the like is generated when the card device is removed. It is possible to identify and detect runaway caused by transient potential fluctuation due to application.
【0102】
Further, in the determination step, when the detection step monitors the on / off of the interrupt signal accompanying the insertion of the card device for a minute time and detects a runaway state, the process is intermittently different from the card device at minute time intervals. Is executed sequentially to transition to an accessible confirmed state, so even if unstable static electricity or the like is applied when the card device is pulled out and potential fluctuation occurs, the situation where data processing runs out of control can be avoided and the card device can be used. It can be automatically transitioned to a normal accessible state.
【0103】
Hereinafter, the configuration of a data processing program that can be read by the data processing apparatus according to the present invention will be described with reference to the memory map shown in FIG.
【0104】
FIG. 15 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read by the data processing apparatus according to the present invention.
【0105】
Although not particularly shown, information that manages a group of programs stored in a storage medium, such as version information, creators, etc., is also stored, and information that depends on the OS, etc. on the program reading side, for example, programs are identified and displayed. Icons and the like may also be stored.
【0106】
Furthermore, data dependent on various programs are also managed in the above directory. In addition, a program for installing various programs on a computer, a program for decompressing the program when the program to be installed is compressed, and the like may be stored.
【0107】
The functions shown in FIGS. 9 to 11 in this embodiment may be performed by the host computer by a program installed from the outside. In that case, the present invention is applied even when the information group including the program is supplied to the output device by a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. It is a thing.
【0108】
As described above, the storage medium in which the program code of the software that realizes the functions of the above-described embodiment is recorded is supplied to the system or device, and the computer (or CPU or MPU) of the system or device stores the storage medium in the storage medium. Needless to say, the object of the present invention can be achieved by reading and executing the program code.
【0109】
In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.
【0110】
As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a non-volatile memory card, a ROM, an EEPROM, or the like can be used. it can.
【0111】
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the OS (operating system) or the like running on the computer is set based on the instructions of the program code. Needless to say, there are cases where a part or all of the actual processing is performed and the processing realizes the functions of the above-described embodiment.
【0112】
Further, the program code read from the storage medium is written in the memory provided in the function expansion board inserted in the computer or the function expansion unit connected to the computer, and then the function is expanded based on the instruction of the program code. Needless to say, the CPU provided in the board or the function expansion unit may perform a part or all of the actual processing, and the processing may realize the functions of the above-described embodiment.
【0113】
According to the above embodiment, it is possible to eliminate malfunction due to the influence of short-period noise when inserting the card device, accurately acquire the card device information, and stably initialize the card device.
【0114】
In addition, since the initialization process is subdivided in minute time units in consideration of real-time processing, it is possible to prevent a decrease in system performance.
【0115】
Further, since the removal of the card device is instantaneously detected by a hardware interrupt, the stress on the electronic element in the card device that occurs when the card device is removed in the power supply state can be minimized.
【0116】
[Effect of the invention]
As described above, according to the first invention according to the present invention, there is a connection unit for inserting and removing a card device that receives power from a data processing device main body and performs specific data processing into the data processing device main body. A data processing device including a detection means that detects the insertion / removal state of the card device with respect to the connection unit, and a processing that intermittently differs at minute time intervals when the detection means detects the insertion of the card device. When the removal of the card device is detected by the first control means and the detection means for sequentially executing the above steps to transition to an accessible confirmed state, the power supply to the card device is cut off from the data processing device main body. Since it has a second control means for processing, when the card device is inserted, different processes are intermittently executed in sequence to transition to an accessible confirmed state, so that the data processing being executed on the data processing device side is continuously performed. In addition to avoiding the situation where data processing efficiency drops due to interruption, when the card device is removed, the power supply is instantly cut off, and access to the card device is executed in a state where the power supply is unstable. , It is possible to surely prevent the situation where various elements in the device are destroyed.
【0117】
According to the second invention, since the detection means detects the extraction state of the card device by the interrupt signal, the power supply to the card device can be interrupted momentarily.
【0118】
According to the third invention, the first control means sequentially performs different power supply processing, initialization processing, card information analysis processing, card type determination processing, and card device memory allocation processing at minute time intervals. Since it is executed and transitioned to an accessible confirmed state, it is possible to reliably avoid a situation in which the data processing being executed is interrupted and the data processing efficiency of the data processing apparatus main body is lowered when the card device is inserted.
【0119】
According to the fourth invention, since the second control means prohibits the interrupt from the card device after cutting off the power supply from the data processing device main body to the card device, the card device immediately after the power cutoff is performed. It is possible to prevent the occurrence of an illegal interrupt due to noise by surely prohibiting the interrupt request from.
【0120】
According to the fifth invention, since the power control means for monitoring the access request to the card device and intermittently controlling the power supply to the card device is provided, the power supply is not always supplied after the card device is inserted. Power consumption can be reduced by power saving control, and the data processing time when driven by a battery can be extended.
【0121】
According to the sixth invention, since the detection means detects the extraction state of the card device by the interrupt signal, the extraction state of the card device can be reliably detected without a time lag.
【0122】
According to the seventh invention, since the detection means detects the runaway state by monitoring the on / off of the interrupt signal accompanying the insertion of the card device for a minute time, unstable static electricity or the like is applied when the card device is pulled out. This makes it possible to identify and detect runaway caused by transient potential fluctuations.
【0123】
According to the eighth invention, when the detection means monitors the on / off of the interrupt signal accompanying the insertion of the card device for a minute time and detects a runaway state, the first control means controls the card device. Since different processes are executed intermittently at minute time intervals to transition to an accessible confirmed state, data processing runs out of control even if unstable static electricity is applied when the card device is removed and potential fluctuations occur. It is possible to avoid the situation and automatically transition to a state in which the card device can be normally accessed.
【0124】
According to the ninth and seventeenth inventions, data processing of a data processing device including a connection unit for inserting and removing a card device that receives power from the data processing device main body and performs specific data processing into the data processing device main body. It is a method, or it can be read by a computer that controls a data processing device including a connection unit for inserting and removing a card device that receives power from the data processing device main body and performs specific data processing into the data processing device main body. A storage medium in which a program is stored, a detection step of detecting the insertion / removal state of the card device with respect to the connection unit, and intermittently at minute time intervals when the insertion of the card device is detected by the detection step. When a confirmation step of sequentially executing different processes to transition to an accessible confirmation state and a extraction of the card device are detected by the detection process, the power supply from the data processing device main body to the card device is cut off. Since it has a shutoff step, when the card device is inserted, different processes are intermittently executed in sequence to transition to an accessible confirmed state, so that the data processing being executed on the data processing device side is continuously interrupted. In addition to avoiding a situation where data processing efficiency drops, when the card device is removed, the power supply is instantly cut off, access to the card device is executed in a state where the power supply is unstable, and the inside of the device is accessed. It is possible to reliably prevent a situation in which various elements are destroyed.
【0125】
According to the tenth and eighteenth inventions, since the detection step detects the extraction state of the card device by the interrupt signal, the power supply to the card device can be interrupted momentarily.
【0126】
According to the eleventh and nineteenth inventions, the determination step sequentially performs different power supply processing, initialization processing, card information analysis processing, card type determination processing, and card device memory allocation processing at minute time intervals. Since it is executed and transitioned to an accessible confirmed state, it is possible to reliably avoid a situation in which the data processing being executed is interrupted and the data processing efficiency of the data processing apparatus main body is lowered when the card device is inserted.
【0127】
According to the twelfth and twentieth inventions, in the cutoff step, after the power supply from the data processing device main body to the card device is cut off, the interrupt from the card device is prohibited. Therefore, the card device immediately after the power cutoff is performed. It is possible to prevent the occurrence of an illegal interrupt due to noise by surely prohibiting the interrupt request from.
【0128】
According to the thirteenth and twenty-first inventions, in the determination step, the access request to the card device is monitored and the power supply to the card device is interrupted, so that the power supply is always supplied after the card device is inserted. The power consumption can be reduced by the power saving control, and the data processing time when the battery is driven can be extended.
【0129】
According to the 14th and 22nd inventions, since the detection step detects the extraction state of the card device by the interrupt signal, the extraction state of the card device can be reliably detected without a time lag.
【0130】
According to the fifteenth and twenty-third inventions, in the detection process, the on / off of the interrupt signal accompanying the insertion of the card device is monitored for a minute time to detect the runaway state, so that unstable static electricity or the like is generated when the card device is pulled out. It is possible to identify and detect runaway caused by transient potential fluctuation due to application.
【0131】
According to the 16th and 24th inventions, the determination step is performed on the card device when the detection step monitors the on / off of the interrupt signal accompanying the insertion of the card device for a minute time and detects a runaway state. Since different processes are executed intermittently at minute time intervals to transition to an accessible confirmed state, data processing runs out of control even if unstable static electricity is applied when the card device is removed and potential fluctuations occur. The situation can be avoided and the card device can be automatically transitioned to a normal accessible state.
【0132】
Therefore, even if the card device is inserted and removed from the data processing device, it is possible to reliably transition to a state in which data can be accessed via the card device while executing data processing on the data processing device side without any trouble, and immediately after inserting and removing the card. It has the effect of reliably preventing the situation where data access via the card device is prevented due to the potential fluctuation of.
[Simple explanation of drawings]
[Figure 1]
It is a figure explaining the structure of the data processing system to which the data processing apparatus which concerns on this invention can apply.
[Figure 2]
It is a block diagram explaining the structure of the data processing apparatus which shows 1st Embodiment of this invention.
[Fig. 3]
It is a figure which shows the transition example of the insertion / removal state of the card device which is inserted into / out with respect to the socket shown in FIG.
[Fig. 4]
It is a flowchart which shows an example of the 1st data processing procedure in the data processing apparatus which concerns on this invention.
[Fig. 5]
It is a flowchart which shows an example of the 2nd data processing procedure in the data processing apparatus which concerns on this invention.
[Fig. 6]
It is a flowchart which shows an example of the 3rd data processing procedure in the data processing apparatus which concerns on this invention.
[Fig. 7]
It is a flowchart which shows an example of the 4th data processing procedure in the data processing apparatus which concerns on this invention.
[Fig. 8]
It is a block diagram explaining the structure of the data processing apparatus which shows the 2nd Embodiment of this invention.
[Fig. 9]
It is a timing chart explaining the power supply control state in the data processing apparatus which shows the 2nd Embodiment of this invention.
[Fig. 10]
It is a flowchart which shows an example of the 5th data processing procedure in the data processing apparatus which concerns on this invention.
[Fig. 11]
It is a flowchart which shows an example of the 6th data processing procedure in the data processing apparatus which concerns on this invention.
[Fig. 12]
It is a timing chart for demonstrating the detection processing operation of firmware runaway in the data processing apparatus which shows 3rd Embodiment of this invention.
[Fig. 13]
It is a figure explaining the operation transition state of the in-card firmware shown in FIG.
[Fig. 14]
It is a flowchart which shows an example of the 7th data processing procedure in the data processing apparatus which concerns on this invention.
[Fig. 15]
It is a figure explaining the memory map of the storage medium which stores various data processing programs which can be read by the data processing apparatus which concerns on this invention.
[Explanation of symbols]
21 CPU 22 RAM 23 ROM 24 Non-volatile memory 28 socket 29 card device
16 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13 Sheet 14 Sheet 15 Sheet 16
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| JP2010225011A | Cited by | Japan | Examiner |
| US7882297B2 | Cited by | United States of America | Applicant |
| US8185759B1 | Cited by | United States of America | Applicant |
| US8572420B2 | Cited by | United States of America | Applicant |
2 priority claims, no other members on record
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 20316498 | Japan | A | |
| JP19980203164 | – | – | – |
Numbers
- Publication
- 2000-35837
- Publication, DOCDB
- 2000035837
- Publication, EPODOC
- JP2000035837
- Application
- 10203164
- Application, DOCDB
- 20316498
- Application, EPODOC
- JP19980203164
Titles2
- Japanese
- データ処理装置およびデータ処理装置のデータ処理方法およびコンピュータが読み出し可能なプログラムを格納した記憶媒体
- English
- PROBLEM TO BE SOLVED: To store a data processing apparatus, a data processing method of the data processing apparatus, and a program readable by a computer.
Classification
- IPC, 3
- G06F1 26
- G06F1 18
- G06F3 00