JP2008070951A - Microcomputer monitoring circuit - Google Patents

Microcomputer monitoring circuit Download PDF

Info

Publication number
JP2008070951A
JP2008070951A JP2006246766A JP2006246766A JP2008070951A JP 2008070951 A JP2008070951 A JP 2008070951A JP 2006246766 A JP2006246766 A JP 2006246766A JP 2006246766 A JP2006246766 A JP 2006246766A JP 2008070951 A JP2008070951 A JP 2008070951A
Authority
JP
Japan
Prior art keywords
circuit
signal
microcomputer
power supply
output
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
JP2006246766A
Other languages
Japanese (ja)
Inventor
Daisuke Fukii
大介 吹井
Motoki Komiya
基樹 小宮
Tomohiro Amano
友裕 天野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2006246766A priority Critical patent/JP2008070951A/en
Publication of JP2008070951A publication Critical patent/JP2008070951A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a microcomputer monitoring circuit monitoring a microcomputer by use of a control signal output by a power source circuit itself. <P>SOLUTION: This microcomputer monitoring circuit 300 has a reset signal output part 303 acquiring the control signal L2 used inside the power source circuit 200, and outputting a reset signal L4 to the microcomputer 100 when the control signal shows abnormality of the power source circuit. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、マイコン監視回路に関し、特にマイコンに電力を供給するための電源回路からの制御信号を利用するマイコン監視回路に関するものである。   The present invention relates to a microcomputer monitoring circuit, and more particularly to a microcomputer monitoring circuit that uses a control signal from a power supply circuit for supplying power to the microcomputer.

マイクロコンピュータ(マイコン)等では、許容作動電圧範囲が予め定められており(例えば、5V±5%)、マイコンへの供給電圧が許容作動電圧範囲外であると、マイコンが暴走したり、記憶内容が書き換えられてしまったりという不具合が発生する恐れがある。そこで、供給電圧を検出するための検出部を有するリセット回路を設け、検出部によって供給電圧が許容作動電圧範囲外であることを検出した場合に、リセット回路からリセット信号をマイコンのリセット端子に出力することが知られている(例えば、特許文献1)。   In microcomputers and the like, the allowable operating voltage range is predetermined (for example, 5V ± 5%). If the supply voltage to the microcomputer is out of the allowable operating voltage range, the microcomputer may run away or the stored contents There is a risk of a problem such as being rewritten. Therefore, a reset circuit having a detection unit for detecting the supply voltage is provided, and when the detection unit detects that the supply voltage is outside the allowable operating voltage range, a reset signal is output from the reset circuit to the reset terminal of the microcomputer. It is known to do (for example, patent document 1).

また、フラッシュROM等の書き換え可能な記憶素子を内蔵するマイコン等では、通常動作モードと記憶素子の書換動作モードの最低動作電圧が異なることから、リセット回路に複数の電圧検出部を設け、通常動作モードと書換動作モードに応じて電圧検出部を切換えて、異なる電圧検出部による電圧検出結果に応じて、リセット信号をマイクロコンピュータのリセット端子に出力することが知られている(例えば、特許文献2)。   In addition, in microcomputers with built-in rewritable memory elements such as flash ROM, the minimum operating voltage is different between the normal operation mode and the memory element rewrite operation mode. It is known that the voltage detection unit is switched according to the mode and the rewrite operation mode, and a reset signal is output to the reset terminal of the microcomputer according to the voltage detection result by the different voltage detection unit (for example, Patent Document 2). ).

図1にこのようなマイコン、電源回路及びリセット回路の構成を示した概略ブロック図を示す。   FIG. 1 is a schematic block diagram showing the configuration of such a microcomputer, a power supply circuit, and a reset circuit.

図1に示すように、マイコン10には、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路20と、リセット回路30とが接続されている。また、マイコン10には、データの書換え可能な記憶手段であるフラッシュROM11が内蔵されており、マイコン10は、通常動作を行う通常動作モード(例えば、最低動作電圧が3.5V)と、フラッシュROM11の書換動作を行う書換動作モード(例えば、最低動作電圧が4.5V)とに設定されるように構成されている。なお、動作モードは、動作モード設定切替部12によって設定される。リセット回路30は、WDT監視部32と、リセット信号出力部33、通常動作モードでの電圧低下を検知する第1電圧検知部34、書換動作モードでの電圧低下を検知する第2電圧検知部35、電圧検知部切替部36、及び動作モード検知部37を有している。動作モード検知部37は動作モード設定切替部12の状態を検出し、電圧検知部切替部36は動作モード検知部37により検知された動作モードに基づいて、第1電圧検知部34又は第2電圧検知部35を選択する。リセット信号出力部33は、2入力が共にLレベルである時にのみHレベルを出力するNOR回路33aを含んで構成されている。   As shown in FIG. 1, a microcomputer 10 is connected to a power supply circuit 20 that outputs a constant voltage from the battery BATT to a predetermined voltage, and a reset circuit 30. The microcomputer 10 has a built-in flash ROM 11 which is a data rewritable storage means. The microcomputer 10 has a normal operation mode (for example, a minimum operating voltage of 3.5 V) for performing a normal operation, and a flash ROM 11. The rewrite operation mode (for example, the minimum operation voltage is 4.5 V) is set. The operation mode is set by the operation mode setting switching unit 12. The reset circuit 30 includes a WDT monitoring unit 32, a reset signal output unit 33, a first voltage detection unit 34 that detects a voltage drop in the normal operation mode, and a second voltage detection unit 35 that detects a voltage drop in the rewrite operation mode. The voltage detection unit switching unit 36 and the operation mode detection unit 37 are provided. The operation mode detection unit 37 detects the state of the operation mode setting switching unit 12, and the voltage detection unit switching unit 36 determines whether the first voltage detection unit 34 or the second voltage is based on the operation mode detected by the operation mode detection unit 37. The detection unit 35 is selected. The reset signal output unit 33 includes a NOR circuit 33a that outputs an H level only when both two inputs are at an L level.

リセット信号出力部33は、電圧検知部切替部36で選択された第1電圧検知部34又は第2電圧検知部35からの異常検知信号、及び/又はWDT監視部32からの異常検知信号を検出すると、マイコン10にリセット信号を出力し、マイコン10をリセットさせる。リセット信号により、マイコン10は、電圧低下時や、電気的ノイズなどの影響により暴走したときでも正常状態に復帰することができるように構成されている。   The reset signal output unit 33 detects the abnormality detection signal from the first voltage detection unit 34 or the second voltage detection unit 35 selected by the voltage detection unit switching unit 36 and / or the abnormality detection signal from the WDT monitoring unit 32. Then, a reset signal is output to the microcomputer 10 to reset the microcomputer 10. With the reset signal, the microcomputer 10 is configured to be able to return to a normal state even when the voltage drops or when the microcomputer 10 runs away due to the influence of electrical noise or the like.

特公平6−89709(図13)JP 6-89709 (Fig. 13) 特開2005−30818(図1)JP 2005-30818 (FIG. 1)

このように、マイコンへ供給される電圧の監視等を行うリセット回路等のマイコン監視回路において、複雑な制御を行おうとする場合には、複数の電圧検出部や、マイコンの動作モードに応じた切替部等が必要となり、回路規模の増大やそれに伴うコストアップ等が生じるといった不具合があった。   In this way, in a microcomputer monitoring circuit such as a reset circuit that monitors the voltage supplied to the microcomputer, when complex control is to be performed, multiple voltage detection units and switching according to the operation mode of the microcomputer There is a problem that an increase in circuit scale and associated cost increase occur.

そこで、本発明は、電源回路自体が出力する制御信号を利用する、マイコン監視回路を提供することを目的とする。   Therefore, an object of the present invention is to provide a microcomputer monitoring circuit that uses a control signal output from the power supply circuit itself.

上記課題を解決するために、本発明に係るマイコン監視回路では、電源回路内で使用される制御信号を取得して、制御信号が電源回路の異常を示す場合に、リセット信号をマイコンに出力するリセット信号出力部を有することを特徴とする。   In order to solve the above problems, the microcomputer monitoring circuit according to the present invention acquires a control signal used in the power supply circuit, and outputs a reset signal to the microcomputer when the control signal indicates an abnormality in the power supply circuit. It has a reset signal output section.

また、上記課題を解決するために、本発明に係るマイコン監視システムでは、電源回路の異常を示す制御信号を出力する制御信号出力部を有する電源回路と、電源回路から電力の供給を受けるマイコンと、制御信号が電源回路の異常を示す場合にリセット信号をマイコンに出力するリセット信号出力部を有するマイコン監視回路とを有することを特徴とする。   In order to solve the above problems, in the microcomputer monitoring system according to the present invention, a power supply circuit having a control signal output unit that outputs a control signal indicating abnormality of the power supply circuit, a microcomputer that receives power supply from the power supply circuit, And a microcomputer monitoring circuit having a reset signal output unit for outputting a reset signal to the microcomputer when the control signal indicates abnormality of the power supply circuit.

さらに、上記課題を解決するために、本発明に係るマイコン監視回路では、複数の電源回路の電源シーケンスの状態を示す状態信号を取得し、状態信号が電源シーケンスの異常を示す場合に、リセット信号を前記マイコンに出力するリセット信号出力部を有することを特徴とする。   Furthermore, in order to solve the above problems, the microcomputer monitoring circuit according to the present invention acquires a status signal indicating the status of the power supply sequence of the plurality of power supply circuits, and when the status signal indicates an abnormality in the power supply sequence, the reset signal Is provided with a reset signal output unit for outputting to the microcomputer.

本発明によれば、電源回路自体が出力する制御信号を利用して、マイコンへ供給される電圧等の監視を代行するので、別個に複数の電圧検出部や、マイコンの動作モードに応じた切替部等を設ける必要がなく、回路規模を縮小させ、コストダウンを行うことができるという効果を奏する。   According to the present invention, the control signal output from the power supply circuit itself is used to monitor the voltage supplied to the microcomputer, so that a plurality of voltage detection units and switching according to the operation mode of the microcomputer can be performed separately. There is no need to provide a part or the like, and the circuit scale can be reduced and the cost can be reduced.

以下図面を参照して、本発明に係るマイコン監視回路について説明する。   A microcomputer monitoring circuit according to the present invention will be described below with reference to the drawings.

図2は、本発明に係るマイコン監視回路、マイコン及び電源回路を含むマイコン監視システム1の構成を示した概略ブロック図である。   FIG. 2 is a schematic block diagram showing a configuration of a microcomputer monitoring system 1 including a microcomputer monitoring circuit, a microcomputer, and a power supply circuit according to the present invention.

マイコン監視システム1は、マイコン100、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路200と、マイコン100の監視を行うためのマイコン監視回路300とを有している。   The microcomputer monitoring system 1 includes a microcomputer 100, a power supply circuit 200 that outputs the power from the battery BATT at a constant voltage, and a microcomputer monitoring circuit 300 that monitors the microcomputer 100.

また、マイコン100には、データの書換え可能な記憶手段であるフラッシュROM101が内蔵されており、マイコン100は、通常動作を行う通常動作モード(例えば、最低動作電圧が3.5V)と、フラッシュROM101の書換動作を行う書換動作モード(例えば、最低動作電圧が4.5V)とに設定可能に構成されている。   Further, the microcomputer 100 has a built-in flash ROM 101 which is a data rewritable storage means. The microcomputer 100 has a normal operation mode in which normal operation is performed (for example, a minimum operating voltage is 3.5 V), and a flash ROM 101. The rewriting operation mode (for example, the minimum operating voltage is 4.5 V) is set.

電源回路(レギュレータ)200は、シャント抵抗201、ブーストトランジスタ202、電圧制御用トランジスタ203、過電流検知部204、電圧制御アンプ205、基準電圧206、抵抗207及び208等から構成されている。   The power supply circuit (regulator) 200 includes a shunt resistor 201, a boost transistor 202, a voltage control transistor 203, an overcurrent detection unit 204, a voltage control amplifier 205, a reference voltage 206, resistors 207 and 208, and the like.

電源回路200では、電力供給ラインL1の電圧を抵抗207及び208で分割した値と基準電圧206との比較結果に応じて、電圧制御アンプ205が電圧制御用トランジスタ203の動作制御を行い、電圧制御用トランジスタ203の動作に応じてブーストトランジスタ202を制御して、電力供給ラインL1の電圧が予め定められた電圧となるように制御されている。   In the power supply circuit 200, the voltage control amplifier 205 controls the operation of the voltage control transistor 203 in accordance with the comparison result between the value obtained by dividing the voltage of the power supply line L1 by the resistors 207 and 208 and the reference voltage 206, and the voltage control The boost transistor 202 is controlled according to the operation of the transistor 203 for controlling, so that the voltage of the power supply line L1 becomes a predetermined voltage.

過電流検知部204は、ブーストトランジスタ202からのセンス電流をモニタして、予め定められた値以上のセンス電流を検知した場合には、電源回路200が定格以上の電流を供給しているものと判断して、過電流検知信号を出力して電源回路200の出力電流を抑制するように動作する。なお、ここでは、電源回路の制御信号としての過電流検知信号が、信号ラインL2を介して電源回路200から後述する電圧監視回路300へ出力されるように構成されている。   The overcurrent detection unit 204 monitors the sense current from the boost transistor 202 and, when detecting a sense current exceeding a predetermined value, the power supply circuit 200 supplies a current exceeding the rating. The operation is performed so as to suppress the output current of the power supply circuit 200 by outputting an overcurrent detection signal. Here, an overcurrent detection signal as a control signal for the power supply circuit is output from the power supply circuit 200 to the voltage monitoring circuit 300 described later via the signal line L2.

マイコン監視回路300は、WDT(ウオッチ・ドック・タイマ)監視部302、マイコン100の通常動作モードでの電圧低下を検知する電圧検知部304、及びリセット信号出力部303等から構成されている。   The microcomputer monitoring circuit 300 includes a WDT (watch dock timer) monitoring unit 302, a voltage detection unit 304 that detects a voltage drop in the normal operation mode of the microcomputer 100, a reset signal output unit 303, and the like.

WDT監視部302は、マイコン100のCPUから信号ラインL3を介して出力されるパルス信号を監視し、所定時間以内にパルス信号を受信できなかった場合には、マイコン100に異常が発生したものと判断して、異常信号(Hレベル)を出力するように構成されている。   The WDT monitoring unit 302 monitors a pulse signal output from the CPU of the microcomputer 100 via the signal line L3. If the pulse signal cannot be received within a predetermined time, the WDT monitoring unit 302 indicates that an abnormality has occurred in the microcomputer 100. It judges and outputs an abnormal signal (H level).

電圧検知部304は、電源供給ラインL1の電圧を監視して、電圧が、マイコンの通常動作を行う通常動作モードの最低動作電圧(例えば、3.5V)以下に低下した場合には、異常信号(Hレベル)を出力するように構成されている。   The voltage detector 304 monitors the voltage of the power supply line L1, and if the voltage drops below the minimum operating voltage (for example, 3.5V) in the normal operation mode in which the microcomputer operates normally, an abnormal signal is detected. (H level) is output.

リセット信号出力部303は、3入力が共にLレベルである時にのみHレベルを出力するNOR回路303aを含んで構成されている。NOR回路303aには、電源回路200の過電流検知部204からの過電流検知信号(L2)、WDT監視部302からの異常信号(Hレベル)、及び電圧検知部304からの異常信号(Hレベル)が入力されるように構成されている。リセット信号出力部303は、過電流検知部204からの過電流検知信号、WDT監視部302からの異常信号、及び/又は電圧検知部304からの異常信号を検出すると、ラインL4を介してマイコン100のリセット端子にリセット信号(Lレベル)を出力し、マイコン100をリセットさせる。このリセットによって、マイコン100は、電圧低下時や、電気的ノイズなどの影響により暴走したときでも正常状態に復帰することができるように構成されている。   The reset signal output unit 303 includes a NOR circuit 303a that outputs an H level only when all three inputs are at an L level. The NOR circuit 303a includes an overcurrent detection signal (L2) from the overcurrent detection unit 204 of the power supply circuit 200, an abnormal signal (H level) from the WDT monitoring unit 302, and an abnormal signal (H level) from the voltage detection unit 304. ) Is input. When the reset signal output unit 303 detects an overcurrent detection signal from the overcurrent detection unit 204, an abnormal signal from the WDT monitoring unit 302, and / or an abnormal signal from the voltage detection unit 304, the reset signal output unit 303 receives the microcomputer 100 via the line L4. A reset signal (L level) is output to the reset terminal to reset the microcomputer 100. By this reset, the microcomputer 100 is configured to be able to return to a normal state even when the voltage drops or when it runs away due to the influence of electrical noise or the like.

図3は、図2に示すマイコン監視システム1における信号出力例を示した図である。   FIG. 3 is a diagram showing an example of signal output in the microcomputer monitoring system 1 shown in FIG.

図3(a)は電源回路200の供給電流の一例を示し、図3(b)は過電流検知部204から出力される過電流検知信号の一例を示し、図3(c)はリセット信号出力部303から出力されるリセット信号の一例を示している。   3A shows an example of a supply current of the power supply circuit 200, FIG. 3B shows an example of an overcurrent detection signal output from the overcurrent detection unit 204, and FIG. 3C shows a reset signal output. An example of a reset signal output from the unit 303 is shown.

時刻t1において、供給電流が所定レベルsを超えると(図3(a)参照)、過電流検知信号がLレベルからHレベルに変化し(図3(b)参照)、それに伴ってリセット信号がHレベルからLレベルに変化して(図3(c)参照)、マイコン100がリセットされる。また、時刻t2において、過電流検知部204による制御によって供給電流が低下して所定レベルs以下に抑制されると、過電流検知信号がHレベルからLレベルに変化し(図3(b)参照)、それに伴ってリセット信号がLレベルからHレベルに変化して(図3(c)参照)、マイコン100のリセットが解除される。   When the supply current exceeds the predetermined level s at time t1 (see FIG. 3 (a)), the overcurrent detection signal changes from the L level to the H level (see FIG. 3 (b)). Changing from the H level to the L level (see FIG. 3C), the microcomputer 100 is reset. Further, at time t2, when the supply current is reduced by the control by the overcurrent detection unit 204 and is suppressed below the predetermined level s, the overcurrent detection signal changes from the H level to the L level (see FIG. 3B). Accordingly, the reset signal changes from the L level to the H level (see FIG. 3C), and the reset of the microcomputer 100 is released.

このように、本発明に係るマイコン監視回路300では、電源回路200の異常(供給電流値の上昇)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路200に元々備えられている過電流検知部204からの既存の過電流検知信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, the microcomputer monitoring circuit 300 according to the present invention can quickly detect an abnormality in the power supply circuit 200 (an increase in supply current value) and reset the microcomputer 100, so that the microcomputer 100 can accurately detect abnormal operation or runaway. It becomes possible to prevent well. Furthermore, since the existing overcurrent detection signal from the overcurrent detection unit 204 originally provided in the power supply circuit 200 is used for resetting the microcomputer, abnormal operation of the microcomputer 100 can be performed without adding a new circuit. Or it becomes possible to prevent a runaway with high precision.

なお、上述した電源回路200における、バッテリBATTからの電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、過電流検知部204における過電流の検知方式として他の方式を利用しても良い。さらに、上記の例では、過電流検知部204からの過電流検知信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、過電流検知部204からの過電流検知信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、マイコン監視回路300では、3種類のマイコン監視を行うように構成しているが、WDT監視部302及び電圧検知部304は必ずしも備えていなくても良い。   Note that the circuit configuration for outputting the power from the battery BATT to a predetermined voltage in the power supply circuit 200 described above is an example, and the present invention can be applied to other types of power supply circuits. It is. Further, another method may be used as an overcurrent detection method in the overcurrent detection unit 204. Further, in the above example, the overcurrent detection signal from the overcurrent detection unit 204 is directly input to the NOR circuit 303a. However, the overcurrent detection signal from the overcurrent detection unit 204 is associated with the reset signal output unit 303. The current detection signal may be amplified, the voltage level may be adjusted, and the H and L levels may be inverted. Furthermore, although the microcomputer monitoring circuit 300 is configured to perform three types of microcomputer monitoring, the WDT monitoring unit 302 and the voltage detection unit 304 are not necessarily provided.

図4は、他のマイコン監視システム2の構成を示した概略ブロック図である。   FIG. 4 is a schematic block diagram showing the configuration of another microcomputer monitoring system 2.

マイコン監視システム2は、マイコン100、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路(レギュレータ)210と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図4に示すマイコン監視システムにおいて、図2に示すマイコン監視システム2と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 2 includes a microcomputer 100, a power supply circuit (regulator) 210 that outputs the power from the battery BATT to a predetermined voltage, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. . In the microcomputer monitoring system shown in FIG. 4, the same components as those of the microcomputer monitoring system 2 shown in FIG.

図4に示すマイコン監視システム2において、図2に示すマイコン監視システム1と異なる点は、電源回路210が予めフィルタ回路211を備えており、過電流検知部204から出力された電源回路の制御信号としての過電流検知信号がフィルタ回路211に入力され、フィルタ回路211の出力信号が、信号ラインL2を介してマイコン監視回路300に出力される点である。したがって、フィルタ回路211の出力信号が、NOR回路303aに入力される。   The microcomputer monitoring system 2 shown in FIG. 4 is different from the microcomputer monitoring system 1 shown in FIG. 2 in that the power supply circuit 210 includes a filter circuit 211 in advance, and the control signal for the power supply circuit output from the overcurrent detection unit 204. The overcurrent detection signal is input to the filter circuit 211, and the output signal of the filter circuit 211 is output to the microcomputer monitoring circuit 300 via the signal line L2. Therefore, the output signal of the filter circuit 211 is input to the NOR circuit 303a.

フィルタ回路211は、抵抗212、コンデンサ213及びバッファ214等を有し、過電流検知信号が所定期間(T1)だけ継続してHレベルになった場合に、その出力をLレベルからHレベルに変化して出力するように構成されている。   The filter circuit 211 has a resistor 212, a capacitor 213, a buffer 214, etc., and when the overcurrent detection signal continues to be at H level for a predetermined period (T1), its output changes from L level to H level. And output.

図5は、図4に示すマイコン監視システム2における信号出力例を示した図である。   FIG. 5 is a diagram showing an example of signal output in the microcomputer monitoring system 2 shown in FIG.

図5(a)は電源回路210の供給電流の一例を示し、図5(b)は過電流検知部204から出力される過電流検知信号の一例を示し、図5(c)はフィルタ回路211の出力信号の一例を示し、図5(d)はリセット信号出力部303から出力されるリセット信号の一例を示している。   5A shows an example of the supply current of the power supply circuit 210, FIG. 5B shows an example of an overcurrent detection signal output from the overcurrent detection unit 204, and FIG. 5C shows the filter circuit 211. FIG. 5D shows an example of the reset signal output from the reset signal output unit 303.

時刻t3において、供給電流が所定レベルsを超えると(図5(a)参照)、過電流検知信号がLレベルからHレベルに変化する(図5(b)参照)。その後、所定期間(T1)だけHレベルの過電流検知信号が継続して出力されると、時刻t4でフィルタ回路211からの出力信号がLレベルからHレベルに変化し(図5(c)参照)、それに伴ってリセット信号がHレベルからLレベルに変化して(図5(d)参照)、マイコン100がリセットされる。   When the supply current exceeds the predetermined level s at time t3 (see FIG. 5A), the overcurrent detection signal changes from the L level to the H level (see FIG. 5B). After that, when the H-level overcurrent detection signal is continuously output for a predetermined period (T1), the output signal from the filter circuit 211 changes from the L level to the H level at time t4 (see FIG. 5C). Accordingly, the reset signal changes from the H level to the L level (see FIG. 5D), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路210の異常(供給電流値の上昇)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路210に元々備えられているフィルタ回路211からの既存の出力信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, the microcomputer monitoring circuit 300 according to the present invention can quickly detect an abnormality (an increase in supply current value) of the power supply circuit 210 and reset the microcomputer 100, so that the microcomputer 100 can accurately detect abnormal operation or runaway. It becomes possible to prevent well. Furthermore, since the existing output signal from the filter circuit 211 originally provided in the power supply circuit 210 is used for resetting the microcomputer, it is possible to accurately detect abnormal operation or runaway of the microcomputer 100 without adding a new circuit. It becomes possible to prevent well.

ところで、電源回路210が、図4に示すフィルタ回路211を有する場合には、Hレベルの過電流検知信号が所定期間(T1)継続した場合に初めてリセット信号が出力されるように構成されているので、供給電流が所定レベルs近傍で頻繁に上下するような場合に、不必要にリセット信号が出力されることがないという更なる効果を有している。   When the power supply circuit 210 has the filter circuit 211 shown in FIG. 4, the reset signal is output only when the H-level overcurrent detection signal continues for a predetermined period (T1). Therefore, when the supply current frequently fluctuates in the vicinity of the predetermined level s, the reset signal is not output unnecessarily.

なお、上述した電源回路210における、バッテリBATTからの電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、過電流検知部における過電流の検知方式として他の方式を利用しても良い。さらに、図4に示すフィルタ回路211の回路構成例も一例であって、他の回路構成を用いることも、所定期間をシステムに応じた最適値とすることも可能である。さらに、上記の例では、フィルタ回路211からの出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路にフィルタ回路が備えられていない場合には、マイコン監視回路300内にフィルタ回路を設けるようにしても良い。   Note that the circuit configuration for outputting the power from the battery BATT to a predetermined voltage in the power supply circuit 210 described above is an example, and the present invention can be applied to other types of power supply circuits. It is. Further, another method may be used as an overcurrent detection method in the overcurrent detection unit. Furthermore, the circuit configuration example of the filter circuit 211 illustrated in FIG. 4 is also an example, and other circuit configurations can be used, or the predetermined period can be set to an optimum value according to the system. Further, in the above example, the output signal from the filter circuit 211 is directly input to the NOR circuit 303a. However, the signal is amplified or the voltage level is adjusted in accordance with the reset signal output unit 303. , H and L levels may be inverted. Further, when the power supply circuit is not provided with a filter circuit, a filter circuit may be provided in the microcomputer monitoring circuit 300.

図6は、更に他のマイコン監視システム3の構成を示した概略ブロック図である。   FIG. 6 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 3.

マイコン監視システム3は、マイコン100、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路(レギュレータ)220と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図6に示すマイコン監視システム3において、図2に示すマイコン監視システム1と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 3 includes a microcomputer 100, a power supply circuit (regulator) 220 that outputs the power from the battery BATT to a predetermined voltage, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. . In the microcomputer monitoring system 3 shown in FIG. 6, the same components as those in the microcomputer monitoring system 1 shown in FIG.

図6に示すマイコン監視システム3において、図2に示すマイコン監視システム1と異なる点は、電源回路220が予めタイマー回路221を備えており、過電流検知部204から出力された電源回路の制御信号としての過電流検知信号がタイマー回路221に入力され、タイマー回路221の出力信号が、信号ラインL2を介してマイコン監視回路300に出力される点である。したがって、タイマー回路221の出力信号が、NOR回路303aに入力される。   The microcomputer monitoring system 3 shown in FIG. 6 is different from the microcomputer monitoring system 1 shown in FIG. 2 in that the power supply circuit 220 includes a timer circuit 221 in advance, and the control signal for the power supply circuit output from the overcurrent detection unit 204. The overcurrent detection signal is input to the timer circuit 221, and the output signal of the timer circuit 221 is output to the microcomputer monitoring circuit 300 via the signal line L2. Therefore, the output signal of the timer circuit 221 is input to the NOR circuit 303a.

タイマー回路221は、抵抗222、コンデンサ223、バッファ224及びダイオード225等を有し、過電流検知信号がHレベルになってから、予め定められた期間T2だけその出力をHレベルに保持するように構成されている。なお、タイマー回路221は、電源回路220の自己修復用の信号を出力するために、元々電源回路220備えられた回路である。   The timer circuit 221 includes a resistor 222, a capacitor 223, a buffer 224, a diode 225, and the like so that the output is held at the H level for a predetermined period T2 after the overcurrent detection signal becomes the H level. It is configured. Note that the timer circuit 221 is a circuit originally provided in the power supply circuit 220 in order to output a signal for self-repair of the power supply circuit 220.

図7は、図6に示すマイコン監視システム3における信号出力例を示した図である。   FIG. 7 is a diagram showing an example of signal output in the microcomputer monitoring system 3 shown in FIG.

図7(a)は電源回路220の供給電流の一例を示し、図7(b)は過電流検知部204から出力される過電流検知信号の一例を示し、図7(c)はタイマー回路221の出力信号の一例を示し、図7(d)はリセット信号出力部303から出力されるリセット信号の一例を示している。   7A shows an example of the supply current of the power supply circuit 220, FIG. 7B shows an example of the overcurrent detection signal output from the overcurrent detection unit 204, and FIG. 7C shows the timer circuit 221. FIG. 7D shows an example of the reset signal output from the reset signal output unit 303.

時刻t5において、供給電流が所定レベルsを超えると(図7(a)参照)、過電流検知信号がLレベルからHレベルに変化する(図7(b)参照)。その後、タイマー回路221は、過電流検知信号がLレベルからHレベルに変化すると、予め定められた期間T2だけその出力をHレベルに保持し(図7(c)参照)、それに伴って期間T2の間(時刻t5〜t6)、リセット信号がLレベルに変化して(図7(d)参照)、マイコン100がリセットされる。   When the supply current exceeds the predetermined level s at time t5 (see FIG. 7A), the overcurrent detection signal changes from the L level to the H level (see FIG. 7B). Thereafter, when the overcurrent detection signal changes from the L level to the H level, the timer circuit 221 holds the output at the H level for a predetermined period T2 (see FIG. 7C), and accordingly, the period T2 During the period (time t5 to t6), the reset signal changes to the L level (see FIG. 7D), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路220の異常(供給電流値の上昇)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路220に元々備えられているタイマー回路221からの既存の出力信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, in the microcomputer monitoring circuit 300 according to the present invention, the abnormality of the power supply circuit 220 (the increase in the supply current value) can be detected quickly and the microcomputer 100 can be reset. It becomes possible to prevent well. Further, since the existing output signal from the timer circuit 221 originally provided in the power supply circuit 220 is used for resetting the microcomputer, it is possible to accurately detect abnormal operation or runaway of the microcomputer 100 without adding a new circuit. It becomes possible to prevent well.

ところで、電源回路220が、図6に示すタイマー回路221を有する場合には、過電流検知信号がHレベルに変化した後、予め定められた期間だけタイマー回路221の出力がHレベルに保持されるため、マイコンにリセット信号を確実に伝えることができるという更なる効果を有している。   When the power supply circuit 220 includes the timer circuit 221 shown in FIG. 6, the output of the timer circuit 221 is held at the H level for a predetermined period after the overcurrent detection signal changes to the H level. Therefore, there is a further effect that the reset signal can be reliably transmitted to the microcomputer.

なお、上述した電源回路220における、バッテリBATTからの電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、過電流検知部における過電流の検知方式として他の方式を利用しても良い。さらに、図6に示したタイマー回路221の回路構成例も一例であって、他の回路構成を用いることも、出力信号がHレベルに保持される期間T2をシステムに応じた最適値とすることも可能である。さらに、上記の例では、タイマー回路221からの出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路にタイマー回路が備えられていない場合には、マイコン監視回路300内にタイマー回路を設けるようにしても良い。   Note that the circuit configuration for outputting the power from the battery BATT to a predetermined voltage in the power supply circuit 220 described above is an example, and the present invention can be applied to other types of power supply circuits. It is. Further, another method may be used as an overcurrent detection method in the overcurrent detection unit. Further, the circuit configuration example of the timer circuit 221 shown in FIG. 6 is an example, and other circuit configurations may be used, or the period T2 during which the output signal is held at the H level is set to an optimum value according to the system. Is also possible. Further, in the above example, the output signal from the timer circuit 221 is configured to be input to the NOR circuit 303a as it is. However, the signal is amplified or the voltage level is adjusted in correspondence with the reset signal output unit 303. , H and L levels may be inverted. Furthermore, when the timer circuit is not provided in the power supply circuit, a timer circuit may be provided in the microcomputer monitoring circuit 300.

図8は、更に他のマイコン監視システム4の構成を示した概略ブロック図である。   FIG. 8 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 4.

マイコン監視システム4は、マイコン100、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路(レギュレータ)230と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図8に示すマイコン監視システム4において、図2に示すマイコン監視システム1と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 4 includes a microcomputer 100, a power supply circuit (regulator) 230 that outputs the electric power from the battery BATT to a predetermined voltage, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. . In the microcomputer monitoring system 4 shown in FIG. 8, the same components as those of the microcomputer monitoring system 1 shown in FIG.

図8に示すマイコン監視システム4において、図2に示すマイコン監視システム1と異なる点は、電源回路230が予めラッチ回路231及びリセット解除信号発生回路233を備えており、過電流検知部204から出力された電源回路の制御信号としての過電流検知信号がラッチ回路231に入力され、ラッチ回路231の出力信号(Q出力)が、信号ラインL2を介してマイコン監視回路300に出力され、NOR回路303aに入力される。   The microcomputer monitoring system 4 shown in FIG. 8 is different from the microcomputer monitoring system 1 shown in FIG. 2 in that the power supply circuit 230 includes a latch circuit 231 and a reset release signal generation circuit 233 in advance, and outputs from the overcurrent detection unit 204. The overcurrent detection signal as the control signal for the power supply circuit is input to the latch circuit 231, and the output signal (Q output) of the latch circuit 231 is output to the microcomputer monitoring circuit 300 via the signal line L2, and the NOR circuit 303a. Is input.

ラッチ回路231は、RSフリップフロップ232を有しており、RSフリップフロップ232のS入力に過電流検知信号が入力され、R入力にリセット解除信号発生回路233からのリセット解除信号が入力されるように構成されている。RSフリップフロップ232は、過電流検知信号がHレベルになってから、リセット解除信号がHレベルになるまでの期間(T4)、その出力(Q出力)をHレベルに保持するように機能する。なお、ラッチ回路231及びリセット解除信号発生回路233は、電源回路220の自己修復用等の信号を出力するために、元々電源回路230に備えられた回路である。   The latch circuit 231 includes an RS flip-flop 232 so that an overcurrent detection signal is input to the S input of the RS flip-flop 232 and a reset release signal from the reset release signal generation circuit 233 is input to the R input. It is configured. The RS flip-flop 232 functions to hold the output (Q output) at the H level during a period (T4) from when the overcurrent detection signal becomes the H level until the reset release signal becomes the H level. Note that the latch circuit 231 and the reset release signal generation circuit 233 are circuits originally provided in the power supply circuit 230 in order to output a signal for self-repair of the power supply circuit 220 and the like.

図9は、図8に示すマイコン監視システム4における信号出力例を示した図である。   FIG. 9 is a diagram showing an example of signal output in the microcomputer monitoring system 4 shown in FIG.

図9(a)は電源回路230の供給電流の一例を示し、図9(b)は過電流検知部204から出力される過電流検知信号の一例を示し、図9(c)はリセット解除信号発生回路232から出力されるリセット解除信号の一例を示し、図9(d)はラッチ回路231の出力(Q出力)の一例を示し、図9(e)はリセット信号出力部303から出力されるリセット信号の一例を示している。   9A shows an example of a supply current of the power supply circuit 230, FIG. 9B shows an example of an overcurrent detection signal output from the overcurrent detection unit 204, and FIG. 9C shows a reset release signal. FIG. 9D shows an example of the output (Q output) of the latch circuit 231, and FIG. 9E shows the output of the reset signal output unit 303. An example of a reset signal is shown.

時刻t5において、供給電流が所定レベルsを超えると(図9(a)参照)、過電流検知信号がLレベルからHレベルに変化する(図9(b)参照)。過電流検知信号がLレベルからHレベルに変化してから、所定期間T3後(時刻t8)に、リセット解除信号発生回路232から出力されるリセット解除信号がLレベルからHレベルに変化する(図9(c)参照)。ラッチ回路231は、過電流検知信号がLレベルからHレベルに変化してから、リセット解除信号がLレベルからHレベルに変化するまでの期間(T4)、その出力(Q出力)をHレベルに保持するので(図9(d)参照)、それに伴って期間T4の間(時刻t7〜t8)、リセット信号がLレベルに変化して(図9(d)参照)、マイコン100がリセットされる。   When the supply current exceeds the predetermined level s at time t5 (see FIG. 9A), the overcurrent detection signal changes from the L level to the H level (see FIG. 9B). After a predetermined period T3 (time t8) after the overcurrent detection signal changes from L level to H level, the reset release signal output from the reset release signal generation circuit 232 changes from L level to H level (FIG. 9 (c)). The latch circuit 231 sets the output (Q output) to the H level during a period (T4) from when the overcurrent detection signal changes from the L level to the H level until the reset release signal changes from the L level to the H level. Since this is held (see FIG. 9D), the reset signal changes to L level (see FIG. 9D) during the period T4 (time t7 to t8), and the microcomputer 100 is reset. .

このように、本発明に係るマイコン監視回路300では、電源回路230の異常(供給電流値の上昇)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路230に元々備えられているラッチ回路231からの既存の出力信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, the microcomputer monitoring circuit 300 according to the present invention can quickly detect an abnormality in the power supply circuit 230 (an increase in supply current value) and reset the microcomputer 100, so that the microcomputer 100 can accurately detect abnormal operation or runaway. It becomes possible to prevent well. Further, since the existing output signal from the latch circuit 231 originally provided in the power supply circuit 230 is used for resetting the microcomputer, it is possible to accurately detect abnormal operation or runaway of the microcomputer 100 without adding a new circuit. It becomes possible to prevent well.

ところで、電源回路230が、図8に示すラッチ回路231及びリセット解除信号発生回路233を有する場合には、過電流検知信号がHレベルに変化した後、予め定められた期間(T3又はT4)だけラッチ回路231の出力(Q出力)がHレベルに保持されるため、マイコンにリセット信号を確実に伝えることができるという更なる効果を有している。   Incidentally, when the power supply circuit 230 includes the latch circuit 231 and the reset release signal generation circuit 233 shown in FIG. 8, only the predetermined period (T3 or T4) after the overcurrent detection signal changes to the H level. Since the output (Q output) of the latch circuit 231 is held at the H level, the reset signal can be reliably transmitted to the microcomputer.

なお、上述した電源回路230における、バッテリBATTからの電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、過電流検知部における過電流の検知方式として他の方式を利用しても良い。さらに、図8に示したラッチ回路231及びリセット解除信号発生回路233の回路構成例も一例であって、他の回路構成を用いることも、出力信号がHレベルに保持される期間T3又はT4をシステムに応じた最適値とすることも可能である。さらに、上記の例では、ラッチ回路231の出力(Q出力)をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路にラッチ回路及びリセット解除信号発生回路が備えられていない場合には、マイコン監視回路300内にラッチ回路及びリセット解除信号発生回路を設けるようにしても良い。   Note that the circuit configuration for outputting the power from the battery BATT to a predetermined voltage in the power supply circuit 230 described above is an example, and the present invention can also be applied to other types of power supply circuits. It is. Further, another method may be used as an overcurrent detection method in the overcurrent detection unit. Further, the circuit configuration example of the latch circuit 231 and the reset release signal generation circuit 233 illustrated in FIG. 8 is an example, and other circuit configurations may be used, or the period T3 or T4 in which the output signal is held at the H level may be used. It is also possible to set the optimum value according to the system. In the above example, the output (Q output) of the latch circuit 231 is directly input to the NOR circuit 303a. However, the signal is amplified and the voltage level is adjusted in correspondence with the reset signal output unit 303. Or the H and L levels may be inverted. Further, when the power supply circuit is not provided with the latch circuit and the reset release signal generation circuit, the latch circuit and the reset release signal generation circuit may be provided in the microcomputer monitoring circuit 300.

図10は、更に他のマイコン監視システム5の構成を示した概略ブロック図である。   FIG. 10 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 5.

マイコン監視システム5は、マイコン100、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路(レギュレータ)240と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図10に示すマイコン監視システム5において、図2に示すマイコン監視システム1と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 5 includes a microcomputer 100, a power supply circuit (regulator) 240 that outputs the electric power from the battery BATT to a predetermined voltage, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. . In the microcomputer monitoring system 5 shown in FIG. 10, the same components as those in the microcomputer monitoring system 1 shown in FIG.

図10に示すマイコン監視システム5において、図2に示すマイコン監視システム1と異なる点は、過電流検知部204の過電流検知信号に基づくのではなく、電圧制御アンプ205の出力信号に基づいて、マイコン100をリセットする点にある。したがって、図10に示すマイコン監視システム5では、電源回路240が、電圧制御アンプ出力モニタ回路241を有しており、電源回路の制御信号としての電圧制御アンプ出力モニタ回路241の出力信号が、信号ラインL2を介してマイコン監視回路300に出力され、NOR回路303aに入力されることとなる。   The microcomputer monitoring system 5 shown in FIG. 10 is different from the microcomputer monitoring system 1 shown in FIG. 2 not based on the overcurrent detection signal of the overcurrent detection unit 204 but based on the output signal of the voltage control amplifier 205. The microcomputer 100 is reset. Therefore, in the microcomputer monitoring system 5 shown in FIG. 10, the power supply circuit 240 has the voltage control amplifier output monitor circuit 241, and the output signal of the voltage control amplifier output monitor circuit 241 as the control signal of the power supply circuit is a signal. The signal is output to the microcomputer monitoring circuit 300 via the line L2, and is input to the NOR circuit 303a.

電圧制御アンプ出力モニタ回路241は、OPアンプ242及び基準電圧243を有しており、OPアンプ242は、電圧制御アンプ205の出力電圧が基準電圧243以下の場合に、電圧制御アンプ205の出力電圧異常によって電源回路240が正常に動作しなくなることが予想されるので、Hレベルの出力信号を出力するように構成されている。なお、電圧制御アンプ出力モニタ回路241は、電源回路240が有する表示部(図示せず)に電圧制御アンプ205の出力異常を表示するために、元々電源回路240備えられた回路である。   The voltage control amplifier output monitor circuit 241 includes an OP amplifier 242 and a reference voltage 243. The OP amplifier 242 outputs the output voltage of the voltage control amplifier 205 when the output voltage of the voltage control amplifier 205 is equal to or lower than the reference voltage 243. Since it is expected that the power supply circuit 240 will not operate normally due to an abnormality, it is configured to output an H level output signal. The voltage control amplifier output monitor circuit 241 is a circuit originally provided with the power supply circuit 240 in order to display an output abnormality of the voltage control amplifier 205 on a display unit (not shown) included in the power supply circuit 240.

図11は、図10に示すマイコン監視システム5における信号出力例を示した図である。   FIG. 11 is a diagram showing an example of signal output in the microcomputer monitoring system 5 shown in FIG.

図11(a)は電圧制御アンプ205の出力電圧の一例を示し、図11(b)は電圧制御アンプ出力モニタ回路241からの出力信号の一例を示し、図11(c)はリセット信号出力部303から出力されるリセット信号の一例を示している。   11A shows an example of an output voltage of the voltage control amplifier 205, FIG. 11B shows an example of an output signal from the voltage control amplifier output monitor circuit 241, and FIG. 11C shows a reset signal output unit. An example of the reset signal output from 303 is shown.

時刻t9において、電圧制御アンプ205の出力電圧が所定レベルs以下となると(図11(a)参照)、電圧制御アンプ出力モニタ回路241の出力信号がLレベルから下限異常を示すHレベルに変化する(図11(b)参照)。電圧制御アンプ出力モニタ回路241の出力信号がLレベルからHレベルに変化すると、それに伴って、リセット信号がLレベルに変化して(図11(c)参照)、マイコン100がリセットされる。   When the output voltage of the voltage control amplifier 205 becomes equal to or lower than the predetermined level s at time t9 (see FIG. 11A), the output signal of the voltage control amplifier output monitor circuit 241 changes from the L level to the H level indicating the lower limit abnormality. (Refer FIG.11 (b)). When the output signal of the voltage control amplifier output monitor circuit 241 changes from L level to H level, the reset signal changes to L level (see FIG. 11C), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路240の異常(電圧制御アンプ205の出力電圧の減少)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路240に元々備えられている電圧制御アンプ出力モニタ回路241からの既存の出力信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, in the microcomputer monitoring circuit 300 according to the present invention, the abnormality of the power supply circuit 240 (decrease in the output voltage of the voltage control amplifier 205) can be quickly detected and the microcomputer 100 can be reset. Or it becomes possible to prevent a runaway with high precision. Further, since the existing output signal from the voltage control amplifier output monitor circuit 241 originally provided in the power supply circuit 240 is used for resetting the microcomputer, abnormal operation of the microcomputer 100 can be performed without adding a new circuit. Or it becomes possible to prevent a runaway with high precision.

なお、上述した電源回路240における、バッテリBATTからの電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、電圧制御アンプ205の出力電圧の検知方式として他の方式を利用しても良い。さらに、図10に示す電圧制御アンプ出力モニタ回路241の回路構成例は一例であって、他の回路構成を用いることも可能である。さらに、上記の例では、電圧制御アンプ出力モニタ回路241の出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路に元々電圧制御アンプ出力モニタ回路が備えられていない場合には、マイコン監視回路300内に電圧制御アンプ出力モニタ回路を設けるようにしても良い。   Note that the circuit configuration for outputting the power from the battery BATT to a predetermined voltage in the power supply circuit 240 described above is an example, and the present invention can also be applied to other types of power supply circuits. It is. Another method may be used as a method for detecting the output voltage of the voltage control amplifier 205. Furthermore, the circuit configuration example of the voltage control amplifier output monitor circuit 241 illustrated in FIG. 10 is an example, and other circuit configurations may be used. Further, in the above example, the output signal of the voltage control amplifier output monitor circuit 241 is input to the NOR circuit 303a as it is. However, the signal is amplified or the voltage level is set corresponding to the reset signal output unit 303. It may be adjusted or the H and L levels may be inverted. Further, when the power supply circuit is not originally provided with the voltage control amplifier output monitor circuit, a voltage control amplifier output monitor circuit may be provided in the microcomputer monitoring circuit 300.

ところで、電圧制御アンプ205の出力の下限異常を定める所定レベル(閾値)sを、例えば、フラッシュROM101の書換動作を行う書換動作モードの最低動作電圧(4.5V)に対応するように設定すれば、電源回路240における電圧制御アンプ出力モニタ回路の出力信号を利用して図1に示す第2電圧検知部35の代用をさせれば、図1に示す電圧検知切替部36及び動作モード検知部37を設けずに、図1に示すリセット回路30と同様の機能を、マイコン監視回路300に持たせることが可能となる。   By the way, if the predetermined level (threshold) s that determines the lower limit abnormality of the output of the voltage control amplifier 205 is set so as to correspond to, for example, the minimum operating voltage (4.5 V) in the rewriting operation mode in which the rewriting operation of the flash ROM 101 is performed. If the output signal of the voltage control amplifier output monitor circuit in the power supply circuit 240 is used in place of the second voltage detection unit 35 shown in FIG. 1, the voltage detection switching unit 36 and the operation mode detection unit 37 shown in FIG. 1 is provided, the microcomputer monitoring circuit 300 can have the same function as the reset circuit 30 shown in FIG.

さらに、電圧制御アンプ出力モニタ回路241の出力信号を図4に示すフィルタ回路211、図6に示すタイマー回路221又は図8に示すラッチ回路231に入力し、それぞれの回路からの出力信号をリセット信号出力部303に入力するように構成しても良い。   Further, the output signal of the voltage control amplifier output monitor circuit 241 is input to the filter circuit 211 shown in FIG. 4, the timer circuit 221 shown in FIG. 6 or the latch circuit 231 shown in FIG. 8, and the output signal from each circuit is reset. You may comprise so that it may input into the output part 303. FIG.

図12は、更に他のマイコン監視システム6の構成を示した概略ブロック図である。   FIG. 12 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 6.

マイコン監視システム6は、マイコン100、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路(レギュレータ)250と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図12に示すマイコン監視システム6において、図2に示すマイコン監視システム1と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 6 includes a microcomputer 100, a power supply circuit (regulator) 250 that outputs the electric power from the battery BATT to a predetermined voltage, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. . In the microcomputer monitoring system 6 shown in FIG. 12, the same components as those of the microcomputer monitoring system 1 shown in FIG.

図12に示すマイコン監視システム6において、図2に示すマイコン監視システム1と異なる点は、過電流検知部204の過電流検知信号に基づくのではなく、電圧制御アンプ205の出力信号に基づいて、マイコン100をリセットする点にある。したがって、図12に示すマイコン監視システム6では、電源回路250が、電圧制御アンプ出力モニタ回路251を有しており、電源回路の制御信号としての電圧制御アンプ出力モニタ回路251の出力信号が、信号ラインL2を介してマイコン監視回路300に出力され、NOR回路303aに入力されることとなる。   The microcomputer monitoring system 6 shown in FIG. 12 is different from the microcomputer monitoring system 1 shown in FIG. 2 not based on the overcurrent detection signal of the overcurrent detection unit 204 but based on the output signal of the voltage control amplifier 205. The microcomputer 100 is reset. Therefore, in the microcomputer monitoring system 6 shown in FIG. 12, the power supply circuit 250 has the voltage control amplifier output monitor circuit 251, and the output signal of the voltage control amplifier output monitor circuit 251 as the control signal of the power supply circuit is a signal. The signal is output to the microcomputer monitoring circuit 300 via the line L2, and is input to the NOR circuit 303a.

電圧制御アンプ出力モニタ回路251は、OPアンプ252及び基準電圧253を有しており、OPアンプ252は、電圧制御アンプ205の出力電圧が基準電圧253以上の場合に、電圧制御アンプ205の出力電圧異常によって電源回路250が正常に動作しなくなることが予想されるので、Hレベルの出力信号を出力するように構成されている。なお、電圧制御アンプ出力モニタ回路251は、電源回路250が有する表示部(図示せず)に電圧制御アンプ205の出力異常を表示するために、元々電源回路250備えられた回路である。   The voltage control amplifier output monitor circuit 251 includes an OP amplifier 252 and a reference voltage 253. The OP amplifier 252 outputs the output voltage of the voltage control amplifier 205 when the output voltage of the voltage control amplifier 205 is equal to or higher than the reference voltage 253. Since it is expected that the power supply circuit 250 will not operate normally due to an abnormality, the power supply circuit 250 is configured to output an H level output signal. The voltage control amplifier output monitor circuit 251 is a circuit originally provided with the power supply circuit 250 in order to display an output abnormality of the voltage control amplifier 205 on a display unit (not shown) included in the power supply circuit 250.

図13は、図12に示すマイコン監視システム6における信号出力例を示した図である。   FIG. 13 is a diagram showing an example of signal output in the microcomputer monitoring system 6 shown in FIG.

図13(a)は電圧制御アンプ205の出力電圧の一例を示し、図13(b)は電圧制御アンプ出力モニタ回路251からの出力信号の一例を示し、図13(c)はリセット信号出力部303から出力されるリセット信号の一例を示している。   13A shows an example of an output voltage of the voltage control amplifier 205, FIG. 13B shows an example of an output signal from the voltage control amplifier output monitor circuit 251, and FIG. 13C shows a reset signal output unit. An example of the reset signal output from 303 is shown.

時刻t10において、電圧制御アンプ205の出力電圧が所定レベルs以上となると(図13(a)参照)、電圧制御アンプ出力モニタ回路251の出力信号がLレベルから上限異常を示すHレベルに変化する(図13(b)参照)。電圧制御アンプ出力モニタ回路251の出力信号がLレベルからHレベルに変化すると、それに伴って、リセット信号がLレベルに変化して(図13(c)参照)、マイコン100がリセットされる。   When the output voltage of the voltage control amplifier 205 becomes equal to or higher than the predetermined level s at time t10 (see FIG. 13A), the output signal of the voltage control amplifier output monitor circuit 251 changes from the L level to the H level indicating the upper limit abnormality. (See FIG. 13B). When the output signal of the voltage control amplifier output monitor circuit 251 changes from L level to H level, the reset signal changes to L level (see FIG. 13C), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路250の異常(電圧制御アンプ205の出力電圧の上昇)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路250に元々備えられている電圧制御アンプ出力モニタ回路251からの既存の出力信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, in the microcomputer monitoring circuit 300 according to the present invention, an abnormality in the power supply circuit 250 (an increase in the output voltage of the voltage control amplifier 205) can be detected quickly and the microcomputer 100 can be reset. Or it becomes possible to prevent a runaway with high precision. Further, since the existing output signal from the voltage control amplifier output monitor circuit 251 originally provided in the power supply circuit 250 is used for resetting the microcomputer, abnormal operation of the microcomputer 100 can be performed without adding a new circuit. Or it becomes possible to prevent a runaway with high precision.

なお、上述した電源回路250における、バッテリBATTからの電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、電圧制御アンプ205の出力電圧の検知方式として他の方式を利用しても良い。さらに、図12に示す電圧制御アンプ出力モニタ回路251の回路構成例は一例であって、他の回路構成を用いることも可能である。さらに、上記の例では、電圧制御アンプ出力モニタ回路251の出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路に元々電圧制御アンプ出力モニタ回路が備えられていない場合には、マイコン監視回路300内に電圧制御アンプ出力モニタ回路を設けるようにしても良い。   The circuit configuration for outputting the power from the battery BATT to a predetermined voltage in the power supply circuit 250 described above is an example, and the present invention can be applied to other types of power supply circuits. It is. Another method may be used as a method for detecting the output voltage of the voltage control amplifier 205. Furthermore, the circuit configuration example of the voltage control amplifier output monitor circuit 251 shown in FIG. 12 is an example, and other circuit configurations may be used. Further, in the above example, the output signal of the voltage control amplifier output monitor circuit 251 is input to the NOR circuit 303a as it is. However, the signal is amplified or the voltage level is set corresponding to the reset signal output unit 303. It may be adjusted or the H and L levels may be inverted. Further, when the power supply circuit is not originally provided with the voltage control amplifier output monitor circuit, a voltage control amplifier output monitor circuit may be provided in the microcomputer monitoring circuit 300.

さらに、電圧制御アンプ出力モニタ回路251の出力信号を図4に示すフィルタ回路211、図6に示すタイマー回路221又は図8に示すラッチ回路231に入力し、それぞれの回路からの出力信号をリセット信号出力部303に入力するように構成しても良い。   Further, the output signal of the voltage control amplifier output monitor circuit 251 is input to the filter circuit 211 shown in FIG. 4, the timer circuit 221 shown in FIG. 6, or the latch circuit 231 shown in FIG. 8, and the output signal from each circuit is reset. You may comprise so that it may input into the output part 303. FIG.

図14は、更に他のマイコン監視システム7の構成を示した概略ブロック図である。   FIG. 14 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 7.

マイコン監視システム7は、マイコン100、バッテリBATTからの電力を所定電圧に定電圧化して出力する電源回路(レギュレータ)260と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図14に示すマイコン監視システム7において、図2に示すマイコン監視システム1と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 7 includes a microcomputer 100, a power supply circuit (regulator) 260 that outputs the power from the battery BATT to a predetermined voltage, and a microcomputer monitoring circuit 300 that monitors the microcomputer 100. . In the microcomputer monitoring system 7 shown in FIG. 14, the same components as those in the microcomputer monitoring system 1 shown in FIG.

図14に示すマイコン監視システム7において、図2に示すマイコン監視システム1と異なる点は、過電流検知部204の過電流検知信号に基づくのではなく、電源回路の過熱検知回路の出力信号に基づいて、マイコン100をリセットする点にある。したがって、図14に示すマイコン監視システム7では、電源回路260が、過熱検知回路261を有しており、電源回路の制御信号としての過熱検知回路261の出力信号が、信号ラインL2を介してマイコン監視回路300に出力されている。したがって、過熱検知回路261の出力信号が、NOR回路303aに入力されることとなる。   The microcomputer monitoring system 7 shown in FIG. 14 differs from the microcomputer monitoring system 1 shown in FIG. 2 not based on the overcurrent detection signal of the overcurrent detection unit 204 but on the output signal of the overheat detection circuit of the power supply circuit. Thus, the microcomputer 100 is reset. Therefore, in the microcomputer monitoring system 7 shown in FIG. 14, the power supply circuit 260 has the overheat detection circuit 261, and the output signal of the overheat detection circuit 261 as a control signal for the power supply circuit is sent to the microcomputer via the signal line L2. It is output to the monitoring circuit 300. Therefore, the output signal of the overheat detection circuit 261 is input to the NOR circuit 303a.

過熱検知回路261は、インバータ262、電流源としての温度センサ263、トランジスタ264、抵抗265及び266、及び基準電圧267等を有しており、温度センサ263からの出力電流が所定値以上になると、電圧制御アンプ205の出力を低下させて、電源回路260の過熱を防止するような出力を行うように構成されている。なお、過熱検知回路261は、電源回路260の安全対策の1つとして元々電源回路260に備えられた回路である。   The overheat detection circuit 261 includes an inverter 262, a temperature sensor 263 as a current source, a transistor 264, resistors 265 and 266, a reference voltage 267, and the like. When the output current from the temperature sensor 263 exceeds a predetermined value, The output of the voltage control amplifier 205 is reduced so that an output that prevents overheating of the power supply circuit 260 is performed. The overheat detection circuit 261 is a circuit originally provided in the power supply circuit 260 as one of safety measures for the power supply circuit 260.

図15は、図14に示すマイコン監視システム7における信号出力例を示した図である。   FIG. 15 is a diagram showing an example of signal output in the microcomputer monitoring system 7 shown in FIG.

図15(a)は電源回路260の温度変化の一例を示し、図15(b)は過熱検知回路261からの出力信号の一例を示し、図15(c)はリセット信号出力部303から出力されるリセット信号の一例を示している。   15A shows an example of a temperature change of the power supply circuit 260, FIG. 15B shows an example of an output signal from the overheat detection circuit 261, and FIG. 15C is output from the reset signal output unit 303. An example of the reset signal is shown.

時刻t11において、電源回路260の温度が所定レベルs以上となると(図15(a)参照)、過熱検知回路261の出力信号がLレベルから温度異常を示すHレベルに変化する(図15(b)参照)。過熱検知回路261の出力信号がLレベルからHレベルに変化すると、それに伴って、リセット信号がLレベルに変化して(図15(c)参照)、マイコン100がリセットされる。   When the temperature of the power supply circuit 260 becomes equal to or higher than the predetermined level s at time t11 (see FIG. 15A), the output signal of the overheat detection circuit 261 changes from L level to H level indicating a temperature abnormality (FIG. 15B). )reference). When the output signal of the overheat detection circuit 261 changes from the L level to the H level, the reset signal changes accordingly to the L level (see FIG. 15C), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路260の異常(温度の上昇)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路260に元々備えられている過熱検知回路261からの既存の出力信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, in the microcomputer monitoring circuit 300 according to the present invention, the abnormality (temperature rise) of the power supply circuit 260 can be detected quickly and the microcomputer 100 can be reset. It becomes possible. Furthermore, since the existing output signal from the overheat detection circuit 261 originally provided in the power supply circuit 260 is used for resetting the microcomputer, abnormal operation or runaway of the microcomputer 100 can be performed without adding a new circuit. It becomes possible to prevent with high accuracy.

なお、上述した電源回路260における、バッテリBATTからの電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、電源回路の温度検知方式として他の方式を利用しても良い。さらに、過熱検知回路261の回路構成例は一例であって、他の回路構成を用いることも可能である。さらに、上記の例では、過熱検知回路261の出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路に過熱検知回路が備えられていない場合には、マイコン監視回路300内に過熱検知回路を設けるようにしても良い。   Note that the circuit configuration for outputting the power from the battery BATT to a predetermined voltage in the power supply circuit 260 described above is an example, and the present invention can be applied to other types of power supply circuits. It is. Further, other methods may be used as the temperature detection method of the power supply circuit. Furthermore, the circuit configuration example of the overheat detection circuit 261 is an example, and other circuit configurations may be used. Further, in the above example, the output signal of the overheat detection circuit 261 is configured to be input to the NOR circuit 303a as it is. However, the signal is amplified or the voltage level is adjusted in correspondence with the reset signal output unit 303. , H and L levels may be inverted. Furthermore, if the power supply circuit is not provided with an overheat detection circuit, an overheat detection circuit may be provided in the microcomputer monitoring circuit 300.

さらに、過熱検知回路261の出力信号を図4に示すフィルタ回路211、図6に示すタイマー回路221又は図8に示すラッチ回路231に入力し、それぞれの回路からの出力信号をリセット信号出力部303に入力するように構成しても良い。   Further, the output signal of the overheat detection circuit 261 is input to the filter circuit 211 shown in FIG. 4, the timer circuit 221 shown in FIG. 6 or the latch circuit 231 shown in FIG. 8, and the output signal from each circuit is reset signal output unit 303. You may comprise so that it may input into.

図16は、更に他のマイコン監視システム8の構成を示した概略ブロック図である。   FIG. 16 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 8.

マイコン監視システム8は、マイコン100、電源回路(スイッチング・レギュレータ)400と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図16に示すマイコン監視システム8において、図2に示すマイコン監視システム1と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 8 includes a microcomputer 100, a power supply circuit (switching regulator) 400, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. In the microcomputer monitoring system 8 shown in FIG. 16, the same components as those in the microcomputer monitoring system 1 shown in FIG.

図16に示すマイコン監視システム8において、図2に示すマイコン監視システム1と異なる点は、電源回路400の形式が異なる点と、それに伴い、過電流検知部の過電流検知信号に基づくのではなく、チャージポンプ電源405をモニタするチャージポンプ出力モニタ回路430の出力信号に基づいて、マイコン100をリセットする点にある。したがって、図16に示すマイコン監視システム8では、電源回路400が、チャージポンプ出力モニタ回路430を有しており、電源回路の制御信号としてのチャージポンプ出力モニタ回路430の出力信号が、信号ラインL2を介してマイコン監視回路300に出力され、NOR回路303aに入力されることとなる。   The microcomputer monitoring system 8 shown in FIG. 16 is different from the microcomputer monitoring system 1 shown in FIG. 2 in that the type of the power supply circuit 400 is different and not based on the overcurrent detection signal of the overcurrent detection unit. The microcomputer 100 is reset based on the output signal of the charge pump output monitor circuit 430 that monitors the charge pump power source 405. Therefore, in the microcomputer monitoring system 8 shown in FIG. 16, the power supply circuit 400 has the charge pump output monitor circuit 430, and the output signal of the charge pump output monitor circuit 430 as the control signal of the power supply circuit is the signal line L2. Are output to the microcomputer monitoring circuit 300 and input to the NOR circuit 303a.

電源回路(スイッチング・レギュレータ)400は、パルス電源401、OPアンプ402、過電流検知部403、ロジック回路404、チャージポンプ電源405、バッファ406、MOSスイッチングトランジスタ407、入力電圧源408、ショットキーバリアダイオード409、コイル410、平滑用コンデンサ411、電圧制御回路420及びチャージポンプ出力モニタ回路430等から構成されている。また、電圧制御回路420は、電圧制御アンプ421、抵抗422及び423、及び基準電圧424等から構成される。   A power supply circuit (switching regulator) 400 includes a pulse power supply 401, an OP amplifier 402, an overcurrent detection unit 403, a logic circuit 404, a charge pump power supply 405, a buffer 406, a MOS switching transistor 407, an input voltage source 408, and a Schottky barrier diode. 409, a coil 410, a smoothing capacitor 411, a voltage control circuit 420, a charge pump output monitor circuit 430, and the like. The voltage control circuit 420 includes a voltage control amplifier 421, resistors 422 and 423, a reference voltage 424, and the like.

電源回路400では、高い周波数で電力をスイッチングするようにスイッチングトランジスタ407を制御し、ダイオード409及びコイル410等から構成されるフィルタを通して、平滑用コンデンサ411により平滑化した直流電力を供給する。また、電圧制御回路420では、出力信号ラインL1の電圧と、抵抗分割された基準電圧とを比較して、予め定められた電圧になるようにOPアンプ402に制御信号を出力する。
チャージポンプ出力モニタ回路430は、抵抗431及び432、OPアンプ433及び基準電圧434等から構成される。チャージポンプ出力モニタ回路430は、チャージポンプ電源405の出力が予め定められたレベルより低下した場合、電源回路400が正常に電力を供給できなくなる恐れがあると判断して、Hレベルのチャージポンプ出力モニタ信号を出力するように構成されている。なお、チャージポンプ出力モニタ回路430は、チャージポンプ電源405の出力異常をモニタするために元々電源回路400に備えられた保全を目的とする回路である。
In the power supply circuit 400, the switching transistor 407 is controlled so as to switch power at a high frequency, and DC power smoothed by the smoothing capacitor 411 is supplied through a filter including a diode 409 and a coil 410. Further, the voltage control circuit 420 compares the voltage of the output signal line L1 with the resistance-divided reference voltage, and outputs a control signal to the OP amplifier 402 so as to be a predetermined voltage.
The charge pump output monitor circuit 430 includes resistors 431 and 432, an OP amplifier 433, a reference voltage 434, and the like. The charge pump output monitor circuit 430 determines that the power supply circuit 400 may not be able to supply power normally when the output of the charge pump power supply 405 falls below a predetermined level. It is configured to output a monitor signal. The charge pump output monitor circuit 430 is a circuit originally intended for maintenance provided in the power supply circuit 400 in order to monitor the output abnormality of the charge pump power supply 405.

図17は、図16に示すマイコン監視システム8における信号出力例を示した図である。   FIG. 17 is a diagram showing an example of signal output in the microcomputer monitoring system 8 shown in FIG.

図17(a)はチャージポンプ電源405の出力電圧の一例を示し、図17(b)はチャージポンプ出力モニタ回路430からのチャージポンプ出力モニタ信号の一例を示し、図17(c)はリセット信号出力部303から出力されるリセット信号の一例を示している。   17A shows an example of the output voltage of the charge pump power supply 405, FIG. 17B shows an example of the charge pump output monitor signal from the charge pump output monitor circuit 430, and FIG. 17C shows the reset signal. An example of a reset signal output from the output unit 303 is shown.

時刻t12において、チャージポンプ電源405の出力電圧が所定レベルs以下となると(図17(a)参照)、チャージポンプ出力モニタ信号がLレベルから出力電圧異常を示すHレベルに変化する(図17(b)参照)。チャージポンプ出力モニタ信号がLレベルからHレベルに変化すると、それに伴って、リセット信号がLレベルに変化して(図17(c)参照)、マイコン100がリセットされる。   When the output voltage of the charge pump power supply 405 becomes equal to or lower than the predetermined level s at time t12 (see FIG. 17A), the charge pump output monitor signal changes from L level to H level indicating an output voltage abnormality (FIG. 17 ( b)). When the charge pump output monitor signal changes from L level to H level, the reset signal changes to L level (refer to FIG. 17C), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路400の異常(チャージポンプ電源405の出力電圧の低下)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路400に元々備えられているチャージポンプ出力モニタ回路430からの既存のチャージポンプ出力モニタ信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, in the microcomputer monitoring circuit 300 according to the present invention, the abnormality of the power supply circuit 400 (decrease in the output voltage of the charge pump power supply 405) can be quickly detected and the microcomputer 100 can be reset. Or it becomes possible to prevent a runaway with high precision. Further, since the existing charge pump output monitor signal from the charge pump output monitor circuit 430 originally provided in the power supply circuit 400 is used for resetting the microcomputer, there is no need to add a new circuit. Abnormal operation or runaway can be accurately prevented.

なお、上述した電源回路400における、電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、チャージポンプ電源405の出力電圧の検知方式として他の方式を利用しても良い。さらに、図16に示すチャージポンプ出力モニタ回路430の回路構成例は一例であって、他の回路構成を用いることも可能である。さらに、上記の例では、チャージポンプ出力モニタ回路430の出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路にチャージポンプ出力モニタ回路が備えられていない場合には、マイコン監視回路300内にチャージポンプ出力モニタ回路を設けるようにしても良い。   Note that the circuit configuration for outputting the power to a predetermined voltage in the power supply circuit 400 described above is an example, and the present invention can be applied to other types of power supply circuits. Another method may be used as a method for detecting the output voltage of the charge pump power supply 405. Furthermore, the circuit configuration example of the charge pump output monitor circuit 430 illustrated in FIG. 16 is merely an example, and other circuit configurations may be used. Further, in the above example, the output signal of the charge pump output monitor circuit 430 is directly input to the NOR circuit 303a. However, the signal is amplified or the voltage level is adjusted in accordance with the reset signal output unit 303. Or the H and L levels may be inverted. Further, when the power supply circuit is not provided with a charge pump output monitor circuit, a charge pump output monitor circuit may be provided in the microcomputer monitoring circuit 300.

さらに、チャージポンプ出力モニタ回路430の出力信号を図4に示すフィルタ回路211、図6に示すタイマー回路221又は図8に示すラッチ回路231に入力し、それぞれの回路からの出力信号をリセット信号出力部303に入力するように構成しても良い。   Further, the output signal of the charge pump output monitor circuit 430 is input to the filter circuit 211 shown in FIG. 4, the timer circuit 221 shown in FIG. 6, or the latch circuit 231 shown in FIG. 8, and the output signal from each circuit is output as a reset signal. It may be configured to input to the unit 303.

図18は、更に他のマイコン監視システム9の構成を示した概略ブロック図である。   FIG. 18 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 9.

マイコン監視システム9は、マイコン100、電源回路(スイッチング・レギュレータ)500と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図18に示すマイコン監視システム9において、図16に示すマイコン監視システム8と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 9 includes a microcomputer 100, a power supply circuit (switching regulator) 500, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. In the microcomputer monitoring system 9 shown in FIG. 18, the same components as those of the microcomputer monitoring system 8 shown in FIG.

図18に示すマイコン監視システム9において、図16に示すマイコン監視システム8と異なる点は、チャージポンプ電源405をモニタするチャージポンプ出力モニタ回路430の出力信号ではなく、スイッチングパルスモニタ信号に基づいて、マイコン100をリセットする点にある。したがって、図18に示すマイコン監視システム9では、電源回路500が、スイッチングパルスモニタ回路510を有しており、電源回路の制御信号としてのスイッチングパルスモニタ信号が、信号ラインL2を介してマイコン監視回路300に出力され、NOR回路303aに入力されることとなる。   The microcomputer monitoring system 9 shown in FIG. 18 differs from the microcomputer monitoring system 8 shown in FIG. 16 on the basis of the switching pulse monitor signal, not the output signal of the charge pump output monitor circuit 430 that monitors the charge pump power supply 405. The microcomputer 100 is reset. Therefore, in the microcomputer monitoring system 9 shown in FIG. 18, the power supply circuit 500 has the switching pulse monitor circuit 510, and the switching pulse monitor signal as the control signal of the power supply circuit is transmitted via the signal line L2. 300 is input to the NOR circuit 303a.

スイッチングパルスモニタ回路510は、周波数・電圧変換回路511、第1OPアンプ512、第1基準電圧513、第2OPアンプ514、第2基準電圧515、及びOR回路516等から構成されている。スイッチングパルスモニタ回路510は、パルス電源401のスイッチングパルスをモニタして、周波数異常が発生した場合に、スイッチングパルスモニタ信号をLレベルからHレベルに変化させて出力するように構成されている。周波数・電圧変換回路511において、パルス電源401のスイッチングパルスを周波数に対応した電圧に変化させて、第1OPアンプ512において当該電圧と第1基準電圧と比較し、第1基準電圧より当該電圧が大きい(即ち、パルス電源401の出力パルス周波数が所定範囲より高い)場合に、第1OPアンプ512がHレベルの出力を行い、第2OPアンプ514において当該電圧と第2基準電圧と比較し、第2基準電圧より当該電圧が小さい(即ち、パルス電源401の出力パルス周波数が所定範囲より小さい)場合に、第2OPアンプ514がHレベルの出力を行う。第1又は第2OPアンプからHレベル信号が出力された場合、OR回路516の出力がHレベルとなる。なお、スイッチングパルスモニタ回路510は、パルス電源401の出力パルスの出力異常をモニタするために元々電源回路500に備えられた保全を目的とする回路である。   The switching pulse monitor circuit 510 includes a frequency / voltage conversion circuit 511, a first OP amplifier 512, a first reference voltage 513, a second OP amplifier 514, a second reference voltage 515, an OR circuit 516, and the like. The switching pulse monitor circuit 510 is configured to monitor the switching pulse of the pulse power supply 401 and change and output the switching pulse monitor signal from the L level to the H level when a frequency abnormality occurs. In the frequency / voltage conversion circuit 511, the switching pulse of the pulse power supply 401 is changed to a voltage corresponding to the frequency, the first OP amplifier 512 compares the voltage with the first reference voltage, and the voltage is larger than the first reference voltage. In other words, when the output pulse frequency of the pulse power supply 401 is higher than a predetermined range, the first OP amplifier 512 outputs an H level, the second OP amplifier 514 compares the voltage with the second reference voltage, and the second reference When the voltage is smaller than the voltage (that is, the output pulse frequency of the pulse power supply 401 is smaller than the predetermined range), the second OP amplifier 514 outputs an H level. When the H level signal is output from the first or second OP amplifier, the output of the OR circuit 516 becomes H level. The switching pulse monitor circuit 510 is a circuit originally intended for maintenance provided in the power supply circuit 500 in order to monitor the output abnormality of the output pulse of the pulse power supply 401.

図19は、図18に示すマイコン監視システム9における信号出力例を示した図である。   FIG. 19 is a diagram showing a signal output example in the microcomputer monitoring system 9 shown in FIG.

図19(a)はパルス電源401の出力パルスの一例を示し、図19(b)はスイッチングパルスモニタ回路510からのスイッチングパルスモニタ信号の一例を示し、図19(c)はリセット信号出力部303から出力されるリセット信号の一例を示している。   19A shows an example of an output pulse of the pulse power supply 401, FIG. 19B shows an example of a switching pulse monitor signal from the switching pulse monitor circuit 510, and FIG. 19C shows a reset signal output unit 303. 2 shows an example of a reset signal output from.

時刻t13において、パルス電源401の出力が所定周波数より低くなると(図19(a)参照)、スイッチングパルスモニタ信号がLレベルから周波数異常を示すHレベルに変化する(図19(b)参照)。さらに、時刻t14において、パルス電源401の出力が所定周波数より高くなると(図19(a)参照)、スイッチングパルスモニタ信号がLレベルから周波数異常を示すHレベルに変化する(図19(b)参照)。スイッチングパルスモニタ信号がLレベルからHレベルに変化すると、それに伴って、リセット信号がLレベルに変化して(図19(c)参照)、マイコン100がリセットされる。   When the output of the pulse power supply 401 becomes lower than the predetermined frequency at time t13 (see FIG. 19A), the switching pulse monitor signal changes from L level to H level indicating frequency abnormality (see FIG. 19B). Further, when the output of the pulse power supply 401 becomes higher than a predetermined frequency at time t14 (see FIG. 19A), the switching pulse monitor signal changes from L level to H level indicating frequency abnormality (see FIG. 19B). ). When the switching pulse monitor signal changes from L level to H level, the reset signal changes to L level (see FIG. 19C), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路500の異常(パルス電源405の出力パルスの周波数異常)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路500に元々備えられているスイッチングパルスモニタ回路510からの既存のスイッチングパルスモニタ信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, in the microcomputer monitoring circuit 300 according to the present invention, the abnormality of the power supply circuit 500 (the abnormality of the frequency of the output pulse of the pulse power supply 405) can be quickly detected and the microcomputer 100 can be reset. Or it becomes possible to prevent a runaway with high precision. Furthermore, since the existing switching pulse monitor signal from the switching pulse monitor circuit 510 originally provided in the power supply circuit 500 is used for resetting the microcomputer, abnormal operation of the microcomputer 100 can be performed without adding a new circuit. Or it becomes possible to prevent a runaway with high precision.

なお、上述した電源回路500における、電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、パルス電源401の出力パルスの周波数検知方式として他の方式を利用しても良い。さらに、図18に示すスイッチングパルスモニタ回路510の回路構成例は一例であって、他の回路構成を用いることも可能である。さらに、上記の例では、スイッチングパルスモニタ回路510の出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路にスイッチングパルスモニタ回路が備えられていない場合には、マイコン監視回路300内にスイッチングパルスモニタ回路を設けるようにしても良い。   Note that the circuit configuration for outputting the power to a predetermined voltage in the power supply circuit 500 described above is an example, and the present invention can be applied to other types of power supply circuits. Further, another method may be used as a frequency detection method of the output pulse of the pulse power supply 401. Further, the circuit configuration example of the switching pulse monitor circuit 510 illustrated in FIG. 18 is an example, and other circuit configurations may be used. Further, in the above example, the output signal of the switching pulse monitor circuit 510 is directly input to the NOR circuit 303a. However, the signal is amplified or the voltage level is adjusted in accordance with the reset signal output unit 303. Alternatively, the H and L levels may be inverted. Further, when the switching pulse monitor circuit is not provided in the power supply circuit, the switching pulse monitor circuit may be provided in the microcomputer monitoring circuit 300.

さらに、スイッチングパルスモニタ回路510の出力信号を図4に示すフィルタ回路211、図6に示すタイマー回路221又は図8に示すラッチ回路231に入力し、それぞれの回路からの出力信号をリセット信号出力部303に入力するように構成しても良い。   Further, the output signal of the switching pulse monitor circuit 510 is input to the filter circuit 211 shown in FIG. 4, the timer circuit 221 shown in FIG. 6, or the latch circuit 231 shown in FIG. 8, and the output signal from each circuit is reset signal output unit It may be configured to input to 303.

図20は、更に他のマイコン監視システム10の構成を示した概略ブロック図である。   FIG. 20 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 10.

マイコン監視システム10は、マイコン100、電源回路(スイッチング・レギュレータ)600と、マイコン100の監視を行うためのマイコン監視回路300とを有している。図20に示すマイコン監視システム10において、図16に示すマイコン監視システム8と同様の構成には同じ参照符号を付して説明を省略する。   The microcomputer monitoring system 10 includes a microcomputer 100, a power supply circuit (switching regulator) 600, and a microcomputer monitoring circuit 300 for monitoring the microcomputer 100. In the microcomputer monitoring system 10 shown in FIG. 20, the same components as those in the microcomputer monitoring system 8 shown in FIG.

図20に示すマイコン監視システム10において、図16に示すマイコン監視システム8と異なる点は、チャージポンプ電源405をモニタするチャージポンプ出力モニタ回路430の出力信号ではなく、パルス電源405の出力パルスとスイッチングトランジスタ407のゲート信号パルスとの同期ずれをモニタするパルスモニタ信号に基づいて、マイコン100をリセットする点にある。パルス電源405の出力パルスとスイッチングトランジスタ407のゲート信号パルスとの同期ずれを生じた場合には、電源回路600が正常に動作しない恐れがあるので、マイコンをリセットするように制御するものである。したがって、図20に示すマイコン監視システム10では、電源回路600が、パルスモニタ回路610を有しており、電源回路の制御信号としてのパルスモニタ信号が、信号ラインL2を介してマイコン監視回路300に出力され、NOR回路303aに入力されることとなる。   The microcomputer monitoring system 10 shown in FIG. 20 is different from the microcomputer monitoring system 8 shown in FIG. 16 in that it is not the output signal of the charge pump output monitor circuit 430 that monitors the charge pump power supply 405 but the output pulse of the pulse power supply 405 and switching. The microcomputer 100 is reset based on a pulse monitor signal for monitoring the synchronization deviation with the gate signal pulse of the transistor 407. When the output pulse of the pulse power supply 405 and the gate signal pulse of the switching transistor 407 are out of synchronization, the power supply circuit 600 may not operate normally, and the microcomputer is controlled to be reset. Therefore, in the microcomputer monitoring system 10 shown in FIG. 20, the power supply circuit 600 has the pulse monitor circuit 610, and the pulse monitor signal as the control signal of the power supply circuit is sent to the microcomputer monitoring circuit 300 via the signal line L2. Is output and input to the NOR circuit 303a.

パルスモニタ回路610は、パルス電源405の出力パルスとスイッチングトランジスタ407のゲート信号パルスとの位相を比較する位相比較器611、トランジスタ612、駆動電源614、抵抗613、コンデンサ615、基準電圧616及びOPアンプ617等から構成され、位相比較器が位相のずれを検出するとトランジスタ612をONしてOPアンプ617の出力(即ち、パルスモニタ信号)をHレベルに変化させるように動作する。なお、パルスモニタ回路610は、パルス電源405の出力パルスとスイッチングトランジスタ407のゲート信号パルスとのパルスの同期ずれをモニタするために元々電源回路600に備えられた保全を目的とする回路である。   The pulse monitor circuit 610 includes a phase comparator 611, a transistor 612, a drive power supply 614, a resistor 613, a capacitor 615, a reference voltage 616, and an OP amplifier that compare the phases of the output pulse of the pulse power supply 405 and the gate signal pulse of the switching transistor 407. When the phase comparator detects a phase shift, the transistor 612 is turned on and the output of the OP amplifier 617 (that is, the pulse monitor signal) is changed to the H level. Note that the pulse monitor circuit 610 is a circuit originally intended for maintenance provided in the power supply circuit 600 in order to monitor a synchronization error between the output pulse of the pulse power supply 405 and the gate signal pulse of the switching transistor 407.

図21は、図20に示すマイコン監視システム10における信号出力例を示した図である。   FIG. 21 is a diagram showing an example of signal output in the microcomputer monitoring system 10 shown in FIG.

図21(a)はパルス電源401の出力パルスの一例を示し、図21(b)はスイッチングトランジスタ407のゲート信号パルスの一例を示し、図21(c)はパルスモニタ回路610からのパルスモニタ信号の一例を示し、図21(d)はリセット信号出力部303から出力されるリセット信号の一例を示している。   21A shows an example of an output pulse of the pulse power supply 401, FIG. 21B shows an example of a gate signal pulse of the switching transistor 407, and FIG. 21C shows a pulse monitor signal from the pulse monitor circuit 610. FIG. 21D shows an example of the reset signal output from the reset signal output unit 303.

時刻t15において、パルス電源405の出力パルスとスイッチングトランジスタ407のゲート信号パルスとのパルスの同期ずれが検知されると(図21(a)及び(b)参照)、パルスモニタ信号がLレベルから同期ずれを示すHレベルに変化する(図21(c)参照)。パルスモニタ信号がLレベルからHレベルに変化すると、それに伴って、リセット信号がLレベルに変化して(図21(d)参照)、マイコン100がリセットされる。   When a synchronization error between the output pulse of the pulse power source 405 and the gate signal pulse of the switching transistor 407 is detected at time t15 (see FIGS. 21A and 21B), the pulse monitor signal is synchronized from the L level. It changes to the H level indicating the deviation (see FIG. 21C). When the pulse monitor signal changes from L level to H level, the reset signal changes to L level (see FIG. 21D), and the microcomputer 100 is reset.

このように、本発明に係るマイコン監視回路300では、電源回路600の異常(パルスの同期ずれ)をいち早く検知し、マイコン100をリセットすることができるので、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。さらに、マイコンのリセットには、電源回路600に元々備えられているパルスモニタ回路610からの既存のパルスモニタ信号を利用するので、新たなに回路を追加する必要なく、マイコン100の異常動作又は暴走を精度良く防ぐことが可能となる。   As described above, in the microcomputer monitoring circuit 300 according to the present invention, the abnormality (pulse synchronization shift) of the power supply circuit 600 can be detected quickly and the microcomputer 100 can be reset, so that the abnormal operation or runaway of the microcomputer 100 can be accurately detected. It becomes possible to prevent. Further, since the existing pulse monitor signal from the pulse monitor circuit 610 originally provided in the power supply circuit 600 is used for resetting the microcomputer, abnormal operation or runaway of the microcomputer 100 can be performed without adding a new circuit. Can be accurately prevented.

なお、上述した電源回路600における、電力を所定電圧に定電圧化して出力するための回路構成は一例であって、他の方式の電源回路にも本発明を適用することが可能である。また、同期ずれを検出する方式として他の方式を利用しても良い。さらに、図20に示すパルスモニタ回路610の回路構成例は一例であって、他の回路構成を用いることも可能である。さらに、上記の例では、パルスモニタ回路610の出力信号をそのままNOR回路303aに入力するように構成したが、リセット信号出力部303に対応させて、信号を増幅したり、電圧レベルを調整したり、H及びLレベルを反転させるようにしても良い。さらに、電源回路にパルスモニタ回路が備えられていない場合には、マイコン監視回路300内にパルスモニタ回路を設けるようにしても良い。   Note that the above-described power supply circuit 600 has an example of a circuit configuration for outputting electric power after making the voltage constant to a predetermined voltage, and the present invention can be applied to other types of power supply circuits. Also, other methods may be used as a method for detecting synchronization loss. Further, the circuit configuration example of the pulse monitor circuit 610 illustrated in FIG. 20 is an example, and other circuit configurations may be used. Furthermore, in the above example, the output signal of the pulse monitor circuit 610 is directly input to the NOR circuit 303a. However, the signal is amplified or the voltage level is adjusted in correspondence with the reset signal output unit 303. , H and L levels may be inverted. Further, when the power supply circuit is not provided with a pulse monitor circuit, a pulse monitor circuit may be provided in the microcomputer monitoring circuit 300.

さらに、パルスモニタ回路610の出力信号を図4に示すフィルタ回路211、図6に示すタイマー回路221又は図8に示すラッチ回路231に入力し、それぞれの回路からの出力信号をリセット信号出力部303に入力するように構成しても良い。   Further, the output signal of the pulse monitor circuit 610 is input to the filter circuit 211 shown in FIG. 4, the timer circuit 221 shown in FIG. 6 or the latch circuit 231 shown in FIG. 8, and the output signal from each circuit is reset signal output unit 303. You may comprise so that it may input into.

図22は、更に他のマイコン監視システム11の構成を示した概略ブロック図である。   FIG. 22 is a schematic block diagram showing the configuration of still another microcomputer monitoring system 11.

マイコン監視システム11は、マイコン100、第1電源回路700、第2電源回路701、第3電源回路703と、マイコン100の監視を行うためのマイコン監視回路310とを有している。   The microcomputer monitoring system 11 includes a microcomputer 100, a first power supply circuit 700, a second power supply circuit 701, a third power supply circuit 703, and a microcomputer monitoring circuit 310 for monitoring the microcomputer 100.

第1電源回路700は、例えば、バックアップ用の1.5V電圧を第1電源ラインL1を介してマイコン100に供給するための電源回路であり、第2電源回路701は、例えば、メイン用の1.5V電圧を第2電源ラインL2を介してマイコン100に提供するための電源回路であり、第3電源回路702は、例えば、メイン用の5V電圧を第3電源ラインL3を介してマイコン100の提供するための電源回路である。なお、第1〜第3電源回路700〜702の構成は、図2に示す電源回路200と同様であるものとする。   The first power supply circuit 700 is a power supply circuit for supplying, for example, a backup 1.5V voltage to the microcomputer 100 via the first power supply line L1, and the second power supply circuit 701 is, for example, a main 1 The third power supply circuit 702 supplies, for example, the main 5V voltage to the microcomputer 100 via the second power supply line L2, and the third power supply circuit 702 supplies the main 5V voltage to the microcomputer 100 via the third power supply line L3. It is a power supply circuit for providing. The configurations of the first to third power supply circuits 700 to 702 are the same as those of the power supply circuit 200 shown in FIG.

マイコン監視回路310は、WDT監視回路312、リセット信号出力部313、及びシーケンス制御部314を含んで構成されている。   The microcomputer monitoring circuit 310 includes a WDT monitoring circuit 312, a reset signal output unit 313, and a sequence control unit 314.

WDT監視部312は、マイコン100のCPUから信号ラインL4を介して出力されるパルス信号を監視し、所定時間以内にパルス信号を受信できなかった場合には、マイコン100に異常が発生したものと判断して、異常信号(Hレベル)を出力するように構成されている。   The WDT monitoring unit 312 monitors a pulse signal output from the CPU of the microcomputer 100 via the signal line L4. If the pulse signal cannot be received within a predetermined time, an abnormality has occurred in the microcomputer 100. It judges and outputs an abnormal signal (H level).

シーケンス制御部314は、第1〜第3電源回路のモニタと起動許可を行い、後述するような電源シーケンス等の異常を検知した場合には、異常信号(Hレベル)を出力するように構成されている。   The sequence control unit 314 is configured to monitor and activate the first to third power supply circuits and to output an abnormality signal (H level) when an abnormality such as a power supply sequence as described later is detected. ing.

リセット信号出力部313は、2入力が共にLレベルである時にのみHレベルを出力するNOR回路313aを含んで構成されている。NOR回路313aには、WDT監視部312からの異常信号(Hレベル)、及びシーケンス制御部314からの異常信号(Hレベル)が入力されるように構成されている。リセット信号出力部313は、WDT監視部312からの異常信号、及び/又はシーケンス制御部314からの異常信号を検出すると、信号ラインL5を介してマイコン100のリセット端子にリセット信号(Lレベル)を出力し、マイコン100をリセットさせる。このリセットによって、マイコン100は、電圧低下時や、電気的ノイズなどの影響により暴走したときでも正常状態に復帰することができるように構成されている。   The reset signal output unit 313 includes a NOR circuit 313a that outputs an H level only when both inputs are at an L level. The NOR circuit 313a is configured to receive an abnormal signal (H level) from the WDT monitoring unit 312 and an abnormal signal (H level) from the sequence control unit 314. When the reset signal output unit 313 detects an abnormal signal from the WDT monitoring unit 312 and / or an abnormal signal from the sequence control unit 314, the reset signal output unit 313 sends a reset signal (L level) to the reset terminal of the microcomputer 100 via the signal line L5. To output and reset the microcomputer 100. By this reset, the microcomputer 100 is configured to be able to return to a normal state even when the voltage drops or when it runs away due to the influence of electrical noise or the like.

シーケンス制御部314は、第1〜第3電源回路への起動許可信号及び/又は第1〜第3電源回路の出力電圧を状態信号として検出して、第1〜第3電源回路の起動時、及び起動後において第1〜第3電源回路の何れかの出力電圧が低下した場合及び第1〜第3の電源回路への起動許可が失われた場合に、状態信号が電源シーケンスの異常を示しているとして、異常信号(Hレベル)を出力する。また、シーケンス制御部314は、第1〜第3電源回路の起動順序を電源シーケンスに応じて制御する。電源シーケンスとは、例えば、最初に第1電源回路の起動を許可し、その後第1電源回路の出力電圧が所定値以上となったら、次に第2電源回路の起動を許可し、その後第2電源回路の出力電圧が所定値以上となったら、次に第3電源回路の起動を許可し、その後第3電源回路の出力電圧が所定値以上となったら、第1〜第3電源回路の起動を完了すること等の制御動作のことを言う。   The sequence control unit 314 detects the start permission signal to the first to third power supply circuits and / or the output voltage of the first to third power supply circuits as a status signal, and at the time of starting the first to third power supply circuits, When the output voltage of any of the first to third power supply circuits decreases after startup and when the startup permission to the first to third power supply circuits is lost, the status signal indicates an abnormality in the power supply sequence. An abnormal signal (H level) is output. The sequence control unit 314 controls the activation order of the first to third power supply circuits according to the power supply sequence. The power supply sequence is, for example, first permitting activation of the first power supply circuit, and then permitting activation of the second power supply circuit when the output voltage of the first power supply circuit becomes a predetermined value or higher, and then secondly. When the output voltage of the power supply circuit becomes equal to or higher than a predetermined value, the third power supply circuit is allowed to start up. The control operation such as completing.

図23は、図22に示すマイコン監視システム11における信号出力例を示す図である。   FIG. 23 is a diagram showing an example of signal output in the microcomputer monitoring system 11 shown in FIG.

図23(a)はシーケンス制御部314から第1電源回路700への起動許可信号の一例を示し、図23(b)は第1電源回路700の出力電圧の一例を示し、図23(c)はシーケンス制御部314から第2電源回路701への起動許可信号の一例を示し、図23(d)は第2電源回路701の出力電圧の一例を示し、図23(e)はシーケンス制御部314から第3電源回路702への起動許可信号の一例を示し、図23(f)は第3電源回路702の出力電圧の一例を示し、図23(g)はリセット信号出力部313から出力されるリセット信号の一例を示している。   FIG. 23A shows an example of a start permission signal from the sequence control unit 314 to the first power supply circuit 700, FIG. 23B shows an example of the output voltage of the first power supply circuit 700, and FIG. Shows an example of a start permission signal from the sequence control unit 314 to the second power supply circuit 701, FIG. 23 (d) shows an example of the output voltage of the second power supply circuit 701, and FIG. 23 (e) shows the sequence control unit 314. FIG. 23F shows an example of the output voltage of the third power supply circuit 702, and FIG. 23G is outputted from the reset signal output unit 313. An example of a reset signal is shown.

図23において、時刻t16において、第1電源回路700への起動許可信号がHレベルになったのに同期して(図23(a)参照)、第1電源回路700の出力電圧が上昇し始める。時刻t17において、第1電源回路700の出力電圧が所定レベルs1に達したのに同期して(図23(b)参照)、第2電源回路701への起動許可信号がHレベルになり(図23(c)参照)、それに同期して第2電源回路701の出力電圧が上昇し始める。時刻t18において、第2電源回路701の出力電圧が所定レベルs2に達したのに同期して(図23(d)参照)、第3電源回路702への起動許可信号がHレベルになり(図23(e)参照)、それに同期して第3電源回路702の出力電圧が上昇し始める。時刻t19において、第3電源回路702の出力電圧が所定レベルs3に達したのに同期して(図23(f)参照)、シーケンス制御部314が異常信号をHレベルからLレベルに変化させるため、それに同期してリセット信号がLレベルからHレベルに変化して(図23(g)参照)、マイコン100のリセットが解除される。   23, at time t16, the output voltage of the first power supply circuit 700 starts to rise in synchronization with the activation permission signal to the first power supply circuit 700 becoming H level (see FIG. 23A). . At time t17, in synchronization with the output voltage of the first power supply circuit 700 reaching the predetermined level s1 (see FIG. 23B), the activation permission signal to the second power supply circuit 701 becomes H level (see FIG. 23). 23 (c)), the output voltage of the second power supply circuit 701 starts to rise in synchronization with it. At time t18, in synchronization with the output voltage of the second power supply circuit 701 reaching the predetermined level s2 (see FIG. 23D), the activation permission signal to the third power supply circuit 702 becomes H level (see FIG. 23). 23 (e)), the output voltage of the third power supply circuit 702 starts to rise in synchronization with the above. At time t19, the sequence control unit 314 changes the abnormal signal from the H level to the L level in synchronization with the output voltage of the third power supply circuit 702 reaching the predetermined level s3 (see FIG. 23 (f)). In synchronization therewith, the reset signal changes from the L level to the H level (see FIG. 23G), and the reset of the microcomputer 100 is released.

このように、シーケンス制御部314は、第1〜第3電源回路の起動時には、電源シーケンスにしたがって、第1〜第3電源回路を起動させると共に、その間は異常信号(Hレベル)をリセット出力部313へ出力して、マイコン100をリセット状態に維持する。   As described above, the sequence control unit 314 activates the first to third power supply circuits in accordance with the power supply sequence when the first to third power supply circuits are activated, and outputs an abnormal signal (H level) during that time to the reset output unit. It outputs to 313 and the microcomputer 100 is maintained in a reset state.

また、シーケンス制御部314は、第1〜第3電源回路の起動後には、第1〜第3電源回路の出力電圧をモニタし、何れかの出力電圧が低下した場合にも(例えば、時刻t20)、異常信号(Hレベル)をリセット出力部313出力して、マイコン100をリセット状態とする(図23(b)及び(g)参照)。   In addition, the sequence control unit 314 monitors the output voltage of the first to third power supply circuits after the first to third power supply circuits are activated, and also when any of the output voltages decreases (for example, at time t20). ), An abnormal signal (H level) is output to the reset output unit 313, and the microcomputer 100 is reset (see FIGS. 23B and 23G).

図24は、図22に示すマイコン監視システム11における他の信号出力例を示す図である。   FIG. 24 is a diagram showing another example of signal output in the microcomputer monitoring system 11 shown in FIG.

図24(a)はシーケンス制御部314から第1電源回路700への起動許可信号の一例を示し、図24(b)は第1電源回路700の出力電圧の一例を示し、図24(c)はシーケンス制御部314から第2電源回路701への起動許可信号の一例を示し、図24(d)は第2電源回路701の出力電圧の一例を示し、図24(e)はシーケンス制御部314から第3電源回路702への起動許可信号の一例を示し、図24(f)は第3電源回路702の出力電圧の一例を示し、図24(g)はリセット信号出力部313から出力されるリセット信号の一例を示している。   FIG. 24A shows an example of a start permission signal from the sequence control unit 314 to the first power supply circuit 700, FIG. 24B shows an example of the output voltage of the first power supply circuit 700, and FIG. Shows an example of a start permission signal from the sequence control unit 314 to the second power supply circuit 701, FIG. 24D shows an example of the output voltage of the second power supply circuit 701, and FIG. 24E shows the sequence control unit 314. FIG. 24F shows an example of the output voltage of the third power supply circuit 702, and FIG. 24G is output from the reset signal output unit 313. An example of a reset signal is shown.

図24における第1〜第3電源回路が起動するまでの電源シーケンスは、図23と同様である。図24では、何らかの原因で、第2電源回路への起動許可信号がLレベルに低下した場合にも(図24(c)参照)、シーケンス制御部314が異常信号をLレベルからHレベルに変化させるため、それに同期してリセット信号がHレベルからLレベルに変化して(図24(g)参照)、マイコン100がリセットされる状況を示している。   The power supply sequence until the first to third power supply circuits in FIG. 24 are activated is the same as that in FIG. In FIG. 24, even when the activation permission signal to the second power supply circuit drops to L level for some reason (see FIG. 24C), the sequence control unit 314 changes the abnormal signal from L level to H level. Therefore, the reset signal is changed from the H level to the L level in synchronization therewith (see FIG. 24G), and the microcomputer 100 is reset.

図22〜図24を用いて説明したように、シーケンス制御部314は、複数の電源回路の起動時、及び起動後において複数の電源回路の何れかの出力電圧が低下した場合及び複数の電源回路への起動許可が失われた場合に、異常信号(Hレベル)を出力するので、マイコン監視回路310は、良好に複数の電源回路をモニタして、適切にマイコン100のリセットを行うことができる。   As described with reference to FIG. 22 to FIG. 24, the sequence control unit 314 includes the plurality of power supply circuits when the output voltage of any of the plurality of power supply circuits is reduced at the time of starting the plurality of power supply circuits and after the start-up. When the activation permission is lost, an abnormal signal (H level) is output, so that the microcomputer monitoring circuit 310 can properly monitor the plurality of power supply circuits and appropriately reset the microcomputer 100. .

従来の電源回路及びリセット回路の構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the conventional power supply circuit and a reset circuit. 本発明に係るマイコン監視回路含むマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図2に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the signal output example in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the other microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図4に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the signal output example in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図6に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the example of a signal output in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図8に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the signal output example in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図10に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the example of a signal output in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図12に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the signal output example in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図14に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the signal output example in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図16に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the signal output example in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図18に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the example of a signal output in the microcomputer monitoring system shown in FIG. 本発明に係るマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the further another microcomputer monitoring system containing the microcomputer monitoring circuit which concerns on this invention. 図20に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the example of a signal output in the microcomputer monitoring system shown in FIG. 本発明に係る他のマイコン監視回路含む更に他のマイコン監視システムの構成を示した概略ブロック図である。It is the schematic block diagram which showed the structure of the other microcomputer monitoring system containing the other microcomputer monitoring circuit which concerns on this invention. 図22に示すマイコン監視システムにおける信号出力例を示した図である。It is the figure which showed the example of a signal output in the microcomputer monitoring system shown in FIG. 図22に示すマイコン監視システムにおける他の信号出力例を示した図である。It is the figure which showed the other signal output example in the microcomputer monitoring system shown in FIG.

符号の説明Explanation of symbols

1、2、3、4、5、6、7、8、9、10、11 マイコン監視システム
100 マイコン
200、210、220、230、240、250、260、400、500、600、700、701、702 電源回路
204 過電流検知部
211 フィルタ回路
221 タイマー回路
231 ラッチ回路
241、251 電圧制御アンプ出力モニタ回路
261 過熱検知回路
300 マイコン監視回路
302 WDT監視部
303 リセット信号出力部
304 電圧検知部
314 シーケンス制御部
410 チャージポンプ出力モニタ回路
510 スイッチングパルスモニタ回路
610 パルスモニタ回路
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 Microcomputer monitoring system 100 Microcomputer 200, 210, 220, 230, 240, 250, 260, 400, 500, 600, 700, 701, 702 Power supply circuit 204 Overcurrent detection unit 211 Filter circuit 221 Timer circuit 231 Latch circuit 241 251 Voltage control amplifier output monitor circuit 261 Overheat detection circuit 300 Microcomputer monitoring circuit 302 WDT monitoring unit 303 Reset signal output unit 304 Voltage detection unit 314 Sequence control Unit 410 charge pump output monitor circuit 510 switching pulse monitor circuit 610 pulse monitor circuit

Claims (10)

電源回路から電力が供給されるマイコンを監視するためのマイコン監視回路であって、
前記電源回路内で使用される制御信号を取得して、前記制御信号が前記電源回路の異常を示す場合に、リセット信号を前記マイコンに出力するリセット信号出力部を有することを特徴とするマイコン監視回路。
A microcomputer monitoring circuit for monitoring a microcomputer supplied with power from a power circuit,
A microcomputer monitor, comprising: a reset signal output unit that obtains a control signal used in the power supply circuit and outputs a reset signal to the microcomputer when the control signal indicates an abnormality in the power supply circuit circuit.
前記制御信号は、前記電源回路の過電流検知信号である、請求項1に記載のマイコン監視回路。   The microcomputer monitoring circuit according to claim 1, wherein the control signal is an overcurrent detection signal of the power supply circuit. 前記制御信号は、前記電源回路の電圧制御アンプ出力モニタ信号である、請求項1に記載のマイコン監視回路。   The microcomputer monitoring circuit according to claim 1, wherein the control signal is a voltage control amplifier output monitor signal of the power supply circuit. 前記制御信号は、前記電源回路の過熱検知信号である、請求項1に記載のマイコン監視回路。   The microcomputer monitoring circuit according to claim 1, wherein the control signal is an overheat detection signal of the power supply circuit. 前記制御信号は、前記電源回路のチャージポンプ出力モニタ信号である、請求項1に記載のマイコン監視回路。   The microcomputer monitoring circuit according to claim 1, wherein the control signal is a charge pump output monitor signal of the power supply circuit. 前記制御信号は、前記電源回路のスイッチングパルスモニタ信号である、請求項1に記載のマイコン監視回路。   The microcomputer monitoring circuit according to claim 1, wherein the control signal is a switching pulse monitor signal of the power supply circuit. 複数の電源回路から電力が供給されるマイコンを監視するためのマイコン監視回路であって、
前記複数の電源回路の電源シーケンスの状態を示す状態信号を取得し、前記状態信号が前記電源シーケンスの異常を示す場合に、リセット信号を前記マイコンに出力するリセット信号出力部を有することを特徴とするマイコン監視回路。
A microcomputer monitoring circuit for monitoring a microcomputer supplied with power from a plurality of power supply circuits,
It has a reset signal output unit that obtains a status signal indicating the status of a power supply sequence of the plurality of power supply circuits, and outputs a reset signal to the microcomputer when the status signal indicates an abnormality in the power supply sequence. A microcomputer monitoring circuit.
前記リセット信号出力部は、前記制御信号が所定期間継続して異常を示した場合にのみ信号を出力するフィルタ回路の出力信号に応じて、前記リセット信号を前記マイコンに出力する、請求項2〜7の何れか一項に記載のマイコン監視回路。   The reset signal output unit outputs the reset signal to the microcomputer in response to an output signal of a filter circuit that outputs a signal only when the control signal continuously shows a malfunction for a predetermined period. The microcomputer monitoring circuit according to any one of 7. 前記リセット信号出力部は、前記制御信号が異常を示した場合に所定期間継続して信号を出力するタイマー回路の出力信号に応じて、前記リセット信号を前記マイコンに出力する、請求項2〜7の何れか一項に記載のマイコン監視回路。   The reset signal output unit outputs the reset signal to the microcomputer according to an output signal of a timer circuit that continuously outputs a signal for a predetermined period when the control signal indicates abnormality. A microcomputer monitoring circuit according to any one of the above. 前記リセット信号出力部は、前記制御信号が異常を示した場合に所定期間継続して信号を出力するラッチ回路の出力信号に応じて、前記リセット信号を前記マイコンに出力する、請求項2〜7の何れか一項に記載のマイコン監視回路。   The reset signal output unit outputs the reset signal to the microcomputer according to an output signal of a latch circuit that continuously outputs a signal for a predetermined period when the control signal indicates abnormality. A microcomputer monitoring circuit according to any one of the above.
JP2006246766A 2006-09-12 2006-09-12 Microcomputer monitoring circuit Withdrawn JP2008070951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006246766A JP2008070951A (en) 2006-09-12 2006-09-12 Microcomputer monitoring circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006246766A JP2008070951A (en) 2006-09-12 2006-09-12 Microcomputer monitoring circuit

Publications (1)

Publication Number Publication Date
JP2008070951A true JP2008070951A (en) 2008-03-27

Family

ID=39292504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006246766A Withdrawn JP2008070951A (en) 2006-09-12 2006-09-12 Microcomputer monitoring circuit

Country Status (1)

Country Link
JP (1) JP2008070951A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014029578A (en) * 2012-07-31 2014-02-13 Fujitsu Ltd Power supply device, processing device, information processing system, and power control method
WO2014125795A1 (en) * 2013-02-14 2014-08-21 日本電気株式会社 Power supply monitoring device, electronic apparatus, communication apparatus and method for monitoring same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014029578A (en) * 2012-07-31 2014-02-13 Fujitsu Ltd Power supply device, processing device, information processing system, and power control method
WO2014125795A1 (en) * 2013-02-14 2014-08-21 日本電気株式会社 Power supply monitoring device, electronic apparatus, communication apparatus and method for monitoring same

Similar Documents

Publication Publication Date Title
JP4345845B2 (en) Power supply
JP4793226B2 (en) Switching boost power supply circuit
JP5820779B2 (en) In-vehicle power supply
US11662789B2 (en) Power supply circuit with switch for connection of a DC power supply to a power supply unit based on sensed temperature
JPWO2016001976A1 (en) Power converter
TWI571032B (en) Voltage supply device
JP2016060433A (en) Vehicular power supply device
JP2008070951A (en) Microcomputer monitoring circuit
JP5308298B2 (en) Reset circuit
JP2019159987A (en) Control device and control method
JP5945233B2 (en) Uninterruptible power system
JP6327099B2 (en) Semiconductor device
JP2015170332A (en) NAND flash module control method
CN108511009B (en) Memory power supply circuit, control device and memory power supply method
JP2007124781A (en) Power supply device, uninterruptible power supply device and power output control method
JP6008794B2 (en) Power supply device and video display device
JP5407466B2 (en) Power control method
JP2007306351A (en) Power-on reset circuit
JP7345721B2 (en) Abnormal current detection circuit
JP5428969B2 (en) Image forming apparatus
KR102136581B1 (en) An apparatus for compensating power failure and electrionic device comprising the same
JP5708021B2 (en) Secondary battery protection circuit, device using secondary battery
JP4826445B2 (en) Output control device for DC-DC converter, DC-DC converter and control method thereof
JP6834523B2 (en) Electronic control device
JP6896352B2 (en) In-vehicle power control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090820

A072 Dismissal of procedure

Free format text: JAPANESE INTERMEDIATE CODE: A073

Effective date: 20101221

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110104