JPS6059598A - Data writing/reading device in/from eeprom - Google Patents

Data writing/reading device in/from eeprom

Info

Publication number
JPS6059598A
JPS6059598A JP58167557A JP16755783A JPS6059598A JP S6059598 A JPS6059598 A JP S6059598A JP 58167557 A JP58167557 A JP 58167557A JP 16755783 A JP16755783 A JP 16755783A JP S6059598 A JPS6059598 A JP S6059598A
Authority
JP
Japan
Prior art keywords
circuit
processor unit
input
main device
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP58167557A
Other languages
Japanese (ja)
Inventor
Soichi Yagi
八木 操一
Atsuhiko Murata
敦彦 村田
Shinzo Yokoyama
横山 信三
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.)
Koito Manufacturing Co Ltd
Original Assignee
Koito Manufacturing 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 Koito Manufacturing Co Ltd filed Critical Koito Manufacturing Co Ltd
Priority to JP58167557A priority Critical patent/JPS6059598A/en
Publication of JPS6059598A publication Critical patent/JPS6059598A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C17/00Read-only memories programmable only once; Semi-permanent stores, e.g. manually-replaceable information cards

Abstract

PURPOSE:To reduce the number of I/O signal lines by forming a circuit for switching and connecting I/O signal lines from respective I/O devices in a main device to a processor unit on the external device side. CONSTITUTION:When the external device 200 is not connected to the main device 100 and a switch SW1 is opened, the 2nd inputs of an AND1 and an AND2 are ''1'' respectively, the 2nd inputs of an AND3 and an AND4 are ''0'' and the main device 100 integrates output pulses from a sensor 14 and sends the integrated result to a display circuit 16. When the device 200 is connected to the main device 100 and the SW1 is closed, the 2nd inputs of the AND1 and AND2 are turned to ''0'' and an input from the sensor 14 to the processor unit 10 and an output from the unit 10 to the circuit 16 are cut off, the I/O terminals of the units 10, 20 are connected with each other and the unit 20 writes/reads out data in/from an EEPROM13 through the unit 10.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、記憶手段として電気的に消去・書込−1−、
− みおよび読出しが可能な不揮発性メモリであるEEPR
OMを用いたシステムにおいて、EEPROMへのデー
タ書込みおよび読出しを外部的に制御する書込みおよび
読出し装置に関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention provides electrical erasing/writing-1-,
- EEPR, which is a non-volatile memory that can be read and read;
The present invention relates to a writing and reading device that externally controls writing and reading of data to and from an EEPROM in a system using an OM.

〔従来技術〕[Prior art]

EEFROMは、電気的に消去・書込みおよび読出しが
自由に行なえると同時に不揮発性であることから、例え
ば一定の走行距離ごとに発生するノくルスを計数する計
数部として用いて従来困難とされたオドメータの電子化
を可能にしたり、あるいは基本ルーチン(仕様)は同じ
で計算式や定数を種々変更したバリエーション製品を作
るような場合にサブルーチンプログラムや各種バリエー
ション定数などを収納してシステムの汎用性を飛躍的に
拡大したりすることが可能となる。
Since EEFROM can be electrically erased, written to, and read freely and is nonvolatile, it can be used, for example, as a counting unit to count the noise that occurs every certain distance, which was previously considered difficult. To make it possible to digitize an odometer, or to create variation products with the same basic routine (specifications) but with various calculation formulas and constants, store subroutine programs and various variation constants to increase the versatility of the system. It becomes possible to expand dramatically.

ところで、EEFROMをこのようなシステムに用いる
場合、オドメータ等、個々の主装置に組込む前に行なう
例えば上述したような計数部としてのデータエリアの初
期値設定や、サブルーチンプログラムの書込み、ガらび
に収納データの読出しjリ −2− の方法が問題と々る。
By the way, when EEFROM is used in such a system, before it is installed in an individual main device such as an odometer, it is necessary to set the initial value of the data area as a counter as described above, write a subroutine program, and store the garbage. The method of reading data is problematic.

このような目的のために従来一般に考えられる方法とし
ては、第1図に示すように主装置10Gを構成するプロ
セッサユニッ)10に外部接続端子を設け、上記書込み
および読出しを行なうプロセッサユニット20を備えた
外部装置200を接続して外部制御可能とする方法があ
る。図において、11はプロセッサユニッ)10の実行
プログラムを収納するROM、12は演算データを収納
するRAM、 13はEEFROMである。土製[10
Gは例えば電子オドメータであシ、14は一定の走行距
離ごとに発生するパルスを送出するセンサ、15はイン
ターフェース回路、16は積算走行距離を表示する表示
器を備えた表示回路である。またDlはプロセッサユニ
ツ)10とEEPROMl 3との間でやりと9される
データ信号、A1はEEFROMl3の特定エリアを指
定するアドレス信号、clは書込み、読出し等を指示す
る制御信号である。
As shown in FIG. 1, a commonly considered method for this purpose is to provide a processor unit (10) constituting the main device 10G with an external connection terminal, and to include a processor unit (20) that performs the above writing and reading. There is a method of connecting an external device 200 to enable external control. In the figure, 11 is a ROM that stores the execution program of the processor unit 10, 12 is a RAM that stores calculation data, and 13 is an EEFROM. Earthenware [10
G is, for example, an electronic odometer, 14 is a sensor that sends out a pulse generated every fixed distance traveled, 15 is an interface circuit, and 16 is a display circuit equipped with a display that displays the cumulative travel distance. Further, Dl is a data signal exchanged between the processor unit 10 and the EEPROM 13, A1 is an address signal specifying a specific area of the EEFROM 13, and cl is a control signal instructing writing, reading, etc.

一方、外部装置200は、プロセッサユニット2゜の他
にキーボード21.プリンタ22.モニタ表示回路23
および切換えスイッチsw1を備え、例えば土製[10
Gの所定の接続部に対応するこの外部装@ 200の接
続部を接続する行為により、上記切換えスイッチSW、
が投入され、これによってEEFROMl 3の支配権
がプロセッサユニット20に移行してキーボード21の
操作による書込みおよび収納データのプリンタ22.モ
ニタ表示回路23への出力が可能となる。
On the other hand, the external device 200 includes a keyboard 21., in addition to the processor unit 2. Printer 22. Monitor display circuit 23
and a changeover switch sw1, for example, made of earthenware [10
By the act of connecting the connection part of this external device @ 200 corresponding to the predetermined connection part of G, the changeover switch SW,
As a result, control of the EEFROM 13 is transferred to the processor unit 20, and the printer 22. Output to the monitor display circuit 23 becomes possible.

しかしながら、上記構成ではコネクタ接続のみで外部制
御への切換えが行々われ、機構・構造が簡単である利点
はあるものの、特にプロセッサユニット10として4ビ
ツト1チツプマイクロコンピユータなどを用いる場合に
は、データバスがないために外部装[200との接続の
ために独立した入出力信号線が必要となる。
However, in the above configuration, switching to external control is performed only by connecting the connector, and although it has the advantage of a simple mechanism and structure, especially when a 4-bit 1-chip microcomputer is used as the processor unit 10, data Since there is no bus, separate input/output signal lines are required for connection with external equipment [200].

〔発明の目的および構成〕[Object and structure of the invention]

本発明はこのような事情に錨みて々されたもので、その
目的は、主装置側におけるセンサ入力。
The present invention was developed based on these circumstances, and its purpose is to provide sensor input on the main device side.

表示出力等の入出力信号線を外部装置との接続用に共用
して入出力信号線数を減少させたEEPROMへのデー
タ書込みおよび読出し装置を提供することにある。
An object of the present invention is to provide a data writing/reading device for an EEPROM in which the number of input/output signal lines is reduced by sharing input/output signal lines such as display/output lines for connection with external devices.

このような目的を達成するために、本発明は、外部装置
の主装置への接続によって、主装置側のプロセッサユニ
ットの同一人出力端子に接続される入出力信号線を、主
装置を構成する各種入出力装置から外部装置側のプロセ
ッサユニットへ切換え接続する切換え回路を設けたもの
である。以下、実施例を用いて本発明の詳細な説明する
In order to achieve such an object, the present invention connects an external device to the main device so that the input/output signal line connected to the same output terminal of the processor unit on the main device side constitutes the main device. A switching circuit is provided to switch and connect various input/output devices to a processor unit on the external device side. Hereinafter, the present invention will be explained in detail using Examples.

〔実施例〕〔Example〕

第2図は本発明を、電子オドメータを主装置とするシス
テムに適用した場合の一実施例を示す構成図である。図
において、主装置#100およびそれを構成する第1の
プロセッサユニット10 、 ROM11 、 RAM
12 、 EEPROMl 3 、センサ14゜インタ
ーフェース回路151表示回路16々らびに外部装置2
00およびそれを構成する第2のプロセッサユニット2
0.キーボード21.プリンタ22、モニタ表示回路2
3は基本的に第1図のものと同様である。データDI 
、アドレス信号A1゜制御信号C1についても同様であ
る。また切換えスイッチSW、も、外部装置200を主
装置100の所定接続部に接続する行為によって投入さ
れる。これに対し、本実施例ではさらに、主装置100
側に、第1の入力端子がセンサ14に接続され第2の入
力端子がスイッチ8W、の投入によってコネクタ接続部
を介して接地端子に接続されるアンド回路AND、、同
じく第2の入力端子がスイッチBV&’+の投入によっ
て接地端子に接続されるとともに第1の入力端子が第1
のプロセッサユニットノ出力端子に接続されたアンド回
路AND、および出力端子が第1のプロセッサユニット
の入力端子に接続されたオア回路OR,を備える。同時
に、外部装置200側にも、第1の入力端子が第2のプ
ロセッサユニット20の出力端子に接続されるとともに
第2の入力端子がスイッチSW1の投入によシインバー
タIN、を介して接地端子に接続されるアンド回路AN
D、および同じく第2の入力端子がスイッチSW1の投
入によシインバータINIを介して接地端子に接続され
るとともに第1の入力端子が第1のプロセッサユニット
10の上記出力端子にコネクタ接続部を介して接続され
たアンド回路AND 4を備えている。そして、上記オ
ア回路OR,はアンド回路AND、の出力を第1の入力
とするとともにコネクタ接続部を介してアンド回路AN
D sの出力を第2の入力とし、またアンド回路AND
、の出力端子は表示回路16に、アンド回路AND4の
出力端子は第2のプロセッサユニット200Å力端子に
それぞれ接続される。
FIG. 2 is a block diagram showing an embodiment in which the present invention is applied to a system having an electronic odometer as the main device. In the figure, main device #100 and its constituent first processor unit 10, ROM 11, and RAM
12, EEPROMl3, sensor 14゜interface circuit 151 display circuit 16, and external device 2
00 and the second processor unit 2 constituting it
0. Keyboard 21. Printer 22, monitor display circuit 2
3 is basically the same as that in FIG. Data DI
, address signal A1° and control signal C1. Further, the changeover switch SW is also turned on by the act of connecting the external device 200 to a predetermined connection part of the main device 100. In contrast, in this embodiment, the main device 100
On the side, there is an AND circuit whose first input terminal is connected to the sensor 14 and whose second input terminal is connected to the ground terminal via the connector connection part by turning on the switch 8W. By turning on the switch BV&'+, the first input terminal is connected to the ground terminal and the first input terminal is connected to the first input terminal.
The first processor unit includes an AND circuit AND connected to the output terminal of the first processor unit, and an OR circuit OR, the output terminal of which is connected to the input terminal of the first processor unit. At the same time, on the external device 200 side, the first input terminal is connected to the output terminal of the second processor unit 20, and the second input terminal is connected to the ground terminal via the inverter IN by turning on the switch SW1. AND circuit AN connected to
D, and also the second input terminal are connected to the ground terminal via the inverter INI by turning on the switch SW1, and the first input terminal connects the connector connection portion to the output terminal of the first processor unit 10. It has an AND circuit AND4 connected through the circuit. The OR circuit OR, has the output of the AND circuit AND as its first input, and also connects the AND circuit AN via the connector connection part.
The output of D s is used as the second input, and the AND circuit AND
, are connected to the display circuit 16, and an output terminal of the AND circuit AND4 is connected to the output terminal of the second processor unit 200A.

したがって、上記構成において、主装置100に外部装
置200が接続されず、スイッチSWtが開放状態にあ
るときは、アンド回路AND1およびAND 1の第2
の入力はいずれも1″となる一方、アンド回路AND、
およびAND4の第2の入力は0”となシ、上製@10
0は、独立したシステムとしてセンサ14からのパルス
入力を計数し、積算値を表示回路16の表示器に表示す
る。を子オドメータとして通常の動作を行なう。
Therefore, in the above configuration, when the external device 200 is not connected to the main device 100 and the switch SWt is in the open state, the second
The inputs of both are 1'', while the AND circuit AND,
and the second input of AND4 is 0”, made @10
0 counts the pulse input from the sensor 14 as an independent system and displays the integrated value on the display of the display circuit 16. performs normal operation as a child odometer.

これに対し、図示のように外部装置200が接続されて
スイッチ歴!が投入されfC場合には、アンド回路AN
D1およびAND、の第2の入力が′Onとなるために
センサ14から第1のプロセッサユニット10への入力
および第1のプロセッサユニット10から表示回路16
への出力ともにカットされ、代すに第1のプロセッサユ
ニット10および第2のプロセッサユニット200Å出
力端子がコネクタ接続部を介して相互に接続され、第1
のプロセッサユニット10を介して第2のプロセッサユ
ニットが、EEPROMl 3に対するデータの書込み
および読出しを行なうことが可能となる。
On the other hand, as shown in the figure, the external device 200 is connected and the switch history! When fC is input, the AND circuit AN
Since the second input of D1 and AND is 'On, the input from the sensor 14 to the first processor unit 10 and from the first processor unit 10 to the display circuit 16 are
Instead, the output terminals of the first processor unit 10 and the second processor unit 200A are connected to each other via a connector connection part, and the output terminals of the first
The second processor unit can write and read data to and from the EEPROM 13 via the processor unit 10 of the second processor unit 10.

以上はゲート回路によって切換え回路を構成した例でお
るが、トライステートバスドライバを用いた例を第3図
に示す。図においてスイッチSW1は第2図と同様の切
換えスイッチ、24はインターフェース回路である。こ
こで、17がトライステートバスドライバでアシ、スイ
ッチSWlの投入に応じてセンサ14からの入力端子お
よび表示回路16への出力端子等を開放゛する。前述し
たようにゲート回路を用いた方法では各入出力端子がそ
れぞれ入力マタは出力用として固定されてしまうが、本
実施例によればトライステートバスドライバの動作特性
が双方向的であるところから、入出力の総数が同一であ
れば各端子は場合に応じて入力端子として用いようと出
力端子として用いようと自由でおるため、特にデータの
入力頻度と出力頻度とがアンバランスなシステムにおい
ては効率的に使用できる利点がある。
The above is an example in which the switching circuit is configured with a gate circuit, but FIG. 3 shows an example in which a tri-state bus driver is used. In the figure, switch SW1 is the same changeover switch as in FIG. 2, and 24 is an interface circuit. Here, 17 is a tri-state bus driver which opens the input terminal from the sensor 14, the output terminal to the display circuit 16, etc. in response to the turning on of the switch SW1. As mentioned above, in the method using gate circuits, each input/output terminal is fixed as an input terminal for output, but according to this embodiment, since the operating characteristics of the tristate bus driver are bidirectional, , if the total number of inputs and outputs is the same, each terminal can be used as an input terminal or an output terminal depending on the case, so this is especially true in systems where the data input frequency and output frequency are unbalanced. It has the advantage of being efficient to use.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、外部装置の主装
置への接続によって、主装置側のプロセッサユニットの
同一人出力端子に接続される入出力信号線を、主装置を
構成する各種入出力装置から外部装置側のプロセッサユ
ニットへ切換え接続する回路を設けたととにより、同一
人出力信号線を本来の主装置内部での使用と、外部装置
との接続とに兼用でき、外部装置接続用に専用の入出力
信号線を用いる方法に比較して入出力信号線数を減少さ
せ不ことが可能とガる。
As explained above, according to the present invention, by connecting an external device to the main device, the input/output signal lines connected to the same person output terminal of the processor unit on the main device side can be By providing a circuit that switches and connects the output device to the processor unit on the external device side, the same person's output signal line can be used both inside the main device and for connecting to the external device. Compared to the method of using dedicated input/output signal lines, it is possible to reduce the number of input/output signal lines.

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

第1図はシステム外部からのEEFROMへのデータ書
込みおよび読出し装置の一般的な構成例を示す図、第2
図は本発明の一実施例を示す回路図、第3図は本発明の
他の実施例を示す回路図である。 100・・・e主装置、200・・・・外部装置、10
・・・・第1のプロセッサユニット、13・・拳・EE
PROM、14・−・・センサ(入力装置)、16−・
・・表示回路(出力装[)、1T・・・・切換え回路を
構成するトライステートバスドライバ、20拳・拳・第
2のプロセッサユニット、SW□・・・・外部装置の接
続で閉成する切換えスイッチ、AND 1〜AND 4
 ・・・嗜切換え回路を構成するアンド回路、IVI・
−・・インバータ、OR1@・φ・オア回路。 特許出願人 株式会社小糸製作所 代理人 山川゛数枚(ほか1名)
Figure 1 is a diagram showing a general configuration example of a device for writing and reading data from outside the system to and from EEFROM.
The figure is a circuit diagram showing one embodiment of the invention, and FIG. 3 is a circuit diagram showing another embodiment of the invention. 100... e main device, 200... external device, 10
...First processor unit, 13...Fist EE
PROM, 14--Sensor (input device), 16--
... Display circuit (output device [), 1T... Tri-state bus driver that constitutes the switching circuit, 20 fists, fists, second processor unit, SW□... Closed by connecting external devices Changeover switch, AND 1 to AND 4
・・・AND circuit that constitutes the switching circuit, IVI・
-...Inverter, OR1@・φ・OR circuit. Patent applicant Koito Seisakusho Co., Ltd. Agent Yamakawa Suzuha (and 1 other person)

Claims (1)

【特許請求の範囲】[Claims] EEFROMならびにとのEEPROMへのデータの書
込みおよび読出しを制御する第1のプロセッサユニット
ならびに入出力装置を備えた主装置と、この主装置に随
時接続されて上記第1のプロセッサユニットを介して[
FROMへのデータの書込みおよび読出しを行なう第2
のプロセッサユニットを備えた外部装置とからなるシス
テムにおいて、外部装置の主装置への接続によって、第
1のプロセッサユニットの同一人出力端子に接続される
入出力信号線を、上記入出力装置から第2のプロセッサ
ユニットへ切換え接続する切換え回路を設けたことを特
徴とするEEPROMへのデータ書込みおよび読出し装
置。
[
The second one writes and reads data to FROM.
In a system consisting of an external device equipped with a processor unit of 1. A data writing and reading device for an EEPROM, characterized in that a switching circuit is provided for switching connection to two processor units.
JP58167557A 1983-09-13 1983-09-13 Data writing/reading device in/from eeprom Pending JPS6059598A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58167557A JPS6059598A (en) 1983-09-13 1983-09-13 Data writing/reading device in/from eeprom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58167557A JPS6059598A (en) 1983-09-13 1983-09-13 Data writing/reading device in/from eeprom

Publications (1)

Publication Number Publication Date
JPS6059598A true JPS6059598A (en) 1985-04-05

Family

ID=15851928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58167557A Pending JPS6059598A (en) 1983-09-13 1983-09-13 Data writing/reading device in/from eeprom

Country Status (1)

Country Link
JP (1) JPS6059598A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62244931A (en) * 1986-04-15 1987-10-26 Komatsu Ltd Controller for operation responding characteristics of construction machine
JPH02130799A (en) * 1988-11-09 1990-05-18 Hitachi Elevator Eng & Service Co Ltd Data writing device for eeprom

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5188483A (en) * 1975-02-03 1976-08-03
JPS55323Y2 (en) * 1974-10-04 1980-01-08

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55323Y2 (en) * 1974-10-04 1980-01-08
JPS5188483A (en) * 1975-02-03 1976-08-03

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62244931A (en) * 1986-04-15 1987-10-26 Komatsu Ltd Controller for operation responding characteristics of construction machine
JPH0759820B2 (en) * 1986-04-15 1995-06-28 株式会社小松製作所 Operation response characteristic control device for construction machinery
JPH02130799A (en) * 1988-11-09 1990-05-18 Hitachi Elevator Eng & Service Co Ltd Data writing device for eeprom

Similar Documents

Publication Publication Date Title
JPS6059598A (en) Data writing/reading device in/from eeprom
KR100534758B1 (en) Driver's information system for a vehicle
JP3450070B2 (en) IC card
JPH045217B2 (en)
JP3128917B2 (en) Integrated circuit device
KR920001331A (en) Processor
JPH05250204A (en) Lsi asic microcomputer
JP2836038B2 (en) Railway vehicle control device
JPH0435941Y2 (en)
JPS61250764A (en) Microprocessor device
RU2134442C1 (en) Device for logic program control of electric drives, electronic switches, and alarms
JPH0120779B2 (en)
JPH037964B2 (en)
JPS5875203A (en) Sequence controller of double structure
JPS6047664B2 (en) information processing equipment
JPH023834A (en) Micro computer system
JPS58117530U (en) Analog/digital conversion function diagnostic circuit
KR900016882A (en) Programmable Logic Controller System
RU2095846C1 (en) Software-control device for logical control of electric drives and guarding alarm
JPH09120471A (en) Automatic vending machine
JPS62264394A (en) Condition memory device
JPS6113343A (en) Console device
JPS61122744A (en) Computer device
JPS58154986U (en) portable display device
JPH0277752U (en)