Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4882711B2 - Computer operation mode control circuit - Google Patents
[go: Go Back, main page]

JP4882711B2 - Computer operation mode control circuit - Google Patents

Computer operation mode control circuit Download PDF

Info

Publication number
JP4882711B2
JP4882711B2 JP2006327703A JP2006327703A JP4882711B2 JP 4882711 B2 JP4882711 B2 JP 4882711B2 JP 2006327703 A JP2006327703 A JP 2006327703A JP 2006327703 A JP2006327703 A JP 2006327703A JP 4882711 B2 JP4882711 B2 JP 4882711B2
Authority
JP
Japan
Prior art keywords
voltage value
value
computer
sleep mode
limit voltage
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
JP2006327703A
Other languages
Japanese (ja)
Other versions
JP2008140279A (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.)
Teac Corp
Original Assignee
Teac 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 Teac Corp filed Critical Teac Corp
Priority to JP2006327703A priority Critical patent/JP4882711B2/en
Publication of JP2008140279A publication Critical patent/JP2008140279A/en
Application granted granted Critical
Publication of JP4882711B2 publication Critical patent/JP4882711B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Description

本発明はコンピュータの動作モード制御回路に関し、特にスリープモード(あるいはスタンバイモード)と通常モード間の移行に関する。   The present invention relates to a computer operation mode control circuit, and more particularly to transition between a sleep mode (or standby mode) and a normal mode.

オーディオアンプ等の機器において、アナログ回路への外乱を極力抑えてノイズを防止するため、あるいは消費電力を抑制するために、機器内部の複数のマイクロコンピュータ(以下、「マイコン」と略称する)の中で現在の動作ないし機能に直接関係しないマイコンを通常モードからスリープモードに移行させることが行われている。   In a device such as an audio amplifier, in order to suppress disturbance to an analog circuit as much as possible to prevent noise or to reduce power consumption, a plurality of microcomputers (hereinafter referred to as “microcomputers”) inside the device. Therefore, a microcomputer that is not directly related to the current operation or function is shifted from the normal mode to the sleep mode.

一方、スリープモードに移行したマイコンの通常モードへの復帰は、外部割込み端子を使用し、ロジックレベルでの変化をマイコンが検知することで行われる。下記の特許文献には、キースイッチの操作を検出することで割込み命令によりスリープモードを解除することが記載されている。   On the other hand, the microcomputer that has shifted to the sleep mode is returned to the normal mode by using the external interrupt terminal and detecting the change at the logic level by the microcomputer. The following patent document describes that the sleep mode is canceled by an interrupt instruction by detecting the operation of a key switch.

特開平7−13671号公報JP-A-7-13671

ここで、機器のパネルに可変抵抗式のボリュームが設けられており、このボリューム位置に対して、特定の処理をマイコンが行う場合を想定する。つまり、ボリューム位置をマイコンに内蔵されたA/Dコンバータを用いて数値化して把握し、数値に応じた処理を行う場合である。この場合においても、マイコンを通常モードからスリープモードに移行させることでノイズ抑制あるいは消費電力抑制を図ることが考えられるが、現在のボリューム位置をA/Dコンバータを用いてマイコンに取り込む構成とした場合、取り込まれた数値が以前に比べて変化しているか否かを判断し続なければならず、結局、通常モードからスリープモードに移行することができない問題がある。もちろん、強制的にスリープモードに移行させることも可能であるが、スリープモードを継続することができなくなる。このような問題は、ボリュームのみならず、任意のアナログスイッチあるいはアナログセンサを用いた場合にも生じ得る。   Here, it is assumed that a variable resistance type volume is provided on the panel of the device, and the microcomputer performs a specific process for this volume position. That is, it is a case where the volume position is digitized and grasped using an A / D converter built in the microcomputer, and processing corresponding to the numerical value is performed. Even in this case, it may be possible to suppress noise or power consumption by shifting the microcomputer from the normal mode to the sleep mode. However, when the current volume position is taken into the microcomputer using the A / D converter. Therefore, it is necessary to continue to determine whether or not the captured numerical value has changed compared to the previous value, and there is a problem that it is not possible to shift from the normal mode to the sleep mode. Of course, it is possible to forcibly shift to the sleep mode, but the sleep mode cannot be continued. Such a problem can occur not only with the volume but also with any analog switch or analog sensor.

本発明は、ボリューム等のアナログセンサの検出値に基づいて動作するコンピュータをスリープモードに移行でき、かつスリープモードから通常モードに復帰させることが可能な回路を提供することにある。   An object of the present invention is to provide a circuit that can shift a computer that operates based on a detection value of an analog sensor such as a volume to a sleep mode and can return from a sleep mode to a normal mode.

本発明は、アナログセンサの検出値を入力ポートから取り込み、前記検出値に応じて動作するコンピュータをスリープモードから通常モードに復帰させる制御回路であって、前記コンピュータがスリープモードに移行するときの前記アナログセンサの検出値を基準値として取得して前記入力ポートに供給する取得手段と、前記コンピュータが前記スリープモードに移行した後において、前記アナログセンサの検出値と、前記基準値に基づいて設定された、前記アナログセンサの検出値が変化したものと判定するための判定しきい値とを比較する比較手段と、前記比較手段での比較結果に応じて前記コンピュータの割込み入力ポートに対して通常モードに復帰させるための復帰信号を割込み信号として供給する供給手段とを有し、前記判定しきい値は、上限しきい値と下限しきい値とを有し、前記上限しきい値と下限しきい値の少なくともいずれかは、前記コンピュータが前記スリープモードに移行するときに前記基準値に基づいて設定して出力ポートから出力し、出力後に前記スリープモードに移行することを特徴とする。 The present invention is a control circuit that takes in a detection value of an analog sensor from an input port, and returns a computer that operates in accordance with the detection value from a sleep mode to a normal mode. acquiring means for supplying to the input port detection value of the analog sensor to obtain a reference value, after which the computer has shifted to the sleep mode, the detected value of the analog sensor, is set based on the reference value In addition, a comparison unit that compares a determination threshold value for determining that the detection value of the analog sensor has changed, and a normal mode for the interrupt input port of the computer according to the comparison result of the comparison unit Supply means for supplying a return signal for returning to an interrupt signal as an interrupt signal. The value has an upper threshold and a lower threshold, and at least one of the upper threshold and the lower threshold is based on the reference value when the computer enters the sleep mode. It sets and outputs from an output port, It shifts to the sleep mode after outputting, It is characterized by the above-mentioned .

また、本発明は、アナログセンサの検出値を入力ポートから取り込み、前記検出値に応じて動作するコンピュータをスリープモードから通常モードに復帰させる制御回路であって、前記コンピュータがスリープモードに移行するときの前記アナログセンサの検出値に応じた電圧値を基準電圧値として取得して前記入力ポートに供給する取得手段と、前記コンピュータが前記スリープモードに移行した後において、前記アナログセンサの検出値に対応する電圧値と、前記基準電圧値に対して所定のマージンを付加して設定された上限電圧値と下限電圧値とをそれぞれ比較する比較手段であって、前記上限電圧値、前記下限電圧値、前記基準電圧値の少なくともいずれかは前記コンピュータが前記スリープモードに移行するときに設定して出力ポートから出力し、出力後に前記スリープモードに移行するものである、比較手段と、前記アナログセンサの検出値に対応する電圧値が前記上限電圧値を超える場合、あるいは前記下限電圧値を下回る場合に前記コンピュータの割込み入力ポートに対して通常モードに復帰させるための復帰信号を割込み信号として供給する供給手段とを有することを特徴とする。 Further, the present invention is a control circuit that takes in a detection value of an analog sensor from an input port and returns a computer that operates according to the detection value from a sleep mode to a normal mode, and when the computer shifts to a sleep mode said obtaining means is supplied to the input port a voltage value corresponding to the detected value of the analog sensor to obtain a reference voltage value, after which the computer has shifted to the sleep mode, corresponding to the detection value of the analog sensor And a comparison means for comparing the upper limit voltage value and the lower limit voltage value set by adding a predetermined margin to the reference voltage value, the upper limit voltage value, the lower limit voltage value, At least one of the reference voltage values is set when the computer enters the sleep mode, and the output voltage is set. Output from the bets, the is to shift to the sleep mode after the output, and comparison means, if the voltage value corresponding to the detected value of the analog sensor exceeds the upper limit voltage value, or if less than the lower limit voltage value Supply means for supplying a return signal for returning to the normal mode to the interrupt input port of the computer as an interrupt signal.

本発明によれば、簡易な構成で現在のアナログセンサの状態を監視してコンピュータに割込み信号を供給することができる。したがって、コンピュータは常に現在のアナログセンサの状態を監視する必要がなく、通常モードからスリープモードに移行し、かつ、スリープモードから通常モードに復帰することができる。   According to the present invention, an interrupt signal can be supplied to a computer by monitoring the current state of an analog sensor with a simple configuration. Therefore, the computer does not always have to monitor the current state of the analog sensor, can shift from the normal mode to the sleep mode, and can return from the sleep mode to the normal mode.

以下、図面に基づき本発明の実施形態について、機器のパネルに設けられたボリュームを例にとり説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings, taking as an example a volume provided on a panel of a device.

<第1実施形態>
図1に、本実施形態における制御回路の構成を示す。制御回路は、マイコン10とボリューム12との間に設けられ、ローパスフィルタ(LPF)14、A/Dコンバータ16、D/Aコンバータ18,20、コンパレータ22、24及び論理和ゲート(ORゲート)26を含んで構成される。
<First Embodiment>
FIG. 1 shows a configuration of a control circuit in the present embodiment. The control circuit is provided between the microcomputer 10 and the volume 12, and includes a low-pass filter (LPF) 14, an A / D converter 16, D / A converters 18 and 20, comparators 22 and 24, and an OR gate (OR gate) 26. It is comprised including.

ボリューム12の位置に応じた入力電圧は、LPF14を介してA/Dコンバータ16に供給される。A/Dコンバータ16は、ボリューム位置に応じた入力電圧をデジタル値に変換して入力ポートからマイコン10に供給する。マイコン10は、一定時間の無操作状態を検出することで通常モードからスリープモードに移行するが、スリープモードに移行するとき、より正確には移行する直前のデジタル値をA/Dコンバータ16から取り込む。また、マイコン10は、スリープモードに移行するときのデジタル値に対し、ボリューム12が操作されたと認識できる電圧値を設定する。設定する電圧値は、上限電圧値と下限電圧値である。直前のデジタル値をVxとした場合、所定の値δを用いて、上限電圧値VH=Vx+δ、下限電圧値VL=Vx−δと設定する。上限電圧値VHはこれを超えた場合にボリューム12が上側に操作されたと判定するためのしきい値であり、下限電圧値はこれを下回った場合にボリューム12が下側に操作されたと判定するためのしきい値である。ボリューム12の位置に応じた入力電圧が上限電圧値と下限電圧値の間である場合、実質的にボリューム12は操作されていないとみなす。すなわち、所定値δはボリューム12が操作されたか否かを判定するためのマージンである。マイコン10は、これらの電圧値VH、VLを設定した後、出力ポートからVH及びVLを出力して通常モードからスリープモードに移行する。スリープモードから通常モードへの復帰は、割込み入力ポートからの割込み信号により実行され、入力ポートから入力されるデジタル値の変化により実行されるわけではないので、マイコン10は常に入力ポートからデジタル値を取り込む必要はなく、したがって上限電圧値VHと下限電圧値VLを設定して出力ポートから出力した後は、通常モードからスリープモードに移行することができる。   An input voltage corresponding to the position of the volume 12 is supplied to the A / D converter 16 via the LPF 14. The A / D converter 16 converts an input voltage corresponding to the volume position into a digital value and supplies the digital value to the microcomputer 10 from the input port. The microcomputer 10 shifts from the normal mode to the sleep mode by detecting a non-operation state for a certain time. However, when the microcomputer 10 shifts to the sleep mode, the digital value immediately before the shift is captured from the A / D converter 16 more accurately. . Further, the microcomputer 10 sets a voltage value that can be recognized that the volume 12 has been operated with respect to the digital value when shifting to the sleep mode. The voltage values to be set are an upper limit voltage value and a lower limit voltage value. When the immediately preceding digital value is Vx, the predetermined voltage δ is used to set the upper limit voltage value VH = Vx + δ and the lower limit voltage value VL = Vx−δ. The upper limit voltage value VH is a threshold value for determining that the volume 12 has been operated upward when the upper limit voltage value VH is exceeded, and the lower limit voltage value is determined that the volume 12 has been operated downward when it is below this value. For the threshold. When the input voltage corresponding to the position of the volume 12 is between the upper limit voltage value and the lower limit voltage value, the volume 12 is substantially regarded as not being operated. That is, the predetermined value δ is a margin for determining whether or not the volume 12 has been operated. After setting these voltage values VH and VL, the microcomputer 10 outputs VH and VL from the output port and shifts from the normal mode to the sleep mode. Since the return from the sleep mode to the normal mode is performed by an interrupt signal from the interrupt input port and not by a change in the digital value input from the input port, the microcomputer 10 always outputs the digital value from the input port. Therefore, after the upper limit voltage value VH and the lower limit voltage value VL are set and output from the output port, the normal mode can be shifted to the sleep mode.

マイコン10の出力ポートから出力された上限電圧値VH及び下限電圧値VLはそれぞれD/Aコンバータ18,20でアナログ電圧値に変換され、コンパレータ22,24の一方の端子に供給される。すなわち、上限電圧値VH(アナログ値)はコンパレータ22の反転入力端子(−)に供給され、下限電圧値(アナログ値)はコンパレータ24の非反転入力端子(+)に供給される。コンパレータ22の非反転入力端子(+)及びコンパレータ24の反転入力端子(−)にはボリューム12の現在の入力電圧値が供給される。コンパレータ22,24は、マイコン10がスリープモードに移行した後に常時、上限電圧値VHと入力電圧値、下限電圧値VLと入力電圧値をそれぞれ比較し、比較結果をVA信号、VB信号としてORゲート26に出力する。コンパレータ22,24は、非反転入力端子の電圧値が反転入力端子の電圧値よりも大きい場合にHi、小さい場合にLowとなる信号を出力する。ORゲート26は、VA信号とVB信号の論理和を演算し、演算結果を割込み信号Vとしてマイコン10の割込み入力ポートに供給する。コンパレータ22,24のいずれかがHiとなる、つまり、ボリューム12の現在の位置に応じた入力電圧が上限電圧値VHを超えた場合、あるいはボリューム12の現在の位置に応じた入力電圧が下限電圧値VLを下回った場合にORゲート26の演算結果である割込み信号VはHiとなり、マイコン10は割込み信号がHiとなることでスリープモードから通常モードに復帰する。 The upper limit voltage value VH and the lower limit voltage value VL output from the output port of the microcomputer 10 are converted into analog voltage values by the D / A converters 18 and 20, respectively, and supplied to one terminal of the comparators 22 and 24. That is, the upper limit voltage value VH (analog value) is supplied to the inverting input terminal (−) of the comparator 22, and the lower limit voltage value (analog value) is supplied to the non-inverting input terminal (+) of the comparator 24. The current input voltage value of the volume 12 is supplied to the non-inverting input terminal (+) of the comparator 22 and the inverting input terminal (−) of the comparator 24. The comparators 22 and 24 always compare the upper limit voltage value VH and the input voltage value, and the lower limit voltage value VL and the input voltage value, respectively, after the microcomputer 10 shifts to the sleep mode, and OR the comparison results as the VA signal and the VB signal. 26. The comparators 22 and 24 output a signal that becomes Hi when the voltage value of the non-inverting input terminal is larger than the voltage value of the inverting input terminal and becomes Low when the voltage value is smaller. OR gate 26 calculates the logical sum of the VA signal and the VB signal, and supplies the interrupt input port of the microcomputer 10 a calculation result as an interrupt signal V Y. One of the comparators 22 and 24 becomes Hi, that is, when the input voltage corresponding to the current position of the volume 12 exceeds the upper limit voltage value VH, or the input voltage corresponding to the current position of the volume 12 is the lower limit voltage. interrupt signal V Y becomes Hi when it falls below the value VL which is the operation result of the OR gate 26, the microcomputer 10 returns from the sleep mode to the normal mode by an interrupt signal is Hi.

図2に、入力電圧値と上限電圧値VH=Vx+δ及び下限電圧値VL=Vx−δとの大小関係と、大小関係に応じた論理値表を示す。入力電圧値が上限電圧値VHと下限電圧値VLの間である場合、割込み信号VはLowのままでありマイコン10はスリープモードを継続する。ユーザがボリューム12を操作して入力電圧値が上限電圧値VHを超えるか、下限電圧値VLを下回った場合、割込み信号VがHiとなってマイコン10は通常モードに復帰し、ボリューム12の現在の位置に応じた処理を実行する。 FIG. 2 shows a magnitude relationship between the input voltage value, the upper limit voltage value VH = Vx + δ and the lower limit voltage value VL = Vx−δ, and a logical value table corresponding to the magnitude relationship. If the input voltage value is between the upper limit voltage value VH and the lower limit voltage value VL, the interrupt signal V Y remains at is the microcomputer 10 of the Low continues the sleep mode. When the user operates the volume 12 and the input voltage value exceeds the upper limit voltage value VH or falls below the lower limit voltage value VL, the interrupt signal VY becomes Hi and the microcomputer 10 returns to the normal mode, and the volume 12 The process according to the current position is executed.

本実施形態では、A/Dコンバータ16とD/Aコンバータ18とD/Aコンバータ20を制御回路の一部として説明しているが、マイコン10に内蔵されたA/Dコンバータ及びD/Aコンバータを用いてもよい。   In the present embodiment, the A / D converter 16, the D / A converter 18, and the D / A converter 20 are described as a part of the control circuit. However, the A / D converter and the D / A converter built in the microcomputer 10 are described. May be used.

<第2実施形態>
図3に、本実施形態における制御回路の構成を示す。第1実施形態では、上限電圧値VHと下限電圧値VLをマイコン10で設定したが、本実施形態では下限電圧値VLのみをマイコン10で設定し、上限電圧値VHを制御回路内で生成する。
Second Embodiment
FIG. 3 shows the configuration of the control circuit in this embodiment. In the first embodiment, the upper limit voltage value VH and the lower limit voltage value VL are set by the microcomputer 10, but in this embodiment, only the lower limit voltage value VL is set by the microcomputer 10 and the upper limit voltage value VH is generated in the control circuit. .

図1の構成に対し、D/Aコンバータ18の代わりに加算器28が設けられる。マイコン10は、スリープモードに移行する直前の入力電圧値Vxに対して下限電圧値VL=Vx−δを設定して出力ポートから出力する。D/Aコンバータ20は、下限電圧値VLをアナログ値に変換してコンパレータ24の非反転入力端子(+)に供給するとともに、加算器28にも供給する。   An adder 28 is provided instead of the D / A converter 18 in the configuration of FIG. The microcomputer 10 sets the lower limit voltage value VL = Vx−δ with respect to the input voltage value Vx immediately before shifting to the sleep mode, and outputs it from the output port. The D / A converter 20 converts the lower limit voltage value VL into an analog value and supplies it to the non-inverting input terminal (+) of the comparator 24 and also supplies it to the adder 28.

加算器28は、下限電圧値VL(アナログ値)に所定値2δを加算して上限電圧値VHを生成し、コンパレータ22の反転入力端子(―)に供給する。下限電圧値VL=Vx−δであるから、加算器28の出力はVH=VL+2δ=Vx+δである。コンパレータ22,24は第1実施形態と同様にそれぞれ上限電圧値VH、下限電圧値VLとボリューム12の現在の位置に応じた入力電圧値とを比較し、比較結果VA,VBをそれぞれORゲート26に供給する。   The adder 28 adds the predetermined value 2δ to the lower limit voltage value VL (analog value) to generate the upper limit voltage value VH, and supplies it to the inverting input terminal (−) of the comparator 22. Since the lower limit voltage value VL = Vx−δ, the output of the adder 28 is VH = VL + 2δ = Vx + δ. As in the first embodiment, the comparators 22 and 24 compare the upper limit voltage value VH and the lower limit voltage value VL with the input voltage value corresponding to the current position of the volume 12, and respectively compare the comparison results VA and VB with the OR gate 26. To supply.

図4に、本実施形態の論理値表を示す。第1実施形態と同様に、入力電圧値が上限電圧値VHと下限電圧値VLの間である場合、割込み信号VはLowのままでありマイコン10はスリープモードを継続する。ユーザがボリューム12を操作して入力電圧値が上限電圧値VHを超えるか、下限電圧値VLを下回った場合、割込み信号VがHiとなってマイコン10は通常モードに復帰し、ボリューム12の現在の位置に応じた処理を実行する。 FIG. 4 shows a logical value table of the present embodiment. Like the first embodiment, when the input voltage value is between the upper limit voltage value VH and the lower limit voltage value VL, the interrupt signal V Y microcomputer 10 remains Low continues the sleep mode. When the user operates the volume 12 and the input voltage value exceeds the upper limit voltage value VH or falls below the lower limit voltage value VL, the interrupt signal VY becomes Hi and the microcomputer 10 returns to the normal mode, and the volume 12 The process according to the current position is executed.

本実施形態では、マイコン10で下限電圧値VLを設定し、加算器28で下限電圧値VLを用いて上限電圧値VHを設定しているが、マイコン10で上限電圧値VHを設定し、減算器で上限電圧値VHを用いて下限電圧値VLを設定してもよい。すなわち、減算器は、VL=VH−2δ=Vx−δにより下限電圧値VLを設定する。マイコン10により設定された上限電圧値VHはコンパレータ22に供給され、減算器により設定された下限電圧値VLはコンパレータ24に供給される。   In the present embodiment, the microcomputer 10 sets the lower limit voltage value VL and the adder 28 sets the upper limit voltage value VH using the lower limit voltage value VL. However, the microcomputer 10 sets the upper limit voltage value VH and subtracts it. The lower limit voltage value VL may be set by using the upper limit voltage value VH. That is, the subtracter sets the lower limit voltage value VL by VL = VH−2δ = Vx−δ. The upper limit voltage value VH set by the microcomputer 10 is supplied to the comparator 22, and the lower limit voltage value VL set by the subtractor is supplied to the comparator 24.

<第3実施形態>
図5に、本実施形態における制御回路の構成を示す。本実施形態では、マイコン10はスリープモードに移行する直前の入力電圧値Vxから基準となる中間電圧値VMを設定する。中間電圧値VMは、VM=Vxとして設定される。マイコン10は、設定した中間電圧値VMを出力ポートから出力する。D/Aコンバータ18は、中間電圧値VMをアナログ値に変換して減算器30に供給する。
<Third Embodiment>
FIG. 5 shows the configuration of the control circuit in this embodiment. In the present embodiment, the microcomputer 10 sets the reference intermediate voltage value VM from the input voltage value Vx immediately before shifting to the sleep mode. The intermediate voltage value VM is set as VM = Vx. The microcomputer 10 outputs the set intermediate voltage value VM from the output port. The D / A converter 18 converts the intermediate voltage value VM into an analog value and supplies it to the subtracter 30.

減算器30は、ボリューム12の現在の位置に応じた入力電圧値Vxと中間電圧値VMとの差分を演算し、その結果Vx−VMをコンパレータ22,24に供給する。コンパレータ22は、差分値Vx−VMと所定値δとを比較し、コンパレータ24は差分値Vx−Vmと所定値−δとを比較する。ボリューム12が操作されない場合には、Vx−VMは
0ないし0近傍の値であり、コンパレータ22,24の出力はいずれもLowとなる。また、ボリューム12が操作された場合には、Vx−VMはδを超えるか、あるいは−δを下回ることになり、コンパレータ22あるいはコンパレータ24の出力はHiとなる。
The subtractor 30 calculates the difference between the input voltage value Vx and the intermediate voltage value VM according to the current position of the volume 12, and supplies the result Vx−VM to the comparators 22 and 24. The comparator 22 compares the difference value Vx−VM with the predetermined value δ, and the comparator 24 compares the difference value Vx−Vm with the predetermined value −δ. When the volume 12 is not operated, Vx-VM is a value between 0 and 0, and the outputs of the comparators 22 and 24 are both low. Further, when the volume 12 is operated, Vx−VM exceeds δ or falls below −δ, and the output of the comparator 22 or the comparator 24 becomes Hi.

図6に、本実施形態の論理値表を示す。入力電圧値と中間電圧値VMとの差分が上限電圧値δと下限電圧値−δの間である場合、割込み信号VyはLowのままでありマイコン10はスリープモードを継続する。ユーザがボリューム12を操作して入力電圧値が中間値、つまりスリープモードに移行する直前の電圧値と相違して上限電圧値δを超えるか、下限電圧値−δを下回った場合、割込み信号VがHiとなってマイコン10は通常モードに復帰し、ボリューム12の現在の位置に応じた処理を実行する。 FIG. 6 shows a logical value table of the present embodiment. When the difference between the input voltage value and the intermediate voltage value VM is between the upper limit voltage value δ and the lower limit voltage value −δ, the interrupt signal Vy remains low and the microcomputer 10 continues the sleep mode. When the user operates the volume 12 and the input voltage value exceeds the upper limit voltage value δ or lower than the lower limit voltage value −δ, unlike the voltage value immediately before the transition to the sleep mode, that is, the interrupt signal V Y becomes Hi and the microcomputer 10 returns to the normal mode, and executes processing according to the current position of the volume 12.

以上各実施例で説明したように、本実施形態ではマイコン10でスリープモードに移行する直前のアナログスイッチの値を検出し、この検出値を基準として判定しきい値を生成してスリープモードに移行し、マイコン10がスリープモードに移行した後はアナログスイッチの値を制御回路内のコンパレータで比較して割込み信号を生成してマイコン10に供給することで、マイコン10をスリープモードから簡易に通常モードに復帰させることができる。   As described above in each embodiment, in this embodiment, the microcomputer 10 detects the value of the analog switch immediately before the transition to the sleep mode, generates a determination threshold value based on the detected value, and shifts to the sleep mode. After the microcomputer 10 shifts to the sleep mode, the analog switch value is compared by a comparator in the control circuit to generate an interrupt signal and supply the microcomputer 10 to the microcomputer 10 so that the microcomputer 10 can be easily changed from the sleep mode to the normal mode. Can be restored.

なお、各実施形態では、アナログスイッチあるいはセンサとしてボリューム12を例示したが、他のアナログセンサからの検出値に基づいてマイコン10をスリープモードから通常モードに復帰させることもできる。   In each embodiment, the volume 12 is exemplified as an analog switch or a sensor. However, the microcomputer 10 can be returned from the sleep mode to the normal mode based on a detection value from another analog sensor.

第1実施形態の構成図である。It is a block diagram of 1st Embodiment. 第1実施形態の論理値表である。It is a logical value table of a 1st embodiment. 第2実施形態の構成図である。It is a block diagram of 2nd Embodiment. 第2実施形態の論理値表である。It is a logic value table of a 2nd embodiment. 第3実施形態の構成図である。It is a block diagram of 3rd Embodiment. 第3実施形態の論理値表である。It is a logic value table of a 3rd embodiment.

符号の説明Explanation of symbols

10 マイコン、12 ボリューム、14 ローパスフィルタ(LPF)、16 A/Dコンバータ、18,20 D/Aコンバータ、22,24 コンパレータ、26 ORゲート。   10 microcomputer, 12 volume, 14 low pass filter (LPF), 16 A / D converter, 18, 20 D / A converter, 22, 24 comparator, 26 OR gate.

Claims (2)

アナログセンサの検出値を入力ポートから取り込み、前記検出値に応じて動作するコンピュータをスリープモードから通常モードに復帰させる制御回路であって、
前記コンピュータがスリープモードに移行するときの前記アナログセンサの検出値を基準値として取得して前記入力ポートに供給する取得手段と、
前記コンピュータが前記スリープモードに移行した後において、前記アナログセンサの検出値と、前記基準値に基づいて設定された、前記アナログセンサの検出値が変化したものと判定するための判定しきい値とを比較する比較手段と、
前記比較手段での比較結果に応じて前記コンピュータの割込み入力ポートに対して通常モードに復帰させるための復帰信号を割込み信号として供給する供給手段と、
を有し、
前記判定しきい値は、上限しきい値と下限しきい値とを有し、
前記上限しきい値と下限しきい値の少なくともいずれかは、前記コンピュータが前記スリープモードに移行するときに前記基準値に基づいて設定して出力ポートから出力し、出力後に前記スリープモードに移行することを特徴とするコンピュータの動作モード制御回路。
A control circuit that takes in a detection value of an analog sensor from an input port, and returns a computer that operates according to the detection value from a sleep mode to a normal mode,
An acquisition unit that the computer is supplied to said input port to obtain the detected value of the analog sensor as a reference value when entering the sleep mode,
A threshold value for determining that the detection value of the analog sensor and the detection value of the analog sensor set based on the reference value have changed after the computer has entered the sleep mode; A comparison means for comparing
Supply means for supplying, as an interrupt signal, a return signal for returning to the normal mode to the interrupt input port of the computer according to the comparison result in the comparison means;
Have
The determination threshold has an upper threshold and a lower threshold,
At least one of the upper threshold and the lower threshold is set based on the reference value when the computer enters the sleep mode, and is output from the output port. After the output , the computer enters the sleep mode. An operation mode control circuit for a computer.
アナログセンサの検出値を入力ポートから取り込み、前記検出値に応じて動作するコンピュータをスリープモードから通常モードに復帰させる制御回路であって、
前記コンピュータがスリープモードに移行するときの前記アナログセンサの検出値に応じた電圧値を基準電圧値として取得して前記入力ポートに供給する取得手段と、
前記コンピュータが前記スリープモードに移行した後において、前記アナログセンサの検出値に対応する電圧値と、前記基準電圧値に対して所定のマージンを付加して設定された上限電圧値と下限電圧値とをそれぞれ比較する比較手段であって、前記上限電圧値、前記下限電圧値、前記基準電圧値の少なくともいずれかは前記コンピュータが前記スリープモードに移行するときに設定して出力ポートから出力し、出力後に前記スリープモードに移行するものである、比較手段と、
前記アナログセンサの検出値に対応する電圧値が前記上限電圧値を超える場合、あるいは前記下限電圧値を下回る場合に前記コンピュータの割込み入力ポートに対して通常モードに復帰させるための復帰信号を割込み信号として供給する供給手段と、
を有することを特徴とするコンピュータの動作モード制御回路。
A control circuit that takes in a detection value of an analog sensor from an input port, and returns a computer that operates according to the detection value from a sleep mode to a normal mode,
An acquisition unit that the computer is supplied to said input port to acquire a voltage value according to the detected value of the analog sensor as a reference voltage value at the time of transition to the sleep mode,
After the computer enters the sleep mode, a voltage value corresponding to a detection value of the analog sensor, and an upper limit voltage value and a lower limit voltage value set by adding a predetermined margin to the reference voltage value, Each of the upper limit voltage value, the lower limit voltage value, and the reference voltage value is set when the computer shifts to the sleep mode and is output from the output port. Comparing means which is to shift to the sleep mode later ,
When a voltage value corresponding to the detected value of the analog sensor exceeds the upper limit voltage value or falls below the lower limit voltage value, a return signal for returning to the normal mode for the interrupt input port of the computer is provided as an interrupt signal. Supply means to supply as,
An operation mode control circuit for a computer, comprising:
JP2006327703A 2006-12-05 2006-12-05 Computer operation mode control circuit Expired - Fee Related JP4882711B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006327703A JP4882711B2 (en) 2006-12-05 2006-12-05 Computer operation mode control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006327703A JP4882711B2 (en) 2006-12-05 2006-12-05 Computer operation mode control circuit

Publications (2)

Publication Number Publication Date
JP2008140279A JP2008140279A (en) 2008-06-19
JP4882711B2 true JP4882711B2 (en) 2012-02-22

Family

ID=39601638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006327703A Expired - Fee Related JP4882711B2 (en) 2006-12-05 2006-12-05 Computer operation mode control circuit

Country Status (1)

Country Link
JP (1) JP4882711B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3896703B2 (en) * 1998-03-06 2007-03-22 オムロン株式会社 Security sensor
JP4278884B2 (en) * 2001-03-29 2009-06-17 株式会社リコー Image forming apparatus having communication function and control method thereof
JP2003295987A (en) * 2002-04-03 2003-10-17 Canon Electronics Inc Electronic equipment, operation mode control method, program and storage medium
JP4003589B2 (en) * 2002-08-30 2007-11-07 アイシン・エィ・ダブリュ株式会社 Car navigation system
JP2005275867A (en) * 2004-03-25 2005-10-06 Matsushita Electric Ind Co Ltd Information terminal

Also Published As

Publication number Publication date
JP2008140279A (en) 2008-06-19

Similar Documents

Publication Publication Date Title
US7117124B2 (en) Trouble detection method, trouble detection apparatus, and temperature controller
US7355866B2 (en) Method of detecting phase-loss state of three-phase power supply
JP2000022992A5 (en)
US8183856B2 (en) System including signal offset estimation
CN103684458B (en) Analog-digital converter protection circuit, digital power, the processing method of digital signal and processing module and circuit protection method
JP4882711B2 (en) Computer operation mode control circuit
US6411241B1 (en) A/D converter
JP4113152B2 (en) Apparatus and method for compensating accuracy of sensor signal
JP5061833B2 (en) Voltage abnormality detector
JP5331980B2 (en) Rotation angle sensor and rotation angle calculation method
JP5458902B2 (en) Analog to digital converter
JP5587547B2 (en) Information processing device
US6718357B2 (en) Microcomputer including an upper and lower clip circuit
JP4647284B2 (en) Analog / digital conversion method and analog / digital conversion circuit
JPWO2014162553A1 (en) Image display apparatus and control method
JP2001309669A (en) Open-phase detection method and circuit for voltage-source inverter device
JP6402798B2 (en) Control device for vehicle power window device
JP2006333536A (en) Digital protective relay
JP4191582B2 (en) AC voltage drop detection device
JP2011142537A (en) Electronic control system and method of detecting failure thereof
JP2004191346A (en) Device for decision and detection of abnormal value in voltage signal level
KR20160069602A (en) Dc-dc buck converter in digital and method for controlling output using the same
JP7162138B2 (en) Electronics
JP5136900B2 (en) Analog output circuit, flow control device, and output abnormality determination method for flow control device
KR100449629B1 (en) Optical mouse sensor chip with function of self-wakeup, and optical mouse having the sensor chip

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081027

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100824

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101022

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111004

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20111013

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111121

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

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4882711

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees