JP2613915B2 - Micro computer - Google Patents

Micro computer

Info

Publication number
JP2613915B2
JP2613915B2 JP63152816A JP15281688A JP2613915B2 JP 2613915 B2 JP2613915 B2 JP 2613915B2 JP 63152816 A JP63152816 A JP 63152816A JP 15281688 A JP15281688 A JP 15281688A JP 2613915 B2 JP2613915 B2 JP 2613915B2
Authority
JP
Japan
Prior art keywords
input
inverted
level
register
input port
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.)
Expired - Lifetime
Application number
JP63152816A
Other languages
Japanese (ja)
Other versions
JPH023817A (en
Inventor
則明 中▲吉▼
Original Assignee
日本電気アイシーマイコンシステム株式会社
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 日本電気アイシーマイコンシステム株式会社 filed Critical 日本電気アイシーマイコンシステム株式会社
Priority to JP63152816A priority Critical patent/JP2613915B2/en
Publication of JPH023817A publication Critical patent/JPH023817A/en
Application granted granted Critical
Publication of JP2613915B2 publication Critical patent/JP2613915B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロ・コンピュータに関する。Description: TECHNICAL FIELD The present invention relates to a microcomputer.

〔従来の技術〕[Conventional technology]

従来のマイクロコンピュータの反転入力レベル設定可
能な入力ポートは、反転入力レベルを設定するための記
憶手段を1組しか持っておらず、入力特性にヒステリシ
ス特性をもたせるためにはプログラムにより実現する必
要があった。
The input port of the conventional microcomputer capable of setting the inverted input level has only one set of storage means for setting the inverted input level, and must be realized by a program in order to provide the input characteristic with the hysteresis characteristic. there were.

またヒステリシス特性を有する入力ポートは、そのヒ
ステリシス特性が回路的に固定であり任意にヒステリシ
ス特性を得る事はできなかった。
Further, the input port having the hysteresis characteristic has a fixed hysteresis characteristic in terms of a circuit, so that the hysteresis characteristic cannot be arbitrarily obtained.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述した従来のマイクロコンピュータの反転入力レベ
ル設定可能な入力ポートは、反転入力レベルを設定する
記憶手段を1組しかもたないためヒステリシス特性をも
たせるためには、入力論理値が変化した場合に記憶手段
に記憶されるデータを変更し、反転入力レベルを変更す
る必要があった。
The above-mentioned input port of the conventional microcomputer capable of setting the inverted input level has only one set of storage means for setting the inverted input level. Therefore, in order to provide a hysteresis characteristic, the storage means is used when the input logical value changes. It was necessary to change the data stored in the memory and to change the inverted input level.

このためにプログラムで入力論理値の変化の監視,入
力論理値の判断,記憶手段に設定するデータの変更の処
理を行なわなければならならず、プログラムの負担が増
えてしまうという欠点があった。
For this reason, the program must monitor the change of the input logical value, judge the input logical value, and change the data set in the storage means, which has a disadvantage that the load on the program increases.

またヒステリシス特性を有する入力ポートは、そのヒ
ステリシス特性が回路的に固定された特性となってお
り、任意のヒステリシス特性を入力ポートにもたせる事
ができないという欠点があった。
In addition, the input port having the hysteresis characteristic has a characteristic that the hysteresis characteristic is fixed in terms of a circuit, and there is a disadvantage that any input port cannot have any hysteresis characteristic.

本発明の目的は、2種類の反転入力レベルを設定で
き、その2種類の反転入力レベルを入力論理値により切
り替える事ができ、プログラムにより任意にヒステリシ
ス特性を設定変更できるマイクロコンピュータを提供す
ることにある。
An object of the present invention is to provide a microcomputer that can set two types of inverted input levels, can switch between the two types of inverted input levels according to input logical values, and can arbitrarily set and change the hysteresis characteristics by a program. is there.

〔課題を解決するための手段〕[Means for solving the problem]

本発明のマイクロ・コンピュータは、出力のレベルを
論理反転させる反転入力レベル設定可能な入力ポート
と、該入力ポートの入力論理値そのもの又は該入力論理
値と時間的に1対1で対応する反転論理信号により2組
の記憶手段のいずれか1組を選択する選択手段と、該選
択手段により選択された1組の記憶手段に記憶されたデ
ータにより、前記入力ポートの反転入力レベルを設定す
る手段とを含んで構成される。
A microcomputer according to the present invention includes an input port capable of setting an inverted input level for logically inverting an output level, and an input logic value of the input port itself or an inverted logic corresponding to the input logic value on a one-to-one basis in time. Selecting means for selecting any one of the two sets of storage means by a signal; and means for setting an inverted input level of the input port based on data stored in the set of storage means selected by the selection means. It is comprised including.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を回路図である。 FIG. 1 is a circuit diagram showing one embodiment of the present invention.

レジスタ6,レジスタ7は、2組の記憶手段であり、レ
ジスタ6には入力ポートの入力論理信号そのもの又は、
入力論理値と時間的に1:1で対応する反転論理信号であ
る入力論理値の「0」から「1」への反転入力レべルを
決定するためのデータが、レジスタ7には入力論理値の
「1」から「0」への反転レベルを決定するためのデー
タが記憶される。
The register 6 and the register 7 are two sets of storage means, and the register 6 has the input logic signal itself of the input port or
The data for determining the inverted input level from “0” to “1” of the input logic value, which is an inverted logic signal corresponding to the input logic value at a 1: 1 time, is stored in the register 7 in the input logic value. Data for determining the inversion level of the value from “1” to “0” is stored.

コンパレータ2,外部信号入力端子1,反転入力レベル5
は反転入力レベル設定可能な入力ポートである。入力論
理値8,レジスタ選択回路10は、入力論理値によりレジス
タ6,レジスタ7のいずれか1組を選択するものである。
Comparator 2, external signal input terminal 1, inverted input level 5
Is an input port for which an inverted input level can be set. The input logic value 8 and the register selection circuit 10 select one of the registers 6 and 7 according to the input logic value.

マルチプレクサ3,ラダー抵抗4は、選択されたレジス
タに記憶されたデータにより反転入力レベルを設定す
る。またCPUの内部バス9は、2組のレジスタの記憶デ
ータをプログラムで設定するためのものである。
The multiplexer 3 and the ladder resistor 4 set the inverted input level according to the data stored in the selected register. The internal bus 9 of the CPU is used to set data stored in two sets of registers by a program.

コンパレータ2は、外部信号入力端子1と反転入力レ
ベル5を比較して入力論理値8を出力する。レジスタ選
択回路10は、入力論理値8の論値値により、論理値が
「0」ならばレジスタ6を、「1」ならばレジスタ7を
選択する。
The comparator 2 compares the external signal input terminal 1 with the inverted input level 5 and outputs an input logical value 8. The register selection circuit 10 selects the register 6 if the logical value is "0" and the register 7 if the logical value is "1", based on the theoretical value of the input logical value 8.

選択された側のレジスタは、記憶されているデータを
マルチプレクサ3に与える。マルチプレクサ3は、与え
られたデータに従って電圧値をラダー抵抗4により選択
し、反転入力レベル5に出力する。
The register on the selected side supplies the stored data to the multiplexer 3. The multiplexer 3 selects a voltage value by the ladder resistor 4 according to the applied data, and outputs the selected voltage value to the inverted input level 5.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、2組の記憶手段に任意
のデータを記憶するだけで入力ポートに任意のヒステリ
シス特性をもたせる事ができ、またマイクロ・コンピュ
ータを使用する場所のノイズ環境により任意のヒステリ
シス特性を選択でき、さらにノイズ環境の変化に伴いダ
イナミックにヒステリシス特性を変化させる事も可能と
なるという効果がある。
As described above, according to the present invention, an arbitrary hysteresis characteristic can be given to the input port only by storing arbitrary data in two sets of storage means. The hysteresis characteristic can be selected, and the hysteresis characteristic can be dynamically changed with a change in the noise environment.

このため、マイクロコンピュータの使用環境の対応が
プログラムにより実現でき、しかもプログラムの負担を
軽減できる。
Thus, the use environment of the microcomputer can be realized by the program, and the load on the program can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の一実施例の回路図、第2図は第1図に
示すマイクロコンピュータの入力ポートのヒステリシス
特性を示すグラフである。 1……外部信号入力端子、2……コンパレータ、3……
マルチプレクサ、4……ラダー抵抗、5……反転入力レ
ベル、6……レジスタ、7……レジスタ、8……入力論
理値、9……CPUの内部バス、10……レジスタ選択回
路、11……入力論理値、12……入力電圧、13……ヒステ
リシス曲線、14……レジスタAに記憶されたデータによ
り決定される反転入力レベル、15……レジスタBに記憶
されたデータにより決定される反転入力レベル。
FIG. 1 is a circuit diagram of an embodiment of the present invention, and FIG. 2 is a graph showing a hysteresis characteristic of an input port of the microcomputer shown in FIG. 1 ... external signal input terminal, 2 ... comparator, 3 ...
Multiplexer, 4 ... Ladder resistance, 5 ... Inverted input level, 6 ... Register, 7 ... Register, 8 ... Input logic value, 9 ... CPU internal bus, 10 ... Register selection circuit, 11 ... Input logical value, 12 ... input voltage, 13 ... hysteresis curve, 14 ... inverted input level determined by data stored in register A, 15 ... inverted input determined by data stored in register B level.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】出力のレベルを論理反転させる反転入力レ
ベル設定可能な入力ポートと、該入力ポートの入力論理
値そのもの又は該入力論理値と時間的に1対1で対応す
る反転論理信号により2組の記憶手段のいずれか1組を
選択する選択手段と、該選択手段により選択された1組
の記憶手段に記憶されたデータにより、前記入力ポート
の反転入力レベルを設定する手段とを含むことを特徴と
するマイクロ・コンピュータ。
An input port capable of setting an inverted input level for logically inverting an output level, and an input logic value of the input port itself or an inverted logic signal corresponding to the input logic value on a one-to-one basis. Selecting means for selecting any one of the sets of storage means; and means for setting an inverted input level of the input port based on data stored in the set of storage means selected by the selection means. A microcomputer characterized by the above-mentioned.
JP63152816A 1988-06-20 1988-06-20 Micro computer Expired - Lifetime JP2613915B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63152816A JP2613915B2 (en) 1988-06-20 1988-06-20 Micro computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63152816A JP2613915B2 (en) 1988-06-20 1988-06-20 Micro computer

Publications (2)

Publication Number Publication Date
JPH023817A JPH023817A (en) 1990-01-09
JP2613915B2 true JP2613915B2 (en) 1997-05-28

Family

ID=15548785

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63152816A Expired - Lifetime JP2613915B2 (en) 1988-06-20 1988-06-20 Micro computer

Country Status (1)

Country Link
JP (1) JP2613915B2 (en)

Also Published As

Publication number Publication date
JPH023817A (en) 1990-01-09

Similar Documents

Publication Publication Date Title
US5382839A (en) Power supply control circuit for use in IC memory card
JP2719052B2 (en) Microcomputer
JP2613915B2 (en) Micro computer
US5371869A (en) Micro-controller unit for selectively accessing an internal memory or an external extended memory using a read/write terminal
JP3636232B2 (en) Integrated circuit capable of selecting function and method for selecting function
US4679194A (en) Load double test instruction
US5377347A (en) Data processor for generating pulse signal in response to external clock including flipflop
JPH0771003B2 (en) Refrigerator controller
US4896104A (en) Digital peak and valley detector
US4771405A (en) Hidden control bits in a control register
US5396611A (en) Microprocessor use in in-circuit emulator having function of discriminating user's space and in-circuit emulator space
KR920003271B1 (en) Memory write protection circuit by microcomputer control
KR0174512B1 (en) Refresh Timing Generation Circuit
JP2001273274A (en) Semiconductor integrated circuit and test mode setting circuit therefor
JPH04298882A (en) Dual port memory
JPH05291957A (en) One-chip comparator with comparison reference changeover switch
JP3310482B2 (en) Microcomputer
JPH0734385Y2 (en) Signal generator
JPH06119167A (en) Digital signal processing circuit
JP3057749B2 (en) I / O port
KR890001224B1 (en) Reset and data protecting circuit
JPH0773074A (en) Timer circuit
JPH01101736A (en) Input circuit
JPH04287514A (en) Pulse width modulation circuit
JPH04175803A (en) Source voltage detection circuit