JP2008099356A - Mode switching circuit - Google Patents

Mode switching circuit Download PDF

Info

Publication number
JP2008099356A
JP2008099356A JP2006274869A JP2006274869A JP2008099356A JP 2008099356 A JP2008099356 A JP 2008099356A JP 2006274869 A JP2006274869 A JP 2006274869A JP 2006274869 A JP2006274869 A JP 2006274869A JP 2008099356 A JP2008099356 A JP 2008099356A
Authority
JP
Japan
Prior art keywords
circuit
control circuit
mode
comparator
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.)
Withdrawn
Application number
JP2006274869A
Other languages
Japanese (ja)
Inventor
Tadashi Kurokura
忠 黒蔵
Seiji Yoshikawa
清至 吉川
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.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments 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 Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP2006274869A priority Critical patent/JP2008099356A/en
Publication of JP2008099356A publication Critical patent/JP2008099356A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a mode switching circuit to which an unwanted current does not flow in switching a mode. <P>SOLUTION: The circuit includes a comparator 34 for detecting an change in voltage of an output terminal 15 on the basis of a voltage of a reference voltage source 36 and an input voltage to an output terminal 15; a comparator 35 for detecting a change in voltage of the output terminal 15 on the basis of a total voltage of the reference voltage source 36 and a reference voltage source 37 and an input voltage to the output terminal 15; and a mode control circuit for controlling a control circuit 12 while switching the mode of circuit operation of the control circuit 12 on the basis of results of detection by the comparators 34, 35. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、回路動作のモードを切り替えるモード切替回路に関する。   The present invention relates to a mode switching circuit that switches a mode of circuit operation.

図1は、特許文献1に示されるように従来のモード切替回路の例である。   FIG. 1 shows an example of a conventional mode switching circuit as disclosed in Patent Document 1.

その構成では、本来の機能を達成して通常動作するための制御回路120に出力回路130接続され、その出力回路130に出力端子150が接続され、出力端子150及び出力回路130の入力のノード160の信号に基づいて制御回路120にモード信号を出力するモード切替回路220が制御回路120に接続されている。   In this configuration, the output circuit 130 is connected to the control circuit 120 that achieves the original function and operates normally, the output terminal 150 is connected to the output circuit 130, and the output node 150 and the input node 160 of the output circuit 130. A mode switching circuit 220 that outputs a mode signal to the control circuit 120 based on these signals is connected to the control circuit 120.

制御回路120は例えばスイッチ付の遅延回路であり、モード制御回路220は例えばAND回路である。通常動作時は、ノード160がハイの時には出力端子150はローであり、ノード160がローの時には出力端子150はハイであることから、ノード170はローになり、制御回路120のスイッチはオフになる。制御回路120の遅延回路は有効に機能し、制御回路120に入力された信号は遅延時間を経て出力回路130に伝達される。また、モード切替動作時は、ノード160がハイの時に出力端子150にハイが入力されることにより、ノード170はハイになり、制御回路120のスイッチはオンになる。制御回路120の遅延回路は機能せず、制御回路120に入力され た信号は遅延時間なしで出力回路130に伝達される。
特開2005−229742号公報
The control circuit 120 is, for example, a delay circuit with a switch, and the mode control circuit 220 is, for example, an AND circuit. During normal operation, the output terminal 150 is low when the node 160 is high, and the output terminal 150 is high when the node 160 is low, so the node 170 is low and the switch of the control circuit 120 is turned off. Become. The delay circuit of the control circuit 120 functions effectively, and the signal input to the control circuit 120 is transmitted to the output circuit 130 after a delay time. In the mode switching operation, when node 160 is high, high is input to output terminal 150, so that node 170 becomes high and the switch of control circuit 120 is turned on. The delay circuit of the control circuit 120 does not function, and the signal input to the control circuit 120 is transmitted to the output circuit 130 without a delay time.
JP 2005-229742 A

しかし、従来の技術はノード160がハイであって出力回路130のNMOSがオンしたときにモード切替するため、出力端子150にハイが印加されると、出力端子150からグランドに向かって不要な電流が流れてしまう。この時、グランドの電圧がわずかながらも浮上することがあり、測定誤差が生じてしまう。また、出力回路130のNMOSが発熱し、ICが破壊することがある。   However, since the conventional technique switches the mode when the node 160 is high and the NMOS of the output circuit 130 is turned on, an unnecessary current is applied from the output terminal 150 to the ground when high is applied to the output terminal 150. Will flow. At this time, the ground voltage may rise slightly, but a measurement error occurs. Further, the NMOS of the output circuit 130 may generate heat and the IC may be destroyed.

本発明は、上記課題に鑑みてなされ、不要な電流が流れにくいモード切替回路を提供する。   The present invention has been made in view of the above problems, and provides a mode switching circuit in which an unnecessary current hardly flows.

本発明では、上記課題を解決するため、複数の回路動作のモードを有する制御回路及び出力端子に接続された出力回路に接続され、前記制御回路の回路動作のモードを切り替えるモード切替回路において、第一基準電圧及び前記出力端子への入力信号に基づき、前記出力端子の信号変化を検出する第一コンパレータと、第二基準電圧及び前記入力信号に基づき、前記出力端子の信号変化を検出する第二コンパレータと、前記第一コンパレータ及び前記第二コンパレータの検出結果に基づき、前記制御回路の回路動作のモードを切り替えて前記制御回路を制御するモード制御回路と、を備えていることを特徴とするモード切替回路が提供される。   In the present invention, in order to solve the above problems, in a mode switching circuit connected to a control circuit having a plurality of circuit operation modes and an output circuit connected to an output terminal, and switching a circuit operation mode of the control circuit, A first comparator that detects a signal change of the output terminal based on one reference voltage and an input signal to the output terminal, and a second comparator that detects a signal change of the output terminal based on a second reference voltage and the input signal A mode comprising: a comparator; and a mode control circuit that controls the control circuit by switching a circuit operation mode of the control circuit based on detection results of the first comparator and the second comparator. A switching circuit is provided.

本発明では、制御回路の回路動作のモードを切り替えるときの出力端子への入力電圧が、第一基準電圧及び第二基準電圧に基づき、出力回路で不要な電流が流れないよう自由に設定される。よって、不要な電流が流れにくくなる。   In the present invention, the input voltage to the output terminal when switching the circuit operation mode of the control circuit is freely set based on the first reference voltage and the second reference voltage so that unnecessary current does not flow in the output circuit. . Therefore, it becomes difficult for unnecessary current to flow.

[第一実施形態]
まず、第一実施形態において、回路動作のモードを切り替えるモード切替について説明する。図2は、第一実施形態のモード切替を示すブロック図である。
[First embodiment]
First, mode switching for switching the mode of circuit operation in the first embodiment will be described. FIG. 2 is a block diagram showing mode switching in the first embodiment.

第一実施形態の構成は、制御回路12、制御回路12に接続された出力回路14、及び、制御回路12及び出力回路14に接続されたモード切替回路21を備えている。   The configuration of the first embodiment includes a control circuit 12, an output circuit 14 connected to the control circuit 12, and a mode switching circuit 21 connected to the control circuit 12 and the output circuit 14.

制御回路12は、複数の回路動作のモードを有し、例えば、遅延回路である。出力回路14は、制御回路12の出力をドライブする。モード切替回路21は、出力回路14を介した出力端子15の電圧に基づいて制御回路12の回路動作のモードを切り替える 。すると、例えば、遅延回路による遅延時間が変更される。   The control circuit 12 has a plurality of circuit operation modes, and is, for example, a delay circuit. The output circuit 14 drives the output of the control circuit 12. The mode switching circuit 21 switches the circuit operation mode of the control circuit 12 based on the voltage at the output terminal 15 via the output circuit 14. Then, for example, the delay time by the delay circuit is changed.

次に、第一実施形態のモード切替回路21について説明する。図3は、第一実施形態 のモード切替回路を示す図である。   Next, the mode switching circuit 21 of the first embodiment will be described. FIG. 3 is a diagram showing the mode switching circuit of the first embodiment.

出力回路14は、PMOS31とNMOS32とのインバータ回路及び抵抗33を備 えている。このインバータ回路の出力は、抵抗33を介して出力端子15に接続されて いる。   The output circuit 14 includes an inverter circuit of a PMOS 31 and an NMOS 32 and a resistor 33. The output of this inverter circuit is connected to the output terminal 15 via a resistor 33.

モード切替入力回路23は、基準電圧源36、基準電圧源37、コンパレータ34及びコンパレータ35を備えている。コンパレータ34及びコンパレータ35は、それぞれ基準電圧と出力端子15の電圧とを比較し、それぞれ出力端子15の電圧変化を検出する。これらの検出結果は、モード制御回路22に送られる。モード制御回路22は、AND回路24を備え、AND回路24は、ノード38及びノード39が両方ハイの場合、ハイを制御回路12に出力し、それ以外の場合、ローを出力する。なお、モード切替入力回路23及びモード制御回路22は、図2で説明したモード切替回路21に相当する。また、コンパレータ34の−側入力は基準電圧源36の電圧であり、+側入力は出力端子15の電圧であり、コンパレータ35の−側入力は出力端子15の電圧であり、+側入力は直列接続された基準電圧源36及び基準電圧源37の電圧である。   The mode switching input circuit 23 includes a reference voltage source 36, a reference voltage source 37, a comparator 34, and a comparator 35. The comparator 34 and the comparator 35 respectively compare the reference voltage and the voltage at the output terminal 15 to detect a voltage change at the output terminal 15. These detection results are sent to the mode control circuit 22. The mode control circuit 22 includes an AND circuit 24. The AND circuit 24 outputs a high to the control circuit 12 when both the node 38 and the node 39 are high, and outputs a low otherwise. The mode switching input circuit 23 and the mode control circuit 22 correspond to the mode switching circuit 21 described with reference to FIG. The negative input of the comparator 34 is the voltage of the reference voltage source 36, the positive input is the voltage of the output terminal 15, the negative input of the comparator 35 is the voltage of the output terminal 15, and the positive input is in series. This is the voltage of the connected reference voltage source 36 and reference voltage source 37.

制御回路12は、遅延回路18及びスイッチ19を備えている。モード制御回路22がハイを出力した場合、スイッチ19はオンし、制御回路12への入力信号は直接出力回路14に伝達される。また、ローを出力した場合、スイッチ19はオフし、制御回路12への入力信号は遅延回路18による遅延時間を経て出力回路14に伝達される。   The control circuit 12 includes a delay circuit 18 and a switch 19. When the mode control circuit 22 outputs high, the switch 19 is turned on, and the input signal to the control circuit 12 is directly transmitted to the output circuit 14. When low is output, the switch 19 is turned off, and an input signal to the control circuit 12 is transmitted to the output circuit 14 through a delay time by the delay circuit 18.

次に、通常動作時の動作について説明する。図4は、第一実施形態のモード切替回路における電圧レベルを示す図である。   Next, the operation during normal operation will be described. FIG. 4 is a diagram illustrating voltage levels in the mode switching circuit of the first embodiment.

ここで、通常動作時における出力端子15のハイの電圧をVHとし、ローの電圧をVLとすると、基準電圧源34の電圧Vref1及び基準電圧源35の電圧Vref2は、図4の(a)及び(b)に示すように、
VL<Vref1<Vref1+Vref2<VH・・・・・・(1)
によって設定される。
Here, when the high voltage of the output terminal 15 during normal operation is VH and the low voltage is VL, the voltage Vref1 of the reference voltage source 34 and the voltage Vref2 of the reference voltage source 35 are as shown in FIG. As shown in (b)
VL <Vref1 <Vref1 + Vref2 <VH (1)
Set by

ノード16がハイの時、出力端子15はロー(VL)になる。この時、コンパレータ34の出力のノード38はローで、コンパレータ35の出力のノード39はハイであるので、AND回路24の出力のノード17はローになる。よって、制御回路12のスイッチ19はオフし、制御回路12への入力信号は遅延回路18による遅延時間を経て出 力回路14に伝達される。   When node 16 is high, output terminal 15 is low (VL). At this time, since the output node 38 of the comparator 34 is low and the output node 39 of the comparator 35 is high, the output node 17 of the AND circuit 24 is low. Therefore, the switch 19 of the control circuit 12 is turned off, and an input signal to the control circuit 12 is transmitted to the output circuit 14 after a delay time by the delay circuit 18.

同様に、ノード16がローの時、出力端子15はハイ(VH)になる。この時、ノード38はハイで、ノード39はローであるので、ノード17はローになる。   Similarly, when node 16 is low, output terminal 15 is high (VH). At this time, since node 38 is high and node 39 is low, node 17 is low.

次に、モード切替時の動作について説明する。   Next, the operation at the time of mode switching will be described.

ここで、所定のモード切替電圧VMが、出力端子15に入力される。モード切替電圧VMは、
Vref1<VM<Vref1+Vref2・・・・・・(2)
によって設定される。
Here, a predetermined mode switching voltage VM is input to the output terminal 15. The mode switching voltage VM is
Vref1 <VM <Vref1 + Vref2 (2)
Set by

コンパレータ34及びコンパレータ35の出力は両方ハイになり、AND回路24の出力のノード17もハイになる。よって、制御回路12のスイッチ19はオンし、モードが切り替わり、制御回路12への入力信号は直接出力回路14に伝達される。この時、ノード16は、ハイでもローでもよい。   Both the outputs of the comparator 34 and the comparator 35 are high, and the node 17 of the output of the AND circuit 24 is also high. Therefore, the switch 19 of the control circuit 12 is turned on, the mode is switched, and the input signal to the control circuit 12 is directly transmitted to the output circuit 14. At this time, the node 16 may be high or low.

なお、出力端子15に印加されているモード切替電圧VMが解除されることにより、モードが切り替えられたモード切替状態は通常状態に復帰することができる。   The mode switching state in which the mode is switched can be returned to the normal state by releasing the mode switching voltage VM applied to the output terminal 15.

このようにすると、回路動作のモードを切り替えるモード切替回路21に、出力回路 14の入力のノード16の電圧に基づいた信号は入力されず、出力端子15の電圧に基づいた信号だけが入力されるので、出力回路14の入力に依存せずにモード切替が行われる。よって、外部からの信号のみにより、モード切替が行われる。   In this way, the signal based on the voltage at the input node 16 of the output circuit 14 is not input to the mode switching circuit 21 that switches the circuit operation mode, but only the signal based on the voltage at the output terminal 15 is input. Therefore, mode switching is performed without depending on the input of the output circuit 14. Therefore, mode switching is performed only by an external signal.

また、出力端子15に所定の電圧が印加されるとモード切替が行われ、印加されなければモードが切り替えられたモード切替状態は通常状態に復帰するので、モード切替は容易な操作で制御される。よって、モード切替状態と通常状態との間で状態が遷移するとき、誤動作は起こりにくくなる。   In addition, mode switching is performed when a predetermined voltage is applied to the output terminal 15, and if the voltage is not applied, the mode switching state in which the mode is switched returns to the normal state. Therefore, the mode switching is controlled with an easy operation. . Therefore, malfunction does not easily occur when the state transitions between the mode switching state and the normal state.

また、モード切替時における制御回路12の回路特性は、出力端子15にモード切替電圧VMを印加したときの出力端子15に流れる電流の向きによって測定される。具体的には、出力端子15から内部に電流が流れ込む場合、出力端子15からNMOS32を経由してグランド100に電流が流れ、PMOS31がオフし、NMOS32がオンしているので、ノード16はハイになっている。また、出力端子15から外部に電流が流れ出る場合、電源101からPMOS31を経由して出力端子15に電流が流れ、PMOS31がオンし、NMOS32がオフしているので、ノード16はローになっている。よって、モード切替時における制御回路12の回路特性の測定のため、出力端子15が使用され、別の端子は使用されない。   The circuit characteristics of the control circuit 12 at the time of mode switching are measured by the direction of the current flowing through the output terminal 15 when the mode switching voltage VM is applied to the output terminal 15. Specifically, when current flows from the output terminal 15 to the inside, current flows from the output terminal 15 to the ground 100 via the NMOS 32, the PMOS 31 is turned off, and the NMOS 32 is turned on, so that the node 16 becomes high. It has become. When current flows out from the output terminal 15, the current flows from the power source 101 to the output terminal 15 via the PMOS 31, and the PMOS 31 is turned on and the NMOS 32 is turned off, so that the node 16 is low. . Therefore, the output terminal 15 is used for measuring the circuit characteristics of the control circuit 12 at the time of mode switching, and another terminal is not used.

また、モード切替電圧VMは式(2)を満たせばよいので、ノード16がハイの場合モード切替電圧VMは低めに設定され、ローの場合高めに設定されると、オンしているMOSに流れる電流は少なくなる。この時、グランド100の電圧がわずかながらも浮上することが少なくなり、測定誤差が少なくなる。また、MOSが発熱しにくくなり、ICが破壊されなくなる。なお、図4の(c)に示すように、モード切替電圧VMが電源101の電圧VDDの半分に設定されると、PMOS31またはNMOS32がオンしても、MOSに印可される電圧は電源101の電圧VDDの半分になる。   Since the mode switching voltage VM only needs to satisfy Expression (2), when the node 16 is high, the mode switching voltage VM is set low, and when the node 16 is low, the mode switching voltage VM flows to the MOS that is turned on. The current is reduced. At this time, although the voltage of the ground 100 is slight, it is less likely to rise and measurement errors are reduced. Also, the MOS does not easily generate heat, and the IC is not destroyed. As shown in FIG. 4C, when the mode switching voltage VM is set to half of the voltage VDD of the power source 101, the voltage applied to the MOS is equal to that of the power source 101 even if the PMOS 31 or NMOS 32 is turned on. It becomes half of the voltage VDD.

なお、例えば、二次電池の充放電を制御して二次電池を保護する充放電制御回路に通常遅延回路が設けられていて、テストモードの際、モード切替回路21によって遅延回路18を短絡するようモードが切り替えられると、遅延時間が短くなり、テストコストが低くなる。   For example, a normal delay circuit is provided in a charge / discharge control circuit that controls charge / discharge of the secondary battery to protect the secondary battery, and the delay circuit 18 is short-circuited by the mode switching circuit 21 in the test mode. When the mode is switched, the delay time is shortened and the test cost is lowered.

また、例えば、メモリは通常複雑に組み込まれたロジック回路に搭載されていて、モード切替回路21によってそのロジック回路を短絡するようモードが切り替えられると、メモリの特性が直接測定されるようになる。換言すると、モード切替回路21により、端子に接続されていないために評価することができない内部論理の特性が、直接測定されるようになる。   Further, for example, the memory is usually mounted in a complicated logic circuit, and when the mode is switched by the mode switching circuit 21 to short-circuit the logic circuit, the characteristics of the memory are directly measured. In other words, the mode switching circuit 21 directly measures the characteristics of internal logic that cannot be evaluated because it is not connected to a terminal.

[第二実施形態]
まず、第二実施形態において、回路動作のモードを切り替えるモード切替について説明する。図5は、第二実施形態のモード切替を示すブロック図である。
[Second Embodiment]
First, mode switching for switching circuit operation modes in the second embodiment will be described. FIG. 5 is a block diagram illustrating mode switching according to the second embodiment.

第二実施形態の構成は、制御回路12、制御回路12に接続された出力回路50、及び、制御回路12及び出力回路50に接続されたモード制御回路51を備えている。   The configuration of the second embodiment includes a control circuit 12, an output circuit 50 connected to the control circuit 12, and a mode control circuit 51 connected to the control circuit 12 and the output circuit 50.

制御回路12は、例えば、遅延回路である。出力回路14は、制御回路12の出力をドライブする。モード制御回路51は、出力回路14を介した出力端子15の電流に基づいて制御回路12の回路動作のモードを切り替える。   The control circuit 12 is a delay circuit, for example. The output circuit 14 drives the output of the control circuit 12. The mode control circuit 51 switches the circuit operation mode of the control circuit 12 based on the current of the output terminal 15 via the output circuit 14.

次に、第二実施形態の出力回路50及びモード制御回路51について説明する。図6は、第二実施形態の出力回路及びモード制御回路を示す図である。   Next, the output circuit 50 and the mode control circuit 51 of the second embodiment will be described. FIG. 6 is a diagram illustrating an output circuit and a mode control circuit according to the second embodiment.

出力回路50は、PMOS31とNMOS32とのインバータ回路を備えている。このインバータ回路の出力は、出力端子15に接続されている。また、出力回路50は、電圧V1の基準電圧源44、電圧V2の基準電圧源45、コンパレータ52、コンパレータ53、抵抗41、抵抗42及びダイオード46を備えている。PMOS31のソースとバックゲートとの間に、抵抗42が設けられ、NMOS32のソースとグランド100との間に、抵抗41が設けられ、PMOS31のバックゲートと出力端子15との間に、ダイオード46が設けられている。コンパレータ52は、基準電圧とNMOS32のソースの電圧とを比較し、ソースの電圧変化を検出し、コンパレータ53は、基準電圧とPMOS31のバックゲートの電圧とを比較し、バックゲートの電圧変化を検出する。これらの検出結果は、モード制御回路51に送られる。基準電圧源44及び基準電圧源45は、それぞれコンパレータ52及びコンパレータ53の出力が不定になることを防止する。なお、コンパレータ52の−側入力は基準電圧源44を介してグランド100に接続され、+側入力はNMOS32のソースに接続され、コンパレータ53の−側入力は基準電圧源45を介して電源101に接続され、+側入力はPMOS31の バックゲートに接続されている。   The output circuit 50 includes an inverter circuit composed of a PMOS 31 and an NMOS 32. The output of this inverter circuit is connected to the output terminal 15. The output circuit 50 includes a reference voltage source 44 for the voltage V1, a reference voltage source 45 for the voltage V2, a comparator 52, a comparator 53, a resistor 41, a resistor 42, and a diode 46. A resistor 42 is provided between the source of the PMOS 31 and the back gate, a resistor 41 is provided between the source of the NMOS 32 and the ground 100, and a diode 46 is provided between the back gate of the PMOS 31 and the output terminal 15. Is provided. The comparator 52 compares the reference voltage with the source voltage of the NMOS 32 to detect a source voltage change, and the comparator 53 compares the reference voltage with the back gate voltage of the PMOS 31 to detect a back gate voltage change. To do. These detection results are sent to the mode control circuit 51. The reference voltage source 44 and the reference voltage source 45 prevent the outputs of the comparator 52 and the comparator 53 from becoming unstable. The negative input of the comparator 52 is connected to the ground 100 via the reference voltage source 44, the positive input is connected to the source of the NMOS 32, and the negative input of the comparator 53 is connected to the power source 101 via the reference voltage source 45. The + input is connected to the back gate of the PMOS 31.

モード制御回路51は、OR回路25を備え、OR回路25は、ノード54及びノー ド55のいずれか一方がハイの場合、ハイを制御回路12に出力し、それ以外の場合、ローを出力する。   The mode control circuit 51 includes an OR circuit 25. The OR circuit 25 outputs a high to the control circuit 12 when either one of the node 54 and the node 55 is high, and outputs a low otherwise. .

なお、出力回路50におけるコンパレータ52とコンパレータ53と基準電圧源44と基準電圧源45と抵抗41と抵抗42とダイオード46と、及び、モード制御回路51は、モード切替回路に相当する。   Note that the comparator 52, the comparator 53, the reference voltage source 44, the reference voltage source 45, the resistor 41, the resistor 42, the diode 46, and the mode control circuit 51 in the output circuit 50 correspond to a mode switching circuit.

制御回路12は、第一実施形態のものと同一である。   The control circuit 12 is the same as that of the first embodiment.

次に、通常動作時の動作について説明する。図7は、第二実施形態のモード切替回路における電圧レベルを示す図である。   Next, the operation during normal operation will be described. FIG. 7 is a diagram illustrating voltage levels in the mode switching circuit of the second embodiment.

ノード16がハイの時、PMOS31はオフになり、NMOS32はオンになるので、出力端子15はローになる。図7の(a)及び(c)に示すように、コンパレータ52及びコンパレータ53では、共に、−側入力(IN−)が+側入力(IN+)よりも大きいので、出力はローになる。よって、OR回路25の出力はローになり、制御回路12のスイッチ19はオフする。   When node 16 is high, PMOS 31 is off and NMOS 32 is on, so output terminal 15 is low. As shown in FIGS. 7A and 7C, in both the comparator 52 and the comparator 53, since the − side input (IN−) is larger than the + side input (IN +), the output becomes low. Therefore, the output of the OR circuit 25 becomes low, and the switch 19 of the control circuit 12 is turned off.

同様に、ノード16がローの時、出力端子15はハイになる。図7の(a)及び図7の(c)に示すように、コンパレータ52及びコンパレータ53では、共に、−側入力 (IN−)が+側入力(IN+)よりも大きいので、出力はローになる。   Similarly, when node 16 is low, output terminal 15 is high. As shown in FIGS. 7A and 7C, in both the comparator 52 and the comparator 53, since the − side input (IN−) is larger than the + side input (IN +), the output is low. Become.

次に、モード切替時の動作について説明する。   Next, the operation at the time of mode switching will be described.

ここで、電流Iが出力端子15から流し込まれる。この電流Iは、抵抗41及び抵抗42の抵抗値をRとすると、
I×R>V1、I×R>V2・・・・・・(3)
によって設定される。
Here, current I flows from the output terminal 15. The current I is expressed as follows: R is the resistance value of the resistor 41 and the resistor 42
I × R> V1, I × R> V2 (3)
Set by

図7の(b)及び(d)に示すように、コンパレータ52またはコンパレータ53の+側入力と−側入力との間に電圧I×Rが新たに生じ、コンパレータ52及びコンパレータ53の出力のいずれか一方がハイになる。よって、OR回路25の出力のノード17もハイになり、制御回路12のスイッチ19がオンし、モードが切り替わる。   As shown in FIGS. 7B and 7D, a voltage I × R is newly generated between the + side input and the − side input of the comparator 52 or the comparator 53. Either goes high. Accordingly, the output node 17 of the OR circuit 25 also goes high, the switch 19 of the control circuit 12 is turned on, and the mode is switched.

なお、出力端子15に印加されている電流Iが解除されることにより、モードが切り替えられたモード切替状態は通常状態に復帰することができる。   Note that the mode switching state in which the mode is switched can be returned to the normal state by releasing the current I applied to the output terminal 15.

このようにすると、抵抗41及び抵抗42の抵抗値が大きく設定されると、電圧I×Rが大きくなり、電流Iが小さくてもコンパレータ52及びコンパレータ53の出力のいずれか一方がハイになるので、電流Iを小さくできる。よって、不要な電流が少なくなる。   In this way, when the resistance values of the resistor 41 and the resistor 42 are set large, the voltage I × R increases, and either the output of the comparator 52 or the comparator 53 becomes high even if the current I is small. The current I can be reduced. Therefore, unnecessary current is reduced.

また、モード切替時における制御回路12の回路特性は、モード切替のために電流が印加されているので、出力端子15の電圧によってそのまま測定される。   Further, the circuit characteristics of the control circuit 12 at the time of mode switching are directly measured by the voltage at the output terminal 15 because a current is applied for mode switching.

また、出力端子15の後段に接続されるアプリケーション回路の入力がハイインピーダンスであると、あたかも通常状態のようにテストモードが実行される。   If the input of the application circuit connected to the subsequent stage of the output terminal 15 is high impedance, the test mode is executed as if in the normal state.

従来のモード切替を示すブロック図である。It is a block diagram which shows the conventional mode switching. 第一実施形態のモード切替を示すブロック図である。It is a block diagram which shows the mode switching of 1st embodiment. 第一実施形態のモード切替回路を示す図である。It is a figure which shows the mode switching circuit of 1st embodiment. 第一実施形態のモード切替回路における電圧レベルを示す図である。It is a figure which shows the voltage level in the mode switching circuit of 1st embodiment. 第二実施形態のモード切替を示すブロック図である。It is a block diagram which shows the mode switching of 2nd embodiment. 第二実施形態の出力回路及びモード制御回路を示す図である。It is a figure which shows the output circuit and mode control circuit of 2nd embodiment. 第二実施形態のモード切替回路における電圧レベルを示す図である。It is a figure which shows the voltage level in the mode switching circuit of 2nd embodiment.

符号の説明Explanation of symbols

12 制御回路 14 出力回路
15 出力端子 16 ノード
17 ノード 18 遅延回路
22 モード制御回路 24 AND回路
31 PMOS 32 NMOS
33 抵抗 34 コンパレータ
35 コンパレータ 36 基準電圧源
37 基準電圧源 38 ノード
39 ノード 19 スイッチ
21 モード切替回路 23 モード切替入力回路
100 グランド(VSS) 101 電源(VDD)
12 control circuit 14 output circuit 15 output terminal 16 node 17 node 18 delay circuit 22 mode control circuit 24 AND circuit 31 PMOS 32 NMOS
33 resistor 34 comparator 35 comparator 36 reference voltage source 37 reference voltage source 38 node 39 node 19 switch 21 mode switching circuit 23 mode switching input circuit 100 ground (VSS) 101 power supply (VDD)

Claims (5)

複数の回路動作のモードを有する制御回路及び出力端子に接続された出力回路に接続され、前記制御回路の回路動作のモードを切り替えるモード切替回路において、
第一基準電圧及び前記出力端子への入力信号に基づき、前記出力端子の信号変化を検出する第一コンパレータと、
第二基準電圧及び前記入力信号に基づき、前記出力端子の信号変化を検出する第二コンパレータと、
前記第一コンパレータ及び前記第二コンパレータの検出結果に基づき、前記制御回路の回路動作のモードを切り替えて前記制御回路を制御するモード制御回路と、
を備えていることを特徴とするモード切替回路。
In a mode switching circuit that is connected to a control circuit having a plurality of circuit operation modes and an output circuit connected to an output terminal, and switches a circuit operation mode of the control circuit,
A first comparator for detecting a signal change at the output terminal based on a first reference voltage and an input signal to the output terminal;
A second comparator for detecting a signal change at the output terminal based on a second reference voltage and the input signal;
Based on the detection results of the first comparator and the second comparator, a mode control circuit that controls the control circuit by switching the mode of the circuit operation of the control circuit;
A mode switching circuit comprising:
前記入力信号は、電圧であることを特徴とする請求項1記載のモード切替回路。   The mode switching circuit according to claim 1, wherein the input signal is a voltage. 前記第一コンパレータは、前記出力端子への入力電圧と第一基準電圧とを比較し、前記入力電圧が前記第一基準電圧よりも大きくなると、ハイの信号を前記モード制御回路に出力し、
前記第二コンパレータは、前記入力電圧と第二基準電圧とを比較し、前記入力電圧が前記第二基準電圧よりも小さくなると、ハイの信号を前記モード制御回路に出力し、
前記モード制御回路は、前記第一コンパレータからの信号がハイであり、前記第二コンパレータからの信号がハイであると、前記制御回路の回路動作のモードを切り替えて前記制御回路を制御する、
ことを特徴とする請求項2記載のモード切替回路。
The first comparator compares an input voltage to the output terminal with a first reference voltage, and outputs a high signal to the mode control circuit when the input voltage becomes larger than the first reference voltage.
The second comparator compares the input voltage with a second reference voltage, and when the input voltage becomes smaller than the second reference voltage, outputs a high signal to the mode control circuit,
When the signal from the first comparator is high and the signal from the second comparator is high, the mode control circuit switches the mode of circuit operation of the control circuit and controls the control circuit.
The mode switching circuit according to claim 2.
前記入力信号は、電流であることを特徴とする請求項1記載のモード切替回路。   The mode switching circuit according to claim 1, wherein the input signal is a current. 前記第一コンパレータは、前記出力端子への入力電流に基づいた電圧と第一基準電圧とを比較し、前記入力電流に基づいた電圧が前記第一基準電圧よりも大きくなると、ハイの信号を前記モード制御回路に出力し、
前記第二コンパレータは、前記入力電流に基づいた電圧と第二基準電圧とを比較し、前記入力電流に基づいた電圧が前記第二基準電圧よりも大きくなると、ハイの信号を前記モード制御回路に出力し、
前記モード制御回路は、前記第一コンパレータからの信号がハイであり、または、前記第二コンパレータからの信号がハイであると、前記制御回路の回路動作のモードを切り替えて前記制御回路を制御する、
ことを特徴とする請求項4記載のモード切替回路。
The first comparator compares a voltage based on an input current to the output terminal and a first reference voltage, and when a voltage based on the input current becomes larger than the first reference voltage, a high signal is output from the first comparator. Output to the mode control circuit,
The second comparator compares a voltage based on the input current with a second reference voltage, and when the voltage based on the input current becomes larger than the second reference voltage, a high signal is sent to the mode control circuit. Output,
The mode control circuit controls the control circuit by switching the mode of the circuit operation of the control circuit when the signal from the first comparator is high or the signal from the second comparator is high. ,
The mode switching circuit according to claim 4.
JP2006274869A 2006-10-06 2006-10-06 Mode switching circuit Withdrawn JP2008099356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006274869A JP2008099356A (en) 2006-10-06 2006-10-06 Mode switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006274869A JP2008099356A (en) 2006-10-06 2006-10-06 Mode switching circuit

Publications (1)

Publication Number Publication Date
JP2008099356A true JP2008099356A (en) 2008-04-24

Family

ID=39381616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006274869A Withdrawn JP2008099356A (en) 2006-10-06 2006-10-06 Mode switching circuit

Country Status (1)

Country Link
JP (1) JP2008099356A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011139550A (en) * 2009-12-25 2011-07-14 Mitsumi Electric Co Ltd Protection circuit, battery protective device, battery pack, and mode switching method
JP2012010163A (en) * 2010-06-25 2012-01-12 Yamaha Corp Mode control circuit

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000324022A (en) * 1999-05-14 2000-11-24 Kenwood Corp Radio transmitter
JP2001283932A (en) * 2000-03-30 2001-10-12 Seiko Instruments Inc Charging and discharging control circuit and charging power source device
JP2004119267A (en) * 2002-09-27 2004-04-15 Seiko Instruments Inc Charge and discharge control circuit and rechargeable power unit
JP2005094907A (en) * 2003-09-17 2005-04-07 Seiko Instruments Inc Charge/discharge control circuit and charging-type power supply device
JP2005229742A (en) * 2004-02-13 2005-08-25 Seiko Instruments Inc Charge/discharge control circuit and rechargeable power supply device
JP2006154963A (en) * 2004-11-25 2006-06-15 Matsushita Electric Works Ltd Radio sensor device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000324022A (en) * 1999-05-14 2000-11-24 Kenwood Corp Radio transmitter
JP2001283932A (en) * 2000-03-30 2001-10-12 Seiko Instruments Inc Charging and discharging control circuit and charging power source device
JP2004119267A (en) * 2002-09-27 2004-04-15 Seiko Instruments Inc Charge and discharge control circuit and rechargeable power unit
JP2005094907A (en) * 2003-09-17 2005-04-07 Seiko Instruments Inc Charge/discharge control circuit and charging-type power supply device
JP2005229742A (en) * 2004-02-13 2005-08-25 Seiko Instruments Inc Charge/discharge control circuit and rechargeable power supply device
JP2006154963A (en) * 2004-11-25 2006-06-15 Matsushita Electric Works Ltd Radio sensor device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011139550A (en) * 2009-12-25 2011-07-14 Mitsumi Electric Co Ltd Protection circuit, battery protective device, battery pack, and mode switching method
JP2012010163A (en) * 2010-06-25 2012-01-12 Yamaha Corp Mode control circuit
CN102368164A (en) * 2010-06-25 2012-03-07 雅马哈株式会社 Mode control circuit, semiconductor integrated circuit and audio processing circuit
CN102368164B (en) * 2010-06-25 2014-03-12 雅马哈株式会社 Mode control circuit, semiconductor integrated circuit and audio processing circuit

Similar Documents

Publication Publication Date Title
KR100487536B1 (en) Power-on reset circuit
JP5457206B2 (en) Battery pack
US7274227B2 (en) Power-on reset circuit
JP2011097772A (en) Battery-state monitoring circuit and battery device
TWI818150B (en) voltage detector
JP5487568B2 (en) Semiconductor device
KR20140109307A (en) Battery device
JP2008141612A (en) Fault detection apparatus for load driving device, and load driving ic
JP5443013B2 (en) Battery protection circuit and battery device
JP2008099356A (en) Mode switching circuit
JP2011103607A (en) Input circuit
JP5018464B2 (en) Semiconductor integrated circuit device and method for testing semiconductor integrated circuit device
JP2012080380A (en) Semiconductor integrated circuit
JP6718109B2 (en) Overvoltage protection circuit and overvoltage protection control method
JP2009282908A (en) Regulator
JP2005164357A (en) Voltage detection circuit
JP5391955B2 (en) Semiconductor device
US20070097587A1 (en) Inductive load drive device and drive method
JP2014168181A (en) Operational amplifier
JP5370915B2 (en) Voltage limiting circuit
JP2019187050A (en) Opening/ground fault detection circuit
JP5965663B2 (en) Semiconductor device
JP5267392B2 (en) Pulse generation circuit and level shift circuit
JP5687091B2 (en) Power supply voltage detection circuit
KR101524701B1 (en) Electric Charge Charging Circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090804

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20091105

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20091113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110322

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110506