JP2003069395A - Signal detection circuit - Google Patents

Signal detection circuit

Info

Publication number
JP2003069395A
JP2003069395A JP2001255525A JP2001255525A JP2003069395A JP 2003069395 A JP2003069395 A JP 2003069395A JP 2001255525 A JP2001255525 A JP 2001255525A JP 2001255525 A JP2001255525 A JP 2001255525A JP 2003069395 A JP2003069395 A JP 2003069395A
Authority
JP
Japan
Prior art keywords
signal
microcomputer
detection circuit
external
signal detection
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
JP2001255525A
Other languages
Japanese (ja)
Inventor
Yuji Nagafuku
裕二 永福
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2001255525A priority Critical patent/JP2003069395A/en
Publication of JP2003069395A publication Critical patent/JP2003069395A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a signal detection circuit that can provide a hysteresis characteristic to an external signal received by a microcomputer so as not give a noise to the external signal without incurring a cost increase. SOLUTION: The signal detection circuit for giving an external input to the microcomputer gives a hysteresis characteristic to an external input on the basis of a prescribed signal from the microcomputer and provides the external signal with the hysteresis characteristic to the microcomputer. Thus, the signal detection circuit can provide the hysteresis characteristic to the external signal on the basis of an instruction of the microcomputer for receiving the external signal and processing the signal so as to reduce the number of circuit components such as a comparator that is a source of a cost increase.

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】この発明は、外部入力にヒス
テリシス特性を与え、このヒステリシス特性を有する外
部信号をマイクロコンピュータへ入力させる信号検出回
路に関する。 【0002】 【従来の技術および発明が解決しようとする課題】一般
的に外来ノイズなどや電源のリップルによって、マイク
ロコンピュータに入力される信号にノイズが入らないよ
うに、信号検出回路にヒステリシス特性を持たせること
が良く行われている。これには、従来、コンパレータ
や、オペアンプを用いた回路が良く使用される。しか
し、このような従来例にあっては、回路が複雑になり、
コストが上がってしまう問題があった。図1は従来例を
示し、信号検出回路にコンパレータ1を用いている。I
Nに外部信号が入力され、信号検出回路はマイクロコン
ピュータに接続されている。図2に信号検出回路に入力
される外部信号と信号検出回路からマイクロコンピュー
タへ出力される信号を示している。図1のような構成の
場合、外部信号の検出レベルは、 Vref1=R3×Vcc/((R1+R4)×R2/
((R1+R4)+R2)+R3) Vref2=((R4×R3)/(R4+R3))×V
cc/(((R4×R3)/(R4+R3))+R2) となる。これにより、マイクロコンピュータへ入力され
る外部信号にヒステリシス特性が与えられる。 【0003】この発明の目的は、コスト上昇を招くこと
なく、マイクロコンピュータに入力される外部信号にノ
イズが入らないようにこの外部信号にヒステリシス特性
を与えることができる、信号検出回路を提供することに
ある。 【0004】 【課題を解決するための手段および発明の効果】課題を
解決するための本発明は、外部入力をマイクロコンピュ
ータへ入力させる信号検出回路において、前記マイクロ
コンピュータからの所定信号に基づいて前記外部入力に
ヒステリシス特性を与え、このヒステリシス特性を有す
る外部信号を前記マイクロコンピュータへ入力させるこ
とを特徴とする信号検出回路にある。 【0005】すなわち、外部信号を受け取り処理するマ
イクロコンピュータの指示により、信号検出回路上で外
部信号にヒステリシス特性を持たせることができ、コス
ト上昇をもたらすコンパレータ等の回路部品の削減を図
ることができる。 【0006】 【発明の実施の形態】図3は各種機器に搭載される本発
明実施例の信号検出回路を示す。信号検出回路は、マイ
クロコンピュータのINT端子(割り込み検出端子)に
接続されている。信号検出回路のトランジスタQ1のベ
ースには、ベース抵抗R1とR2が接続されているが、
R2はグランドではなく、マイクロコンピュータの出力
ポートP1に接続されている。P1は、オープンドレイ
ンの仕様になっている。P1がオフの場合、トランジス
タQ1のVbe電圧が0.6Vとすると、INに入力す
る外部信号の検出レベル(Vref)は Vref=(R1+R3)×0.6/R1 となる。 【0007】マイクロコンピュータが信号の立ち下がり
エッジを検出すると、P1をオンさせるようにソフトウ
エアを組む。 【0008】P1がオンすると、検出レベル(Vre
f)は Vref=(((R1×R2)/(R1+R2))+R
3)×0.6/((R1×R2)/(R1+R2)) となる。 【0009】次に、立ち上がりエッジを検出した場合に
はP1をオフする。すると、検出レベルは Vref=(R1+R3)×0.6/R1 に戻る。 【0010】このように、信号を受け取る度に、P1を
オン、オフさせてやれば、信号検出回路に入力する外部
信号に図2の如くヒステリシス特性を与えることができ
る。 【0011】本発明は以上説明した実施形態に限定され
るものではなく、請求項記載の範囲内において種々の変
更が可能である。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a signal detection circuit for providing a hysteresis characteristic to an external input and inputting an external signal having the hysteresis characteristic to a microcomputer. 2. Description of the Related Art Generally, a signal detection circuit has a hysteresis characteristic so that a signal input to a microcomputer does not enter a noise due to external noise or the like or a ripple of a power supply. It is often done to have. Conventionally, a circuit using a comparator or an operational amplifier is often used for this purpose. However, in such a conventional example, the circuit becomes complicated,
There was a problem that cost increased. FIG. 1 shows a conventional example, in which a comparator 1 is used for a signal detection circuit. I
An external signal is input to N, and the signal detection circuit is connected to the microcomputer. FIG. 2 shows an external signal input to the signal detection circuit and a signal output from the signal detection circuit to the microcomputer. In the case of the configuration as shown in FIG. 1, the detection level of the external signal is as follows: Vref1 = R3 × Vcc / ((R1 + R4) × R2 /
((R1 + R4) + R2) + R3) Vref2 = ((R4 × R3) / (R4 + R3)) × V
cc / (((R4 × R3) / (R4 + R3)) + R2). Thereby, a hysteresis characteristic is given to the external signal input to the microcomputer. An object of the present invention is to provide a signal detection circuit capable of giving a hysteresis characteristic to an external signal input to a microcomputer without increasing noise without increasing noise. It is in. According to the present invention, there is provided a signal detecting circuit for inputting an external input to a microcomputer, the signal detecting circuit being configured to output the external input based on a predetermined signal from the microcomputer. The signal detection circuit is characterized in that a hysteresis characteristic is given to an external input, and an external signal having this hysteresis characteristic is input to the microcomputer. That is, a hysteresis characteristic can be given to an external signal on a signal detection circuit by an instruction of a microcomputer which receives and processes an external signal, and circuit components such as comparators which increase costs can be reduced. . FIG. 3 shows a signal detection circuit according to an embodiment of the present invention mounted on various devices. The signal detection circuit is connected to an INT terminal (interrupt detection terminal) of the microcomputer. Base resistors R1 and R2 are connected to the base of the transistor Q1 of the signal detection circuit.
R2 is not grounded but is connected to the output port P1 of the microcomputer. P1 has an open drain specification. When P1 is off and the Vbe voltage of the transistor Q1 is 0.6 V, the detection level (Vref) of the external signal input to IN is Vref = (R1 + R3) × 0.6 / R1. When the microcomputer detects the falling edge of the signal, software is set to turn on P1. When P1 turns on, the detection level (Vre
f) is Vref = (((R1 × R2) / (R1 + R2)) + R
3) × 0.6 / ((R1 × R2) / (R1 + R2)) Next, when a rising edge is detected, P1 is turned off. Then, the detection level returns to Vref = (R1 + R3) × 0.6 / R1. As described above, if P1 is turned on and off each time a signal is received, a hysteresis characteristic can be given to the external signal input to the signal detection circuit as shown in FIG. The present invention is not limited to the embodiment described above, and various modifications can be made within the scope of the claims.

【図面の簡単な説明】 【図1】従来例の信号検出回路図である。 【図2】同回路の入力信号と出力信号を示す図である。 【図3】本発明実施例の信号検出回路図である。 【符号の説明】 Q1 トランジスタ R1、R2、R3 抵抗[Brief description of the drawings] FIG. 1 is a signal detection circuit diagram of a conventional example. FIG. 2 is a diagram showing an input signal and an output signal of the circuit. FIG. 3 is a signal detection circuit diagram according to the embodiment of the present invention. [Explanation of symbols] Q1 transistor R1, R2, R3 resistance

Claims (1)

【特許請求の範囲】 【請求項1】 外部入力をマイクロコンピュータへ入力
させる信号検出回路において、前記マイクロコンピュー
タからの所定信号に基づいて前記外部入力にヒステリシ
ス特性を与え、このヒステリシス特性を有する外部信号
を前記マイクロコンピュータへ入力させることを特徴と
する信号検出回路。
1. A signal detection circuit for inputting an external input to a microcomputer, wherein a hysteresis characteristic is given to the external input based on a predetermined signal from the microcomputer, and an external signal having the hysteresis characteristic is provided. A signal detection circuit for inputting a signal to the microcomputer.
JP2001255525A 2001-08-27 2001-08-27 Signal detection circuit Pending JP2003069395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001255525A JP2003069395A (en) 2001-08-27 2001-08-27 Signal detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001255525A JP2003069395A (en) 2001-08-27 2001-08-27 Signal detection circuit

Publications (1)

Publication Number Publication Date
JP2003069395A true JP2003069395A (en) 2003-03-07

Family

ID=19083480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001255525A Pending JP2003069395A (en) 2001-08-27 2001-08-27 Signal detection circuit

Country Status (1)

Country Link
JP (1) JP2003069395A (en)

Similar Documents

Publication Publication Date Title
US7365588B2 (en) Automatic time constant adjustment circuit
JP2004046616A (en) Power circuit
CN101119162A (en) Semiconductor integrated circuit outputting detection signal based on detection result of a detecting device and electronic device including the same
US20090174564A1 (en) Dust detecting circuit
US7400188B2 (en) Voltage providing circuit
US8806236B2 (en) Power matching system
US7729871B2 (en) Airflow detecting apparatus
JP4181587B2 (en) Voltage comparison circuit with hysteresis characteristics
US20060152875A1 (en) Overcurrent protection device
JP2003069395A (en) Signal detection circuit
EP2733564A2 (en) Two-wire transmitter starter circuit and two-wire transmitter including the same
JP4915965B2 (en) Single-phase brushless motor drive
CN112424708B (en) Circuit for processing logic inputs
KR0132407Y1 (en) Power source voltage reduction detection circuit
JP2004304334A (en) Semiconductor device and reset signal transmission method
JPH1151792A (en) Sensor signal circuit
JP2004120380A (en) Hysteresis characteristic setting arrangement
JP3440482B2 (en) Switching circuit
GB2389429A (en) Electronic accessory detection and identification
JPH1174767A (en) Comparator having hysteresis
JPH07141583A (en) Disconnection detection device
KR930002350Y1 (en) Abnormal voltage detecting circuit
JPH076541Y2 (en) Initial test start identification circuit
JP2002135966A (en) Overvoltage output protective circuit
JP2004286640A (en) Input circuit for sensor