JP6019678B2 - Mobile terminal device - Google Patents

Mobile terminal device Download PDF

Info

Publication number
JP6019678B2
JP6019678B2 JP2012084703A JP2012084703A JP6019678B2 JP 6019678 B2 JP6019678 B2 JP 6019678B2 JP 2012084703 A JP2012084703 A JP 2012084703A JP 2012084703 A JP2012084703 A JP 2012084703A JP 6019678 B2 JP6019678 B2 JP 6019678B2
Authority
JP
Japan
Prior art keywords
power supply
volatile memory
nonvolatile memory
battery
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012084703A
Other languages
Japanese (ja)
Other versions
JP2013214233A (en
Inventor
泰 岩出
泰 岩出
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2012084703A priority Critical patent/JP6019678B2/en
Publication of JP2013214233A publication Critical patent/JP2013214233A/en
Application granted granted Critical
Publication of JP6019678B2 publication Critical patent/JP6019678B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、携帯端末装置に関するものである。   The present invention relates to a portable terminal device.

携帯側光学的情報読取装置などの携帯端末装置では、装置内に揮発性メモリと不揮発性メモリとを設けた構成性が一般的である。揮発性メモリは、一般的に高速処理が可能であるため、様々な演算処理で用いられるが、電力供給が途絶えると記憶内容が揮発してしまうため、別途不揮発性メモリを設け、揮発性メモリの内容のバックアップ等に用いている。   A portable terminal device such as a portable optical information reading device generally has a configuration in which a volatile memory and a nonvolatile memory are provided in the device. Since volatile memory is generally capable of high-speed processing, it is used in various arithmetic processes. However, if the power supply is interrupted, the stored contents will be volatilized, so a separate nonvolatile memory is provided. Used for backup of contents.

特開2007−18428公報JP 2007-18428 A

ところで、上記のような携帯端末装置では、電源手段から揮発性メモリへ供給される電力が完全に停止又は低下してしまうことがありうる。例えば、この種の携帯端末装置では、電池とサブバッテリを備えた構成が広く提供されているが、落下衝撃によって電池が外れたり意図しない操作によって電池が抜かれたりした場合、或いは何らかの原因で電池電圧が急激に低下する場合には、もはや電池では揮発性メモリの記憶状態を維持できなくなる。この場合サブバッテリからの電力供給によって揮発性メモリの記憶内容を維持することになるが、何らかの原因によりサブバッテリからの電力供給まで停止又は低下してしまうと、揮発性メモリにそれまで記憶されていた内容が完全に消えてしまうことになる。   By the way, in the portable terminal device as described above, the power supplied from the power supply means to the volatile memory may be completely stopped or reduced. For example, in this type of portable terminal device, a configuration including a battery and a sub-battery is widely provided. However, when the battery is detached due to a drop impact or the battery is pulled out by an unintended operation, or for some reason, the battery voltage If the battery voltage drops rapidly, the battery can no longer maintain the storage state of the volatile memory. In this case, the stored contents of the volatile memory will be maintained by the power supply from the sub-battery, but if the power supply from the sub-battery is stopped or reduced for some reason, it will be stored in the volatile memory until then. The contents will disappear completely.

このように揮発性メモリの内容が揮発してしまっても、揮発前までに揮発性メモリの内容を管理する管理情報などが不揮発性メモリにバックアップできていれば問題は少なくなるが、このような管理情報などを不揮発性メモリにバックアップできずに揮発性メモリが消去されてしまうと、それまでに揮発性メモリに記憶されていた内容を次回以降に反映できなくなることは勿論のこと、次回の起動時に、バックアップ情報が存在しない又はバックアップ情報が不十分な不揮発性メモリの内容に基づいて不正常な起動処理が行われてしまい、システム障害を招く懸念がある。   Even if the contents of the volatile memory are volatilized in this way, the problem will be reduced if management information that manages the contents of the volatile memory can be backed up to the nonvolatile memory before volatilization. If the volatile memory is erased without backing up management information to the non-volatile memory, the contents stored in the volatile memory up to that point will not be reflected in the next time. At times, there is a concern that abnormal startup processing is performed based on the contents of the nonvolatile memory in which backup information does not exist or backup information is insufficient, resulting in a system failure.

本発明は、上述した課題を解決するためになされたものであり、揮発性メモリを備えた携帯端末装置において、揮発性メモリに対して十分な電力供給が維持されず揮発性メモリの内容が揮発してしまう場合であっても、その後の再起動時においてシステム的な不具合が生じ難い構成を提供することを目的とする。   The present invention has been made to solve the above-described problems. In a mobile terminal device having a volatile memory, sufficient power supply is not maintained for the volatile memory, and the contents of the volatile memory are volatile. Even if it is a case where it does, it aims at providing the structure which a systematic malfunction does not produce easily at the time of subsequent restart.

本発明は、データを記憶可能な第1不揮発性メモリと、電力供給を受けているときにデータを記憶可能に構成され、前記第1不揮発性メモリに記憶されたデータを管理するための管理情報が記憶される揮発性メモリと、前記揮発性メモリと前記第1不揮発性メモリとの間のデータ転送を制御する第1制御手段と、少なくとも前記揮発性メモリ及び他の電子部品に動作用の電力を供給する電源手段と、前記第1不揮発性メモリとは異なる第2不揮発性メモリと、前記第2不揮発性メモリへのデータの書き込みを制御する第2制御手段と、前記電源手段による電力供給の停止後、少なくとも前記第2制御手段に対して電力供給を行い得る補助電源手段と、前記電源手段から前記揮発性メモリへの電力供給が所定の停止状態となったか否かを判断する判断手段と、を備え、前記第2制御手段は、前記補助電源手段から電力供給を受けて動作すると共に、前記判断手段によって前記停止状態になったと判断された場合に、少なくとも所定の異常履歴情報を前記第2不揮発性メモリに記録し、前記電源手段は、少なくとも前記揮発性メモリに対して電力供給を行う第1電源及び第2電源を有し、前記揮発性メモリは、前記第1電源からの電力供給が停止又は所定の低レベル状態となったときに、前記第2電源からの電力供給に基づいて記憶内容を維持するように構成され、前記判断手段は、前記第2電源からの前記揮発性メモリへの電力供給が前記停止状態となったか否かを判断し、前記第2制御手段は、前記判断手段により前記第2電源からの電力供給が前記停止状態と判断された場合に、前記第2電源とは異なる前記補助電源手段からの電力供給に基づいて前記第2不揮発性メモリに前記異常履歴情報を書き込むことを特徴とする。 The present invention provides a first nonvolatile memory capable of storing data, and management information configured to be able to store data when receiving power supply, and for managing the data stored in the first nonvolatile memory , A first control means for controlling data transfer between the volatile memory and the first non-volatile memory, power for operating at least the volatile memory and other electronic components and power supply means for supplying a first second nonvolatile memory different from the nonvolatile memory, and a second control means for controlling the writing of data to the previous SL second nonvolatile memory, power supply by the power supply unit After stopping, the auxiliary power supply means that can supply power to at least the second control means, and whether or not the power supply from the power supply means to the volatile memory is in a predetermined stop state is determined. Determination means, and the second control means operates upon receiving power supply from the auxiliary power supply means, and at least predetermined abnormality history information when the determination means determines that the stop state has occurred. Is stored in the second nonvolatile memory, and the power source means includes a first power source and a second power source for supplying power to at least the volatile memory, and the volatile memory is connected to the first power source. When the power supply is stopped or becomes a predetermined low level state, the stored content is maintained based on the power supply from the second power supply, and the determination means is configured to receive the power from the second power supply. It is determined whether the power supply to the volatile memory is in the stopped state, and the second control unit determines that the power supply from the second power source is determined to be in the stopped state by the determining unit. And writes the abnormality history information on the second non-volatile memory based on the power supply from a different said auxiliary power supply means comprises a serial second power supply.

請求項1の発明では、データを記憶可能な第1不揮発性メモリと、第1不揮発性メモリに記憶されたデータを管理するための管理情報が記憶される揮発性メモリとが設けられ、揮発性メモリと第1不揮発性メモリとの間のデータ転送を第1制御手段によって制御している。このようにすることで、第1不揮発性メモリへのデータのバックアップを可能としつつ、そのバックアップ情報を揮発性メモリ内で管理できるようになる。
この構成では、何ら措置を講じない場合には、何らかの理由により電源手段からの電力が低下又は遮断して管理情報が消去されてしまうと、例えば次回の起動時などにバックアップ情報を管理できずに不正常な起動処理がなされてしまうという問題があるが、本発明では、このような問題に対処するため、電源手段による電力供給の停止後に少なくとも第2制御手段に対して電力供給を行い得る補助電源手段が設けられ、判断手段によって停止状態(揮発性メモリへの動作電力が維持できなくなった状態)になったと判断された場合には、補助電源手段から電力供給を受けて動作する第2制御手段により、少なくとも所定の異常履歴情報を第2不揮発性メモリに記録している。従って、揮発性メモリ内の管理情報が消失したことを第2の不揮発性メモリに異常履歴として残すことができ、次回の起動時にはこのような管理情報の消失を前提として起動することができる。例えば、上記異常履歴が残っている場合の起動時に、第1の不揮発性メモリ内の管理情報を利用せずに起動すれば、仮に第1の不揮発性メモリ内の管理情報が不十分であってもそれに起因するシステム障害等を招くことがない。
また、電源手段は、少なくとも揮発性メモリに対して電力供給を行う第1電源及び第2電源を有し、揮発性メモリは、第1電源からの電力供給が停止又は所定の低レベル状態となったときに、第2電源からの電力供給に基づいて記憶内容を維持するように構成されている。この構成では、第1電源からの電力供給が揮発性メモリの記憶内容を維持できないレベルになった場合(例えば、瞬断などが生じる場合等)においても、第2電源からの電力供給に基づいて揮発性メモリの記憶内容を維持することができる。
このような構成において、更に、判断手段は、第2電源からの揮発性メモリへの電力供給が停止状態となったか否かを判断し、第2制御手段は、判断手段により第2電源からの電力供給が停止状態と判断された場合に、第2電源とは異なる補助電源手段からの電力供給に基づいて第2不揮発性メモリに異常履歴情報を書き込むように構成されている。即ち、第2電源まで不十分になったときでも、これら第1電源及び第2電源とは異なる補助電源手段からの電力供給に基づいて第2不揮発性メモリに異常履歴情報を書き込むことができる。特に、この構成では、第2電源が十分維持されている場合には第2電源による対応が可能なものとして異常履歴の書き込み動作を行わなくて済み、第2電源まで異常となったときに最終的な手段として異常履歴を書き込むことができる。
According to the first aspect of the present invention, there is provided a first nonvolatile memory capable of storing data, and a volatile memory storing management information for managing data stored in the first nonvolatile memory. Data transfer between the memory and the first nonvolatile memory is controlled by the first control means. By doing so, the backup information can be managed in the volatile memory while enabling the backup of data to the first nonvolatile memory.
In this configuration, if no measures are taken, the backup information cannot be managed, for example, at the next start-up, for example, if the management information is deleted due to the power from the power source being reduced or shut down for some reason. Although there is a problem that an abnormal startup process is performed, in the present invention, in order to cope with such a problem, an auxiliary device that can supply power to at least the second control unit after the power supply by the power source unit is stopped. A second control that is provided with power supply means and operates by receiving power supply from the auxiliary power supply means when it is determined by the determination means that the operation is stopped (a state in which the operating power to the volatile memory cannot be maintained); The means records at least predetermined abnormality history information in the second nonvolatile memory. Therefore, the loss of the management information in the volatile memory can be left as an abnormality history in the second nonvolatile memory, and the next startup can be started on the assumption that such management information is lost. For example, if startup is performed without using the management information in the first nonvolatile memory at the time of startup when the abnormality history remains, the management information in the first nonvolatile memory is temporarily insufficient. However, it does not cause a system failure or the like due to it.
The power supply means has at least a first power supply and a second power supply that supply power to the volatile memory, and the volatile memory stops supplying power from the first power supply or enters a predetermined low level state. The stored contents are maintained based on the power supply from the second power source. In this configuration, even when the power supply from the first power source is at a level where the stored contents of the volatile memory cannot be maintained (for example, when an instantaneous interruption occurs), the power supply from the second power source is based on the power supply from the second power source. The stored contents of the volatile memory can be maintained.
In such a configuration, the determination unit further determines whether power supply from the second power source to the volatile memory has been stopped, and the second control unit determines whether the second power source has received power from the second power source. When it is determined that the power supply is in a stopped state, the abnormality history information is written to the second nonvolatile memory based on the power supply from the auxiliary power supply means different from the second power supply. That is, even when the second power supply becomes insufficient, the abnormality history information can be written in the second nonvolatile memory based on the power supply from the auxiliary power supply means different from the first power supply and the second power supply. In particular, in this configuration, when the second power supply is sufficiently maintained, it is not necessary to perform an operation of writing an abnormality history as being capable of being handled by the second power supply. An abnormal history can be written as a practical means.

請求項3の発明では、電源手段からの電力供給が開始された際に第2不揮発性メモリの記録内容を参照すると共に、第2不揮発性メモリに異常履歴情報が記録されている場合に報知処理を行う報知手段を備えている。この構成によれば、揮発性メモリの内容が消失していることをユーザ等に知らしめることができ、ユーザ等に適切な対応を促すことができる。   In the invention of claim 3, when the power supply from the power supply means is started, the recorded content of the second nonvolatile memory is referred to, and the notification process is performed when abnormality history information is recorded in the second nonvolatile memory. Informing means for performing is provided. According to this configuration, the user or the like can be informed that the contents of the volatile memory are lost, and the user or the like can be encouraged to take an appropriate action.

請求項4の発明では、第2不揮発性メモリが、第1不揮発性メモリよりも許容書込回数が多いメモリとなっている。この構成では、第1不揮発性メモリに対する上記異常履歴の書き込みを行わない或いは少なくすることで、第1不揮発性メモリの書き込み頻度を低減することができ、第1不揮発性メモリの寿命を長くすることができる。   In the invention of claim 4, the second non-volatile memory is a memory having a larger allowable number of writing times than the first non-volatile memory. In this configuration, the frequency of writing to the first nonvolatile memory can be reduced and the life of the first nonvolatile memory can be extended by not writing or reducing the abnormality history to the first nonvolatile memory. Can do.

図1は、本発明の実施形態に係る携帯端末装置の電気的構成を概略的に例示するブロック図である。FIG. 1 is a block diagram schematically illustrating an electrical configuration of a mobile terminal device according to an embodiment of the invention. 図2は、図1の携帯端末装置のメイン処理を例示するフローチャートである。FIG. 2 is a flowchart illustrating the main process of the mobile terminal device of FIG. 図3は、図1の携帯端末装置において第2制御回路で行われる異常履歴書込処理を例示するフローチャートである。FIG. 3 is a flowchart illustrating an abnormality history writing process performed by the second control circuit in the mobile terminal device of FIG. 図4は、図2のメイン処理における初期設定時の処理を示すフローチャートである。FIG. 4 is a flowchart showing a process at the time of initial setting in the main process of FIG. 図5は、携帯端末装置が、初期状態でパワーオフしている場合(図5(A))、パワーオンした状態(図5(B))データファイルをダウンロードした状態(図5(C))、パワーオフ時の処理(図5(D))へと移行する間における、FROM13,SDRAM11のメモリイメージを示すものである。FIG. 5 shows a state in which the mobile terminal device is powered off in the initial state (FIG. 5A), the power-on state (FIG. 5B), and the data file downloaded (FIG. 5C). The memory images of the FROM 13 and the SDRAM 11 during the transition to the power-off process (FIG. 5D) are shown.

[実施形態]
以下、本発明に係る携帯端末装置を具現化した実施形態について、図1を参照して説明する。
(電気的構成の概要)
図1に示す電気的構成は、例えばバーコードや二次元コードなどの情報コード(光学情報媒体)を読み取る携帯端末装置に適用するものである。携帯端末装置1は、電池3aの電源を、電源回路21を介して安定化させた3Vの動作用電源(メイン電源)により駆動される構成である。電池3aとして、例えば電圧が3.0V〜4.2Vのリチウムイオン電池を用いることができる。メイン電源は、マイクロコンピュータ(以下、マイコンともいう)7、SDRAM11、FROM(フラッシュROM)13、電圧検出回路27、リアルタイムクロックIC(RTC)25などに供給されている(但し、SDRAM11に対しては、ショットキーダイオード32を介して供給されている)。
[Embodiment]
Hereinafter, an embodiment embodying a mobile terminal device according to the present invention will be described with reference to FIG.
(Outline of electrical configuration)
The electrical configuration shown in FIG. 1 is applied to a portable terminal device that reads an information code (optical information medium) such as a barcode or a two-dimensional code. The mobile terminal device 1 is configured to be driven by a 3V operation power supply (main power supply) stabilized through a power supply circuit 21 for the power supply of the battery 3a. As the battery 3a, for example, a lithium ion battery having a voltage of 3.0V to 4.2V can be used. The main power supply is supplied to a microcomputer (hereinafter also referred to as a microcomputer) 7, SDRAM 11, FROM (flash ROM) 13, voltage detection circuit 27, real-time clock IC (RTC) 25, etc. , And supplied via a Schottky diode 32).

また、メイン電源の電圧はメイン電源電圧監視回路29により監視されるようになっており、メイン電源電圧監視回路29は、上記電圧が設定された閾値以下のレベルに低下すると(ローバッテリ)、マイコン7に対してローバッテリ検出信号を出力するようになっている。   The voltage of the main power supply is monitored by the main power supply voltage monitoring circuit 29. When the main power supply voltage monitoring circuit 29 falls to a level equal to or lower than a set threshold value (low battery), the microcomputer 7 outputs a low battery detection signal.

また、電池3aの電源は、DC/DCコンバータ(昇圧DC/DC)23を介して5Vに昇圧され、例えば容量が1.5F程度の電気2重層コンデンサで構成されるサブバッテリ3b及びリニアレギュレータ31に供給されている。リニアレギュレータ31は、5V電圧から3.1Vの電圧を生成し、ショットキーダイオード34を介して電圧検出回路27及びRTC25にバックアップ用の電源(BU3V)を供給している。そのバックアップ用の電源(BU3V)は、PチャネルMOSFET43を介してSDRAM11にも供給されている。そして、電池3aからの電力供給が停止又は低レベル状態となった時には、サブバッテリ(第2電源)3bからリニアレギュレータ31に電力が供給されるようになっている。   Further, the power source of the battery 3a is boosted to 5 V via a DC / DC converter (step-up DC / DC) 23, for example, a sub-battery 3b and a linear regulator 31 configured by an electric double layer capacitor having a capacity of about 1.5F. Has been supplied to. The linear regulator 31 generates a voltage of 3.1 V from the 5 V voltage, and supplies a backup power supply (BU3V) to the voltage detection circuit 27 and the RTC 25 via the Schottky diode 34. The backup power (BU3V) is also supplied to the SDRAM 11 via the P-channel MOSFET 43. When the power supply from the battery 3a is stopped or in a low level state, power is supplied to the linear regulator 31 from the sub battery (second power supply) 3b.

本実施形態では、電池3a及びサブバッテリ3bが電源手段の一例に相当し、SDRAM11(揮発性メモリ)及び他の電子部品に動作用の電力を供給するように機能する。また、電池3aは「第1電源」の一例に相当し、サブバッテリ3bは「第2電源」の一例に相当し、いずれもSDRAM11(揮発性メモリ)に対して電力供給を行いうるようになっており、SDRAM11(揮発性メモリ)は、電池3a(第1電源)からの電力供給が停止又は所定の低レベル状態(例えば、2.7V以下の状態)となったときに、サブバッテリ3b(第2電源)からの電力供給に基づいて記憶内容を維持するようになっている。   In this embodiment, the battery 3a and the sub-battery 3b correspond to an example of a power supply unit, and function to supply power for operation to the SDRAM 11 (volatile memory) and other electronic components. Further, the battery 3a corresponds to an example of “first power supply”, and the sub-battery 3b corresponds to an example of “second power supply”, both of which can supply power to the SDRAM 11 (volatile memory). When the power supply from the battery 3a (first power supply) is stopped or in a predetermined low level state (for example, a state of 2.7 V or less), the SDRAM 11 (volatile memory) The stored contents are maintained based on the power supply from the second power source.

また、RTC25は、バックアップ用の電源(BU3V)によって、設定された時刻データ等がバックアップされるようになっているが、バックアップ時の消費電流は例えば約10μAである。これに対して、SDRAM11のデータをリフレッシュしながらバックアップするのに必要な電流は、例えば約800μAとなっている。また、SDRAM11の動作可能電圧の下限は例えば2.7Vであり、RTC25の動作可能電圧の下限は2.7Vよりも更に低い(例えば、1.5V程度)ものとする。   The RTC 25 is configured such that the set time data is backed up by a backup power supply (BU3V), and the current consumption at the time of backup is, for example, about 10 μA. On the other hand, the current required for backup while refreshing the data in the SDRAM 11 is about 800 μA, for example. Further, the lower limit of the operable voltage of the SDRAM 11 is, for example, 2.7V, and the lower limit of the operable voltage of the RTC 25 is further lower than 2.7V (for example, about 1.5V).

PチャネルMOSFET43のゲートは、抵抗37のソース及びDフリップフロップ41のQバー出力端子に接続されている。そのDフリップフロップ41、マイコン7によりデータ及びクロックが入力され、セット/リセットが行われるようになっている。そして、Dフリップフロップ41のQ出力端子は、逆方向のダイオード33を介してマイコン7の入力ポートに接続されている。なお、ダイオード33のアノード側は抵抗39を介してメイン電源にプルアップされており、ダイオード33は、メイン電源の供給が停止されサブバッテリ3bのみがアクティブとなっている場合に、マイコン7の入力ポートに対する電流の入流を阻止するために配置されている。   The gate of the P-channel MOSFET 43 is connected to the source of the resistor 37 and the Q bar output terminal of the D flip-flop 41. Data and a clock are input by the D flip-flop 41 and the microcomputer 7 and set / reset is performed. The Q output terminal of the D flip-flop 41 is connected to the input port of the microcomputer 7 via the diode 33 in the reverse direction. The anode side of the diode 33 is pulled up to the main power supply via the resistor 39, and the diode 33 is input to the microcomputer 7 when the main power supply is stopped and only the sub battery 3b is active. It is arranged to prevent current from flowing into the port.

Dフリップフロップ41のクリア(CLR)端子(負論理)には、電圧検出回路27の検出出力信号が与えられている。電圧検出回路27は、メイン電源の供給が停止された場合に、バックアップ用の電源電圧を監視し、入力電圧が通常時の2.8Vから2.7Vに低下した場合に、検出出力信号をロウレベルに変化させるようになっている。なお、その信号出力端子は、バックアップ用の電源にプルアップされている。その時、Dフリップフロップ41はクリアされるので、PチャネルMOSFET43はオフとなる。   The detection output signal of the voltage detection circuit 27 is given to the clear (CLR) terminal (negative logic) of the D flip-flop 41. The voltage detection circuit 27 monitors the power supply voltage for backup when the supply of the main power supply is stopped. When the input voltage drops from 2.8 V in the normal state to 2.7 V, the voltage detection circuit 27 sets the detection output signal to the low level. To change. The signal output terminal is pulled up to a backup power source. At that time, since the D flip-flop 41 is cleared, the P-channel MOSFET 43 is turned off.

また、携帯端末装置1の筐体には、電池3aを筐体内部に収納、取出しする際に開閉される電池蓋(何れも図示せず)があり、マイコン7は、その電池蓋の開閉状態を検出する電池蓋開閉検出スイッチ45のオン/オフによって認識できるようになっている。また、マイコン7は、通信インターフェイス(I/F)47を介して外部のホスト49との通信が可能となっており、ホスト49よりダウンロードしたデータファイル等は、FROM13に書き込まれるようになっている。   Further, the casing of the mobile terminal device 1 has a battery lid (none of which is shown) that is opened and closed when the battery 3a is stored and taken out inside the casing, and the microcomputer 7 is in an open / closed state of the battery lid. Can be recognized by turning on / off the battery lid open / close detection switch 45 for detecting the battery. The microcomputer 7 can communicate with an external host 49 via a communication interface (I / F) 47, and a data file downloaded from the host 49 is written in the FROM 13. .

携帯端末装置1本体のパワーオン、オフをユーザが切り替えるためのパワースイッチ51の出力信号は、3入力ORゲート53を介して電源回路21に与えられていると共に、マイコン7の入力ポートにも与えられている。ORゲート53の残り2つの入力端子は、マイコン7の出力ポート、RTC25の出力端子に夫々接続されている。パワースイッチ51の押下後、マイコン7が起動すると、マイコン7からORゲート53にハイレベルを出力し、パワーオン状態を維持する。メイン電源の供給を停止してパワーオフさせる場合は、マイコン7からロウレベルを出力するようになっている。なお、RTC25は、携帯端末装置1のタイマ起動等を実現するために電源回路21を制御する。   The output signal of the power switch 51 for the user to switch on / off the power of the mobile terminal device 1 is supplied to the power supply circuit 21 via the 3-input OR gate 53 and also to the input port of the microcomputer 7. It has been. The remaining two input terminals of the OR gate 53 are connected to the output port of the microcomputer 7 and the output terminal of the RTC 25, respectively. When the microcomputer 7 is activated after the power switch 51 is pressed, a high level is output from the microcomputer 7 to the OR gate 53 and the power-on state is maintained. When the main power supply is stopped and the power is turned off, the microcomputer 7 outputs a low level. The RTC 25 controls the power supply circuit 21 in order to realize the timer activation of the mobile terminal device 1 and the like.

更に、本実施形態では、上記基本的構成に加え、第2制御回路9、EEPROM15及び補助電源5が設けられている。   Furthermore, in this embodiment, in addition to the above basic configuration, a second control circuit 9, an EEPROM 15, and an auxiliary power source 5 are provided.

第2制御回路9は、「第2制御手段」の一例に相当するものであり、マイコン7及びEEPROM15と接続され、EEPROM15に対するデータの書き込みを制御するように構成されている。また、この第2制御回路9の入力端子には、Dフリップフロップ41のQバー出力端子が接続されており、Qバー出力端子からの信号が入力されるようになっている。また、第2制御回路9は、ショットキーダイオード36を介して電力供給ラインL1から電力供給を受け得るようになっており、更に補助電源5からも電力供給を受け得るようになっている。   The second control circuit 9 corresponds to an example of “second control means”, is connected to the microcomputer 7 and the EEPROM 15, and is configured to control data writing to the EEPROM 15. Further, the Q bar output terminal of the D flip-flop 41 is connected to the input terminal of the second control circuit 9, and a signal from the Q bar output terminal is inputted. The second control circuit 9 can receive power from the power supply line L1 via the Schottky diode 36, and can also receive power from the auxiliary power source 5.

EEPROM15は、第2制御回路9及び補助電源5と接続され、第2制御回路9によってデータが書き込まれるように構成されている。なお、本構成では、異常履歴情報を記録する第2の不揮発性メモリとして、第1の不揮発性メモリであるFROM13よりも許容書き込み回数が多いEEPROM15を用いている。   The EEPROM 15 is connected to the second control circuit 9 and the auxiliary power supply 5, and is configured such that data is written by the second control circuit 9. In the present configuration, the EEPROM 15 having a larger allowable number of writing times than the FROM 13 as the first nonvolatile memory is used as the second nonvolatile memory for recording the abnormality history information.

補助電源5は、公知のコンデンサによって構成され、PチャネルMOSFET43がオン状態になっているときにメイン電源又はサブバッテリ3bによって充電されるようになっている。また、PチャネルMOSFET43がオフになって充電が停止しても、第2制御回路9によるS12の異常履歴書き込み処理(後述)が完了するまでは動作電力が確保される程度の容量となっている。この補助電源5は、「補助電源手段」の一例に相当し、電源手段(電池3a、サブバッテリ3b)による電力供給の停止後、少なくとも第2制御回路9(第2制御手段)に対して電力供給を行うように機能する。   The auxiliary power source 5 is constituted by a known capacitor, and is charged by the main power source or the sub-battery 3b when the P-channel MOSFET 43 is turned on. In addition, even when the P-channel MOSFET 43 is turned off and charging is stopped, the capacity is such that operating power is ensured until the abnormality history writing process (described later) of S12 by the second control circuit 9 is completed. . The auxiliary power supply 5 corresponds to an example of “auxiliary power supply means”, and after power supply by the power supply means (battery 3a, sub-battery 3b) is stopped, power is supplied to at least the second control circuit 9 (second control means). Functions to do the supply.

次に、本実施例の作用について説明する。
まず、メモリの状態について説明する。図5は、携帯端末装置1が、初期状態でパワーオフしている場合(図5(A))、パワーオンした状態(図5(B))データファイルをダウンロードした状態(図5(C))、パワーオフ時の処理(図5(D))へと移行する間における、FROM13,SDRAM11のメモリイメージを示すものである。
Next, the operation of this embodiment will be described.
First, the state of the memory will be described. FIG. 5 shows a state in which the mobile terminal device 1 is powered off in the initial state (FIG. 5A), the power-on state (FIG. 5B), and the data file downloaded (FIG. 5C). ) Shows memory images of the FROM 13 and the SDRAM 11 during the transition to the power-off processing (FIG. 5D).

図5(A)に示す初期状態では、FROM13には、制御プログラムが記憶されている制御プログラム領域や、その他のデータファイル等が記憶されているデータ領域があり、ファイル管理領域には、これらのデータファイルを管理するファイル管理情報(ファイル管理情報は、「管理情報」の一例に相当)が記憶されている。そして、図5(B)に示すように携帯端末装置1がパワーオンになると、FROM13のファイル管理領域がSDRAM11に転送される。また、マイコン7が動作を開始すると、SDRAM11の一部はワーク領域として使用される。   In the initial state shown in FIG. 5A, the FROM 13 has a control program area in which a control program is stored and a data area in which other data files are stored. The file management area includes these areas. File management information for managing data files (file management information corresponds to an example of “management information”) is stored. Then, as shown in FIG. 5B, when the mobile terminal device 1 is powered on, the file management area of the FROM 13 is transferred to the SDRAM 11. Further, when the microcomputer 7 starts operation, a part of the SDRAM 11 is used as a work area.

SDRAM11は、「揮発性メモリ」の一例に相当し、電力供給を受けているときにデータを記憶可能に構成され、FROM13(第1不揮発性メモリ)に記憶されたデータを管理するためのファイル管理情報(管理情報)を記憶するように機能する。また、FROM13は、「第1不揮発性メモリ」の一例に相当する。また、マイコン7は「第1制御手段」の一例に相当し、SDRAM11(揮発性メモリ)とFROM13(第1不揮発性メモリ)との間のデータ転送を制御するように機能する。   The SDRAM 11 corresponds to an example of a “volatile memory”, is configured to be able to store data when receiving power supply, and is a file management for managing data stored in the FROM 13 (first non-volatile memory). It functions to store information (management information). The FROM 13 corresponds to an example of a “first nonvolatile memory”. The microcomputer 7 corresponds to an example of “first control means”, and functions to control data transfer between the SDRAM 11 (volatile memory) and the FROM 13 (first nonvolatile memory).

また、図5(C)に示すように、ホスト49よりデータファイルをダウンロードすると、FROM13のデータ領域に対するデータファイルの追加又は更新が行われる。それに伴い、SDRAM11側のファイル管理領域の情報が更新される。そして、図5(D)に示すように、携帯端末装置1がパワーオフされる場合は、SDRAM11側のファイル管理領域の情報がFROM13側に転送される。そして、所定時間が経過すると、SDRAM11側のワーク領域の情報もFROM13側に転送される。   Further, as shown in FIG. 5C, when a data file is downloaded from the host 49, the data file is added to or updated in the data area of the FROM 13. Accordingly, the information in the file management area on the SDRAM 11 side is updated. Then, as shown in FIG. 5D, when the mobile terminal device 1 is powered off, the information in the file management area on the SDRAM 11 side is transferred to the FROM 13 side. When a predetermined time elapses, the work area information on the SDRAM 11 side is also transferred to the FROM 13 side.

図2は、主としてマイコン7により行われる制御内容を簡略的に示すフローチャートである。この制御処理では、電源回路21からのメイン電源がオンしている状態でS1以降の処理が行われる。電源オン時には初期設定を行った後、通常動作がなされる。なお、S2の初期設定については後述する。   FIG. 2 is a flowchart schematically showing the control contents mainly performed by the microcomputer 7. In this control process, the processes after S1 are performed in a state where the main power supply from the power supply circuit 21 is on. When the power is turned on, normal operation is performed after initial setting. The initial setting of S2 will be described later.

S3でNoに進み、S4でNoに進むループの間が通常動作であり、携帯端末装置1がバーコードや二次元コードなどの情報コード(光学情報媒体)を読み取る機能を有する場合にはこの機能などを実行可能となる。この場合、マイコン7は、パワースイッチ51がユーザによって操作されパワーオフ(電源オフ)に移行するか(即ち、S4Yesまで)、電池3aの抜き取りや電池3aの消耗などによりメイン電源電圧が低下して電圧監視回路10により「ローバッテリ」状態が検出されるまで(即ち、S3Yesまで)待機している。   This function is used when the mobile terminal device 1 has a function of reading an information code (optical information medium) such as a bar code or a two-dimensional code during the loop in which the process proceeds to No in S3 and proceeds to No in S4. Etc. can be executed. In this case, the microcomputer 7 has the main power supply voltage decreased due to the power switch 51 being operated by the user to shift to power off (power off) (that is, until S4 Yes) or due to the battery 3a being removed or the battery 3a being consumed. It waits until the “low battery” state is detected by the voltage monitoring circuit 10 (that is, until S3 Yes).

電源オフとなってS4でYesに進む場合には、マイコン7は、図5(D)に示すようにSDRAM11側のファイル管理領域の情報をFROM13側に転送する(S5)。例えば、ファイル管理領域の容量が32kBであるとするとデータ転送には600ms程度を要する。その後、マイコン7は、所定時間経過後に、SDRAM11のワーク領域の情報をFROM13側に転送する。例えば、ワーク領域の容量が1MB程度であればデータ転送には10秒程度を要する。それから、マイコン7は、フリップフロップ17にロウレベルデータをセットすることでFET43をオフさせ、ORゲート53にロウレベル信号を出力してメイン電源の供給を停止(オフ)させる。これにより、SDRAM11のバックアップを停止させることになる。このようにバックアップを停止させてSDRAM11上の情報が失われても、既にファイル管理領域の情報及びワーク領域の情報をFROM13に転送させているので、再度パワーオンとなった場合にFROM13側に保持されている情報をSDRAM11側に転送すれば、リジューム機能を実現することができる。   When the power is turned off and the process proceeds to Yes in S4, the microcomputer 7 transfers the information in the file management area on the SDRAM 11 side to the FROM 13 side as shown in FIG. 5D (S5). For example, if the capacity of the file management area is 32 kB, data transfer takes about 600 ms. Thereafter, the microcomputer 7 transfers the work area information of the SDRAM 11 to the FROM 13 side after a predetermined time has elapsed. For example, if the capacity of the work area is about 1 MB, data transfer takes about 10 seconds. Then, the microcomputer 7 sets the low level data in the flip-flop 17 to turn off the FET 43 and outputs a low level signal to the OR gate 53 to stop (turn off) the main power supply. As a result, the backup of the SDRAM 11 is stopped. Even if the backup is stopped and information on the SDRAM 11 is lost in this way, the file management area information and work area information are already transferred to the FROM 13, so that they are retained on the FROM 13 side when the power is turned on again. If the information is transferred to the SDRAM 11 side, the resume function can be realized.

なお、上記所定時間(例えば「10分」)は、その間に、ユーザがパワースイッチ51を操作して携帯端末装置1をパワーオンさせた場合に、前回のパワーオフ時の直前の状態をそのまま復帰させるリジューム機能を迅速に実行させるために設定している時間である。即ち、上記所定時間(例えば10分間)は、SDRAM11がバックアップされておりワーク領域の情報はそのまま保持されているので、マイコン7は、直ちにそのワーク領域の情報に基づいて動作することができる。   During the predetermined time (for example, “10 minutes”), if the user operates the power switch 51 to power on the portable terminal device 1 during that period, the state immediately before the previous power off is restored as it is. This is the time set in order to quickly execute the resume function. That is, since the SDRAM 11 is backed up and the work area information is retained as it is for the predetermined time (for example, 10 minutes), the microcomputer 7 can immediately operate based on the information on the work area.

一方、S2以降で携帯端末装置1が正常にパワーオンしている状態(メイン電源の電圧が所定値以上で維持されている場合)において、電池2の抜き取りや電池2の消耗などによりメイン電源電圧が低下してメイン電源電圧監視回路29により「ローバッテリ」状態が検出されると、S3でYesに進み、S6の処理を行う。なお、マイコン7が、検出スイッチ19により電池蓋が開放されたことを検出した場合に意図的にS3でYesに進むようにしてもよい。例えばユーザが意図的に本体の電池蓋を開いた場合や、携帯端末装置1に外力が加わることによって電池蓋が開いた場合、この場合は電池3aが収納部より取外されたり、或いは外力の衝撃により電池3aが収納部より脱落することが考えられ、メイン電源の供給が遮断される状態に移行する可能性が高い。このような場合に意図的にS3でYesと判断し、S6の処理に移行するようにしてもよい。   On the other hand, when the mobile terminal device 1 is normally powered on after S2 (when the voltage of the main power supply is maintained at a predetermined value or higher), the main power supply voltage is removed due to the removal of the battery 2, the exhaustion of the battery 2, or the like. When the “low battery” state is detected by the main power supply voltage monitoring circuit 29, the process proceeds to Yes in S3, and the process of S6 is performed. In addition, when the microcomputer 7 detects that the battery cover is opened by the detection switch 19, the microcomputer 7 may intentionally proceed to Yes in S3. For example, when the user intentionally opens the battery cover of the main body, or when the battery cover is opened by applying an external force to the mobile terminal device 1, in this case, the battery 3 a is removed from the storage unit, or the external force is It is conceivable that the battery 3a falls off from the storage portion due to the impact, and there is a high possibility that the main power supply is cut off. In such a case, it is possible to intentionally determine Yes in S3 and shift to the processing in S6.

S6の処理では、動作用電源がサブバッテリ3bに切り替えられた状態でファイル管理領域の退避動作を行う。これにより、直近のSDRAM11における重要なファイル管理用のデータをバックアップすることができる。また、S3でYesとなった以降でも、ある程度の時間はサブバッテリ12によってSDRAM11のバックアップが維持されるので、リジューム機能は有効となり、サブバッテリ12の電源がSDRAM11の動作限界電圧である2.7V未満に低下する前に電源が復帰すればリジューム機能を有効に動作させることができる。   In the process of S6, the file management area is saved in a state where the operation power source is switched to the sub battery 3b. Thereby, important file management data in the latest SDRAM 11 can be backed up. In addition, since the backup of the SDRAM 11 is maintained by the sub-battery 12 for a certain period of time even after the result of S3 becomes Yes, the resume function is effective, and the power supply of the sub-battery 12 is 2.7 V, which is the operating limit voltage of the SDRAM 11. The resume function can be effectively operated if the power supply is restored before the voltage drops below the level.

一方、サブバッテリ3bのみによってSDRAM11、RTC25、フリップフロップ17などのバックアップが行われると、サブバッテリ3bが次第に消耗してバックアップ電源電圧が次第に低下する。例えば、10分程度が経過し、SDRAM11の動作限界電圧である2.7Vを下回ると、その時点でSDRAM11のバックアップは不可能となる。この時、電圧検出回路27の検出出力はロウレベルとなって、フリップフロップ17はリセットされる。すると、FET43はオフとなり、SDRAM11に対するバックアップ電源の供給は停止される。このような場合、ファイル管理領域の退避動作は完了しているがSDRAM11のワーク領域の情報は消失してしまっているため、退避したファイル管理情報を基にワーク領域を利用してリジューム機能を実行するとシステム障害を招く懸念がある。また、直近のワーク領域の情報をFROM13に退避できないため、直近で退避したファイル管理領域の情報とFROM13の情報に基づいてリジューム機能を実行してもシステム障害を招く必要がある。そこで、本実施形態では、このような状態を履歴として残し、次回の起動時にこの履歴が存在するかを参照し、存在する場合にはFROM13に記録されたファイル管理情報を利用せずに初期設定を行うようにしている。   On the other hand, when the SDRAM 11, RTC 25, flip-flop 17 and the like are backed up only by the sub-battery 3b, the sub-battery 3b is gradually consumed and the backup power supply voltage gradually decreases. For example, when about 10 minutes have passed and the operation limit voltage of the SDRAM 11 has fallen below 2.7 V, the SDRAM 11 cannot be backed up at that time. At this time, the detection output of the voltage detection circuit 27 becomes low level, and the flip-flop 17 is reset. Then, the FET 43 is turned off, and the supply of backup power to the SDRAM 11 is stopped. In such a case, the save operation of the file management area is completed, but the work area information of the SDRAM 11 has been lost. Therefore, the resume function is executed using the work area based on the saved file management information. Then there is a concern of causing a system failure. In addition, since the information of the latest work area cannot be saved in the FROM 13, it is necessary to cause a system failure even if the resume function is executed based on the information of the file management area saved in the latest and the information of the FROM 13. Therefore, in the present embodiment, such a state is left as a history, and whether this history exists at the next start-up is referred to. If it exists, the initial setting is performed without using the file management information recorded in the FROM 13. Like to do.

(異常履歴書込み動作)
ここで、異常履歴書込み動作について説明する。図3は、図1の携帯端末装置において第2制御回路で行われる異常履歴書込処理を例示するフローチャートである。この動作は第2制御回路9によって実行されるものであり、少なくとも補助電源5の電力が維持されていれば実行できる処理である。
(Abnormal history writing operation)
Here, the abnormality history writing operation will be described. FIG. 3 is a flowchart illustrating an abnormality history writing process performed by the second control circuit in the mobile terminal device of FIG. This operation is executed by the second control circuit 9 and is a process that can be executed if at least the power of the auxiliary power supply 5 is maintained.

第2制御回路9には上述したようにDフリップフロップ41のQバー端子からの信号(Qバー信号)が入力されるようになっており、Qバー端子からの信号(Qバー信号)がロウレベルになったか否かを検出している。サブバッテリ3bの電圧が2.7Vを超えているとき(即ち、電圧検出回路27の入力電圧が2.7Vを超えているとき)には、Dフリップフロップ41のQバー端子からの信号(Qバー信号)は、ハイレベルで維持されこの場合、S11ではNoに進むことになる。一方、サブバッテリ3bの供給電圧が2.7V以下に達したときには、Dフリップフロップ41のQバー端子からの信号(Qバー信号)は、ロウレベルに切り替わり、第2制御回路9にはこれを検出してS11でYesに進むことになる。そして、第2制御回路9は、このようにDフリップフロップ41のロウレベルのQバー信号を検出したときに、EEPROM15に対し所定のフラグ情報(例えば「1」というフラグ)を書き込む。なお、この書込み動作を行うための動作電源は補助電源5となる。   As described above, the signal (Q bar signal) from the Q bar terminal of the D flip-flop 41 is input to the second control circuit 9, and the signal (Q bar signal) from the Q bar terminal is low level. It is detected whether or not. When the voltage of the sub-battery 3b exceeds 2.7V (that is, when the input voltage of the voltage detection circuit 27 exceeds 2.7V), the signal from the Q bar terminal of the D flip-flop 41 (Q The bar signal) is maintained at a high level, and in this case, the process proceeds to No in S11. On the other hand, when the supply voltage of the sub-battery 3b reaches 2.7 V or less, the signal (Q bar signal) from the Q bar terminal of the D flip-flop 41 is switched to the low level, and the second control circuit 9 detects this. Then, the process proceeds to Yes in S11. Then, when the second control circuit 9 detects the low-level Q-bar signal of the D flip-flop 41 in this way, the second control circuit 9 writes predetermined flag information (for example, a flag “1”) in the EEPROM 15. The operating power supply for performing this write operation is the auxiliary power supply 5.

本実施形態では、第2制御回路9が「判断手段」の一例に相当し、電源手段(電池3
a及びサブバッテリ3b)からSDRAM11(揮発性メモリ)への電力供給が所定の停止状態(供給電圧が2.7V以下の状態)となったか否かを判断するように機能する。また、第2制御回路9が「第2制御手段」の一例に相当し、補助電源5から電力供給を受けて動作すると共に、上記判断手段によって前記所定の停止状態になったと判断された場合に、少なくとも所定の異常履歴情報をEEPROM15(第2不揮発性メモリ)に記録するように機能する。
In the present embodiment, the second control circuit 9 corresponds to an example of “determination means”, and power supply means (battery 3
a and the sub-battery 3b) function to determine whether or not the power supply from the sub-battery 3b) to the SDRAM 11 (volatile memory) is in a predetermined stop state (a state where the supply voltage is 2.7 V or less). Further, the second control circuit 9 corresponds to an example of “second control means”, operates when supplied with power from the auxiliary power supply 5 and is determined by the determination means to have entered the predetermined stop state. It functions to record at least predetermined abnormality history information in the EEPROM 15 (second non-volatile memory).

なお、EEPROM15に書き込まれた異常履歴情報は、後述するリセット処理S23が終わったときなどにマイコン7から第2制御回路9に指示を与え、これを受けて第2制御回路8が記録内容を消去するようにすればよい。   The abnormality history information written in the EEPROM 15 gives an instruction from the microcomputer 7 to the second control circuit 9 when the reset process S23 described later is finished, and the second control circuit 8 receives the instruction and erases the recorded contents. You just have to do it.

次に、携帯端末装置1における初期設定時の処理について説明する。
図2のメイン処理における初期設定は例えば以下のように行うことができる。まず、電源回路21からの電源投入に伴い、マイコン7が第2制御回路9に指示を与え、EEPROM15の記録内容を出力させる(或いは、マイコン7がEEPROM15に直接アクセスしてもよい)。そして、EEPROM15に異常履歴情報(例えば上述の「1」のフラグ)が記録されているか否か判断する(S20)。そして、EEPROM15に異常履歴情報が記録されていると判断した場合(S20:Yes)、ユーザに異常状態の発生を報知する処理を行う(S22)。例えば、図示しない表示器などによってファイル管理情報が消去されている旨、或いはファイル管理情報をリセットする旨などのメッセージを表示したり、或いはブザーなどによって所定の音を出すなどの対応をとることができる。
Next, processing at the time of initial setting in the mobile terminal device 1 will be described.
The initial setting in the main process of FIG. 2 can be performed as follows, for example. First, in response to power-on from the power supply circuit 21, the microcomputer 7 gives an instruction to the second control circuit 9 to output the recorded contents of the EEPROM 15 (or the microcomputer 7 may directly access the EEPROM 15). Then, it is determined whether or not abnormality history information (for example, the above-mentioned “1” flag) is recorded in the EEPROM 15 (S20). When it is determined that the abnormality history information is recorded in the EEPROM 15 (S20: Yes), a process of notifying the user of the occurrence of an abnormal state is performed (S22). For example, a message indicating that the file management information has been erased or a resetting of the file management information is displayed by a display unit (not shown), or a predetermined sound is output by a buzzer or the like. it can.

本実形態では、マイコン7及び上記表示器やブザーなどが「報知手段」の一例に相当し、電源手段からの電力供給が開始された際(電源回路21からのメイン電源が投入された際)にEEPROM15(第2不揮発性メモリ)の記録内容を参照すると共に、EEPROM15(第2不揮発性メモリ)に異常履歴情報が記録されている場合に報知処理を行うように機能する。   In the present embodiment, the microcomputer 7 and the above-described display and buzzer correspond to an example of “notification means”, and when power supply from the power supply means is started (when main power from the power supply circuit 21 is turned on). In addition, the information stored in the EEPROM 15 (second non-volatile memory) is referred to, and when the abnormality history information is recorded in the EEPROM 15 (second non-volatile memory), a notification process is performed.

S22の処理の後には、ファイル管理情報をリセットし、既存のファイル管理情報に基づかない起動を行う。この場合、図5(B)のようなファイル管理情報の復帰を行わず、新たなファイル管理情報を作成する。例えば、FROMのデータ領域からSDRAMにデータを復帰させる場合には、ダウンロードの場合と同様、新たなファイル管理情報を生成、更新する。   After the process of S22, the file management information is reset, and the activation not based on the existing file management information is performed. In this case, new file management information is created without restoring the file management information as shown in FIG. For example, when data is restored from the data area of the FROM to the SDRAM, new file management information is generated and updated as in the case of downloading.

なお、電源投入時においてEEPROM15に異常履歴情報が記録されていないと判断した場合(S20:No)、上述した図5(B)のような通常設定を行い、初期設定時の処理を終了する(S21)。   If it is determined that the abnormality history information is not recorded in the EEPROM 15 when the power is turned on (S20: No), the normal setting as shown in FIG. 5B is performed, and the initial setting process is terminated ( S21).

(本構成の主な効果)
本実施形態では、データを記憶可能なFROM13(第1不揮発性メモリ)と、第1不揮発性メモリに記憶されたデータを管理するためのファイル管理情報(管理情報)が記憶されるSDRAM11(揮発性メモリ)とが設けられ、揮発性メモリと第1不揮発性メモリとの間のデータ転送をマイコン7(第1制御手段)によって制御している。この構成によれば、FROM13(第1不揮発性メモリ)へのデータのバックアップを可能としつつ、そのバックアップ情報をSDRAM11(揮発性メモリ)内で管理できるようになる。
この構成では、何ら措置を講じない場合には、何らかの理由により電源手段(電池3a及びサブバッテリ3b)からの電力が低下又は遮断してファイル管理情報(管理情報)が消去されてしまうと、例えば次回の起動時などにバックアップ情報を管理できずに不正常な起動処理がなされてしまうという問題があるが、本発明では、このような問題に対処するため、電源手段(電池3a及びサブバッテリ3b)による電力供給の停止後に少なくとも第2制御回路9(第2制御手段)に対して電力供給を行い得る補助電源5(補助電源手段)が設けられ、判断手段によって停止状態(SDRAM11(揮発性メモリ)への動作電力が維持できなくなった状態)になったと判断された場合には、補助電源5(補助電源手段)から電力供給を受けて動作する第2制御回路9(第2制御手段)により、少なくとも所定の異常履歴情報をEEPROM15(第2不揮発性メモリ)に記録している。従って、SDRAM11(揮発性メモリ)内のファイル管理情報が消失したことをEEPROM15(第2不揮発性メモリ)に異常履歴として残すことができ、次回の起動時にはこのようなファイル管理情報の消失を前提として起動することができる。例えば、上記異常履歴が残っている場合の起動時に、FROM13(第1の不揮発性メモリ)内のファイル管理情報を利用せずに起動すれば、仮にFROM13(第1の不揮発性メモリ)内の管理情報が不十分或いは不整合であってもそれに起因するシステム障害等を招くことがない。
(Main effects of this configuration)
In the present embodiment, the FROM 13 (first non-volatile memory) capable of storing data and the SDRAM 11 (volatile) storing file management information (management information) for managing the data stored in the first non-volatile memory. Memory), and data transfer between the volatile memory and the first nonvolatile memory is controlled by the microcomputer 7 (first control means). According to this configuration, the backup information can be managed in the SDRAM 11 (volatile memory) while enabling backup of data to the FROM 13 (first nonvolatile memory).
In this configuration, when no measures are taken, if for some reason the power from the power supply means (battery 3a and sub-battery 3b) is reduced or cut off and the file management information (management information) is erased, for example, There is a problem that backup information cannot be managed at the next startup or the like, and an abnormal startup process is performed. In the present invention, in order to deal with such a problem, the power supply means (battery 3a and sub-battery 3b is used). The auxiliary power supply 5 (auxiliary power supply means) capable of supplying power to at least the second control circuit 9 (second control means) after the supply of power is stopped by the determination means is provided, and the stop state (SDRAM 11 (volatile memory) is determined by the determination means. ), It is determined that the operating power has not been maintained) and the power supply is supplied from the auxiliary power source 5 (auxiliary power source means). The second control circuit 9 for (second control means), and recording at least a predetermined abnormality history information in EEPROM 15 (second nonvolatile memory). Therefore, the loss of file management information in the SDRAM 11 (volatile memory) can be left as an abnormality history in the EEPROM 15 (second non-volatile memory), and it is assumed that such file management information is lost at the next startup. Can be activated. For example, if startup is performed without using the file management information in the FROM 13 (first nonvolatile memory) at the time of startup when the abnormality history remains, the management in the FROM 13 (first nonvolatile memory) is temporarily performed. Even if the information is insufficient or inconsistent, a system failure or the like caused by the information is not caused.

また、この構成では、電源手段として、少なくとも揮発性メモリに対して電力供給を行う電池3a(第1電源)及びサブバッテリ3b(第2電源)とが設けられ、SDRAM11(揮発性メモリ)は、電池3a(第1電源)からの電力供給が停止又は所定の低レベル状態となったときに、サブバッテリ3b(第2電源)からの電力供給に基づいて記憶内容を維持するように構成されている。この構成では、電池3a(第1電源)からの電力供給がSDRAM11(揮発性メモリ)の記憶内容を維持できないレベルになった場合(例えば、瞬断などが生じる場合等)においても、サブバッテリ3b(第2電源)からの電力供給に基づいてSDRAM11(揮発性メモリ)の記憶内容を維持することができる。
このような構成において、更に、判断手段は、サブバッテリ3b(第2電源)からのSDRAM11(揮発性メモリ)への電力供給が停止状態となったか否かを判断し、第2制御回路9(第2制御手段)は、判断手段によりサブバッテリ3b(第2電源)からの電力供給が停止状態と判断された場合に、サブバッテリ3b(第2電源)とは異なる補助電源5(補助電源手段)からの電力供給に基づいてEEPROM15(第2不揮発性メモリ)に異常履歴情報を書き込むように構成されている。即ち、サブバッテリ3b(第2電源)まで不十分になったときでも、これら電池3a(第1電源)及びサブバッテリ3b(第2電源)とは異なる補助電源手段からの電力供給に基づいてEEPROM15(第2不揮発性メモリ)に異常履歴情報を書き込むことができる。特に、この構成では、サブバッテリ3b(第2電源)が十分維持されている場合にはサブバッテリ3b(第2電源)による対応が可能なものとして異常履歴の書き込み動作を行わなくて済み、サブバッテリ3b(第2電源)まで異常となったときに最終的な手段として異常履歴を書き込むことができる。
Further, in this configuration, a battery 3a (first power supply) and a sub battery 3b (second power supply) for supplying power to at least the volatile memory are provided as power supply means, and the SDRAM 11 (volatile memory) When the power supply from the battery 3a (first power supply) is stopped or when a predetermined low level state is reached, the stored contents are maintained based on the power supply from the sub-battery 3b (second power supply). Yes. In this configuration, even when the power supply from the battery 3a (first power supply) is at a level where the stored contents of the SDRAM 11 (volatile memory) cannot be maintained (for example, when an instantaneous interruption occurs), the sub battery 3b The stored contents of the SDRAM 11 (volatile memory) can be maintained based on the power supply from the (second power supply).
In such a configuration, the determination means further determines whether or not the power supply from the sub-battery 3b (second power supply) to the SDRAM 11 (volatile memory) is stopped, and the second control circuit 9 ( The second control means) has an auxiliary power supply 5 (auxiliary power supply means) different from the sub battery 3b (second power supply) when the determination means determines that the power supply from the sub battery 3b (second power supply) is stopped. The abnormality history information is written in the EEPROM 15 (second non-volatile memory) based on the power supply from (). That is, even when the sub-battery 3b (second power source) becomes insufficient, the EEPROM 15 is based on the power supply from the auxiliary power means different from the battery 3a (first power source) and the sub-battery 3b (second power source). The abnormality history information can be written in (second non-volatile memory). In particular, in this configuration, when the sub-battery 3b (second power source) is sufficiently maintained, it is not necessary to perform an operation of writing an abnormality history as the sub-battery 3b (second power source) can cope with it. When abnormality occurs up to the battery 3b (second power supply), an abnormality history can be written as a final means.

また、本実施形態では、電源手段からの電力供給が開始された際(即ち、メイン電源が装置内に供給される電源オンの際)にEEPROM15(第2不揮発性メモリ)の記録内容を参照すると共に、EEPROM15(第2不揮発性メモリ)に異常履歴情報が記録されている場合に報知処理を行う報知手段を備えている。この構成によれば、SDRAM11(揮発性メモリ)の内容が消失していることをユーザ等に知らしめることができ、ユーザ等に適切な対応を促すことができる。   Further, in the present embodiment, when the power supply from the power supply means is started (that is, when the main power supply is supplied into the apparatus), the recorded contents of the EEPROM 15 (second non-volatile memory) are referred to. At the same time, there is provided an informing means for performing an informing process when abnormality history information is recorded in the EEPROM 15 (second non-volatile memory). According to this configuration, it is possible to notify the user or the like that the content of the SDRAM 11 (volatile memory) has disappeared, and to prompt the user or the like to take an appropriate action.

また、第2不揮発性メモリが、第1不揮発性メモリよりも許容書込回数が多いメモリとなっている。この構成では、第1不揮発性メモリに対する上記異常履歴の書き込みを行わない或いは少なくすることで、第1不揮発性メモリの書き込み頻度を低減することができ、第1不揮発性メモリの寿命を長くすることができる。   Further, the second nonvolatile memory is a memory having a larger allowable number of writing times than the first nonvolatile memory. In this configuration, the frequency of writing to the first nonvolatile memory can be reduced and the life of the first nonvolatile memory can be extended by not writing or reducing the abnormality history to the first nonvolatile memory. Can do.

[他の実施形態]
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本発明の技術的範囲に含まれる。
[Other Embodiments]
The present invention is not limited to the embodiments described with reference to the above description and drawings. For example, the following embodiments are also included in the technical scope of the present invention.

揮発性メモリは、SDRAM11に限ることなく、DRAM、SRAMなどであっても良い。   The volatile memory is not limited to the SDRAM 11, but may be a DRAM, an SRAM, or the like.

また、第1不揮発性メモリは、FROMに限ることなく、公知の他種の不揮発性メモリ(EEPROM、Fe(Ferroelectric)RAM、M(Magneto resistive)RAMなど)であっても良い。   The first nonvolatile memory is not limited to the FROM, but may be another known nonvolatile memory (EEPROM, Fe (Ferroelectric) RAM, M (Magneto resistive) RAM, etc.).

また、第2不揮発性メモリは、EEPROMに限ることなく、公知の他種の不揮発性メモリ(FROM、FeRAMや、MRAMなど)であっても良い。   Further, the second non-volatile memory is not limited to the EEPROM, but may be another known non-volatile memory (FROM, FeRAM, MRAM, etc.).

携帯端末装置は、バーコードや二次元コードなどの情報コード(光学情報媒体)を読み取る構成に限ることなく、揮発性メモリ、不揮発性メモリを備えているものであれば適用が可能である。   The portable terminal device is not limited to a configuration that reads an information code (optical information medium) such as a barcode or a two-dimensional code, and can be applied to any device including a volatile memory and a nonvolatile memory.

電池3aからの電源供給が遮断される状態に移行する原因は、上記のように、携帯端末装置1の落下衝撃によって電池3aが外れるような場合、意図しない操作によって電池3aが抜かれた場合、何らかの原因で電池電圧が急激に低下する場合に限ることなく、静電気の発生によって電力供給システムが停止するような場合等、他の状況も想定することができる。   As described above, the reason why the power supply from the battery 3a is cut off is that when the battery 3a is detached due to a drop impact of the mobile terminal device 1, or when the battery 3a is removed by an unintended operation, Other situations such as a case where the power supply system stops due to the occurrence of static electricity are not limited to the case where the battery voltage rapidly decreases due to the cause.

上記実施形態では、第2制御回路9がEEPROM15に対して異常履歴情報を書込むように構成されていたが、異常履歴情報と共に転送履歴情報などを書き込むようにしてもよい。例えば、SDRAM11の消去時(サブバッテリ低下時)に、その消去時のSDRAM11のワーク領域のデータと、FROM13のデータ領域のデータが一致しており、その消去直前のファイル管理情報がFROM13に退避できれば、FROM13のファイル管理情報及びデータ領域の情報を利用して通常通りリジューム動作することができる。従って、S12において異常履歴と共に、その消去時のSDRAM11のワーク領域のデータとFROM13のデータ領域のデータが一致していることを特定しうる情報を書き込んでおけば、S23の処理のときにこれらの情報が整合していることを前提として通常処理を行うことができる。   In the above embodiment, the second control circuit 9 is configured to write the abnormality history information to the EEPROM 15, but the transfer history information and the like may be written together with the abnormality history information. For example, when the SDRAM 11 is erased (when the sub-battery is low), the data in the SDRAM 11 work area and the data area in the FROM 13 coincide with each other, and the file management information immediately before the erase can be saved in the FROM 13. The resume operation can be performed as usual by using the file management information in the FROM 13 and the information in the data area. Therefore, if information that can specify that the data in the work area of the SDRAM 11 and the data area in the FROM 13 at the time of erasure is written together with the abnormality history in S12, these data are stored in the process of S23. Normal processing can be performed on the assumption that the information is consistent.

上記実施形態では、第2制御回路9がEEPROM15への書込み動作を行うように構成されていたが、SDRAM11からEEPROM15へのデータの転送を行いうるように構成してもよい。例えば、補助電源5の容量をある程度大きく構成し、メイン電源からサブバッテリに切り替わったときにEEPROM15にファイル管理情報を書き込むように構成してもよい。   In the above embodiment, the second control circuit 9 is configured to perform the write operation to the EEPROM 15. However, the second control circuit 9 may be configured to transfer data from the SDRAM 11 to the EEPROM 15. For example, the capacity of the auxiliary power supply 5 may be increased to some extent, and the file management information may be written to the EEPROM 15 when the main power supply is switched to the sub battery.

1…携帯端末装置
3…電源手段
3a…電池(第1電源)
3b…サブバッテリ(第2電源)
5…補助電源(補助電源手段)
7…マイクロコンピュータ(第1制御手段、報知手段)
9…第2制御回路(第2制御手段)
11…SDRAM(揮発性メモリ)
13…FROM(第1不揮発性メモリ)
15…EEPROM(第2不揮発性メモリ)
27…電圧検出回路(判断手段)
DESCRIPTION OF SYMBOLS 1 ... Portable terminal device 3 ... Power supply means 3a ... Battery (1st power supply)
3b ... Sub battery (second power supply)
5. Auxiliary power supply (auxiliary power supply means)
7. Microcomputer (first control means, notification means)
9. Second control circuit (second control means)
11 ... SDRAM (volatile memory)
13 ... FROM (first nonvolatile memory)
15 ... EEPROM (second non-volatile memory)
27. Voltage detection circuit (determination means)

Claims (4)

データを記憶可能な第1不揮発性メモリと、
電力供給を受けているときにデータを記憶可能に構成され、前記第1不揮発性メモリに記憶されたデータを管理するための管理情報が記憶される揮発性メモリと、
前記揮発性メモリと前記第1不揮発性メモリとの間のデータ転送を制御する第1制御手段と、
少なくとも前記揮発性メモリ及び他の電子部品に動作用の電力を供給する電源手段と、
前記第1不揮発性メモリとは異なる第2不揮発性メモリと、
前記第2不揮発性メモリへのデータの書き込みを制御する第2制御手段と、
前記電源手段による電力供給の停止後、少なくとも前記第2制御手段に対して電力供給を行い得る補助電源手段と、
前記電源手段から前記揮発性メモリへの電力供給が所定の停止状態となったか否かを判断する判断手段と、
を備え、
前記第2制御手段は、前記補助電源手段から電力供給を受けて動作すると共に、前記判断手段によって前記停止状態になったと判断された場合に、少なくとも所定の異常履歴情報を前記第2不揮発性メモリに記録し、
前記電源手段は、少なくとも前記揮発性メモリに対して電力供給を行う第1電源及び第2電源を有し、
前記揮発性メモリは、前記第1電源からの電力供給が停止又は所定の低レベル状態となったときに、前記第2電源からの電力供給に基づいて記憶内容を維持するように構成され、
前記判断手段は、前記第2電源からの前記揮発性メモリへの電力供給が前記停止状態となったか否かを判断し、
前記第2制御手段は、前記判断手段により前記第2電源からの電力供給が前記停止状態と判断された場合に、前記第2電源とは異なる前記補助電源手段からの電力供給に基づいて前記第2不揮発性メモリに前記異常履歴情報を書き込むことを特徴とする携帯端末装置。
A first nonvolatile memory capable of storing data;
A volatile memory configured to store data when receiving power supply, and storing management information for managing the data stored in the first nonvolatile memory;
First control means for controlling data transfer between the volatile memory and the first nonvolatile memory;
Power supply means for supplying power for operation to at least the volatile memory and other electronic components;
A second non-volatile memory different from the first non-volatile memory;
Second control means for controlling writing of data to the second nonvolatile memory;
An auxiliary power supply means capable of supplying power to at least the second control means after stopping the power supply by the power supply means;
Determining means for determining whether power supply from the power supply means to the volatile memory is in a predetermined stop state;
With
The second control means operates by receiving power supply from the auxiliary power supply means, and when the determination means determines that the stop state has occurred, at least predetermined abnormality history information is stored in the second nonvolatile memory. Recorded in
The power supply means has a first power supply and a second power supply for supplying power to at least the volatile memory,
The volatile memory is configured to maintain stored contents based on the power supply from the second power supply when the power supply from the first power supply is stopped or in a predetermined low level state,
The determination means determines whether power supply from the second power source to the volatile memory is stopped.
The second control means, based on the power supply from the auxiliary power supply means different from the second power supply, when the determination means determines that the power supply from the second power supply is in the stopped state. mobile terminal you and writes the abnormality history information on the second non-volatile memory.
前記第2制御手段は、前記判断手段によって前記停止状態になったと判断された場合に、前記揮発性メモリから前記第2不揮発性メモリへのデータの転送を行うことを特徴とする請求項1に記載の携帯端末装置。   The said 2nd control means performs the transfer of the data from the said volatile memory to the said 2nd non-volatile memory, when it is judged by the said judgment means that it became the said stop state. The portable terminal device described. 前記電源手段からの電力供給が開始された際に前記第2不揮発性メモリの記録内容を参照すると共に、前記第2不揮発性メモリに前記異常履歴情報が記録されている場合に報知処理を行う報知手段を備えたことを特徴とする請求項1又は請求項2に記載の携帯端末装置。   Notification that refers to the recorded contents of the second nonvolatile memory when power supply from the power supply means is started and performs notification processing when the abnormality history information is recorded in the second nonvolatile memory The mobile terminal device according to claim 1, further comprising means. 前記第2不揮発性メモリは、前記第1不揮発性メモリよりも許容書込回数が多いメモリであることを特徴とする請求項1から請求項3のいずれか一項に記載の携帯端末装置。   The portable terminal device according to any one of claims 1 to 3, wherein the second nonvolatile memory is a memory having a larger number of allowable writes than the first nonvolatile memory.
JP2012084703A 2012-04-03 2012-04-03 Mobile terminal device Expired - Fee Related JP6019678B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012084703A JP6019678B2 (en) 2012-04-03 2012-04-03 Mobile terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012084703A JP6019678B2 (en) 2012-04-03 2012-04-03 Mobile terminal device

Publications (2)

Publication Number Publication Date
JP2013214233A JP2013214233A (en) 2013-10-17
JP6019678B2 true JP6019678B2 (en) 2016-11-02

Family

ID=49587508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012084703A Expired - Fee Related JP6019678B2 (en) 2012-04-03 2012-04-03 Mobile terminal device

Country Status (1)

Country Link
JP (1) JP6019678B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015111494A1 (en) * 2014-01-24 2015-07-30 日本碍子株式会社 Use of all-solid-state cell
WO2015170545A1 (en) 2014-05-07 2015-11-12 日本碍子株式会社 Backup system for volatile memory using all-solid-state battery
JP2016045534A (en) * 2014-08-20 2016-04-04 日本電気株式会社 Computer system, method for activating computer system, and program for computer system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62214595A (en) * 1986-03-15 1987-09-21 Hitachi Ltd Nonvolatile memory device
JP3239854B2 (en) * 1998-08-31 2001-12-17 松下電器産業株式会社 Recording and playback device
WO2009107212A1 (en) * 2008-02-28 2009-09-03 富士通株式会社 Storage device, storage controller, and method for controlling storage
JP2010009165A (en) * 2008-06-25 2010-01-14 Kyocera Mita Corp Recording apparatus, image forming apparatus, and option apparatus
JP5349104B2 (en) * 2009-03-25 2013-11-20 富士通株式会社 Electronic device and program update method

Also Published As

Publication number Publication date
JP2013214233A (en) 2013-10-17

Similar Documents

Publication Publication Date Title
JP2988866B2 (en) Computer system
JP4111890B2 (en) Uninterruptible power system
WO2011063584A1 (en) Deep standby method and device for embedded system
JP2008090436A (en) Information processor and system state control method
KR20150024800A (en) Image forming apparatus having power save function, control method thereof, and storage medium
JP6019678B2 (en) Mobile terminal device
CN101661435A (en) Data processing apparatus
CN106503542B (en) Equipment parameter rewriting prevention method, equipment and air conditioner
JPH08110821A (en) Computer
JP4682725B2 (en) Portable information terminal
CN104077547A (en) Data power down protection circuit for electronic device
JP4590543B2 (en) Game machine
US6611917B1 (en) Game machine having a high-power and low-power batteries both supplying power to drive and control circuits with power management to conserve the low-power batteries
EP0523652B1 (en) Electronic apparatus with resume function
CN115793995A (en) Pflash-only data storage method for traditional MCU
JP5795758B2 (en) Method for protecting data in non-volatile storage device
JP2008059007A (en) Semiconductor storage device
WO2003077134A1 (en) Memory rewriting apparatus
JP2007026453A5 (en)
JP6063759B2 (en) Semiconductor memory device
JP3427010B2 (en) Computer system
JP2004272309A (en) Non-volatile memory data protecting device
CN201955625U (en) Imaging box chip
JP2013171600A (en) Nonvolatile memory device
JP4655899B2 (en) Power management device, failure monitoring device, failure monitoring program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151008

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151109

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160510

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160525

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160906

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160919

R150 Certificate of patent or registration of utility model

Ref document number: 6019678

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees