JPH01113802A - Abnormality processing method for analog/digital conversion - Google Patents

Abnormality processing method for analog/digital conversion

Info

Publication number
JPH01113802A
JPH01113802A JP27242987A JP27242987A JPH01113802A JP H01113802 A JPH01113802 A JP H01113802A JP 27242987 A JP27242987 A JP 27242987A JP 27242987 A JP27242987 A JP 27242987A JP H01113802 A JPH01113802 A JP H01113802A
Authority
JP
Japan
Prior art keywords
conversion
value
section
time
recording
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
JP27242987A
Other languages
Japanese (ja)
Inventor
Hiroaki Ishimoto
博昭 石本
Takashi Iwasa
岩佐 隆司
Yoshifumi Sakamoto
佳史 坂本
Gendo Kato
玄道 加藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP27242987A priority Critical patent/JPH01113802A/en
Publication of JPH01113802A publication Critical patent/JPH01113802A/en
Pending legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To prevent the troubles of A/D conversion by controlling the time required for A/D conversion via a timer so as to avoid such a case where the A/D conversion needs much time or an end flag of the A/D conversion could not be set. CONSTITUTION:The process may sometimes never proceed to a control part 14 even when a prescribed time needed for conversion owing to such a fact that the A/D conversion needs much time or an end flag of the A/D conversion could not be set. A timer interruption part 13 which started a time counting action concurrently with start of the A/D conversion records the value of abnormality at a recording part 12 in terms of the A/D conversion with generation of the timer interruption caused by the overflow of a set time. At the same time, the part 13 shifts the process to the part 14. The part 14 performs the control based on the A/D conversion value recorded at the part 12. In this case, however, the abnormality is processed since the A/D conversion value is not normal. Thus it is possible to prevent the troubles of A/D conversion by stopping the energization of a faulty display heater or switching off the power supply of the relevant device itself.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、マイクロプロセッサ−を用いて、アナログ、
デジタル変換(以下、A/D変換と略す)を行ない種々
の制御を行う機器におけるA/D変換の異常処理方法に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention uses a microprocessor to
The present invention relates to a method for handling abnormalities in A/D conversion in equipment that performs digital conversion (hereinafter abbreviated as A/D conversion) and performs various controls.

従来の技術 従来のこの種のA/D変換の異常処理方法は、第2図に
示すように、A/D変換部1と、前記A/D変換部1に
よるA/D変換値を記録する記録部2と、前記、記録部
2の値が所定の範囲内の鎮であれば通常処理として機器
のモーターのON、OFF、あるいは、ヒーターのON
、OFFといった制御を行ない、前記記録部2の値が所
定の範囲外の値であれば、異常処理として、モーターあ
るいはヒーターのOF F’を行う制御部3から構成さ
れている。
BACKGROUND ART A conventional A/D conversion abnormality handling method of this type involves recording an A/D converter 1 and an A/D converted value by the A/D converter 1, as shown in FIG. If the values of the recording unit 2 and the recording unit 2 are within a predetermined range, the device motor is turned on or off, or the heater is turned on as normal processing.
, OFF, and if the value of the recording section 2 is outside a predetermined range, the control section 3 turns off the motor or heater as abnormality processing.

たとえば、A/D変換を用いて制御を行なう回路例とし
て第3図に簡単な温度制御回路を示す。
For example, a simple temperature control circuit is shown in FIG. 3 as an example of a circuit that performs control using A/D conversion.

4は負特性サーミスタ、5は抵抗、6はマイクロプロセ
ッサ−17はリレー、8はヒーター、9は商用電源、1
0は電源であシ、前記マイクロプロセッサ−の中にA/
D変換部1、記録部2、制御部3を有している。前記負
特性サーミスタ4と抵抗5との接続点への電圧と温度と
の関係及び、第4図に前記制御部3における温度制御範
囲を示す。
4 is a negative characteristic thermistor, 5 is a resistor, 6 is a microprocessor, 17 is a relay, 8 is a heater, 9 is a commercial power supply, 1
0 is the power supply, and the microprocessor has an A/
It has a D conversion section 1, a recording section 2, and a control section 3. The relationship between the voltage and temperature at the connection point between the negative characteristic thermistor 4 and the resistor 5, and the temperature control range in the control section 3 are shown in FIG.

A/D変換部1は、この接続点Aの電圧を、A/D変換
によって検出して、A/D変換変換所録部2に記録する
The A/D converter 1 detects the voltage at the connection point A by A/D conversion and records it in the A/D conversion recorder 2.

制御部3は、前記記録部2の値から温度を求めてこの温
度が第4図の温度制御範囲内(即ち、所定の範囲内)に
ある場合には通常の温度制御によりリレ−7ノ(IJ、
OFFを行ナイ、と−1−8の通電制御を行なう。一方
、この温度制御範囲から外れた場合には、リレー7をO
FFしてヒーター8の通電を停止するといった異常処理
を、行うことになる。ここで、もしも負特性ブーミスタ
4が、断線故障した場合には、接続点Aの電圧は、OV
となるので、このときA/D変換値から求められる温度
は最高温度となる。ところが、最高温度は、第4図によ
ると温度制御範囲を外れているので制御部3は、異常で
あると判断してリレーをOFFしてヒーター80通電を
停止する。逆に、負特性サーミスタ4が短絡故障した場
合には、接続点Aの電圧は、電源電圧と等しくなるので
、このときA/D変換値から求められる温度は最低温度
となる。ところが、最低温度は、第4図によると温度制
御範囲を外れているので制御部3は、異常であると¥4
1断してリレーをOFFしてヒーター80通電を停止す
る。
The control section 3 calculates the temperature from the value of the recording section 2, and when this temperature is within the temperature control range (that is, within a predetermined range) shown in FIG. IJ,
OFF is not performed, and -1-8 energization control is performed. On the other hand, if the temperature is out of this range, relay 7 is turned off.
Abnormal processing such as turning off the heater 8 and stopping the power supply to the heater 8 will be performed. Here, if the negative characteristic boomister 4 has a disconnection failure, the voltage at the connection point A will be OV
Therefore, the temperature determined from the A/D conversion value at this time becomes the maximum temperature. However, since the maximum temperature is outside the temperature control range as shown in FIG. 4, the control unit 3 determines that there is an abnormality and turns off the relay to stop energizing the heater 80. Conversely, if the negative characteristic thermistor 4 has a short-circuit failure, the voltage at the connection point A becomes equal to the power supply voltage, so the temperature determined from the A/D conversion value at this time becomes the lowest temperature. However, since the lowest temperature is outside the temperature control range according to FIG.
1, the relay is turned off, and the heater 80 is de-energized.

以上のようにして、サーミスタ4の断線故障、短絡故障
に対しては、異常処理としてヒーターの通電を停止して
事故を防止していた。
As described above, when the thermistor 4 is disconnected or short-circuited, power to the heater is stopped as abnormality processing to prevent accidents.

発明が解決しようとする問題点 しかしながら上記のような構成では、サーミスタ4の断
線故障、短絡故障については、異常処理を行うことがで
きるが、制御部3は、単にA/D変換値が記録された記
録部2の直のみを確認しているだけであるため、マイク
ロプロセッサ−自体のA/D変換部のハード的な故障に
よる異常を検出できなかった。
Problems to be Solved by the Invention However, with the above configuration, it is possible to perform abnormality processing for disconnection failures and short circuit failures of the thermistor 4, but the control unit 3 simply records the A/D conversion value. Since only the current state of the recording unit 2 was checked, it was not possible to detect any abnormality due to a hardware failure in the A/D conversion unit of the microprocessor itself.

つまシ、前記制御部3は、記録部2に記録されたA/D
変換値が正規の値でなくても、この鎮から求められる温
度が、温度制御範囲内であれば、実際の温度に関係なく
、リレー7をON%OFFしてヒーター8の通電制御を
行うことにカる。
The control unit 3 is configured to control the A/D recorded in the recording unit 2.
Even if the converted value is not a regular value, if the temperature obtained from this temperature is within the temperature control range, the relay 7 is turned ON/OFF to control the energization of the heater 8, regardless of the actual temperature. It's funny.

すなわち、第3図に示すような温度制御回路において、
マイクロプロセッサ−自体のA/D変換部のハード的な
故障によってA/D変換値が、実際の正しい値を取れな
くなった場合、制御部3にとってA/D変換値がヒータ
ー8に通電する値であれば、リレー7をONすることに
なる。もしも上記の状態が長時間続くことになればヒー
ター8の異常過熱により、人身のやけど、あるいは、火
災といった事故を引き起こす危険があった。
That is, in a temperature control circuit as shown in FIG.
If the A/D conversion value cannot take the actual correct value due to a hardware failure in the A/D conversion section of the microprocessor itself, the A/D conversion value is the value that will energize the heater 8 for the control section 3. If there is, relay 7 will be turned on. If the above-mentioned condition were to continue for a long time, there was a risk of abnormal overheating of the heater 8, resulting in accidents such as personal burns or fire.

また、A/D変換の終了を示す終了フラグがハード的に
セットされ、この終了フラグを検出する必要のあるマイ
クロプロセッサ−においては、ハード的な故障によって
、終了フラグをセット出来なくなった場合、終了フラグ
の検出ができなくなり、ついには、終了フラグ検出の部
分で無限ループ化してしまったり、あるいは、前回のA
/D変換変換所録部2に残ったままとなり制御部3が、
前回のA/D変換値を用いて制御を行ってしまうという
問題が発生した。そしてもしも、第3図に示すような温
度制御回路において、ヒーター8がONした状態で上記
の故障が起これば、ヒーター8の異常過熱により、人身
のやけど、あるいは、火災といった事故を引き起こす危
険があった。
In addition, an end flag indicating the end of A/D conversion is set in hardware, and in a microprocessor that needs to detect this end flag, if the end flag cannot be set due to a hardware failure, the end flag is set. The flag cannot be detected, and the end flag detection part ends up in an infinite loop, or the previous A
/D conversion remains in the conversion recording section 2, and the control section 3
A problem occurred in that control was performed using the previous A/D conversion value. If the above-mentioned failure occurs in the temperature control circuit shown in Fig. 3 while the heater 8 is turned on, there is a risk of abnormal overheating of the heater 8, resulting in personal burns or a fire. there were.

本発明は上記問題点を解消するもので、マイクロプロセ
ッサ−のA/D変換部における、ハード的な故障を検出
して、事故を未然に防止できるA/D変換の異常処理方
法を提供するものである。
The present invention solves the above problems and provides an A/D conversion abnormality processing method that can detect hardware failures in the A/D conversion section of a microprocessor and prevent accidents. It is.

問題点を解決するための手段 上記問題点を解決するために本発明のA/D変換の異常
処理方法は、A/D変換部と、前記A/D変換部による
A/D変換変換所録する記録部と、A/D変換に要する
最大時間より長い設定時間をもつタイマー割込部と、前
記A/D変換変換所定の範囲内の[(正常IF[)であ
れば通常処理を行ない、前記記録部の値が所定の範囲外
の値(異常値)であれば異常処理を行う制御部からなり
前記タイマー割込部は、A/D変換開始と同時に計時を
開始し、前記設定時間をオーバーフローしてタイマー割
込が発生した場合、異常処理を行うか、もしくは、A/
D変換値として異常値を前記記録部に記録して制御部へ
移行処理を行うものである。
Means for Solving the Problems In order to solve the above problems, the A/D conversion abnormality processing method of the present invention includes an A/D conversion unit and an A/D conversion record by the A/D conversion unit. a timer interrupt unit having a set time longer than the maximum time required for A/D conversion; If the value of the recording section is outside a predetermined range (abnormal value), the timer interrupt section starts measuring time at the same time as the start of A/D conversion, and the set time If a timer interrupt occurs due to overflow, perform abnormal processing or
The abnormal value is recorded in the recording section as a D-converted value and transferred to the control section.

作   用 上記構成によりA/D変換に要する時間をタイマー管理
することで、マイクロプロセッサ−のA/D変換器にお
ける、ノ・−ド的な故障、すなわち、A/D変換に必要
以上の時間を要する、あるいは、A/D変換の終了フラ
グをセットできないといった故障を検出して、事故を未
然に防止することが可能となる。
Operation By managing the time required for A/D conversion with the above configuration, node-like failures in the A/D converter of the microprocessor, that is, taking more time than necessary for A/D conversion, can be avoided. It is possible to prevent accidents by detecting failures such as failures or inability to set the end flag of A/D conversion.

実施例 以下、本発明の実施例を添付図面に基づいて説明する。Example Embodiments of the present invention will be described below with reference to the accompanying drawings.

第1図において、11はA/D変換部、12は前記A/
D変換部11によるA / D変換値を記録する記録部
、13はA/D変換に要する最大時間より長い設定時間
をもつタイマー割込部、14は前記A/D変換変換所定
の範囲内の1ii(正常1iiりであれば、通常処理を
行い、前記、A/D変換値が所定の範囲外の幀(異常値
)であれば、異常処理を行う制御部である。タイマー割
込部13はA/D変換開始と同時に計時を開始し、設定
時間をオーバー70−して、タイマー割込が発生した場
合、異常処理を行うか、あるいはA/D変換変換所て異
常値を記録部2に記録するとともに、制御部14へ移行
処理を行う。
In FIG. 1, 11 is an A/D converter, 12 is the A/D converter, and 12 is the A/D converter.
A recording section 13 records the A/D conversion value by the D conversion section 11, a timer interrupt section 13 having a set time longer than the maximum time required for A/D conversion, and 14 a recording section for recording the A/D conversion value within a predetermined range. 1ii (If the A/D conversion value is normal 1ii, it performs normal processing, and if the A/D conversion value is outside the predetermined range (abnormal value), it is a control unit that performs abnormal processing. Timer interrupt unit 13 starts timing at the same time as the start of A/D conversion, and if the set time exceeds 70- and a timer interrupt occurs, either perform abnormal processing or record the abnormal value at the A/D conversion station. At the same time, the data is transferred to the control unit 14.

上記構成において、マイクロプロセッサ−のA/D変換
部における、ハード的な故障、すなわちA/D変換に必
要以上の時間を要する、あるいはA/D変換の終了フラ
グをセットできないといった故障が発生して、A/D変
換に必要な所定の時間が経過しても処理が制御部14に
移行しない場合A/D変換開始と同時に計時を開始した
タイマー割込部13は、設定時間のオーバーフローによ
るタイマー割込の発生で、A/D変換畝として異常値を
記録部12に記録するとともに°、制御部14へ移行処
理を行うことになる。
In the above configuration, a hardware failure occurs in the A/D conversion section of the microprocessor, such as A/D conversion taking longer than necessary or failure to set the A/D conversion completion flag. If the process does not proceed to the control unit 14 even after the predetermined time required for A/D conversion has passed, the timer interrupt unit 13, which started timing at the same time as the start of A/D conversion, interrupts the timer interrupt due to an overflow of the set time. When an error occurs, an abnormal value is recorded in the recording section 12 as an A/D conversion row, and the process is transferred to the control section 14.

次に、制御部14は、記録部12に記録されたA/D変
換値を用いて制御を行うわけであるが、前記A/D変換
値が異常値であるため、異常処理を行うことになる。こ
の異常処理の中で、故障の表示ヒータニの通電停止、あ
るいは機器自体の電源のOFFといった処理を行うこと
で、事故を未然に防ぐことができるといった効果がある
Next, the control unit 14 performs control using the A/D conversion value recorded in the recording unit 12, but since the A/D conversion value is an abnormal value, it decides to perform abnormality processing. Become. In this abnormality processing, it is possible to prevent accidents by performing processing such as stopping the power supply to the failure display heater or turning off the power to the device itself.

もちろん、タイマー割込部13において、直接異常処理
をするよう構成することも可能である。
Of course, it is also possible to configure the timer interrupt section 13 to directly handle the abnormality.

発明の効果 以上の実施例の説明より明らかなように、本発明のA/
D変換の異常処理方法はA/D変換に要する時間をタイ
マー管理しているので、マイクロプロセッサ−のA/D
変換器における、ハード的な故障、すなわち、A/D変
換に必要以上の時間を要する、あるいは、A/D変換の
終了7ラグをセットできないといった故障を検出して、
事故を未然に防止することが可能となるのである。
As is clear from the description of the embodiments above, the effects of the invention are as follows:
The D conversion error handling method uses a timer to manage the time required for A/D conversion, so the microprocessor's A/D
Detects a hardware failure in the converter, such as A/D conversion taking longer than necessary, or failure to set the A/D conversion end 7 lag,
This makes it possible to prevent accidents.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例におけるA/D変換の異常処理
方法のブロック図、第2図は従来のA/゛D変換の異常
処理方法のブロック図、第3図は、A/D変換をもちい
た温度制御回路を示す回路図、第4図は同回路の温度制
御範囲を示す特性図である。 11・・・・・・A/D変換部、12・・・・・・記録
部、13・・・・・・タイマー割込部、14・・・・・
・制御部。 代理人の氏名 弁理士 中 尾 敏 男 はが1名第1
図 第3図 第4図 、恒Aの@江
FIG. 1 is a block diagram of an A/D conversion abnormality processing method according to an embodiment of the present invention, FIG. 2 is a block diagram of a conventional A/D conversion abnormality processing method, and FIG. 3 is a block diagram of an A/D conversion abnormality processing method according to an embodiment of the present invention. FIG. 4 is a circuit diagram showing a temperature control circuit using the same circuit, and FIG. 4 is a characteristic diagram showing the temperature control range of the circuit. 11...A/D conversion unit, 12...Recording unit, 13...Timer interrupt unit, 14...
・Control unit. Name of agent: Patent attorney Toshio Nakao (1st person)
Figure 3 Figure 4, Heng A @ Jiang

Claims (1)

【特許請求の範囲】[Claims] (1)アナログ・デジタル変換部(以下、A/D変換部
と略す)と、前記A/D変換部によるA/D変換値を記
録する記録部と、A/D変換に要する最大時間より長い
設定時間をもつタイマー割込部と、前記記録部の値が所
定の範囲内の値(正常値)であれば通常処理を行ない、
前記記録部の値が所定の範囲外の値(異常値)であれば
異常処理を行う制御部からなり、前記タイマー割込部は
、A/D変換開始と、同時に計時を開始し、前記設定時
間をオーバーフローしてタイマー割込が発生した場合、
異常処理を行うか、もしくは、A/D変換値として異常
値を前記記録部に記録して、前記制御部へ移行処理を行
うA/D変換の異常処理方法。
(1) An analog-to-digital conversion section (hereinafter abbreviated as A/D conversion section) and a recording section that records the A/D conversion value by the A/D conversion section, which takes longer than the maximum time required for A/D conversion. If the values of the timer interrupt section having a set time and the recording section are within a predetermined range (normal value), normal processing is performed;
The controller includes a control unit that performs abnormality processing if the value of the recording unit is outside a predetermined range (abnormal value), and the timer interrupt unit starts timing at the same time as the start of A/D conversion, and If the time overflows and a timer interrupt occurs,
A method for handling an abnormality in A/D conversion, which performs abnormality processing or records an abnormal value as an A/D conversion value in the recording section and transfers the processing to the control section.
JP27242987A 1987-10-28 1987-10-28 Abnormality processing method for analog/digital conversion Pending JPH01113802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27242987A JPH01113802A (en) 1987-10-28 1987-10-28 Abnormality processing method for analog/digital conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27242987A JPH01113802A (en) 1987-10-28 1987-10-28 Abnormality processing method for analog/digital conversion

Publications (1)

Publication Number Publication Date
JPH01113802A true JPH01113802A (en) 1989-05-02

Family

ID=17513787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27242987A Pending JPH01113802A (en) 1987-10-28 1987-10-28 Abnormality processing method for analog/digital conversion

Country Status (1)

Country Link
JP (1) JPH01113802A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013145587A1 (en) * 2012-03-29 2013-10-03 株式会社デンソー Temperature detection device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013145587A1 (en) * 2012-03-29 2013-10-03 株式会社デンソー Temperature detection device

Similar Documents

Publication Publication Date Title
JPH01113802A (en) Abnormality processing method for analog/digital conversion
JP3002912B2 (en) Thermal analyzer
JPH10307635A (en) Computer system and temperature monitoring method applied to the same system
JPH06253577A (en) Motor controller
JPH0612154A (en) Battery backup system
JPH05108167A (en) Controller
JPH0298297A (en) Monitor system
JPH04175439A (en) Water temperature abnormality detection device
JPH03266131A (en) Power source state decision system for multiple system
JP3544176B2 (en) Control device for electric actuator
JPS63191175A (en) Electrophotographic printer
JPS61285034A (en) Power source controller
JPH03124223A (en) Abnormality monitoring system
JPH03257513A (en) Forcible maintenance system
JPS5850097A (en) Concentrated alarm/monitor
JPS59148961A (en) Monitoring system of operation of processor
JPH0287927A (en) Protective device for electronic parts
JPH04218A (en) Power supply control system
JPH0290072A (en) Apparatus for detecting wire breakdown in heater
JP2559116B2 (en) Gasification oil burner
JPH04105151A (en) Input/output controller
JPS63237965A (en) Protection circuit of thermal head
JPH04205162A (en) Multiprocessor system
JPH02227980A (en) Heater discontinuity sensing device
JPS59168520A (en) Temperature monitor device