JP2017174980A - Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system - Google Patents

Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system Download PDF

Info

Publication number
JP2017174980A
JP2017174980A JP2016059666A JP2016059666A JP2017174980A JP 2017174980 A JP2017174980 A JP 2017174980A JP 2016059666 A JP2016059666 A JP 2016059666A JP 2016059666 A JP2016059666 A JP 2016059666A JP 2017174980 A JP2017174980 A JP 2017174980A
Authority
JP
Japan
Prior art keywords
voltage
abnormality
counter output
level
count
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.)
Pending
Application number
JP2016059666A
Other languages
Japanese (ja)
Inventor
稲田 洋文
Hirofumi Inada
洋文 稲田
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.)
Rohm Co Ltd
Original Assignee
Rohm Co 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2016059666A priority Critical patent/JP2017174980A/en
Publication of JP2017174980A publication Critical patent/JP2017174980A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an abnormality detection circuit that monitors a voltage variation at the time of supplying a power source to quickly detect a sign of abnormality such as deterioration or a failure of a power source element and the like.SOLUTION: An abnormality detection circuit 40 comprises: a timer 30 that starts incrementing a count value CNT when a voltage VNinput from the outside starts rising and executes the increment until the count value CNT reaches a predetermined count setting value CNT_MAX; and a comparator 20 that compares the voltage VNwith a predetermined threshold voltage Vth, sets counter output C1 to a first level when the voltage is equal to or higher than the threshold voltage, and sets the counter output C1 to a second level when the voltage is lower than the threshold voltage. The timer 30, when the count value CNT reaches the predetermined count setting value CNT_MAX, refers to the counter output C1 output from the comparator 20; and, when the counter output C1 is not the first level, determines that abnormality has occurred to execute countermeasure processing for the abnormal time.SELECTED DRAWING: Figure 3

Description

本実施形態は、異常検出回路およびその動作方法、半導体装置およびその動作方法、および通信システムに関する。   The present embodiment relates to an abnormality detection circuit and an operation method thereof, a semiconductor device and an operation method thereof, and a communication system.

自動車に搭載されるあらゆる部品のための安全機能(例えば、フェールセーフ、異常検出、安全停止などの機能)の規格が見直されつつある。特に、車載用の機器の多くは、電気的/電子的に制御されており、高性能化・高機能化だけでなく、安全性の確保も重要なニーズとなっている。   Standards for safety functions (for example, fail-safe functions, abnormality detection functions, safety stop functions, etc.) for all parts mounted on automobiles are being reviewed. In particular, many in-vehicle devices are electrically / electronically controlled, and not only high performance and high functionality but also safety are important needs.

安全な車載用機器の開発手法や管理方式等を体系的にまとめた国際基準規格ISO26262が策定されている(例えば、非特許文献1参照。)。   An international standard ISO 26262 that systematically summarizes development methods and management methods for safe in-vehicle devices has been formulated (for example, see Non-Patent Document 1).

"ISO 26262-1:2011"、[online]、2011-11-15、International Organization for Standardization、[平成28年2月17日検索]、インターネット<URL:https://www.iso.org/obp/ui/#iso:std:iso:26262:-1:ed-1:v1:en>"ISO 26262-1: 2011", [online], 2011-11-15, International Organization for Standardization, [Search February 17, 2016], Internet <URL: https://www.iso.org/obp / ui / # iso: std: iso: 26262: -1: ed-1: v1: en>

例えば、プルアップ電圧を供給する電源素子などの劣化や故障によって通信システムに発生し得る重大な事故を事前に回避するために、電源素子などの劣化や故障をいち早く検知することが求められる。   For example, in order to avoid in advance a serious accident that may occur in a communication system due to deterioration or failure of a power supply element that supplies a pull-up voltage, it is required to quickly detect deterioration or failure of the power supply element.

本実施の形態は、電源供給時における電圧変化を監視し、電源素子などの劣化や故障等の異常の兆候をいち早く検知することができる異常検出回路およびその動作方法、半導体装置およびその動作方法、および通信システムを提供する。   The present embodiment monitors a voltage change at the time of power supply, and can quickly detect an abnormality such as deterioration or failure of a power supply element, an abnormality detection circuit and an operation method thereof, a semiconductor device and an operation method thereof, And a communication system.

本実施形態の一態様によれば、外部から入力される電圧が上昇を始めるとカウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するタイマと、前記外部から入力される前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するコンパレータとを備え、前記タイマは、前記カウント値が前記所定のカウント設定値に達すると、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に異常が発生したと判断して異常時の対応処理を実行する異常検出回路が提供される。   According to one aspect of the present embodiment, a timer that starts counting up when a voltage input from the outside starts increasing, and executes count-up until the count value reaches a predetermined count setting value; The externally input voltage is compared with a predetermined threshold voltage. If the voltage is equal to or higher than the threshold voltage, the counter output is set to the first level. If the voltage is lower than the threshold voltage, A comparator for setting the counter output to a second level, and the timer refers to the counter output output from the comparator when the count value reaches the predetermined count set value, and the counter An abnormality detection circuit is provided that determines that an abnormality has occurred when the output is not at the first level and executes a response process at the time of abnormality.

本実施形態の他の態様によれば、外部から入力される電圧がLowレベルから所望の電圧値まで上昇する際の傾きと所要時間に基づいて、異常が発生したか否かを監視する異常検出回路を備え、前記電圧が正常の傾き且つ正常の所要時間で前記所望の電圧まで上昇しなかった場合、異常時の対応処理を実行する半導体装置が提供される。   According to another aspect of the present embodiment, abnormality detection is performed to monitor whether or not an abnormality has occurred based on the slope and required time when the externally input voltage rises from a low level to a desired voltage value. There is provided a semiconductor device that includes a circuit and executes a response process when an abnormality occurs when the voltage does not rise to the desired voltage with a normal slope and a normal required time.

本実施形態の他の態様によれば、バスを介して複数のデバイスを相互に通信可能に接続する通信システムであって、前記バスにプルアップされた電圧がLowレベルから所望の電圧値まで上昇する際の傾きと所要時間に基づいて、異常が発生したか否かを監視する異常検出回路を備え、前記電圧が正常の傾き且つ正常の所要時間で前記所望の電圧まで上昇しなかった場合、異常時の対応処理を実行する半導体装置を備える通信システムが提供される。   According to another aspect of the present embodiment, a communication system for connecting a plurality of devices to each other via a bus so that the voltage pulled up to the bus rises from a low level to a desired voltage value. When an abnormality detection circuit for monitoring whether or not an abnormality has occurred based on the inclination and the required time when the voltage is not increased to the desired voltage at a normal inclination and a normal required time, There is provided a communication system including a semiconductor device that executes a response process when an abnormality occurs.

本実施形態の他の態様によれば、外部から入力される電圧が上昇を始めると、タイマが、カウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するステップと、コンパレータが、前記外部から入力される前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するステップと、前記カウント値が前記所定のカウント設定値に達すると、前記タイマが、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に異常時の対応処理を実行するステップとを有する異常検出回路の動作方法が提供される。   According to another aspect of the present embodiment, when the externally input voltage starts to rise, the timer starts counting up the count value, and counts up until the count value reaches a predetermined count setting value. A step of executing, the comparator compares the voltage inputted from the outside with a predetermined threshold voltage, and if the voltage is equal to or higher than the threshold voltage, the counter output is set to a first level; If the voltage is less than the threshold voltage, setting the counter output to a second level; and when the count value reaches the predetermined count set value, the timer outputs the counter output from the comparator And an operation method of an abnormality detection circuit comprising the step of executing a response process when an abnormality occurs when the counter output is not at the first level It is provided.

本実施形態の他の態様によれば、外部から入力される電圧がLowレベルから所望の電圧値まで上昇する際の傾きと所要時間に基づいて、異常が発生したか否かを監視するステップと、前記電圧が正常の傾き且つ正常の所要時間で前記所望の電圧まで上昇しなかった場合、異常時の対応処理を実行するステップとを有し、前記異常が発生したか否かを監視するステップは、前記外部から入力される前記電圧が上昇を始めると、タイマが、カウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するステップと、コンパレータが、前記外部から入力される前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するステップと、前記カウント値が前記所定のカウント設定値に達すると、前記タイマが、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に異常時の対応処理を実行するステップとを有する半導体装置の動作方法が提供される。   According to another aspect of the present embodiment, the step of monitoring whether or not an abnormality has occurred based on the slope and required time when the externally input voltage rises from the Low level to a desired voltage value; And a step of performing a response process when an abnormality occurs when the voltage does not rise to the desired voltage with a normal slope and a normal required time, and monitoring whether or not the abnormality has occurred When the voltage input from the outside starts to rise, a timer starts counting up the count value, and executes a count-up until the count value reaches a predetermined count setting value; and a comparator The externally input voltage is compared with a predetermined threshold voltage. If the voltage is equal to or higher than the threshold voltage, the counter output is set to the first level, and the voltage is Is less than a threshold voltage, the counter output is set to a second level, and when the count value reaches the predetermined count set value, the timer outputs the counter output output from the comparator. A method of operating a semiconductor device is provided that includes a step of executing a response process when an abnormality occurs when the counter output is not at the first level.

本実施の形態によれば、電源供給時における電圧変化を監視し、スイッチング電源素子などの劣化や故障等の異常の兆候をいち早く検知することができる異常検出回路およびその動作方法、半導体装置およびその動作方法、および通信システムを提供することができる。   According to the present embodiment, an abnormality detection circuit capable of monitoring voltage changes during power supply and quickly detecting signs of abnormality such as deterioration or failure of a switching power supply element, an operation method thereof, a semiconductor device, and the An operation method and a communication system can be provided.

複数のブロックをシリアル接続するI2C通信システムを例示する模式的構成図。The typical block diagram which illustrates the I2C communication system which serially connects a some block. 図1に例示したI2C通信システムのスイッチング電源素子に異常が発生した場合の電圧値の一例を示す概略図。Schematic which shows an example of the voltage value when abnormality generate | occur | produces in the switching power supply element of the I2C communication system illustrated in FIG. I2Cシステムに適用した実施の形態に係る半導体装置の一例を示す模式的構成図。The typical block diagram which shows an example of the semiconductor device which concerns on embodiment applied to the I2C system. (a)実施の形態に係る半導体装置における正常動作時のドライブNの波形例、(b)ノードN1の波形例。(A) Waveform example of drive N in normal operation in semiconductor device according to embodiment, (b) Waveform example of node N 1 . (a)実施の形態に係る半導体装置における異常動作時のドライブNの波形例、(b)ノードN1の波形例。(A) Waveform example of drive N at the time of abnormal operation in the semiconductor device according to the embodiment, (b) Waveform example of node N 1 . (a)実施の形態に係る半導体装置における正常動作時のドライブNの波形例、(b)ノードN1の波形例、(c)タイマのタイミング例。(A) waveform example of the drive N of the normal operation of the semiconductor device according to the embodiment, (b) a waveform example of a node N 1, (c) example of the timing of the timer. (a)実施の形態に係る半導体装置における異常動作時のドライブNの波形例、(b)ノードN1の波形例、(c)タイマのタイミング例。(A) waveform example of the drive N of the abnormal operation of the semiconductor device according to the embodiment, (b) a waveform example of a node N 1, (c) example of the timing of the timer. CANシステムに適用した実施の形態に係る半導体装置の一例を示す模式的構成図。The typical block diagram which shows an example of the semiconductor device which concerns on embodiment applied to the CAN system. 実施の形態に係る半導体装置を適用したI2Cシステムの別の例を示す模式的構成図。The typical block diagram which shows another example of the I2C system to which the semiconductor device which concerns on embodiment is applied. 実施の形態に係る半導体装置を集積化した監視用LSIの一例を示す模式的構成図。1 is a schematic configuration diagram illustrating an example of a monitoring LSI in which semiconductor devices according to an embodiment are integrated. 実施の形態に係る半導体装置を集積化した監視用LSIの1つの適用例を示す模式的構成図。FIG. 3 is a schematic configuration diagram illustrating one application example of a monitoring LSI in which a semiconductor device according to an embodiment is integrated. 実施の形態に係る半導体装置を集積化した監視用LSIの別の適用例を示す模式的構成図。FIG. 10 is a schematic configuration diagram illustrating another application example of the monitoring LSI in which the semiconductor device according to the embodiment is integrated. 実施の形態に係る監視用LSIを適用したCANシステムのバス構成例を示す模式的構成図。1 is a schematic configuration diagram showing a bus configuration example of a CAN system to which a monitoring LSI according to an embodiment is applied. 実施の形態に係る監視用LSIを適用したCANシステムのCANパケットエラー訂正信号とシリアルインタフェースとの関係を例示する模式図。The schematic diagram which illustrates the relationship between the CAN packet error correction signal of the CAN system to which the LSI for monitoring which concerns on embodiment is applied, and a serial interface. 実施の形態に係る半導体装置の処理動作例を示すフローチャートチャート。7 is a flowchart illustrating an example of a processing operation of the semiconductor device according to the embodiment.

次に、図面を参照して、実施の形態を説明する。以下の図面の記載において、同一又は類似の部分には同一又は類似の符号を付している。ただし、図面は模式的なものであり、厚みと平面寸法との関係、各層の厚みの比率等は現実のものとは異なることに留意すべきである。したがって、具体的な厚みや寸法は以下の説明を参酌して判断すべきものである。又、図面相互間においても互いの寸法の関係や比率が異なる部分が含まれていることはもちろんである。   Next, embodiments will be described with reference to the drawings. In the following description of the drawings, the same or similar parts are denoted by the same or similar reference numerals. However, it should be noted that the drawings are schematic, and the relationship between the thickness and the planar dimensions, the ratio of the thickness of each layer, and the like are different from the actual ones. Therefore, specific thicknesses and dimensions should be determined in consideration of the following description. Moreover, it is a matter of course that portions having different dimensional relationships and ratios are included between the drawings.

又、以下に示す実施の形態は、技術的思想を具体化するための装置や方法を例示するものであって、この実施の形態は、構成部品の材質、形状、構造、配置等を下記のものに特定するものでない。この実施の形態は、特許請求の範囲において、種々の変更を加えることができる。   Further, the embodiment described below exemplifies an apparatus and a method for embodying the technical idea, and in this embodiment, the material, shape, structure, arrangement, etc. of the component parts are described below. It is not something specific. This embodiment can be modified in various ways within the scope of the claims.

[実施の形態]
(I2Cシステムに適用した半導体装置の構成例)
図1は、I2Cインタフェースによる通信システムを模式的に例示する。この通信システムは、複数のブロック(ブロックA(81)とブロックB(82)と)を、I2C(Inter-Integrated Circuit:集積回路間通信)バスを介して通信可能にシリアル接続する。
[Embodiment]
(Configuration example of semiconductor device applied to I2C system)
FIG. 1 schematically illustrates a communication system using an I2C interface. In this communication system, a plurality of blocks (block A (81) and block B (82)) are serially connected so as to be communicable via an I2C (Inter-Integrated Circuit) bus.

I2Cインタフェースは、マイコンシステムなどにおいてIC間(例えばブロックA(81)とブロックB(82)との間)で通信をする際に用いられる同期式シリアル通信インタフェースである。I2Cインタフェースにおける信号線は、クロック線(SCL:シリアルクロック)とデータ線(SDA:シリアルデータ)の2本の信号線(図1においては省略)により構成されており、例えばプルアップ抵抗RPでプルアップされた双方向信号線である。ここで、ブロックA(81)は、例えばマスタデバイスであり、ブロックB(82)は、例えばスレーブデバイスである。   The I2C interface is a synchronous serial communication interface used when communication is performed between ICs (for example, between block A (81) and block B (82)) in a microcomputer system or the like. The signal line in the I2C interface is composed of two signal lines (not shown in FIG. 1) of a clock line (SCL: serial clock) and a data line (SDA: serial data). For example, the signal line is pulled by a pull-up resistor RP. This is an up-and-down bidirectional signal line. Here, the block A (81) is, for example, a master device, and the block B (82) is, for example, a slave device.

データ線は、ある電圧にプルアップされている。このプルアップ電圧は、スイッチング電源素子10などから供給されるが、スイッチング電源素子10に劣化、故障、破壊などが生じることにより、マイコンシステムのプログラムが誤動作(例えば暴走など)する恐れがある。   The data line is pulled up to a certain voltage. The pull-up voltage is supplied from the switching power supply element 10 or the like. However, when the switching power supply element 10 is deteriorated, failed, destroyed, or the like, the microcomputer system program may malfunction (for example, runaway).

スイッチング電源素子10などの劣化や故障等の異常の兆候をいち早く検知することができれば、重大な事故等を事前に防止することができる可能性がある。   If signs of abnormality such as deterioration or failure of the switching power supply element 10 can be detected promptly, a serious accident or the like may be prevented in advance.

図2は、スイッチング電源素子10に異常が発生した場合の電圧値Vccの一例を概略的に示す。   FIG. 2 schematically shows an example of the voltage value Vcc when an abnormality occurs in the switching power supply element 10.

スイッチング電源素子10などに劣化や軽微な故障が生じると、正常動作時(スペックの範囲内)において安定的に供給されていた電圧(段階SP1)は、次第に下降し始め(段階SP2)、そのまま放置すると、破壊等の重大な故障に結びつくくらいまで著しく下降し(段階SP3)、その結果、重大な事故を引き起こす場合もある。段階SP3に至る前、すなわち、下降し始めの段階SP2において異常を検知してアラートなどを出力することができれば、重大な事故等を未然に防止することができる可能性がある。   When the switching power supply element 10 or the like deteriorates or has a minor failure, the voltage (stage SP1) that has been stably supplied during normal operation (within the specification range) starts to gradually drop (stage SP2) and is left as it is. Then, it drops significantly to the extent that it leads to a serious failure such as destruction (step SP3), and as a result, a serious accident may be caused. If an abnormality can be detected and an alert or the like can be output before reaching the stage SP3, that is, in the stage SP2 at which it starts to descend, there is a possibility that a serious accident or the like can be prevented.

図3は、I2Cシステムに適用した実施の形態に係る半導体装置100の一例を模式的に示す。   FIG. 3 schematically shows an example of the semiconductor device 100 according to the embodiment applied to the I2C system.

半導体装置100は、プルアップ抵抗RPでプルアップされたI2Cデータバスに、ポート(Port)Aを介して接続され、ノードN1の電圧VN1がLowレベルから所望の電圧Vcc(閾値電圧Vth)まで上昇する際の傾き(Vth/(t2−t1))と所要時間(t2−t1)とに基づいて、スイッチング電源素子10に異常が発生したか否かを監視する異常検出回路40を備える。 The semiconductor device 100, the I2C data bus which is pulled up by pull-up resistor RP, port (Port) is connected via the A, node N 1 of the voltage VN 1 from Low level desired voltage Vcc (threshold voltage Vth) An abnormality detection circuit 40 is provided for monitoring whether or not an abnormality has occurred in the switching power supply element 10 based on the gradient (Vth / (t2-t1)) and the required time (t2-t1).

異常検出回路40は、外部からポートAを介して入力されるノードN1の電圧VN1が上昇を始めるとカウント値CNTのカウントアップを開始し、カウント値CNTが所定のカウント設定値CNT_MAXに達するまでカウントアップを実行するタイマA(30)と、外部からポートAを介して入力されるノードN1の電圧VN1と、所定の閾値電圧Vthとを比較し、ノードN1の電圧VN1≧閾値電圧Vthであれば、カウンタ出力C1を第1のレベル(Highレベル(「1」))に設定し、ノードN1の電圧VN1<閾値電圧Vthであれば、カウンタ出力C1を第2のレベル(Lowレベル(「0」))に設定するコンパレータA(20)とを備える。タイマA(30)は、カウント値CNTが所定のカウント設定値CNT_MAXに達すると、コンパレータA(20)から出力されるカウンタ出力C1を参照し、カウンタ出力C1がHighレベルでない場合に異常時の対応処理を実行する。 The abnormality detection circuit 40 starts counting up the count value CNT when the voltage VN 1 of the node N 1 input from the outside via the port A starts to rise, and the count value CNT reaches a predetermined count setting value CNT_MAX. a timer a (30) to perform the counting up to a voltage VN 1 of the node N 1 which is input via the port a from the outside, compared with a predetermined threshold voltage Vth, the voltage VN 1 ≧ node N 1 if the threshold voltage Vth, the counter output C1 first level is set to (High level ( "1")), if the node N 1 of the voltage VN 1 <threshold voltage Vth, the counter output C1 second And a comparator A (20) set to a level (Low level (“0”)). When the count value CNT reaches a predetermined count set value CNT_MAX, the timer A (30) refers to the counter output C1 output from the comparator A (20), and copes with an abnormality when the counter output C1 is not at a high level. Execute the process.

所定のカウント設定値CNT_MAXは、正常動作時(スペックの範囲内)において電圧VN1が所望の電圧Vcc(閾値電圧Vth)に達するのに要する標準的な時間に基づいて、設定される。 The predetermined count set value CNT_MAX is set based on a standard time required for the voltage VN 1 to reach the desired voltage Vcc (threshold voltage Vth) during normal operation (within the specification range).

所定の閾値電圧Vthは、スイッチング電源素子10に異常が発生したか否かを判定するのに十分な値に設定される。閾値電圧Vthの値を大きく設定すれば、異常発生の検出精度が上がるが、異常発生の検出に要する時間は長くなる。閾値電圧Vthの値を小さく設定すれば、異常発生の検出精度は下がるが、異常発生の検出に要する時間は短縮される。   The predetermined threshold voltage Vth is set to a value sufficient to determine whether or not an abnormality has occurred in the switching power supply element 10. If the value of the threshold voltage Vth is set to a large value, the detection accuracy of occurrence of abnormality increases, but the time required for detection of occurrence of abnormality increases. If the threshold voltage Vth is set to a small value, the detection accuracy of abnormality is lowered, but the time required to detect abnormality is reduced.

また、半導体装置100は、タイマ処理(カウントアップ)の開始を指示するタイマスタート信号SをタイマA(30)に供給するnMOSトランジスタM1を備えても良い。   Further, the semiconductor device 100 may include an nMOS transistor M1 that supplies a timer start signal S instructing start of timer processing (counting up) to the timer A (30).

また、異常検出回路40は、ポートAから入力される電圧VN1などを一時的に蓄えるバッファ35を備えても良い。 Further, the abnormality detection circuit 40 may include a buffer 35 that temporarily stores the voltage VN 1 or the like input from the port A.

ポートAは、双方向(入出力)端子である。例えば、I2Cのデータ線(SDA)が接続される。   Port A is a bidirectional (input / output) terminal. For example, an I2C data line (SDA) is connected.

ノードN1の電圧VN1は、半導体装置100内のドライブ(Drive)Nにより、GNDレベル(Lowレベル「0」)と、電源電圧Vccとの2つの値をとる。nMOSトランジスタM1のドライブNがHighレベル(「1」)であれば、ノードN1の電圧VN1はLowレベル(「0」)となり、ドライブNがLowレベル(「0」)であれば、ノードN1の電圧VN1は、Highレベル(「1」)となる。ノードN1の電圧VN1のHighレベルは、スイッチング電源素子10により維持される。 The voltage VN 1 of the node N 1 takes two values, that is, a GND level (Low level “0”) and a power supply voltage Vcc by a drive N in the semiconductor device 100. If drive N is High level of the nMOS transistor M1 ( "1"), the node voltage VN 1 of N 1 is Low level ( "0"), and if the drive N is Low level ( "0"), the node The voltage VN 1 of N 1 becomes High level (“1”). The high level of the voltage VN 1 at the node N 1 is maintained by the switching power supply element 10.

図4は、半導体装置100における正常動作時のドライブN(図4(a))とノードN1の電圧VN1(図4(b))との関係を模式的に例示する。ドライブNがHighレベルからLowレベルに移行する時刻t1、すなわち、ノードN1の電圧VN1がLowレベルからHighレベルに移行する時刻t1では、ノードN1の電圧レベルは緩やかに上昇していく。 Figure 4 schematically illustrates the relationship between the normal operation of the drive N (FIG. 4 (a)) and the node N 1 of the voltage VN 1 (FIG. 4 (b)) in the semiconductor device 100. Time t1 drive N transitions from High level to Low level, i.e., at time t1 the voltage VN 1 of node N 1 is changed from the Low level to the High level, the voltage level of node N 1 goes gently rises.

図5は、半導体装置100における異常動作時のドライブN(図5(a))とノードN1の電圧VN1(図5(b))との関係を模式的に例示する。 Figure 5 is a semiconductor device malfunction during drive N at 100 (FIG. 5 (a)) and a node the relationship between the voltage VN 1 of N 1 (FIG. 5 (b)) schematically illustrates.

ここで、スイッチング電源素子10が劣化し始め、スイッチング電源素子10が供給する電流Iが減り始めたとする。すると、時刻t1から、ノードN1の電圧VN1がLowレベルから所望の電圧Vccまで上昇するのに要する時間(図5(b)での破線)が、正常動作時に要する時間(図5(b)での実線)に比べて長くなり始める。これは、プルアップ抵抗RPの劣化により、スイッチング電源素子10がプルアップ抵抗RPを介して、電流Iで充電していく時間が、正常動作に比べて時間を要するようになるからである。 Here, it is assumed that the switching power supply element 10 starts to deteriorate and the current I supplied by the switching power supply element 10 starts to decrease. Then, from time t1, the node N time required for raising the voltage VN 1 of 1 from the Low level to the desired voltage Vcc (broken line in FIG. 5 (b)) is, the time required for the normal operation (FIG. 5 (b ) Begins to become longer than the solid line). This is because the time required for the switching power supply element 10 to be charged with the current I via the pull-up resistor RP takes longer than the normal operation due to the deterioration of the pull-up resistor RP.

実施の形態に係る半導体装置100は、ノードN1の電圧VN1が所望の電圧Vcc(閾値電圧Vth)に達するのに要する時間を測定し、その時間が所定の時間よりも長くなった場合に、スイッチング電源素子10に異常(例えば劣化の兆し)が生じていると判断し、アラート等を出力して、重大な事故等を未然に防止する。 The semiconductor device 100 according to the embodiment measures a time required for the voltage VN 1 at the node N 1 to reach a desired voltage Vcc (threshold voltage Vth), and when the time becomes longer than a predetermined time. Then, it is determined that an abnormality (for example, a sign of deterioration) has occurred in the switching power supply element 10, and an alert or the like is output to prevent a serious accident or the like.

図6は、半導体装置100における正常動作時のドライブN(図6(a))とノードN1の電圧VN1(図6(b))とタイマA(30)(図6(c))との関係を模式的に例示する。 6, the semiconductor normal in the apparatus 100 during operation of the drive N (FIG. 6 (a)) and the node N 1 of the voltage VN 1 and (FIG. 6 (b)) Timer A (30) and (FIG. 6 (c)) The relationship is schematically illustrated.

ドライブNがHighレベルからLowレベルに転じると、タイマスタート信号SがタイマA(30)に供給され、タイマA(30)は、カウント値CNTをカウントアップし始める。タイマA(30)は、カウント値CNTが所定のカウント設定値CNT_MAXに達すると、カウントアップを停止する。   When the drive N changes from the High level to the Low level, the timer start signal S is supplied to the timer A (30), and the timer A (30) starts to count up the count value CNT. The timer A (30) stops counting up when the count value CNT reaches a predetermined count set value CNT_MAX.

コンパレータA(20)は、ノードN1の電圧VN1と所定の閾値電圧Vthとを比較し、ノードN1の電圧VN1≧閾値電圧Vthであれば、カウンタ出力C1をHighレベル(「1」)に設定し、ノードN1の電圧VN1<閾値電圧Vthであれば、カウンタ出力C1をLowレベル(「0」)に設定する。 Comparator A (20) compares the voltage VN 1 of node N 1 and a predetermined threshold voltage Vth, if the voltage VN 1 ≧ the threshold voltage Vth of the node N 1, the counter output C1 High level ( "1" set), if the voltage VN 1 <the threshold voltage Vth of the node N 1, sets the counter output C1 to Low level ( "0").

図6に例示するように、正常動作時においては、カウント値CNTが所定のカウント設定値CNT_MAXに達する前に、カウンタ出力C1がLowレベルからHighレベルに転じる(時刻t2)。したがって、ノードN1の電圧VN1が閾値電圧Vthまで達するのに要する時間が正常動作時の範囲内であり、スイッチング電源素子10に異常(例えば劣化の兆し)が生じていないと判断し、タイマA(30)は、アラート等を出力しない。 As illustrated in FIG. 6, during normal operation, the counter output C1 changes from the Low level to the High level before the count value CNT reaches the predetermined count setting value CNT_MAX (time t2). Accordingly, in the range time during normal operation required for the voltage VN 1 of node N 1 reaches the threshold voltage Vth, it is determined that an abnormality in the switching power supply device 10 (e.g., signs of deterioration) does not occur, the timer A (30) does not output an alert or the like.

図7は、実施の形態に係る半導体装置100における異常動作時のドライブN(図7(a))とノードN1の電圧VN1(図7(b))とタイマA(30)(図7(c))との関係を模式的に例示する。 7, the voltage VN 1 (FIG. 7 (b)) and a timer A (30) of the semiconductor device malfunction during drive N at 100 (FIG. 7 (a)) and the node N 1 according to the embodiment (FIG. 7 The relationship with (c)) is schematically illustrated.

図7に例示するように、異常動作時においては、カウント値CNTが所定のカウント設定値CNT_MAXに達しても、カウンタ出力C1はLowレベルのままである(カウンタ出力C1がLowレベルからHighレベルに転じるのは(時刻t2)、カウント値CNTが所定のカウント設定値CNT_MAXに達した後である)。したがって、ノードN1の電圧VN1が閾値電圧Vthまで達するのに要する時間が正常動作時に比べて長く、スイッチング電源素子10に異常(例えば劣化の兆し)が生じていると判断し、タイマA(30)は、アラート等を出力する。 As illustrated in FIG. 7, during an abnormal operation, even when the count value CNT reaches a predetermined count setting value CNT_MAX, the counter output C1 remains at the low level (the counter output C1 changes from the low level to the high level). It is turned (time t2) after the count value CNT reaches a predetermined count set value CNT_MAX). Therefore, it is determined that the time required for the voltage VN 1 at the node N 1 to reach the threshold voltage Vth is longer than that during normal operation, and that the switching power supply element 10 is abnormal (for example, a sign of deterioration). 30) outputs an alert or the like.

以上説明したように、I2Cシステムに適用した実施の形態に係る半導体装置100によれば、電源供給時における電圧変化を監視することで、スイッチング電源素子10などの劣化や故障等の異常の兆候をいち早く検知することができる。   As described above, according to the semiconductor device 100 according to the embodiment applied to the I2C system, by monitoring the voltage change at the time of power supply, the switching power supply element 10 and the like can show signs of abnormality such as deterioration or failure. It can be detected quickly.

(CANシステムに適用した半導体装置の構成例)
実施の形態に係る半導体装置100は、I2Cシステム以外にも、差動インタフェースを用いるLVDS(Low Voltage Differential Signaling)、DisplayPort(ディスプレイポート)、HDMI(登録商標)(High-Definition Multimedia Interface)、CAN(Controller Area Network)などにも適用することができる。
(Configuration example of semiconductor device applied to CAN system)
In addition to the I2C system, the semiconductor device 100 according to the embodiment includes LVDS (Low Voltage Differential Signaling), DisplayPort (display port), HDMI (registered trademark) (High-Definition Multimedia Interface), CAN ( It can also be applied to a controller area network.

図8は、CANシステムに適用した実施の形態に係る半導体装置100の一例を模式的示す。   FIG. 8 schematically shows an example of the semiconductor device 100 according to the embodiment applied to the CAN system.

実施の形態に係る半導体装置100においは、特定のデータフレームの特定ビットがHighレベルであることが確定している場合に、その特定ビットが所望の電圧に達するまでに要する時間をタイマA(30)が計測する。   In semiconductor device 100 according to the embodiment, when it is determined that a specific bit of a specific data frame is at a high level, the time required for the specific bit to reach a desired voltage is set to timer A (30 ) Measure.

異常検出回路40を備える半導体装置100は、CANデバイスSG1(61)、SG2(62)に接続され、CAN信号が正常の傾き且つ正常の所要時間でLowレベルからHighレベルあるいはHighレベルからLowレベルに変化するか否かを監視する。異常を検出した場合、半導体装置100は、CPU200に対してIRQ(Interrupt ReQuest:割り込み要求)信号を出力して、異常検出を通知する。   The semiconductor device 100 including the abnormality detection circuit 40 is connected to the CAN devices SG1 (61) and SG2 (62), and the CAN signal is changed from the low level to the high level or from the high level to the low level with a normal inclination and a normal required time. Monitor for changes. When an abnormality is detected, the semiconductor device 100 outputs an IRQ (Interrupt ReQuest) signal to the CPU 200 to notify the abnormality detection.

CPU200は、正常動作時には、CANデバイスSG1(61)、SG2(62)の機能を有効にするイネーブル信号EN1、EN2をそれぞれCANデバイスSG1(61)、SG2(62)に出力する。それに対して、半導体装置100からのIRQ信号を受信したCPU200は、IRQ信号に呼応して、CANデバイスSG1(61)、SG2(62)の機能を無効にするディスエーブル信号をイネーブル端子EN1、EN2からCANデバイスSG1(61)、SG2(62)にそれぞれ出力する。   During normal operation, the CPU 200 outputs enable signals EN1 and EN2 for enabling the functions of the CAN devices SG1 (61) and SG2 (62) to the CAN devices SG1 (61) and SG2 (62), respectively. On the other hand, the CPU 200 that has received the IRQ signal from the semiconductor device 100 generates a disable signal that disables the functions of the CAN devices SG1 (61) and SG2 (62) in response to the IRQ signal. To CAN devices SG1 (61) and SG2 (62), respectively.

以上説明したように、CANシステムに適用した実施の形態に係る半導体装置100によれば、CAN信号の電圧変化を監視することで、CANデバイスなどの劣化や故障等の異常の兆候をいち早く検知することができる。   As described above, according to the semiconductor device 100 according to the embodiment applied to the CAN system, by monitoring the voltage change of the CAN signal, it is possible to quickly detect an abnormality such as deterioration or failure of the CAN device or the like. be able to.

(半導体装置を適用したI2Cシステムの別の構成例)
図9は、実施の形態に係る半導体装置100を適用したI2Cシステムの別の構成例を模式的に示す。
(Another configuration example of the I2C system to which the semiconductor device is applied)
FIG. 9 schematically shows another configuration example of the I2C system to which the semiconductor device 100 according to the embodiment is applied.

図9に例示するI2Cシステムにおいては、I2Cマスタブロック310とI2Cスレーブブロック320は、クロック線(SCL)とデータ線(SDA)の2本の信号線を介して、通信可能に接続されている。クロック線(SCL)とデータ線(SDA)は、プルアップ抵抗R1、R2でそれぞれプルアップされた双方向信号線である。   In the I2C system illustrated in FIG. 9, the I2C master block 310 and the I2C slave block 320 are communicably connected via two signal lines, a clock line (SCL) and a data line (SDA). The clock line (SCL) and the data line (SDA) are bidirectional signal lines that are pulled up by the pull-up resistors R1 and R2, respectively.

I2Cマスタデバイス(マスタ1)300は、I2Cマスタブロック310と実施の形態に係る半導体装置100とを内蔵したI2Cのマスタデバイスである。半導体装置100は、少なくとも実施の形態に係る異常検出回路40を備える。   The I2C master device (master 1) 300 is an I2C master device incorporating the I2C master block 310 and the semiconductor device 100 according to the embodiment. The semiconductor device 100 includes at least the abnormality detection circuit 40 according to the embodiment.

異常検出回路40を備える半導体装置100は、端子SDA1、SCL1を介してクロック線(SCL)とデータ線(SDA)に接続され、クロック線(SCL)とデータ線(SDA)の電圧が正常の傾き且つ正常の所要時間でLowレベルから所望の電圧Vcc(閾値電圧Vth)まで上昇するか否かを監視する。異常を検出した場合、半導体装置100は、CPU200に対してIRQ信号を出力して、異常検出を通知する。   The semiconductor device 100 including the abnormality detection circuit 40 is connected to the clock line (SCL) and the data line (SDA) via the terminals SDA1 and SCL1, and the voltage of the clock line (SCL) and the data line (SDA) is normal. In addition, it is monitored whether the voltage rises from the Low level to a desired voltage Vcc (threshold voltage Vth) in a normal required time. When the abnormality is detected, the semiconductor device 100 outputs an IRQ signal to the CPU 200 to notify the abnormality detection.

CPU200は、正常動作時には、I2Cマスタブロック310とI2Cスレーブブロック320の機能を有効にするイネーブル信号SCL1、SDA1をそれぞれ2Cマスタブロック310とI2Cスレーブブロック320に出力する。   During normal operation, the CPU 200 outputs enable signals SCL1 and SDA1 that enable the functions of the I2C master block 310 and the I2C slave block 320 to the 2C master block 310 and the I2C slave block 320, respectively.

それに対して、半導体装置100からIRQ信号を受信したCPU200は、IRQ信号に呼応して、2Cマスタブロック310とI2Cスレーブブロック320の機能を無効にするディスエーブル信号SCL1、SDA1をそれぞれ2Cマスタブロック310とI2Cスレーブブロック320に出力することもできる。しかしながら、異常が発生しているこのような状況において、通常のI2C信号線(バス)を用いてイネーブル信号SCL1、SDA1を送信することは好ましくない場合もある。そこで、CPU200は、せめてI2Cマスタデバイス(マスタ1)300内のI2Cマスタブロック310だけでも機能停止させるために、非常用のI2C信号線(バス)を用いて、ディスエーブル信号SCL2、SDA2を、非常用のバスを用いて、I2Cマスタデバイス(マスタ1)300の非常用の端子SDA2、SCL2に出力する。   On the other hand, the CPU 200 that has received the IRQ signal from the semiconductor device 100 sends the disable signals SCL1 and SDA1 that disable the functions of the 2C master block 310 and the I2C slave block 320 in response to the IRQ signal, respectively. And output to the I2C slave block 320. However, in such a situation where an abnormality has occurred, it may not be preferable to transmit the enable signals SCL1 and SDA1 using a normal I2C signal line (bus). Therefore, the CPU 200 uses the emergency I2C signal line (bus) to stop the function of only the I2C master block 310 in the I2C master device (master 1) 300. Output to the emergency terminals SDA2 and SCL2 of the I2C master device (master 1) 300 using the bus.

CPU200から非常用の端子SDA2、SCL2を介してディスエーブル信号SCL2、SDA2を受信した半導体装置100は、I2Cマスタデバイス(マスタ1)300内のI2Cマスタブロック310の機能を停止させる。   The semiconductor device 100 that receives the disable signals SCL2 and SDA2 from the CPU 200 via the emergency terminals SDA2 and SCL2 stops the function of the I2C master block 310 in the I2C master device (master 1) 300.

以上説明したように、半導体装置100を適用したI2Cシステムの別の構成例によれば、劣化や故障等の異常の兆候をいち早く検知することができるとともに、I2Cマスタブロック310などを安全に停止させることができる。   As described above, according to another configuration example of the I2C system to which the semiconductor device 100 is applied, it is possible to quickly detect signs of abnormality such as deterioration and failure, and to safely stop the I2C master block 310 and the like. be able to.

(監視用LSI)
図10は、実施の形態に係る半導体装置100を集積化した監視用LSI70の一例を模式的に示す。監視用LSI70は、異常検出回路40(図示せず)を備える半導体装置100(図示せず)と、監視用レジスタ71とを備え、I2C信号線I2C1を介してCPU200と接続される。監視用LSI70は、異常を検出した場合、CPU200あるいは他のデバイスなどに対してIRQ信号を出力して、異常検出を通知する。
(Monitoring LSI)
FIG. 10 schematically shows an example of the monitoring LSI 70 in which the semiconductor device 100 according to the embodiment is integrated. The monitoring LSI 70 includes a semiconductor device 100 (not shown) provided with an abnormality detection circuit 40 (not shown) and a monitoring register 71, and is connected to the CPU 200 via an I2C signal line I2C1. When the monitoring LSI 70 detects an abnormality, the monitoring LSI 70 outputs an IRQ signal to the CPU 200 or another device to notify the abnormality detection.

図11は、監視用LSI70の1つの適用例を模式的に示しており、I2Cマスタデバイス300は、I2Cマスタブロック310と監視用LSI70とを内蔵する。   FIG. 11 schematically shows one application example of the monitoring LSI 70, and the I2C master device 300 includes the I2C master block 310 and the monitoring LSI 70.

なお、図11に示す例では、I2Cマスタブロック310と監視用LSI70とが一体化された例を示しているが、I2Cスレーブブロック320と監視用LSI70とが一体化されても良い。   In the example illustrated in FIG. 11, the I2C master block 310 and the monitoring LSI 70 are integrated. However, the I2C slave block 320 and the monitoring LSI 70 may be integrated.

図12は、監視用LSIのさらに別の例を模式的に示しており、監視用LSI70は、I2Cマスタブロック310やI2Cスレーブブロック320とは独立した形で配備されている。   FIG. 12 schematically shows still another example of the monitoring LSI, and the monitoring LSI 70 is provided independently of the I2C master block 310 and the I2C slave block 320.

図13は、監視用LSI70(半導体装置100)を適用したCANシステムのバス構成例を模式的に示す。また、図14は、実施の形態に係る半導体装置を適用したCANシステムのCANパケットエラー訂正信号401とシリアルインタフェース402との関係を模式的に例示する。   FIG. 13 schematically shows a bus configuration example of a CAN system to which the monitoring LSI 70 (semiconductor device 100) is applied. FIG. 14 schematically illustrates the relationship between the CAN packet error correction signal 401 and the serial interface 402 in the CAN system to which the semiconductor device according to the embodiment is applied.

(半導体装置の処理動作例)
図15は、実施の形態に係る半導体装置100(異常検出回路40)の処理動作例を概略的に示す。
(Processing operation example of semiconductor device)
FIG. 15 schematically shows a processing operation example of the semiconductor device 100 (abnormality detection circuit 40) according to the embodiment.

ステップS101において、ドライブNがHighレベルからLowレベルに転じると、タイマスタート信号SがタイマA(30)に供給され、ステップS102において、タイマA(30)は、カウント値CNTをカウントアップし始める。   In step S101, when the drive N changes from high level to low level, the timer start signal S is supplied to the timer A (30), and in step S102, the timer A (30) starts to count up the count value CNT.

次に、ステップS103において、タイマA(30)は、カウント値CNTが所定のカウント設定値CNT_MAXに達したか否かを判定する。ステップS103における判定の結果、カウント値CNTが所定のカウント設定値CNT_MAXに達していれば、ステップS108に進み、逆に、カウント値CNTが所定のカウント設定値CNT_MAXに達していなければ、ステップS104に進む。   Next, in step S103, the timer A (30) determines whether or not the count value CNT has reached a predetermined count set value CNT_MAX. As a result of the determination in step S103, if the count value CNT has reached the predetermined count set value CNT_MAX, the process proceeds to step S108. Conversely, if the count value CNT has not reached the predetermined count set value CNT_MAX, the process proceeds to step S104. move on.

ステップS104において、コンパレータA(20)は、ノードN1の電圧VN1と所定の閾値電圧Vthとを比較する。ステップS104における判定の結果、ノードN1の電圧VN1≧閾値電圧Vthであれば、コンパレータA(20)は、ステップS106において、カウンタ出力C1をHighレベル(「1」)に設定する。逆に、ノードN1の電圧VN1<閾値電圧Vthであれば、コンパレータA(20)は、ステップS105において、カウンタ出力C1をLowレベル(「0」)に設定する。 In step S104, the comparator A (20) compares the voltage VN 1 of node N 1 and a predetermined threshold voltage Vth. As a result of the judgment in the step S104, if the voltage VN 1 ≧ the threshold voltage Vth of the node N 1, the comparator A (20), in step S106, sets the counter output C1 to the High level ( "1"). Conversely, if the voltage VN 1 of the node N 1 <the threshold voltage Vth, the comparator A (20) sets the counter output C1 to the low level (“0”) in step S105.

次に、ステップS107において、タイマA(30)は、カウント値CNTをカウントアップする。   Next, in step S107, the timer A (30) counts up the count value CNT.

以上のステップS103〜S107の一連の処理を、カウント値CNTが所定のカウント設定値CNT_MAXに達するまで繰り返す。   The series of processes of steps S103 to S107 described above are repeated until the count value CNT reaches a predetermined count set value CNT_MAX.

ステップS103における判定の結果、カウント値CNTが所定のカウント設定値CNT_MAXに達していれば、次に、ステップS108において、半導体装置100は、カウンタ出力C1がHighレベルであるか否かを判定する。   If the count value CNT has reached the predetermined count set value CNT_MAX as a result of the determination in step S103, then in step S108, the semiconductor device 100 determines whether or not the counter output C1 is at a high level.

ステップS108における判定の結果、カウンタ出力C1がHighレベルである場合、所定の時間内に、ノードN1の電圧VN1が所望の電圧Vcc(閾値電圧Vth)に到達したためスイッチング電源素子10に異常(例えば劣化の兆し)が生じていないと判断し、一連の処理を終了する。 As a result of the judgment in the step S108, if the counter output C1 is High level, within a predetermined time, the voltage VN 1 of node N 1 is an abnormality in the switching power supply device 10 for reaching the desired voltage Vcc (threshold voltage Vth) ( For example, it is determined that there is no sign of deterioration), and the series of processing ends.

ステップS108における判定の結果、カウンタ出力C1がHighレベルでない(すなわち、カウンタ出力C1がLowレベルである)場合、所定の時間が経過しても、ノードN1の電圧VN1が所望の電圧Vcc(閾値電圧Vth)に到達していないのでスイッチング電源素子10に異常(例えば劣化の兆し)が生じていると判断し、半導体装置100は、ステップS109において、異常時の対応処理を実行する。ステップS109における異常時の対応処理としては、上述したように、アラート(例えば、警告メッセージ、警告音など)を出力する、CPU200に対してIRQ信号を出力して、電源の供給を停止する、電源の供給を縮小する、などが想定される。 Step S108 a result of the judgment in the counter output C1 is not High level (i.e., the counter output C1 is at Low level), even after the elapse of a predetermined time, the voltage VN 1 of node N 1 is the desired voltage Vcc ( Since the threshold voltage Vth has not been reached, it is determined that an abnormality (for example, a sign of deterioration) has occurred in the switching power supply element 10, and in step S109, the semiconductor device 100 executes an abnormality handling process. As a response process at the time of abnormality in step S109, as described above, an alert (for example, warning message, warning sound, etc.) is output, an IRQ signal is output to the CPU 200, and power supply is stopped. It is assumed that the supply will be reduced.

以上説明したように、本実施の形態によれば、電源供給時における電圧変化を監視し、スイッチング電源素子などの劣化や故障等の異常の兆候をいち早く検知することができる異常検出回路およびその動作方法、半導体装置およびその動作方法、および通信システムを提供することができる。   As described above, according to the present embodiment, an abnormality detection circuit that can monitor voltage changes during power supply and quickly detect signs of abnormality such as deterioration or failure of a switching power supply element and the operation thereof A method, a semiconductor device, an operation method thereof, and a communication system can be provided.

[その他の実施の形態]
上記のように、実施の形態について記載したが、この開示の一部をなす論述および図面は例示的なものであり、限定するものであると理解すべきではない。この開示から当業者には様々な代替実施の形態、実施例および運用技術が明らかとなろう。
[Other embodiments]
While the embodiments have been described as described above, the discussion and drawings that form part of this disclosure are illustrative and should not be construed as limiting. From this disclosure, various alternative embodiments, examples and operational techniques will be apparent to those skilled in the art.

例えば、実施の形態においては、車載用の電子機器などに電源を供給する電源供給用装置(スイッチング電源素子10)を例にして説明したが、電源電圧を供給する対象は車載用の電子機器に限らず、様々な用途に用いられる電子機器に電源を供給することができる。   For example, in the embodiment, a power supply device (switching power supply element 10) that supplies power to a vehicle-mounted electronic device has been described as an example. Not limited to this, power can be supplied to electronic devices used for various purposes.

また、実施の形態においては、I2C、LVDS、DisplayPort、HDMI(登録商標)、CANなどの通信システムに半導体装置100を適用した例を説明したが、半導体装置100を適用する通信システムは、これらに限らず、SIO(Serial Input/Output)、UART(Universal Asynchronous Receiver Transmitter)など、様々な通信システムに適用可能である。   In the embodiments, the example in which the semiconductor device 100 is applied to a communication system such as I2C, LVDS, DisplayPort, HDMI (registered trademark), or CAN has been described. The present invention is not limited to this, and can be applied to various communication systems such as SIO (Serial Input / Output) and UART (Universal Asynchronous Receiver Transmitter).

このように、ここでは記載していない様々な実施の形態などを含む。   As described above, various embodiments that are not described herein are included.

本実施の形態は、例えば、自動車、航空機、船舶、鉄道、ロケット、医療機器、産業機械、ロボットなど様々な分野の電子機器類などに適用可能である。   This embodiment can be applied to electronic devices in various fields such as automobiles, airplanes, ships, railways, rockets, medical equipment, industrial machines, robots, and the like.

10…スイッチング電源素子
40…異常検出回路
30…タイマA
20…コンパレータA
61…CANデバイスSG1
62…CANデバイスSG2
70…監視用LSI
71…監視用レジスタ
81…ブロックA
82…ブロックB
100…半導体装置
200…CPU
300…I2Cマスタデバイス(マスタ1)
310…I2Cマスタブロック
320…I2Cスレーブブロック
401…CANパケットエラー訂正信号
402…シリアルインタフェース
C1…カウンタ出力
CNT…カウント値
CNT_MAX…カウント設定値
EN1、EN2…イネーブル端子
EN1、EN2、SCL1、SDA1…イネーブル信号
I…電流
I2C1…I2C信号線
L−ch、R−ch…データ信号
M1…nMOSトランジスタ
N…ドライブ(Drive)
1…ノード
RP、R1、R2…プルアップ抵抗
S…タイマスタート信号
SCL2、SDA2…ディスエーブル信号
SCL…クロック線
SDA…データ線
SDA1、SCL1…端子
SDA2、SCL2…非常用の端子
SP1、SP2、SP3…段階
t1、t2…時刻
Vcc…電源電圧(所望の電圧)
VN1…電圧
Vth…閾値電圧
DESCRIPTION OF SYMBOLS 10 ... Switching power supply element 40 ... Abnormality detection circuit 30 ... Timer A
20 ... Comparator A
61 ... CAN device SG1
62 ... CAN device SG2
70: Monitoring LSI
71 ... Monitoring register 81 ... Block A
82 ... Block B
100 ... Semiconductor device 200 ... CPU
300 ... I2C master device (master 1)
310 ... I2C master block 320 ... I2C slave block 401 ... CAN packet error correction signal 402 ... serial interface C1 ... counter output CNT ... count value CNT_MAX ... count set value EN1, EN2 ... enable terminals EN1, EN2, SCL1, SDA1 ... enable signal I ... Current I2C1 ... I2C signal line L-ch, R-ch ... Data signal M1 ... nMOS transistor N ... Drive (Drive)
N 1, nodes RP, R 1 , R 2, pull-up resistors S, timer start signals SCL 2, SDA 2, disable signals SCL, clock lines SDA, data lines SDA 1, SCL 1, terminals SDA 2, SCL 2, emergency terminals SP 1, SP 2, SP3 stage t1, t2 time Vcc power supply voltage (desired voltage)
VN 1 ... voltage Vth ... threshold voltage

Claims (21)

外部から入力される電圧が上昇を始めるとカウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するタイマと、
前記外部から入力される前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するコンパレータと
を備え、
前記タイマは、前記カウント値が前記所定のカウント設定値に達すると、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に異常が発生したと判断して異常時の対応処理を実行することを特徴とする異常検出回路。
A timer that starts counting up the count value when the voltage input from the outside starts rising, and executes the count-up until the count value reaches a predetermined count setting value;
The externally input voltage is compared with a predetermined threshold voltage. If the voltage is equal to or higher than the threshold voltage, the counter output is set to the first level. If the voltage is lower than the threshold voltage, A comparator for setting the counter output to a second level,
When the count value reaches the predetermined count setting value, the timer refers to the counter output output from the comparator, and determines that an abnormality has occurred when the counter output is not at the first level. An abnormality detection circuit characterized by executing an emergency response process.
前記外部から入力される前記電圧は、スイッチング電源素子により供給される電圧であることを特徴とする請求項1に記載の異常検出回路。   The abnormality detection circuit according to claim 1, wherein the voltage input from the outside is a voltage supplied by a switching power supply element. 前記異常時の対応処理は、アラートの出力処理と割り込み要求信号の出力処理のうちの少なくとも1つを備えることを特徴とする請求項1または2に記載の異常検出回路。   3. The abnormality detection circuit according to claim 1, wherein the abnormality handling process includes at least one of an alert output process and an interrupt request signal output process. 外部から入力される電圧がLowレベルから所望の電圧値まで上昇する際の傾きと所要時間に基づいて、異常が発生したか否かを監視する異常検出回路を備え、
前記電圧が正常の傾き且つ正常の所要時間で前記所望の電圧まで上昇しなかった場合、異常時の対応処理を実行することを特徴とする半導体装置。
An abnormality detection circuit for monitoring whether or not an abnormality has occurred, based on the slope and required time when the voltage input from the outside rises from the Low level to a desired voltage value,
A semiconductor device characterized in that when the voltage does not rise to the desired voltage with a normal slope and a normal required time, processing for handling an abnormality is executed.
前記異常検出回路は、
前記外部から入力される前記電圧が上昇を始めるとカウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するタイマと、
前記外部から入力される前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するコンパレータと
を備え、
前記タイマは、前記カウント値が前記所定のカウント設定値に達すると、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に異常が発生したと判断することを特徴とする請求項4に記載の半導体装置。
The abnormality detection circuit is
A timer that starts counting up a count value when the voltage input from the outside starts increasing, and counts up until the count value reaches a predetermined count setting value;
The externally input voltage is compared with a predetermined threshold voltage. If the voltage is equal to or higher than the threshold voltage, the counter output is set to the first level. If the voltage is lower than the threshold voltage, A comparator for setting the counter output to a second level,
When the count value reaches the predetermined count setting value, the timer refers to the counter output output from the comparator, and determines that an abnormality has occurred when the counter output is not at the first level. The semiconductor device according to claim 4.
前記カウントアップの開始を指示するタイマスタート信号を前記タイマに供給するトランジスタをさらに備えることを特徴とする請求項5に記載の半導体装置。   6. The semiconductor device according to claim 5, further comprising a transistor that supplies a timer start signal instructing start of the count-up to the timer. 前記外部から入力される前記電圧は、スイッチング電源素子により供給される電圧であることを特徴とする請求項4に記載の半導体装置。   The semiconductor device according to claim 4, wherein the voltage input from the outside is a voltage supplied by a switching power supply element. 前記異常時の対応処理は、アラートの出力処理と割り込み要求信号の出力処理のうちの少なくとも1つを備えることを特徴とする請求項4〜7のいずれか1項に記載の半導体装置。   8. The semiconductor device according to claim 4, wherein the process for handling an abnormality includes at least one of an alert output process and an interrupt request signal output process. 9. バスを介して複数のデバイスを相互に通信可能に接続する通信システムであって、
前記バスにプルアップされた電圧がLowレベルから所望の電圧値まで上昇する際の傾きと所要時間に基づいて、異常が発生したか否かを監視する異常検出回路を備え、前記電圧が正常の傾き且つ正常の所要時間で前記所望の電圧まで上昇しなかった場合、異常時の対応処理を実行する半導体装置を備えることを特徴とする通信システム。
A communication system for connecting a plurality of devices via a bus so that they can communicate with each other.
An abnormality detection circuit for monitoring whether or not an abnormality has occurred based on a slope and a required time when the voltage pulled up to the bus rises from a low level to a desired voltage value, and the voltage is normal A communication system comprising: a semiconductor device that executes a response process when an abnormality occurs when the voltage does not rise to the desired voltage in a slant and normal time.
前記異常検出回路は、
前記プルアップされた前記電圧が上昇を始めるとカウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するタイマと、
前記プルアップされた前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するコンパレータと
を備え、
前記タイマは、前記カウント値が前記所定のカウント設定値に達すると、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に前記異常時の対応処理を実行することを特徴とする請求項9に記載の通信システム。
The abnormality detection circuit is
A timer that starts counting up a count value when the pulled up voltage starts increasing, and counts up until the count value reaches a predetermined count setting value;
The pulled-up voltage is compared with a predetermined threshold voltage, and if the voltage is greater than or equal to the threshold voltage, the counter output is set to the first level, and if the voltage is less than the threshold voltage, A comparator for setting the counter output to a second level,
The timer refers to the counter output output from the comparator when the count value reaches the predetermined count set value, and performs the processing for the abnormality when the counter output is not the first level. The communication system according to claim 9, wherein the communication system is executed.
前記カウントアップの開始を指示するタイマスタート信号を前記タイマに供給するトランジスタをさらに備えることを特徴とする請求項10に記載の通信システム。   The communication system according to claim 10, further comprising a transistor that supplies a timer start signal instructing start of the count-up to the timer. 前記プルアップされた前記電圧は、スイッチング電源素子により供給される電圧であることを特徴とする請求項9に記載の通信システム。   The communication system according to claim 9, wherein the pulled-up voltage is a voltage supplied by a switching power supply element. 前記異常時の対応処理は、アラートの出力処理と割り込み要求信号の出力処理のうちの少なくとも1つを備えることを特徴とする請求項9に記載の通信システム。   The communication system according to claim 9, wherein the process for handling an abnormality includes at least one of an alert output process and an interrupt request signal output process. 前記複数のデバイスの機能を有効にするイネーブル信号を、前記複数のデバイスに送信するCPUをさらに備え、
前記半導体装置は、前記異常時の対応処理として前記CPUに割り込み要求信号を送信し、
前記割り込み要求信号を受信した前記CPUは、前記複数のデバイスの機能を無効にするディスエーブル信号を、前記複数のデバイスに送信することを特徴とする請求項9〜13のいずれか1項に記載の通信システム。
A CPU that transmits an enable signal for enabling the functions of the plurality of devices to the plurality of devices;
The semiconductor device transmits an interrupt request signal to the CPU as a process for handling the abnormality,
14. The CPU according to claim 9, wherein the CPU that has received the interrupt request signal transmits a disable signal that disables the functions of the plurality of devices to the plurality of devices. Communication system.
前記割り込み要求信号を受信した前記CPUは、前記複数のデバイスの機能を無効にするディスエーブル信号を、非常用のバスを用いて、前記複数のデバイスに送信することを特徴とする請求項14に記載の通信システム。   The CPU that receives the interrupt request signal transmits a disable signal that disables the functions of the plurality of devices to the plurality of devices using an emergency bus. The communication system described. 前記バスは、I2CバスまたはCANバスであることを特徴とする請求項9に記載の通信システム。   The communication system according to claim 9, wherein the bus is an I2C bus or a CAN bus. 前記半導体装置は、前記複数のデバイスのうちの1つのデバイスと一体化されることを特徴とする請求項9に記載の通信システム。   The communication system according to claim 9, wherein the semiconductor device is integrated with one of the plurality of devices. 前記半導体装置は、監視用LSIとして集積化されることを特徴とする請求項9に記載の通信システム。   The communication system according to claim 9, wherein the semiconductor device is integrated as a monitoring LSI. 前記監視用LSIは、監視用レジスタを備えることを特徴とする請求項18に記載の通信システム。   The communication system according to claim 18, wherein the monitoring LSI includes a monitoring register. 外部から入力される電圧が上昇を始めると、タイマが、カウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するステップと、
コンパレータが、前記外部から入力される前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するステップと、
前記カウント値が前記所定のカウント設定値に達すると、前記タイマが、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に異常時の対応処理を実行するステップと
を有することを特徴とする異常検出回路の動作方法。
When the voltage input from the outside starts increasing, the timer starts counting up the count value, and executes the count up until the count value reaches a predetermined count setting value;
The comparator compares the voltage input from the outside with a predetermined threshold voltage, and if the voltage is equal to or higher than the threshold voltage, the counter output is set to the first level, and the voltage is less than the threshold voltage. If so, setting the counter output to a second level;
When the count value reaches the predetermined count setting value, the timer refers to the counter output output from the comparator, and executes a response process when the counter output is not the first level. And a step of operating the abnormality detection circuit.
外部から入力される電圧がLowレベルから所望の電圧値まで上昇する際の傾きと所要時間に基づいて、異常が発生したか否かを監視するステップと、
前記電圧が正常の傾き且つ正常の所要時間で前記所望の電圧まで上昇しなかった場合、異常時の対応処理を実行するステップと
を有し、
前記異常が発生したか否かを監視するステップは、
前記外部から入力される前記電圧が上昇を始めると、タイマが、カウント値のカウントアップを開始し、前記カウント値が所定のカウント設定値に達するまでカウントアップを実行するステップと、
コンパレータが、前記外部から入力される前記電圧と、所定の閾値電圧とを比較し、前記電圧が前記閾値電圧以上であれば、カウンタ出力を第1のレベルに設定し、前記電圧が閾値電圧未満であれば、前記カウンタ出力を第2のレベルに設定するステップと、
前記カウント値が前記所定のカウント設定値に達すると、前記タイマが、前記コンパレータから出力される前記カウンタ出力を参照し、前記カウンタ出力が前記第1のレベルでない場合に異常時の対応処理を実行するステップと
を有することを特徴とする半導体装置の動作方法。
Monitoring whether or not an abnormality has occurred based on the slope and required time when the externally input voltage rises from a low level to a desired voltage value;
When the voltage does not rise to the desired voltage with a normal slope and a normal required time, a step of performing a response process at the time of abnormality is included.
Monitoring whether the abnormality has occurred,
When the voltage input from the outside starts to rise, a timer starts counting up the count value, and executes the count up until the count value reaches a predetermined count setting value;
The comparator compares the voltage input from the outside with a predetermined threshold voltage, and if the voltage is equal to or higher than the threshold voltage, the counter output is set to the first level, and the voltage is less than the threshold voltage. If so, setting the counter output to a second level;
When the count value reaches the predetermined count setting value, the timer refers to the counter output output from the comparator, and executes a response process when the counter output is not the first level. And a step of operating the semiconductor device.
JP2016059666A 2016-03-24 2016-03-24 Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system Pending JP2017174980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016059666A JP2017174980A (en) 2016-03-24 2016-03-24 Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016059666A JP2017174980A (en) 2016-03-24 2016-03-24 Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system

Publications (1)

Publication Number Publication Date
JP2017174980A true JP2017174980A (en) 2017-09-28

Family

ID=59971492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016059666A Pending JP2017174980A (en) 2016-03-24 2016-03-24 Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system

Country Status (1)

Country Link
JP (1) JP2017174980A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112578899A (en) * 2020-12-10 2021-03-30 海光信息技术股份有限公司 Asynchronous digital correction circuit, method, apparatus, and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112578899A (en) * 2020-12-10 2021-03-30 海光信息技术股份有限公司 Asynchronous digital correction circuit, method, apparatus, and storage medium
CN112578899B (en) * 2020-12-10 2023-08-29 海光信息技术股份有限公司 Asynchronous digital correction circuit, method, apparatus, and storage medium

Similar Documents

Publication Publication Date Title
US10116542B2 (en) Communication device, communication method, program, and communication system
JP5739290B2 (en) Electronic control unit
CN106610712B (en) Substrate management controller resetting system and method
US10033389B2 (en) Clock signal stop detection circuit
US10628356B2 (en) Transmission apparatus and transmission method
JP2010055474A (en) Serial bus system and hung slave reset method
KR102071404B1 (en) Apparatus and Method for implementing fail safe in Battery Management System
US20190289524A1 (en) Circuit for monitoring a data processing system
JP2017174980A (en) Abnormality detection circuit and operation method therefor, semiconductor device and operation method therefor, and communication system
US9442478B2 (en) Systems, circuits and a method for generating a configurable feedback
CN111522757A (en) I2C bus-based interrupt reading and clearing control method
JP2009111911A (en) Communication apparatus, communication system, and communication method
US9619310B2 (en) High speed data transmission methods and systems upon error detection
US9128839B2 (en) Numerical control system having removable filter circuit
JP6182329B2 (en) Semiconductor device
US11675404B2 (en) Semiconductor device including power failure detection circuit
JP2019506746A (en) Short-circuit output pin circuit element
JP2015176349A (en) Information processor, failure detection method and program
JP2012222178A (en) Semiconductor device
US9627887B2 (en) Power supply state monitoring device, power supply state monitoring method, and program
JP2015158414A (en) Fault detection apparatus and detection method for output element
JP2011248396A (en) Electronic circuit system, microcomputer, and operation method for electronic circuit system
JP2018106367A (en) Load driving device
CN107168814A (en) A kind of device and method for solving system in case of system halt
JP2006279403A (en) Two-way bus control circuit