JP5163335B2 - transceiver - Google Patents

transceiver Download PDF

Info

Publication number
JP5163335B2
JP5163335B2 JP2008187650A JP2008187650A JP5163335B2 JP 5163335 B2 JP5163335 B2 JP 5163335B2 JP 2008187650 A JP2008187650 A JP 2008187650A JP 2008187650 A JP2008187650 A JP 2008187650A JP 5163335 B2 JP5163335 B2 JP 5163335B2
Authority
JP
Japan
Prior art keywords
voltage
power supply
data
voltage value
value
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.)
Active
Application number
JP2008187650A
Other languages
Japanese (ja)
Other versions
JP2010028467A (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.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2008187650A priority Critical patent/JP5163335B2/en
Publication of JP2010028467A publication Critical patent/JP2010028467A/en
Application granted granted Critical
Publication of JP5163335B2 publication Critical patent/JP5163335B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Transceivers (AREA)

Description

本発明は、無線機に関する。   The present invention relates to a wireless device.

従来、オーディオ信号等を無線通信する無線機が知られている。無線機としては、無線通信端末としてのハンディ機、車載機や、無線通信を中継する中継器(固定無線局:レピータ)等がある。無線機が無線通信端末である場合に、電源としての内蔵電池又は車載バッテリーから電力供給される。また、無線機が中継器である場合に、商用交流電源電圧が直流電圧に変換されて電力供給が行われる。   Conventionally, wireless devices that wirelessly communicate audio signals and the like are known. Examples of the wireless device include a handy device as a wireless communication terminal, an in-vehicle device, and a repeater (fixed wireless station: repeater) that relays wireless communication. When the wireless device is a wireless communication terminal, power is supplied from a built-in battery or a vehicle-mounted battery as a power source. Further, when the wireless device is a repeater, the commercial AC power supply voltage is converted into a DC voltage to supply power.

無線機において、制御マイコンによる内蔵メモリに対する設定データや状態記憶データの消去又は書き込み時中に、何らかの理由で電源電圧の低下が発生することにより、直流電源の遮断或いは低下が発生することが想定される。この場合、データの消去又は書き込み途中で制御マイコン、メモリへの電源が遮断されることになるので、設定データや状態記憶データが壊れるおそれがあった。設定データや状態記憶データが壊れた場合、不要電波の送信や、規定電力以上の送信等の不具合を誘発するおそれがあり、無線機自体のソフトウェアが正常に動作しないおそれもあった。   In the wireless device, it is assumed that the power supply voltage is reduced for some reason during the erasing or writing of the setting data and the state storage data to the built-in memory by the control microcomputer. The In this case, since the power to the control microcomputer and the memory is cut off during the erasing or writing of the data, the setting data and the state storage data may be destroyed. If the setting data or the state storage data is broken, there is a risk of causing problems such as transmission of unnecessary radio waves or transmission exceeding the specified power, and there is a possibility that the software of the radio itself does not operate normally.

そこで、電源電圧を測定し、測定した電源電圧が低下した場合に、電圧の低下の旨を報知する無線機が考えられている(例えば、特許文献1、2、3、4参照)。この構成では、報知された情報に応じて、設定データや状態記憶データが壊れないようユーザが対処する必要があった。   In view of this, there has been considered a wireless device that measures a power supply voltage and notifies that the voltage has dropped when the measured power supply voltage drops (see, for example, Patent Documents 1, 2, 3, and 4). In this configuration, it is necessary for the user to deal with the setting data and the state storage data so as not to be broken in accordance with the notified information.

また、設定データや状態記憶データが壊れることを自動的に防ぐ無線機も考えられている。図3〜図5を参照して、従来の電源電圧低下時にデータが壊れることを防ぐ機能を有する無線機を説明する。一例として、無線通信端末である無線機を説明する。図3に、従来の無線機における制御マイコン10周辺の構成を示す。   A wireless device that automatically prevents setting data and state storage data from being broken is also considered. With reference to FIG. 3 to FIG. 5, a conventional radio having a function of preventing data from being damaged when the power supply voltage is lowered will be described. As an example, a wireless device that is a wireless communication terminal will be described. FIG. 3 shows a configuration around the control microcomputer 10 in a conventional wireless device.

図3に示すように、従来の無線機は、制御マイコン10、プログラム用不揮発メモリ21A、揮発メモリ22、データ用不揮発メモリ23A、電圧検出器24、直流電源25、接地部26等を備えて構成される。制御マイコン10は、CPU(Central Processing Unit)11、AD(Analog to Digital)コンバータ12、割込み要因処理回路13を有する。   As shown in FIG. 3, the conventional wireless device includes a control microcomputer 10, a program nonvolatile memory 21A, a volatile memory 22, a data nonvolatile memory 23A, a voltage detector 24, a DC power supply 25, a grounding unit 26, and the like. Is done. The control microcomputer 10 includes a CPU (Central Processing Unit) 11, an AD (Analog to Digital) converter 12, and an interrupt factor processing circuit 13.

制御マイコン10は、無線機の各部を制御する。CPU11は、プログラム用不揮発メモリ21Aから読み出されて揮発メモリ22に展開されたプログラムとの協働で各種処理を実行する。ADコンバータ12は、直流電源25から出力される直流電源のアナログの電源電圧をデジタルの電源電圧に変換し、電源電圧の電圧値をCPU11に出力する。割込み要因処理回路13は、電圧検出器24の出力信号に応じた割込み要因発生時に、割込み信号をCPU11に出力する。   The control microcomputer 10 controls each part of the wireless device. The CPU 11 executes various processes in cooperation with a program read from the program nonvolatile memory 21 </ b> A and developed in the volatile memory 22. The AD converter 12 converts the analog power supply voltage of the DC power supply output from the DC power supply 25 into a digital power supply voltage, and outputs the voltage value of the power supply voltage to the CPU 11. The interrupt factor processing circuit 13 outputs an interrupt signal to the CPU 11 when an interrupt factor corresponding to the output signal of the voltage detector 24 is generated.

プログラム用不揮発メモリ21Aは、各種プログラムが記憶されたROM(Read Only Memory)等の不揮発メモリである。プログラム用不揮発メモリ21Aは、電源供給が遮断されても記憶データ(プログラム)が消去されない。プログラム用不揮発メモリ21Aには、後述する第1の電圧低下監視プログラム又は第2の電圧低下監視プログラムが記憶されている。   The program nonvolatile memory 21A is a nonvolatile memory such as a ROM (Read Only Memory) in which various programs are stored. In the program nonvolatile memory 21A, the stored data (program) is not erased even when the power supply is cut off. The program non-volatile memory 21A stores a first voltage drop monitoring program or a second voltage drop monitoring program described later.

揮発メモリ22は、RAM(Random Access Memory)であり、プログラム、データを格納するワークエリアを有する。揮発メモリ22は、電源供給が遮断されると記憶データ(プログラム、データ)が消去される。   The volatile memory 22 is a RAM (Random Access Memory) and has a work area for storing programs and data. The volatile memory 22 erases stored data (program, data) when the power supply is cut off.

データ用不揮発メモリ23Aは、各種データが記憶されたEEPROM(Electrically Erasable and Programmable ROM)、フラッシュメモリ等の不揮発メモリである。データ用不揮発メモリ23Aは、電源供給が遮断されても記憶データが消去されない。   The data non-volatile memory 23A is a non-volatile memory such as an EEPROM (Electrically Erasable and Programmable ROM) or a flash memory in which various data are stored. Data stored in the data non-volatile memory 23A is not erased even when the power supply is cut off.

電圧検出器24は、直流電源25から出力される電源電圧を検出し、その検出電圧が予め定められた第1の閾値より小さくなった場合にローに反転し、同じく第1の閾値以上になった場合にハイに反転する出力論理の論理信号を割込み要因処理回路13に出力する。電圧検出器24は、通常の電力供給時に出力論理がハイの信号を出力し、検出電圧が第1の閾値より低下すると出力論理がローに反転され、その状態で検出電圧が第1の閾値以上に上昇すると、出力論理がハイに反転される。第1の閾値は、電圧低下したか否かの閾電圧値であり、後述する第2の電圧低下監視処理で説明するように、電圧低下の際の、データ用不揮発メモリ23Aへのデータの消去又は書き込みの中止処理の実行をするか否かの閾電圧値となる。論理信号がローになると、電圧低下によりデータ用不揮発メモリ23Aへのデータの消去又は書き込みの中止処理が実行される。   Voltage detector 24 detects the power supply voltage outputted from the DC power source 25, and inverted to a low if it becomes less than the first threshold value the detected voltage reaches a predetermined, also becomes equal to or higher than the first threshold In the case of an output, a logic signal of output logic that is inverted to high is output to the interrupt factor processing circuit 13. Voltage detector 24 outputs a normal power supply output logic high signal when the detection voltage and the output logic lower than the first threshold value is inverted to a low, the detection voltage in this state is smaller than the first threshold value As a result, the output logic is inverted high. The first threshold is the threshold voltage of whether the voltage drop, as described in the second voltage drop monitoring process to be described later, when the voltage drop, erase data to the data for the non-volatile memory 23A Alternatively, it becomes a threshold voltage value indicating whether or not to execute the write stop processing. When the logic signal becomes low, the process of erasing or writing data to the data nonvolatile memory 23A is executed due to the voltage drop.

直流電源25は、内蔵電池等の直流電源であり、無線機1の各部に直流電源電圧を出力(供給)するとともに、ADコンバータ12及び電圧検出器24に直流電源電圧を出力する。   DC power supply 25 is a DC power source such as an internal battery, and outputs the DC power supply voltage to each section of the wireless device 1 (feed), and outputs the DC power supply voltage to the AD converter 12 and the voltage detector 24.

次に、図4、図5を参照して、図3の無線機の動作を説明する。図4に、第1の電圧低下監視処理の流れを示す。図5に、第2の電圧低下監視処理の流れを示す。   Next, the operation of the radio shown in FIG. 3 will be described with reference to FIGS. FIG. 4 shows the flow of the first voltage drop monitoring process. FIG. 5 shows the flow of the second voltage drop monitoring process.

図4に示す第1の電圧低下監視処理は、ADコンバータ12により取得される電源電圧値に基づいて電源電圧を監視し、その電源電圧が低下すると、データ用不揮発メモリ23Aへの設定データ又は状態データの消去又は書き込みを中止する処理である。   The first voltage drop monitoring process shown in FIG. 4, the power supply voltage is monitored on the basis of the power supply voltage value obtained by the AD converter 12, if the power supply voltage decreases, the setting data or the state of the data for the non-volatile memory 23A This is a process of canceling data erasure or writing.

データ用不揮発メモリ23Aは、消去/書き込み時間が長いEEPROM、フラッシュメモリ等が使用される。このため、設定データ又は状態記憶データの消去/書き込みの途中で、何らかの理由で直流電源25の電圧の遮断又は低下が発生するおそれがある。この場合、データ消去又は書き込み途中で制御マイコン10及びデータ用不揮発メモリ23Aの電源が遮断されることになるので、消去/書き込み中の設定データ又は状態記憶データが壊れるおそれがあった。このため、直流電源25の電圧の遮断又は低下前に、設定データ又は状態記憶データの消去又は書き込みを中止している。   As the data non-volatile memory 23A, an EEPROM, a flash memory or the like having a long erase / write time is used. For this reason, there is a risk that the voltage of the DC power supply 25 may be interrupted or lowered for some reason during the erasing / writing of the setting data or the state storage data. In this case, the power supply to the control microcomputer 10 and the data non-volatile memory 23A is cut off during the data erasing or writing, so that the setting data or the state storage data being erased / written may be destroyed. For this reason, the erasure or writing of the setting data or the state storage data is stopped before the voltage of the DC power supply 25 is cut off or lowered.

例えば、無線機の電源がオンされたことをトリガとして、プログラム用不揮発メモリ21Aから読み出されて揮発メモリ22に展開された第1の電圧低下監視プログラムと、CPU11との協働により、第1の電圧低下監視処理が実行される。   For example, the first voltage drop monitoring program read from the program nonvolatile memory 21 </ b> A and developed in the volatile memory 22, triggered by the power on of the wireless device being turned on, and the CPU 11 cooperate with the first voltage drop monitoring program. The voltage drop monitoring process is executed.

先ず、メインルーチン処理が実行される(ステップS21)。メインルーチン処理とは、無線機内の各回路部に対する一連の動作制御処理である。そして、ステップS21で実行されたメインルーチン処理に関する設定データ又は状態データがデータ用不揮発メモリ23Aに対し消去又は書き込みされる(ステップS22)。   First, main routine processing is executed (step S21). The main routine process is a series of operation control processes for each circuit unit in the wireless device. Then, the setting data or status data related to the main routine process executed in step S21 is erased or written in the data nonvolatile memory 23A (step S22).

そして、ADコンバータ12が制御される(ステップS23)。そして、直流電源25から出力される電源電圧の電圧値がADコンバータ12から取得される(ステップS24)。そして、ステップS24において取得された電圧値が予め定められた(所定の)閾値以上であるか否かが判別される(ステップS25)。ステップS25の所定の閾値は、電圧低下の際の、データ用不揮発メモリ23Aへのデータの消去又は書き込みの中止処理を実行するか否かの閾電圧値である。   Then, the AD converter 12 is controlled (step S23). Then, the voltage value of the power supply voltage output from the DC power supply 25 is acquired from the AD converter 12 (step S24). And it is discriminate | determined whether the voltage value acquired in step S24 is more than a predetermined (predetermined) threshold value (step S25). The predetermined threshold value in step S25 is a threshold voltage value indicating whether or not to execute the data erasure or write stop processing to the data nonvolatile memory 23A when the voltage drops.

電圧値が所定の閾値以上である場合(ステップS25;YES)、ステップS21に移行される。電圧値が所定の閾値以上でない場合(ステップS25;NO)、データ用不揮発メモリ23Aへの設定データ又は状態データの消去又は書き込みの中止処理が実行され(ステップS26)、第1の電圧低下監視処理が終了する。ステップS26の実行後、直流電源25の電圧の遮断又は低下による無線機停止が発生しうる。   When the voltage value is equal to or greater than a predetermined threshold (step S25; YES), the process proceeds to step S21. If the voltage value is not equal to or greater than the predetermined threshold value (step S25; NO), the process of erasing or writing the setting data or the state data to the data nonvolatile memory 23A is executed (step S26), and the first voltage drop monitoring process Ends. After the execution of step S26, the radio can be stopped due to the interruption or reduction of the voltage of the DC power supply 25.

次いで、第1の電圧低下監視処理に代えて第2の電圧低下監視処理を実行する構成を説明する。図5に示す第2の電圧低下監視処理は、電圧検出器24の出力信号に基づいて電源電圧を監視し、電源電圧が低下すると、データ用不揮発メモリ23Aへの設定データ又は状態データの消去又は書き込みを中止する処理である。   Next, a configuration for executing the second voltage drop monitoring process instead of the first voltage drop monitoring process will be described. Second voltage drop monitoring process shown in FIG. 5, the power supply voltage is monitored on the basis of the output signal of the voltage detector 24, when the supply voltage decreases, erasing the setting data or the status data to the data for the non-volatile memory 23A or This is a process of canceling writing.

例えば、無線機の電源がオンされたことをトリガとして、プログラム用不揮発メモリ21Aから読み出されて揮発メモリ22に展開された第2の電圧低下監視プログラムと、CPU11との協働により、第2の電圧低下監視処理が実行される。   For example, the second voltage drop monitoring program read from the program nonvolatile memory 21 </ b> A and developed in the volatile memory 22, triggered by the power on of the radio being turned on, and the CPU 11 cooperate with the second voltage drop monitoring program. The voltage drop monitoring process is executed.

先ず、メインルーチン処理が実行される(ステップS31)。そして、ステップS31で実行されたメインルーチン処理に関する設定データ又は状態データがデータ用不揮発メモリ23Aに対し消去又は書き込みされ(ステップS32)、ステップS31に移行される。   First, main routine processing is executed (step S31). Then, the setting data or status data relating to the main routine process executed in step S31 is erased or written in the data nonvolatile memory 23A (step S32), and the process proceeds to step S31.

ステップS31,S32の実行中に、電圧検出器24の出力論理がローになると、割込み要因処理回路13により割込み信号がCPU11に出力され、その割込み処理に応じて割込みが発生し、データ用不揮発メモリ23Aへの設定データ又は状態データの消去又は書き込みの中止処理が実行され(ステップS33)、第2の電圧低下監視処理が終了する。
特開平3−145340号公報 特開2001−103136号公報 特開平11−168533号公報 特開平11−8938号公報
If the output logic of the voltage detector 24 becomes low during the execution of steps S31 and S32, an interrupt signal is output to the CPU 11 by the interrupt factor processing circuit 13, an interrupt is generated according to the interrupt processing, and the data nonvolatile memory The process of erasing or writing the setting data or status data to 23A is executed (step S33), and the second voltage drop monitoring process ends.
Japanese Patent Laid-Open No. 3-145340 JP 2001-103136 A JP-A-11-168533 Japanese Patent Laid-Open No. 11-8938

しかし、従来の第1の電圧低下監視処理では、データ用不揮発メモリ23Aへの設定データ又は状態データの消去又は書き込みの中止処理の実行前に、直流電源25の電圧の遮断又は低下による無線機停止が発生するおそれがあった。図6(a)に、第1の電圧低下監視処理における正常時の電源電圧値とソフトウェアの処理との流れを示す。図6(b)に、第1の電圧低下監視処理における異常時の電源電圧値とソフトウェアの処理との流れを示す。図6(a)、図6(b)の横軸において、左から右への方向を時間の経過方向とし、同じく電源電圧値の縦軸において、下から上への方向を電源電圧値の小から大への方向とし、図7〜図11でも同様であるものとする。   However, in the conventional first voltage drop monitoring process, before the execution of the process of erasing or writing the setting data or status data to the data nonvolatile memory 23A, the radio is stopped due to the interruption or reduction of the voltage of the DC power supply 25. Could occur. FIG. 6A shows the flow of the power supply voltage value and software processing at the normal time in the first voltage drop monitoring process. FIG. 6B shows a flow of the power supply voltage value and the software process at the time of abnormality in the first voltage drop monitoring process. FIG. 6 (a), the the horizontal axis of FIG. 6 (b), the course direction of the direction from left to right time, also in the longitudinal axis of the power supply voltage value, small power supply voltage value direction from bottom to top It is assumed that the direction is the same from FIG. 7 to FIG.

図6(a)に示すように、第1の電圧低下監視処理実行中、正常時には、例えばADコンバータ12の制御中(ステップS23)から、直流電源25から出力される電源電圧の低下が発生し、データ用不揮発メモリ23Aへのデータ消去又は書き込みの中止処理(ステップS26)が完了してから、無線機が停止する。   As shown in FIG. 6A, the power supply voltage output from the DC power supply 25 is reduced during the normal operation of the first voltage drop monitoring process, for example, during the control of the AD converter 12 (step S23). Then, after the data erasure or write stop processing (step S26) in the data nonvolatile memory 23A is completed, the wireless device stops.

これに対し、図6(b)に示すように、第1の電圧低下監視処理実行中、例えば、データ用不揮発メモリ23Aへのデータ消去又は書き込み中(ステップS22)から、直流電源25から出力される電源電圧の低下が発生し、データ用不揮発メモリ23Aへの消去又は書き込みの中止処理(ステップS26)が完了する前に、無線機が停止するおそれがあった。   On the other hand, as shown in FIG. 6B, during the execution of the first voltage drop monitoring process, for example, during the data erasing or writing to the data nonvolatile memory 23A (step S22), the data is output from the DC power supply 25. Therefore, there is a possibility that the wireless device may stop before the erasing or writing stop processing (step S26) in the data nonvolatile memory 23A is completed.

また、第1の電圧低下監視処理実行中、例えば、処理が重く、処理占有時間が長いメインルーチン処理(ステップS21)を行っている最中に、直流電源25から出力される電源電圧の遮断又は低下が発生し、ADコンバータ12から電圧値取得(ステップS23)、又はデータ用不揮発メモリ23Aへのデータ消去又は書き込みの中止処理(ステップS26)が完了する前に、無線機が停止するおそれがあった。   Further, during the execution of the first voltage drop monitoring process, for example, during the main routine process (step S21) where the process is heavy and the process occupation time is long, the power supply voltage output from the DC power supply 25 is cut off or There is a risk that the radio will stop before the voltage value is acquired from the AD converter 12 (step S23) or the data erasure or write stop processing (step S26) to the data nonvolatile memory 23A is completed. It was.

従来の第2の電圧低下監視処理では、上記第1の電圧低下監視処理におけるデータ用不揮発メモリ23Aへのデータ消去又は書き込みの中止処理完了前の無線機が停止が発生しない。図7に、第2の電圧低下監視処理における電源電圧値とソフトウェアの処理との流れを示す。   In the conventional second voltage drop monitoring process, the radio before the completion of the data erasure or write stop process to the data nonvolatile memory 23A in the first voltage drop monitoring process does not stop. FIG. 7 shows the flow of the power supply voltage value and the software process in the second voltage drop monitoring process.

図7に示すように、第2の電圧低下監視処理実行中、例えば、メインルーチン処理実行中(ステップS31)に、直流電源25から出力される電源電圧の低下が発生しても、割込みがなされて、データ用不揮発メモリ23Aへのデータ消去又は書き込みの中止処理(ステップS33)が実行され、その完了後に無線機が停止する。   As shown in FIG. 7, even if the power supply voltage output from the DC power supply 25 is reduced during execution of the second voltage drop monitoring process, for example, during the execution of the main routine process (step S31), an interrupt is made. Thus, a data erasure or write stop process (step S33) to the data non-volatile memory 23A is executed, and the wireless device stops after the completion.

なぜなら、第2の電圧低下監視処理では、制御マイコン10の内蔵機能である割込み要因処理回路13を使用することで、第1の電圧低下監視処理よりも著しく早く、データ用不揮発メモリ23Aへのデータ消去又は書き込みの中止処理が実行開始されるからである。   This is because the second voltage drop monitoring process uses the interrupt factor processing circuit 13, which is a built-in function of the control microcomputer 10, and is significantly faster than the first voltage drop monitoring process to transfer data to the data nonvolatile memory 23A. This is because the erasure or write stop process starts to be executed.

しかし、第2の電圧低下監視処理では、電圧低下時におけるデータ用不揮発メモリ23Aへの設定データ又は状態データの消去又は書き込みの中止処理の実行後、直流電源25からの電圧値の上昇において、電圧値が再び低下し、再度データの消去又は書き込みの中止処理が実行されるおそれがあった。図8に、電源電圧値の低下から上昇へ変化する場合の、第2の電圧低下監視処理における電源電圧値と電圧検出器24の出力論理との流れを示す。   However, in the second voltage drop monitoring process, the voltage value rise from the DC power supply 25 after the execution of the process of erasing or writing the setting data or the state data to the data nonvolatile memory 23A at the time of the voltage drop, There is a risk that the value will decrease again, and data erasure or write stop processing will be executed again. FIG. 8 shows a flow of the power supply voltage value and the output logic of the voltage detector 24 in the second voltage drop monitoring process when the power supply voltage value changes from a drop to an increase.

図8に示すように、第2の電圧低下監視処理実行時に、直流電源25から出力される電源電圧が低下し、時刻t1で電圧検出器24の出力論理がローに反転すると、割込みが発生して、データ用不揮発メモリ23Aへのデータの消去又は書き込みの中止処理が実行される。その後、直流電源25が回復し、電源電圧が上昇すると、時刻t2で電圧検出器24の出力論理がハイに反転し、メインルーチン処理が再び実行される。   As shown in FIG. 8, when the second voltage drop monitoring process is executed, an interrupt occurs when the power supply voltage output from the DC power supply 25 drops and the output logic of the voltage detector 24 is inverted to low at time t1. Thus, the process of erasing or writing data to the data nonvolatile memory 23A is executed. Thereafter, when the DC power supply 25 recovers and the power supply voltage rises, the output logic of the voltage detector 24 is inverted to high at time t2, and the main routine process is executed again.

図9に、電源電圧の上昇中における電源電圧低下発生時の、電源電圧値と電圧検出器24の出力論理との流れを示す。図8に示す時刻t2においてメインルーチン処理が実行開始されると、図9に示すように、瞬間的に直流電源25の電圧値が低下(電圧値V3)する現象が発生するおそれがある。というのは、メインルーチン処理では、図3で図示されていない無線通信の送受信部や、操作表示部等、制御マイコン10周辺以外の回路部を動作させるため、瞬間的に電流が大幅に流れてしまうからである。その結果、直流電源25から出力される電源電圧がわずかながら低下してしまう。   FIG. 9 shows the flow of the power supply voltage value and the output logic of the voltage detector 24 when a power supply voltage drop occurs while the power supply voltage is rising. When the execution of the main routine process is started at time t2 shown in FIG. 8, there is a possibility that a phenomenon occurs in which the voltage value of the DC power supply 25 instantaneously decreases (voltage value V3) as shown in FIG. This is because, in the main routine processing, a circuit other than the periphery of the control microcomputer 10 such as a wireless communication transmitter / receiver and an operation display unit not shown in FIG. Because it ends up. As a result, the power supply voltage output from the DC power supply 25 slightly decreases.

この大電流に伴う直流電源25から出力される電源電圧は、制御マイコン10周辺以外の回路部の消費電流が大きければ大きいほど、顕著に低下する傾向となり、その電圧値V3が電圧検出器24の第1の閾値を下回ると、再度制御マイコン10に割込み要因が発生され、無線機停止の処理ルーチン(ステップS33)に入ってしまうおそれがあった。   The power supply voltage output from the DC power supply 25 due to this large current tends to decrease significantly as the current consumption of the circuit units other than the periphery of the control microcomputer 10 increases, and the voltage value V3 of the voltage detector 24 When the value falls below the first threshold, an interrupt factor is generated again in the control microcomputer 10, and there is a possibility that the processing routine for stopping the radio (step S33) may be entered.

図10に、メインルーチン処理開始電圧のオフセットにおける電源電圧値と電圧検出器24の出力論理との流れを示す。図9の電源電圧値の上昇中における電源電圧値低下に基づくデータ消去又は書き込み中止処理の実行を回避するために、図10に示すように、制御マイコン10周辺以外の回路部の消費電流増加に伴う直流電源25の電圧値低下を予め見越しておき、当該電圧低下を誘発しても、電圧検出器24の第1の閾値を下回らないように、メインルーチン処理開始電圧をオフセットする方法が考えられる。メインルーチン処理開始電圧をオフセットすることで、時刻t2よりも後の時刻t3において、メインルーチン処理が実行開始され、その後の電圧低下時の電圧値V4が、電圧検出器24の第1の閾値を下回ることがない。 FIG. 10 shows the flow of the power supply voltage value and the output logic of the voltage detector 24 at the offset of the main routine process start voltage. In order to avoid the execution of data erasure or write stop processing based on a decrease in power supply voltage value while the power supply voltage value is rising in FIG. 9, as shown in FIG. A method of offsetting the main routine processing start voltage so as not to fall below the first threshold value of the voltage detector 24 even if the voltage value drop of the DC power supply 25 involved is anticipated in advance and the voltage drop is induced can be considered. . By offsetting the main routine processing start voltage, execution of the main routine processing is started at time t3 after time t2, and the voltage value V4 at the subsequent voltage drop becomes the first threshold value of the voltage detector 24. Never fall below.

ところが、電源電圧の遮断又は低下検出の目的で用いられる電圧検出器24は、電圧低下時の電圧検出精度を高めるよう調整されており、電圧低下時の電圧検出精度が高いが、電圧上昇時の電圧検出精度が低いことが一般的である。図11(a)に、電源電圧低下時の電源電圧値と電圧検出器24の出力論理とにおけるばらつきを示す。図11(b)に、電源電圧上昇時の電源電圧値と電圧検出器24の出力論理とにおけるばらつきを示す。   However, the voltage detector 24 used for the purpose of blocking or lowering the detection of the power supply voltage is adjusted so as to increase the voltage detection accuracy when the voltage drop, but high voltage detection accuracy during voltage drop, when a voltage rise Generally, the voltage detection accuracy is low. FIG. 11A shows variations in the power supply voltage value and the output logic of the voltage detector 24 when the power supply voltage drops. FIG. 11B shows variations in the power supply voltage value and the output logic of the voltage detector 24 when the power supply voltage rises.

図11(a)に示すように、直流電源25から出力される電源電圧低下時には、電圧検出器24により極めて高精度(±1%)に電圧検出され、電圧検出器24の論理反転のばらつきのゾーンZ1も比較的小さい。しかし、図11(b)に示すように、直流電源25から出力される電源電圧上昇時には、電圧検出器24により極めてラフ(±3〜8%)に電圧検出され、電圧検出器24の論理反転のばらつきのゾーンZ2も比較的大きい。回路素子の低電圧化が著しい昨今では、電圧検出器24の論理反転のばらつきも無視できないものとなっている。   As shown in FIG. 11A, when the power supply voltage output from the DC power supply 25 is lowered, the voltage detector 24 detects the voltage with extremely high accuracy (± 1%), and the variation in the logic inversion of the voltage detector 24 varies. Zone Z1 is also relatively small. However, as shown in FIG. 11B, when the power supply voltage output from the DC power supply 25 rises, the voltage detector 24 detects the voltage very roughly (± 3 to 8%), and the logic inversion of the voltage detector 24 is detected. The variation zone Z2 is also relatively large. In recent years when the voltage of circuit elements has been remarkably lowered, variations in the logic inversion of the voltage detector 24 cannot be ignored.

本発明の課題は、電源電圧上昇中における無線機の動作開始時の電圧低下発生によるデータ消去又は書き込み中止の実行を正確に防ぐことである。   It is an object of the present invention to accurately prevent execution of data erasure or write stop due to a voltage drop at the start of operation of a radio device while the power supply voltage is rising.

上記課題を解決するため、本発明の無線機は、
データの消去及び書き込みが可能な記憶部と、
電源電圧を出力する電源と、
前記電源が出力する電源電圧の電圧値を出力する電圧値出力部と、
前記電源が出力する電源電圧の電圧値が、予め定められた閾電圧値である第1の閾値より小さくなった場合又は当該第1の閾値以上になった場合に反転する論理信号を生成して出力する電圧検出部と、
前記電源電圧の電圧値が前記第1の閾値より小さくなって前記論理信号が反転したか否かを判別し、当該論理信号が反転した場合に、前記記憶部へのデータの消去又は書き込みの中止処理を実行し、前記電源電圧の電圧値が前記第1の閾値より小さくなって前記論理信号が反転した後に、前記電源電圧の電圧値が前記第1の閾値以上になって前記論理信号が反転し、且つ前記電圧値出力部から出力された電源電圧の電圧値が、前記記憶部へのデータの消去又は書き込み処理よりも消費電力の多い自機の一連の動作制御をするメインルーチン処理による電圧低下により前記電圧検出部による誤動作が発生するか否かの閾電圧値である第2の閾値以上であるか否かを判別し、当該論理信号が反転し且つ前記電源電圧の電圧値が前記第2の閾値以上である場合に、前記メインルーチン処理を実行する制御部と、を備える。
In order to solve the above problems, the wireless device of the present invention
A storage unit capable of erasing and writing data;
A power supply that outputs a power supply voltage;
And a voltage value output unit that outputs the voltage value of the power supply voltage the power supply output,
Generating a logic signal that inverts when the voltage value of the power supply voltage output from the power supply is smaller than a first threshold value that is a predetermined threshold voltage value or when the voltage value is greater than or equal to the first threshold value; A voltage detector to output;
It is determined whether or not the logic signal is inverted when the voltage value of the power supply voltage is smaller than the first threshold. When the logic signal is inverted, erasure or writing of data to the storage unit is stopped. After the processing is executed and the voltage value of the power supply voltage becomes smaller than the first threshold value and the logic signal is inverted, the voltage value of the power supply voltage becomes equal to or higher than the first threshold value and the logic signal is inverted. In addition, the voltage value of the power supply voltage output from the voltage value output unit is a voltage generated by a main routine process that controls a series of operations of the own device that consumes more power than a process of erasing or writing data to the storage unit It is determined whether or not a malfunction is caused by the voltage detection unit due to the decrease, whether or not a second threshold value that is a threshold voltage value or not, the logic signal is inverted, and the voltage value of the power supply voltage is More than 2 threshold In some cases, and a control unit for executing the main routine processing.

本発明によれば、電源電圧上昇中における無線機の動作開始時の電圧低下発生によるデータ消去又は書き込み中止の実行を正確に防ぐことができる。   According to the present invention, it is possible to accurately prevent execution of data erasure or write stop due to occurrence of a voltage drop at the start of operation of the radio device while the power supply voltage is rising.

以下、添付図面を参照して本発明に係る実施の形態を詳細に説明する。ただし、発明の範囲は、図示例に限定されない。   Embodiments according to the present invention will be described below in detail with reference to the accompanying drawings. However, the scope of the invention is not limited to the illustrated examples.

先ず、図1を参照して、本実施の形態の無線機1の装置構成を説明する。図1に、本実施の形態の無線機1の内部構成を示す。   First, the device configuration of the wireless device 1 of the present embodiment will be described with reference to FIG. FIG. 1 shows an internal configuration of radio apparatus 1 according to the present embodiment.

本実施の形態の無線機1は、無線通信端末(ハンディ機、車載機)である。無線機1は、ユーザの入力音声をオーディオ信号に変換し、そのオーディオ信号を変調して通信先の無線通信端末(又は中継器)へ無線電波として送信し、その通信先の無線通信端末(又は中継器)から送信される無線電波を受信して復調し、復調したオーディオ信号を音声出力する無線機である。   The wireless device 1 of the present embodiment is a wireless communication terminal (handy device, in-vehicle device). The wireless device 1 converts a user input voice into an audio signal, modulates the audio signal, transmits the audio signal to a wireless communication terminal (or repeater) as a communication destination, and transmits the radio signal to the wireless communication terminal (or relay device) as a communication destination. This is a radio that receives and demodulates radio waves transmitted from a repeater and outputs the demodulated audio signal as voice.

図1に示すように、無線機1は、制御マイコン10、プログラム用不揮発メモリ21、揮発メモリ22、記憶部としてのデータ用不揮発メモリ23、電圧検出部としての電圧検出器24、電源としての直流電源25、接地部26、送受信部27、操作表示部28、音声入出力部29、信号処理部30等を備えて構成される。制御マイコン10は、制御部としてのCPU11、電圧値出力部としてのADコンバータ12、割込み要因処理回路13を有する。   As shown in FIG. 1, the wireless device 1 includes a control microcomputer 10, a program nonvolatile memory 21, a volatile memory 22, a data nonvolatile memory 23 as a storage unit, a voltage detector 24 as a voltage detection unit, and a direct current as a power source. The power supply 25, the grounding part 26, the transmission / reception part 27, the operation display part 28, the audio | voice input / output part 29, the signal processing part 30, etc. are comprised. The control microcomputer 10 includes a CPU 11 as a control unit, an AD converter 12 as a voltage value output unit, and an interrupt factor processing circuit 13.

制御マイコン10は、無線機の各部を制御する。CPU11は、プログラム用不揮発メモリ21から読み出されて揮発メモリ22に展開されたプログラムとの協働で各種処理を実行する。ADコンバータ12は、直流電源25から出力される直流電源のアナログの電圧信号をデジタルの電圧信号に変換し、その電源電圧の電圧値をCPU11に出力する。割込み要因処理回路13は、電圧検出器24の出力信号に応じた割込み要因発生時に、割込み信号をCPU11に出力する。   The control microcomputer 10 controls each part of the wireless device. The CPU 11 executes various processes in cooperation with a program read from the program nonvolatile memory 21 and developed in the volatile memory 22. The AD converter 12 converts the analog voltage signal of the DC power supply output from the DC power supply 25 into a digital voltage signal, and outputs the voltage value of the power supply voltage to the CPU 11. The interrupt factor processing circuit 13 outputs an interrupt signal to the CPU 11 when an interrupt factor corresponding to the output signal of the voltage detector 24 is generated.

プログラム用不揮発メモリ21は、各種プログラムが記憶された不揮発メモリであり、ROM、EEPROM、フラッシュメモリ等により構成される。プログラム用不揮発メモリ21は、プログラム用不揮発メモリ21は、電源供給が遮断されても記憶データ(プログラム)が消去されない。プログラム用不揮発メモリ21には、後述する第2の電圧低下監視プログラム及び電圧上昇監視プログラムが記憶されている。   The program non-volatile memory 21 is a non-volatile memory in which various programs are stored, and includes a ROM, an EEPROM, a flash memory, and the like. The program nonvolatile memory 21 does not erase stored data (program) even if the power supply is cut off. The program non-volatile memory 21 stores a second voltage drop monitoring program and a voltage rise monitoring program described later.

揮発メモリ22は、プログラム、データを格納するワークエリアを有する揮発性のメモリであり、DRAM(Dynamic RAM)、SRAM(Static RAM)、SDRAM(Synchronous DRAM)等のRAMにより構成される。揮発メモリ22は、電源供給が遮断されると記憶データ(プログラム、データ)が消去される。また、DRAM、SRAM、SDRAM等のRAMは、データの消去又は書き込み時間が極めて早い。   The volatile memory 22 is a volatile memory having a work area for storing programs and data, and includes a RAM such as a DRAM (Dynamic RAM), an SRAM (Static RAM), and an SDRAM (Synchronous DRAM). The volatile memory 22 erases stored data (program, data) when the power supply is cut off. In addition, a RAM such as a DRAM, SRAM, or SDRAM has a very fast data erasing or writing time.

データ用不揮発メモリ23は、各種データが消去及び書き込み可能に記憶された不揮発メモリであり、EEPROM、フラッシュメモリ等により構成される。データ用不揮発メモリ23は、電源供給が遮断されても記憶データが消去されない。また、EEPROM、フラッシュメモリ等は、データの消去又は書き込み時間が遅い。   The data non-volatile memory 23 is a non-volatile memory in which various data are stored so as to be erasable and writable, and is configured by an EEPROM, a flash memory, or the like. Data stored in the data nonvolatile memory 23 is not erased even when the power supply is cut off. Also, EEPROM, flash memory, etc. have a slow data erasing or writing time.

また、図1に示すように、プログラム用不揮発メモリ21及びデータ用不揮発メモリ23を、1つの不揮発メモリとしてのプログラム及びデータ用不揮発メモリ21Bとして構成してもよい。   Further, as shown in FIG. 1, the program nonvolatile memory 21 and the data nonvolatile memory 23 may be configured as a program and data nonvolatile memory 21B as one nonvolatile memory.

電圧検出器24は、直流電源25の電圧を検出し、その検出電圧が予め定められた第1の閾値以上になった場合にハイとなり、同じく第1の閾値より小さくなった場合にローとなる出力論理の信号を割込み要因処理回路13に出力する。つまり、電圧検出器24は、通常の電力供給時に出力論理がハイの信号を出力し、検出電圧が第1の閾値より低下すると出力論理がローに反転され、その状態で検出電圧が第1の閾値以上に上昇すると、出力論理がハイに再度反転される。第1の閾値は、電圧低下したか否かの閾電圧値であり、第2の電圧低下監視処理で説明するように、電圧低下の際の、データ用不揮発メモリ23Aへのデータの消去又は書き込みの中止処理の実行をするか否かの閾電圧値となる。   Voltage detector 24 detects the voltage of the DC power supply 25, it goes high when it becomes more than a first threshold the detected voltage is predetermined at a low when the same becomes smaller than the first threshold value An output logic signal is output to the interrupt factor processing circuit 13. That is, the voltage detector 24, the output logic to output a high signal when normal power supply, output logic and the detection voltage becomes lower than the first threshold value is inverted to a low, the detection voltage in this state is the first When rising above the threshold, the output logic is inverted again high. The first threshold is the threshold voltage of whether the voltage drop, as described in the second voltage drop monitoring process, when the voltage drop, erasing or writing of data to the data for the non-volatile memory 23A This is the threshold voltage value for determining whether or not to execute the cancellation process.

直流電源25は、内蔵電池等の直流電源であり、接地部26に接続され、無線機1の各部に直流電源電圧を出力(供給)するとともに、ADコンバータ12及び電圧検出器24に直流電源電圧を出力する。   The DC power supply 25 is a DC power supply such as a built-in battery, is connected to the ground unit 26, and outputs (supplies) a DC power supply voltage to each part of the wireless device 1, and also supplies a DC power supply voltage to the AD converter 12 and the voltage detector 24. Is output.

送受信部27は、送信アンテナ、受信アンテナ、変調回路、復調回路等を備える。送受信部27は、制御マイコン10の制御により、信号処理部30から入力されたオーディオ信号を変調して送信アンテナから無線電波として通信先の無線通信端末又は中継器に送信し、通信先の無線機から送信された無線電波を送信アンテナにより受信して復調し、その復調したオーディオ信号を信号処理部30に出力する。   The transmission / reception unit 27 includes a transmission antenna, a reception antenna, a modulation circuit, a demodulation circuit, and the like. Transceiver 27 is controlled by the control microcomputer 10, and sends the modulated and transmit antenna input audio signal from the signal processing unit 30 to the communication destination of the wireless communication terminal or the repeater as a radio wave, the communication destination radios The radio wave transmitted from is received and demodulated by the transmission antenna, and the demodulated audio signal is output to the signal processing unit 30.

操作表示部28は、LCD(Liquid Crystal Display)等の表示部と、キーパッド等の操作部とを備える。操作表示部28は、操作部によりユーザからの操作情報入力を受け付け、その操作情報をCPU11に出力し、また制御マイコン10の表示指示に応じて、各種表示情報を表示部に表示する。   The operation display unit 28 includes a display unit such as an LCD (Liquid Crystal Display) and an operation unit such as a keypad. The operation display unit 28 receives an operation information input from the user through the operation unit, outputs the operation information to the CPU 11, and displays various display information on the display unit in accordance with a display instruction from the control microcomputer 10.

音声入出力部29は、マイク、スピーカ等を備える。音声入出力部29は、制御マイコン10の制御により、マイクによりユーザから入力された音声をオーディオ信号に変換して信号処理部30に出力し、また、信号処理部30から入力されたオーディオ信号をスピーカから音声出力する。   The voice input / output unit 29 includes a microphone, a speaker, and the like. Voice input and output unit 29 is controlled by the control microcomputer 10, and outputs to the signal processing unit 30 converts the voice input from the user by the microphone to the audio signal, also an audio signal input from the signal processing unit 30 Output audio from the speaker.

信号処理部30は、DSP(Digital Signal Processor)等を備え、音声入出力部29から入力される送信するオーディオ信号に各種信号処理を施して送受信部27に出力し、また送受信部27から入力される受信したオーディオ信号に各種信号処理を施して音声入出力部29に出力する。   The signal processing unit 30 includes a DSP (Digital Signal Processor) and the like, performs various signal processing on the audio signal to be transmitted input from the audio input / output unit 29, outputs the signal to the transmission / reception unit 27, and is input from the transmission / reception unit 27. The received audio signal is subjected to various signal processing and output to the audio input / output unit 29.

次に、図2を参照して、無線機1の動作を説明する。図2に、電圧上昇監視処理の流れを示す。   Next, the operation of the wireless device 1 will be described with reference to FIG. FIG. 2 shows the flow of the voltage rise monitoring process.

無線機1において、図5に示す第2の電圧低下監視処理が実行される。例えば、電源投入後、又は電圧検出器24の出力論理がハイに反転したことをトリガとして、プログラム用不揮発メモリ21に記憶された第2の電圧低下監視プログラムと、CPU11との協働により、第2の電圧低下監視処理が実行される。図5〜図8で説明したように、第2の電圧低下監視処理により、第2の電圧低下監視処理実行中に、直流電源25の電圧値の低下が発生しても、割込みがなされて、データ用不揮発メモリ23Aへのデータ消去又は書き込みの中止処理(ステップS33)が実行され、その完了後に無線機が停止する。   In the wireless device 1, the second voltage drop monitoring process shown in FIG. 5 is executed. For example, the second voltage drop monitoring program stored in the program nonvolatile memory 21 and the CPU 11 cooperate with the CPU 11 after the power is turned on or triggered by the output logic of the voltage detector 24 being inverted to high. No. 2 voltage drop monitoring process is executed. As described with reference to FIGS. 5 to 8, even if the voltage drop of the DC power supply 25 occurs during the execution of the second voltage drop monitoring process by the second voltage drop monitoring process, an interruption is made. Data erasure or writing stop processing (step S33) to the data non-volatile memory 23A is executed, and the wireless device stops after completion.

また、無線機1において、第2の電圧低下監視処理と平行して、電圧上昇監視処理が実行される。電圧上昇監視処理は、直流電源25の電圧上昇中のメインルーチン処理実行開始時の電圧低下による割込みを防いで、メインルーチン処理を実行する処理である。   Further, in the wireless device 1, the voltage increase monitoring process is executed in parallel with the second voltage decrease monitoring process. The voltage increase monitoring process is a process for executing the main routine process while preventing interruption due to a voltage drop at the start of the execution of the main routine process while the voltage of the DC power supply 25 is increasing.

無線機1で実行されるメインルーチン処理は、無線機1内の各回路部に対する一連の動作制御処理である。メインルーチン処理は、操作表示部28におけるユーザの操作入力の有無の監視と、送受信部27における送信電波の有無の監視と、操作表示部28における表示内容の更新と、その他の各種処理と、を含む処理である。また、このメインルーチン処理は、数msecから数十msecの時間を要する処理である。   The main routine process executed by the wireless device 1 is a series of operation control processes for each circuit unit in the wireless device 1. The main routine processing, and monitoring of the presence or absence of a user's operation input in the operation display unit 28, a monitoring of the presence of transmission waves at the transmitting and receiving unit 27, and updates the display contents of the operation display unit 28, and other various processes, the It is processing to include. Further, this main routine process is a process that requires a time of several milliseconds to several tens of milliseconds.

無線機1において、例えば、第2の電圧低下監視処理により電圧検出器24の出力論理がローに反転したことをトリガとして、プログラム用不揮発メモリ21に記憶された電圧上昇監視プログラムと、CPU11との協働により、電圧上昇監視処理が実行される。   In the wireless device 1, for example, a voltage rise monitoring program stored in the program nonvolatile memory 21 triggered by the output logic of the voltage detector 24 being inverted to low by the second voltage drop monitoring process, and the CPU 11 By the cooperation, the voltage rise monitoring process is executed.

先ず、電圧検出器24の出力論理がハイに反転したか否かが判別される(ステップS11)。電圧検出器24の出力論理がハイに反転していない場合(ステップS11;NO)、ステップS11に移行される。   First, it is determined whether or not the output logic of the voltage detector 24 has been inverted to high (step S11). When the output logic of the voltage detector 24 is not inverted to high (step S11; NO), the process proceeds to step S11.

電圧検出器24の出力論理がハイに反転した場合(ステップS11;YES)、ADコンバータ12から直流電源25の電圧値が取得され、その取得した電圧値により、電圧値が十分上昇しているか否かが判別される(ステップS12)。電圧値が十分上昇しているか否かの判別は、直流電源25の電圧値が、予め定められた第2の閾値に達しているか否かにより判別される。この第2の閾値は、制御マイコン10周辺の以外の回路部(送受信部27、操作表示部28、音声入出力部29、信号処理部30等)を動作させても、瞬間的な電流発生による電圧低下によって電圧検出器24(の論理信号)による誤動作(データ用不揮発メモリ23Aへのデータ消去又は書き込みの中止処理(S33)の実行)が発生しないか否かの電圧閾値である。   When the output logic of the voltage detector 24 is inverted to high (step S11; YES), the voltage value of the DC power supply 25 is acquired from the AD converter 12, and whether or not the voltage value is sufficiently increased by the acquired voltage value. Is determined (step S12). Whether or not the voltage value is sufficiently increased is determined based on whether or not the voltage value of the DC power supply 25 has reached a predetermined second threshold value. According to the second threshold value, the control microcomputer 10 circuit portion other than the peripheral (transceiver 27, the operation display unit 28, voice input and output unit 29, the signal processing section 30, etc.) by operating the instantaneous current generation This is a voltage threshold value as to whether or not a malfunction (the execution of the data erasure or write stop processing (S33) in the data nonvolatile memory 23A) due to the voltage detector 24 (logic signal thereof) due to the voltage drop does not occur.

電圧値が十分上昇していない場合(ステップS12;NO)、ステップS11に移行される。電圧値が十分上昇している場合(ステップS12;YES)、メインルーチン処理が実行され(ステップS13)、電圧上昇監視処理が終了する。   When the voltage value is not sufficiently increased (step S12; NO), the process proceeds to step S11. If the voltage value has increased sufficiently (step S12; YES), the main routine process is executed (step S13), and the voltage increase monitoring process ends.

以上、本実施の形態によれば、無線機1において、電圧低下時には、直流電源25から出力された電源電圧の電圧値が第1の閾値より小さくなって電圧検出器24の出力論理がローになったか否かを判別し、電圧検出器24の出力論理がローになった場合に、データ用不揮発メモリ23への設定データ又は状態記憶データの消去又は書き込みの中止処理を実行する。また、無線機1において、電圧検出器24の出力論理がローになった後に、電源電圧の電圧値が第1の閾値以上になって電圧検出器24の出力論理がハイに反転し、且つADコンバータ12から出力された電源電圧の電圧値が第2の閾値以上であるか否かを判別し、電圧検出器24の出力論理がハイになって且つ前記電源電圧の電圧値が第2の閾値以上である場合に、メインルーチン処理を実行する。このため、電圧検出器24の出力論理のばらつきによらず、電源電圧上昇中のメインルーチン処理開始時(無線機1の各回路部の動作開始時)の電圧低下発生によるデータ消去又は書き込み中止の実行を正確に防ぐことができる。   As described above, according to the present embodiment, in the wireless device 1, when the voltage drops, the voltage value of the power supply voltage output from the DC power supply 25 becomes smaller than the first threshold value and the output logic of the voltage detector 24 becomes low. When the output logic of the voltage detector 24 becomes low, the process of erasing or writing the setting data or the state storage data to the data nonvolatile memory 23 is executed. In the wireless device 1, after the output logic of the voltage detector 24 becomes low, the voltage value of the power supply voltage becomes equal to or higher than the first threshold value, the output logic of the voltage detector 24 is inverted to high, and AD It is determined whether or not the voltage value of the power supply voltage output from the converter 12 is greater than or equal to the second threshold value, the output logic of the voltage detector 24 becomes high, and the voltage value of the power supply voltage is the second threshold value. If so, main routine processing is executed. For this reason, regardless of variations in the output logic of the voltage detector 24, data erasure or write stop due to the occurrence of a voltage drop at the start of main routine processing (at the start of operation of each circuit unit of the wireless device 1) while the power supply voltage is rising. Execution can be prevented accurately.

なお、上記実施の形態における記述は、本発明に係る無線機の一例であり、これに限定されるものではない。   Note that the description in the above embodiment is an example of the wireless device according to the present invention, and the present invention is not limited to this.

上記実施の形態では、無線機1が、無線通信端末であるものとして説明したが、これに限定されるものではない。例えば、無線機1が、レピータ等の中継器であることとしてもよい。無線機1が中継器である場合には、無線機1において、音声入出力部29を備えず、送受信部27及び信号処理部30が、無線中継の送受信を行い、直流電源25、接地部26が商用交流電源から入力された交流電圧を直流電圧に変換する電源部となり、同様に、第2の電圧低下監視処理、電圧上昇監視処理が実行される。   In the above embodiment, the wireless device 1 has been described as a wireless communication terminal, but the present invention is not limited to this. For example, the wireless device 1 may be a repeater such as a repeater. When the wireless device 1 is a repeater, the wireless device 1 does not include the voice input / output unit 29, and the transmission / reception unit 27 and the signal processing unit 30 perform wireless relay transmission / reception, and the DC power supply 25 and the grounding unit 26. Becomes a power source unit that converts an AC voltage input from a commercial AC power source into a DC voltage, and similarly, a second voltage drop monitoring process and a voltage rise monitoring process are executed.

また、上記実施の形態の電圧上昇監視処理に考慮する電圧オフセット分(第2の閾値)は、制御マイコン10のソフトウェアで、操作表示部28へのユーザの操作入力により設定する構成としてもよい。この構成では、送受信部27等の各回路部の消費電流の大きさに応じて、第2の閾値を自在に指定することができて、利便性を高めることができる。   Further, the voltage offset (second threshold value) to be considered in the voltage rise monitoring process of the above embodiment may be set by the user's operation input to the operation display unit 28 by software of the control microcomputer 10. In this configuration, the second threshold value can be freely specified according to the current consumption of each circuit unit such as the transmission / reception unit 27, and convenience can be improved.

その他、上記実施の形態における無線機1の細部構成及び詳細動作に関しても、本発明の趣旨を逸脱しない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of the wireless device 1 in the above embodiment can be changed as appropriate without departing from the spirit of the present invention.

本発明に係る実施の形態の無線機の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the radio | wireless machine of embodiment which concerns on this invention. 電圧上昇監視処理を示すフローチャートである。It is a flowchart which shows a voltage rise monitoring process. 従来の無線機における制御マイコン周辺の構成を示すブロック図である。It is a block diagram which shows the structure around the control microcomputer in the conventional radio | wireless machine. 第1の電圧低下監視処理を示すフローチャートである。It is a flowchart which shows a 1st voltage drop monitoring process. 第2の電圧低下監視処理を示すフローチャートである。It is a flowchart which shows a 2nd voltage drop monitoring process. (a)は、第1の電圧低下監視処理における正常時の電源電圧値のタイミングチャートとソフトウェアの処理の流れとを示す図である。(b)は、第1の電圧低下監視処理における異常時の電源電圧値のタイミングチャートとソフトウェアの処理の流れとを示す図である。(A) is a figure which shows the timing chart of the power supply voltage value at the time of normal in a 1st voltage drop monitoring process, and the flow of a process of software. (B) is a figure which shows the timing chart of the power supply voltage value at the time of abnormality in the 1st voltage drop monitoring process, and the flow of a process of software. 第2の電圧低下監視処理における電源電圧値のタイミングチャートとソフトウェアの処理の流れとを示す図である。It is a figure which shows the timing chart of the power supply voltage value in the 2nd voltage drop monitoring process, and the flow of a software process. 電源電圧値の低下から上昇へ変化する場合の、第2の電圧低下監視処理における電源電圧値と電圧検出器の出力論理とを示すタイミングチャートである。It is a timing chart which shows the power supply voltage value and the output logic of a voltage detector in a 2nd voltage drop monitoring process in the case of changing from a fall of a power supply voltage value to a raise. 電源電圧値の上昇中における電源電圧値低下発生時の、電源電圧値と電圧検出器の出力論理とを示すタイミングチャートである。It is a timing chart which shows a power supply voltage value and the output logic of a voltage detector at the time of power supply voltage value fall generation | occurrence | production while a power supply voltage value is rising. メインルーチン処理開始電圧のオフセットにおける電源電圧値と電圧検出器の出力論理とを示すタイミングチャートである。It is a timing chart which shows the power supply voltage value in the offset of a main routine process start voltage, and the output logic of a voltage detector. (a)は、電源電圧低下時の電源電圧値と電圧検出器の出力論理とにおけるばらつきを示す図である。(b)は、電源電圧上昇時の電源電圧値と電圧検出器の出力論理とにおけるばらつきを示す図である。(A) is a figure which shows the dispersion | variation in the power supply voltage value at the time of a power supply voltage fall, and the output logic of a voltage detector. (B) is a figure which shows the dispersion | variation in the power supply voltage value at the time of a power supply voltage rise, and the output logic of a voltage detector.

符号の説明Explanation of symbols

1 無線機
10 制御マイコン
11 CPU
12 ADコンバータ
13 割込み要因処理回路
21,21A プログラム用不揮発メモリ
22 揮発メモリ
23,23A データ用不揮発メモリ
21B プログラム及びデータ用不揮発メモリ
24 電圧検出器
25 直流電源
26 接地部
27 送受信部
28 操作表示部
29 音声入出力部
30 信号処理部
1 Radio 10 Control microcomputer 11 CPU
12 AD converter 13 Interrupt factor processing circuit 21, 21 A Program nonvolatile memory 22 Volatile memory 23, 23 A Data nonvolatile memory 21 B Program and data nonvolatile memory 24 Voltage detector 25 DC power source 26 Ground unit 27 Transmitter / receiver unit 28 Operation display unit 29 Audio input / output unit 30 Signal processing unit

Claims (1)

データの消去及び書き込みが可能な記憶部と、
電源電圧を出力する電源と、
前記電源が出力する電源電圧の電圧値を出力する電圧値出力部と、
前記電源が出力する電源電圧の電圧値が、予め定められた閾電圧値である第1の閾値より小さくなった場合又は当該第1の閾値以上になった場合に反転する論理信号を生成して出力する電圧検出部と、
前記電源電圧の電圧値が前記第1の閾値より小さくなって前記論理信号が反転したか否かを判別し、当該論理信号が反転した場合に、前記記憶部へのデータの消去又は書き込みの中止処理を実行し、前記電源電圧の電圧値が前記第1の閾値より小さくなって前記論理信号が反転した後に、前記電源電圧の電圧値が前記第1の閾値以上になって前記論理信号が反転し、且つ前記電圧値出力部から出力された電源電圧の電圧値が、前記記憶部へのデータの消去又は書き込み処理よりも消費電力の多い自機の一連の動作制御をするメインルーチン処理による電圧低下により前記電圧検出部による誤動作が発生するか否かの閾電圧値である第2の閾値以上であるか否かを判別し、当該論理信号が反転し且つ前記電源電圧の電圧値が前記第2の閾値以上である場合に、前記メインルーチン処理を実行する制御部と、を備える無線機。
A storage unit capable of erasing and writing data;
A power supply that outputs a power supply voltage;
A voltage value output unit that outputs a voltage value of a power supply voltage output by the power supply;
Generating a logic signal that inverts when the voltage value of the power supply voltage output from the power supply is smaller than a first threshold value that is a predetermined threshold voltage value or when the voltage value is greater than or equal to the first threshold value; A voltage detector to output;
It is determined whether or not the logic signal is inverted when the voltage value of the power supply voltage is smaller than the first threshold. When the logic signal is inverted, erasure or writing of data to the storage unit is stopped. After the processing is executed and the voltage value of the power supply voltage becomes smaller than the first threshold value and the logic signal is inverted, the voltage value of the power supply voltage becomes equal to or higher than the first threshold value and the logic signal is inverted. In addition, the voltage value of the power supply voltage output from the voltage value output unit is a voltage generated by a main routine process that controls a series of operations of the self-machine that consumes more power than a process of erasing or writing data to the storage unit. It is determined whether or not a malfunction is caused by the voltage detection unit due to the decrease, whether or not a second threshold value that is a threshold voltage value or not, the logic signal is inverted, and the voltage value of the power supply voltage is the first voltage value. More than 2 threshold In some cases, radio and a control unit for executing the main routine processing.
JP2008187650A 2008-07-18 2008-07-18 transceiver Active JP5163335B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008187650A JP5163335B2 (en) 2008-07-18 2008-07-18 transceiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008187650A JP5163335B2 (en) 2008-07-18 2008-07-18 transceiver

Publications (2)

Publication Number Publication Date
JP2010028467A JP2010028467A (en) 2010-02-04
JP5163335B2 true JP5163335B2 (en) 2013-03-13

Family

ID=41733868

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008187650A Active JP5163335B2 (en) 2008-07-18 2008-07-18 transceiver

Country Status (1)

Country Link
JP (1) JP5163335B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5949350A (en) * 1982-09-13 1984-03-21 Nippon Denso Co Ltd Contents protection method for backup memory of car controlling computer
JPH04178854A (en) * 1990-11-14 1992-06-25 Sharp Corp Electronic apparatus having memory protective function
JPH0535614A (en) * 1991-07-30 1993-02-12 Toshiba Corp Back-up device
JPH05233474A (en) * 1992-02-18 1993-09-10 Nec Corp Storage contents protection system
JP2002030988A (en) * 2000-07-17 2002-01-31 Denso Corp Electronic control device
JP4066381B2 (en) * 2005-03-01 2008-03-26 三菱電機株式会社 In-vehicle electronic control unit

Also Published As

Publication number Publication date
JP2010028467A (en) 2010-02-04

Similar Documents

Publication Publication Date Title
KR101493776B1 (en) Methods of operating wireless memory device according to power state and method thereof
JP4383480B2 (en) Mobile communication terminal and transmission power control method in mobile communication terminal
CA2868547C (en) Power delivery including out-of-band communication
JP5163335B2 (en) transceiver
US11368923B2 (en) Wireless communication apparatus, electronic timepiece, transmission power control method, and storage medium
JP2014090369A5 (en)
CN112787378A (en) Charging method and earphone charging box
CN109426324B (en) Power-on control method, AP chip and mobile terminal
JP5925636B2 (en) Wireless communication apparatus and communication system
JP2013122690A (en) Ic card, portable electronic device and ic card control method
JP4784358B2 (en) Wireless communication device
JP4779040B2 (en) RFID tag reading method
US8811913B2 (en) RF calibration data management in portable device
JP5602075B2 (en) PORTABLE ELECTRONIC DEVICE, COMMUNICATION METHOD USED FOR IC CARD AND PORTABLE ELECTRONIC DEVICE
CN112261712A (en) Power regulation method and device
JP2007110286A (en) Mobile terminal, power supply control method, and computer program
JP5534969B2 (en) IC card, communication system, and communication method used for IC card
JP4872721B2 (en) Portable terminal, IMEI management method, and IMEI management program
CN112752235B (en) OBU detection method, OBU, ETC system, vehicle and storage medium
JP4622969B2 (en) RF tag reader and RF tag system
JP4429828B2 (en) Mobile communication device with contactless card
JP2012027667A (en) Portable electronic device, ic card, and control method for portable electronic device
JPH06232827A (en) Radio alarming method
JP2008199099A (en) Wireless apparatus, wireless communication system, transmission output control method, and transmission output control program
JP2009276875A (en) Battery driven information processor, battery driven information processing method, battery driven information processing program, recording medium recording battery driven information processing program and battery driven information processing integrated circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100922

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110825

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20111012

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120530

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120612

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120801

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: 20121120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121203

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151228

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5163335

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150