JPH04252345A - Single chip microcomputer with built-in memory having plural input/output ports - Google Patents

Single chip microcomputer with built-in memory having plural input/output ports

Info

Publication number
JPH04252345A
JPH04252345A JP872891A JP872891A JPH04252345A JP H04252345 A JPH04252345 A JP H04252345A JP 872891 A JP872891 A JP 872891A JP 872891 A JP872891 A JP 872891A JP H04252345 A JPH04252345 A JP H04252345A
Authority
JP
Japan
Prior art keywords
chip microcomputer
dpram
built
data
memory
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.)
Withdrawn
Application number
JP872891A
Other languages
Japanese (ja)
Inventor
Hiroyuki Matsumoto
弘之 松本
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP872891A priority Critical patent/JPH04252345A/en
Publication of JPH04252345A publication Critical patent/JPH04252345A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To apply an interruption to an internal CPU with no change of software required by providing an interruption request generating means. CONSTITUTION:An interruption request generating circuit 8 is provided between a dual port memory DPRAM 3 and an internal CPU 4. That is, a single chip microcomputer 2 containing a DPRAM 3 reads the data out of a port 5a of the DPRAM 3 through an internal data bus 6. Then an existing single chip microcomputer 1 performs the write and read of date through a port 5b of the DPRAM 3 via an internal. data bus 7. Under such conditions, the circuit 8 decides a fact that the data are written into the DPRAM 3 and gives an interruption request to the CPU 4.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は複数の入出力ポートを
有するメモリと中央処理手段とを内蔵したシングルチッ
プマイクロコンピュータに、外部CPUからメモリにデ
ータが書込まれた場合に内部CPUに対して割込み要求
を発生する割込み要求発生回路を内蔵したような複数の
入出力ポートを有するメモリ内蔵のシングルチップマイ
クロコンピュータに関する。
[Industrial Application Field] This invention provides a single-chip microcomputer that has a built-in memory having multiple input/output ports and a central processing means, when data is written to the memory from an external CPU. The present invention relates to a single-chip microcomputer with a built-in memory and a plurality of input/output ports, such as a built-in interrupt request generation circuit that generates an interrupt request.

【0002】0002

【従来の技術】図4は既存のシングルチップマイクロコ
ンピュータにデュアルポートメモリ(以下、DPRAM
と称する)を内蔵したシングルチップマイクロコンピュ
ータを接続した従来例を示す概略図である。図4におい
て、既存のシングルチップマイクロコンピュータ1に対
して、外部データバス7を介してDPRAM内蔵シング
ルチップマイクロコンピュータ2が接続される。DPR
AM内蔵シングルチップマイクロコンピュータ2はDP
RAM3と内蔵CPU4とを含み、DPRAM3の1つ
のポート5aとCPU4とは内部データバス6によって
接続される。DPRAM3の他のポート5bはデータバ
ス7を介してシングルチップマイクロコンピュータ1に
接続される。DPRAM内蔵シングルチップマイクロコ
ンピュータ2の内蔵CPU4は内部データバス6とポー
ト5aを介してDPRAM3にデータの書込みを行ない
、データの読取りを行なう。
[Prior Art] Figure 4 shows a dual port memory (hereinafter referred to as DPRAM) installed in an existing single-chip microcomputer.
1 is a schematic diagram showing a conventional example in which a single-chip microcomputer with a built-in microcomputer is connected. In FIG. 4, a single-chip microcomputer 2 with a built-in DPRAM is connected to an existing single-chip microcomputer 1 via an external data bus 7. DPR
AM built-in single chip microcomputer 2 is DP
It includes a RAM 3 and a built-in CPU 4, and one port 5a of the DPRAM 3 and the CPU 4 are connected by an internal data bus 6. The other port 5b of the DPRAM 3 is connected to the single-chip microcomputer 1 via the data bus 7. Built-in CPU 4 of single-chip microcomputer 2 with built-in DPRAM writes data to and reads data from DPRAM 3 via internal data bus 6 and port 5a.

【0003】一方、既存のシングルチップマイクロコン
ピュータ1は外部データバス7からDPRAM3の他の
ポート5bを介してDPRAM3にデータの書込みおよ
び読取りを行なう。このように、既存のシングルチップ
マイクロコンピュータ1にDPRAM内蔵シングルチッ
プマイクロコンピュータ2を接続し、DPRAM3を共
有することにより、マルチCPUシステムを構成できる
On the other hand, the existing single-chip microcomputer 1 writes and reads data from the external data bus 7 to the DPRAM 3 via the other port 5b of the DPRAM 3. In this way, a multi-CPU system can be constructed by connecting the single-chip microcomputer 2 with a built-in DPRAM to the existing single-chip microcomputer 1 and sharing the DPRAM 3.

【0004】0004

【発明が解決しようとする課題】上述のごとく構成され
た従来のマルチCPUシステムにおいて、DPRAM内
蔵シングルチップマイクロコンピュータ2の内部CPU
4は、DPRAM3のデータが更新されたかを監視する
必要がある。ところが、シングルチップマイクロコンピ
ュータ1からデータバス7を介してDPRAM3のデー
タが書替えられた場合、内部CPU4に割込みが与えら
れないため、内部CPU4はDPRAM3のデータが更
新されたか否かを判断することができない。
Problem to be Solved by the Invention In the conventional multi-CPU system configured as described above, the internal CPU of the single-chip microcomputer 2 with built-in DPRAM
4, it is necessary to monitor whether the data in the DPRAM 3 has been updated. However, when the data in the DPRAM 3 is rewritten from the single-chip microcomputer 1 via the data bus 7, an interrupt is not given to the internal CPU 4, so the internal CPU 4 cannot determine whether the data in the DPRAM 3 has been updated. Can not.

【0005】シングルチップマイクロコンピュータ1か
ら内部CPU4に対して割込みがかかるようにするため
にはシングルチップマイクロコンピュータ1の1つの空
きポートとDPRAM内蔵シングルチップマイクロコン
ピュータ2の外部割込み端子とを接続する必要がある。 そして、シングルチップマイクロコンピュータ1がDP
RAM3にデータを書込むとき、このポートに出力を出
すように、シングルチップマイクロコンピュータ1のソ
フトウエアを変更する必要がある。
In order for the single-chip microcomputer 1 to issue an interrupt to the internal CPU 4, it is necessary to connect one free port of the single-chip microcomputer 1 to the external interrupt terminal of the single-chip microcomputer 2 with built-in DPRAM. There is. And the single chip microcomputer 1 is DP
When writing data to the RAM 3, it is necessary to change the software of the single-chip microcomputer 1 so that the output is output to this port.

【0006】それゆえに、この発明の主たる目的は、既
存のシングルチップマイクロコンピュータのソフトウエ
アの変更を必要とせず、内部CPUに対して割込みをか
けることのできるような複数の入出力ポートを有するメ
モリ内蔵のシングルチップマイクロコンピュータを提供
することである。
Therefore, the main object of the present invention is to provide a memory having multiple input/output ports that can interrupt the internal CPU without requiring any changes to the software of an existing single-chip microcomputer. Its purpose is to provide a built-in single-chip microcomputer.

【0007】[0007]

【課題を解決するための手段】この発明は複数の入出力
ポートを有するメモリと内部中央処理手段とを内蔵した
シングルチップマイクロコンピュータであって、メモリ
の1つの入出力ポートに接続される外部中央処理手段に
よって、メモリにデータが書込まれたことに応じて、内
部中央処理手段に対して割込み要求を発生する割込み要
求発生手段を備えて構成される。
[Means for Solving the Problems] The present invention is a single-chip microcomputer that includes a memory having a plurality of input/output ports and an internal central processing means, the external central processing means being connected to one input/output port of the memory. The apparatus includes an interrupt request generating means for generating an interrupt request to the internal central processing means in response to data being written into the memory by the processing means.

【0008】[0008]

【作用】この発明に係る複数の入出力ポートを有するメ
モリ内蔵のシングルチップマイクロコンピュータは、外
部中央処理手段によってメモリにデータが書込まれたこ
とに応じて、内部中央処理手段に対して割込み要求を発
生する割込み要求発生手段を設けたことによって、既存
のシングルチップマイクロコンピュータのソフトウエア
の変更を必要とせず、内部中央処理手段に対して割込み
要求を掛けることができる。
[Operation] The single-chip microcomputer with built-in memory and having multiple input/output ports according to the present invention requests an interrupt to the internal central processing means in response to data being written to the memory by the external central processing means. By providing the interrupt request generation means for generating the interrupt request, it is possible to issue an interrupt request to the internal central processing means without the need to change the software of the existing single-chip microcomputer.

【0009】[0009]

【発明の実施例】図1はこの発明の一実施例を示す概略
ブロック図である。この図1に示した実施例は、以下の
点を除いて前述の図4と同様にして構成される。すなわ
ち、DPRAM3と内部CPU4との間に割込み要求発
生回路8が設けられる。この割込み要求発生回路8は既
存のシングルチップマイクロコンピュータ1からDPR
AM3にデータが書込まれた場合に、内部CPU4に対
して割込み要求を発生する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a schematic block diagram showing an embodiment of the present invention. The embodiment shown in FIG. 1 is constructed in the same manner as in FIG. 4 described above except for the following points. That is, an interrupt request generation circuit 8 is provided between the DPRAM 3 and the internal CPU 4. This interrupt request generation circuit 8 is a DPR from an existing single-chip microcomputer 1.
When data is written to AM3, an interrupt request is generated to internal CPU4.

【0010】次に、動作について説明する。DPRAM
内蔵シングルチップマイクロコンピュータ2はDPRA
M3のポート5aから内部データバス6を介してデータ
の読取りのみを行なう。次に、既存のシングルチップマ
イクロコンピュータ1はDPRAM3のポート5bから
外部データバス7を介してデータの書込みと読取りを行
なう。このとき、割込み要求発生回路8はDPRAM3
にデータが書込まれたことを判別し、内部CPU4に対
して割込み要求を発生する。
Next, the operation will be explained. DPRAM
Built-in single-chip microcomputer 2 is DPRA
Data is only read from port 5a of M3 via internal data bus 6. Next, the existing single-chip microcomputer 1 writes and reads data from the port 5b of the DPRAM 3 via the external data bus 7. At this time, the interrupt request generation circuit 8
It is determined that data has been written to the internal CPU 4, and an interrupt request is generated to the internal CPU 4.

【0011】なお、DPRAM内蔵シングルチップマイ
クロコンピュータ2はDPRAM3からデータの読取り
のみを行なうが、書込みも行なおうとすると、既存のシ
ングルチップマイクロコンピュータ1側から見れば、デ
ータが異常に置き代っていることになり、暴走などの危
険がある。このために、シングルチップマイクロコンピ
ュータ1にソフトウエアおよびハードウエアの変更が必
要となり、この発明の趣旨である既存のシングルチップ
マイクロコンピュータ1にDPRAM内蔵シングルチッ
プマイクロコンピュータ2を接続してマルチCPUシス
テムを構成することができなくなるためである。
Note that the single-chip microcomputer 2 with a built-in DPRAM only reads data from the DPRAM 3, but when attempting to write data as well, from the perspective of the existing single-chip microcomputer 1, the data is abnormally replaced. There is a danger that the vehicle may run out of control. For this reason, it is necessary to change the software and hardware of the single-chip microcomputer 1, and the gist of the present invention is to connect the single-chip microcomputer 2 with a built-in DPRAM to the existing single-chip microcomputer 1 to create a multi-CPU system. This is because it becomes impossible to configure.

【0012】さらに、以上の理由から、DPRAM内蔵
シングルチップマイクロコンピュータ2がDPRAM3
にデータの書込みを行なうことはないため、ポート5a
からデータが書込まれた場合の割込み要求発生回路は不
要である。しかし新たにマルチCPUシステムを構築す
る場合に、ポート5aの割込みが必要となる場合がある
が、これは1つの空きポートを相手側の外部割込み端子
に接続することにより、簡単に対応できる。
Furthermore, for the above reasons, the single-chip microcomputer 2 with built-in DPRAM is
Since data will not be written to port 5a,
An interrupt request generation circuit is not required when data is written from . However, when constructing a new multi-CPU system, it may be necessary to interrupt the port 5a, but this can be easily handled by connecting one vacant port to the external interrupt terminal of the other party.

【0013】図2はこの発明の他の実施例を示すブロッ
ク図である。この図2に示した実施例は、図1に示した
実施例のDPRAM3に変えてマルチポートRAM9を
DPRAM内蔵シングルチップマイクロコンピュータ2
に内蔵し、マルチポートRAM9のポート5aに内部デ
ータバス6を接続し、ポート5bから外部データバス7
aを介して外部のシングルチップマイクロコンピュータ
1aに接続し、ポート5cから外部データバス7bを介
して外部シングルチップマイクロコンピュータ1bに接
続し、ポート5dから外部データバス7cを介して外部
のシングルチップマイクロコンピュータ1cに接続した
ものである。そして、割込み要求発生回路8は各シング
ルチップマイクロコンピュータ1a,1b,1cからデ
ータがマルチポートRAM9に書込まれた場合に割込み
要求信号を発生する。したがって複数の既存のシングル
チップマイクロコンピュータ1a〜1cをマルチポート
RAM9に接続する場合であっても、このような割込み
要求発生回路8を設けることにより、各シングルチップ
マイクロコンピュータ1a〜1cにおけるソフトウエア
の変更は不要となる。
FIG. 2 is a block diagram showing another embodiment of the invention. The embodiment shown in FIG. 2 replaces the DPRAM 3 of the embodiment shown in FIG.
The internal data bus 6 is connected to the port 5a of the multi-port RAM 9, and the external data bus 7 is connected from the port 5b.
a to an external single-chip microcomputer 1a, a port 5c to an external single-chip microcomputer 1b via an external data bus 7b, and a port 5d to an external single-chip microcomputer 1b via an external data bus 7c. It is connected to computer 1c. The interrupt request generation circuit 8 generates an interrupt request signal when data is written into the multi-port RAM 9 from each single-chip microcomputer 1a, 1b, 1c. Therefore, even when a plurality of existing single-chip microcomputers 1a to 1c are connected to the multiport RAM 9, by providing such an interrupt request generation circuit 8, the software in each single-chip microcomputer 1a to 1c can be easily updated. No changes are required.

【0014】図3はこの発明のさらに他の実施例を示す
概略ブロック図である。この図3に示した実施例は、図
1に示したDPRAM内蔵シングルチップマイクロコン
ピュータを2台設け、各DPRAM内蔵シングルチップ
マイクロコンピュータ2a,2bを外部データバス7で
接続したものである。一方のDPRAM内蔵シングルチ
ップマイクロコンピュータ2aの割込み要求発生回路8
aは他方のDPRAM内蔵シングルチップマイクロコン
ピュータ2bからデータがDPRAM3aに書込まれた
場合に割込み要求信号を発生する。他方のDPRAM内
蔵シングルチップマイクロコンピュータ2bの割込み要
求の発生回路8bも同様にして、DPRAM内蔵シング
ルチップマイクロコンピュータ2aからデータがDPR
AM3bに書込まれた場合に割込み要求信号を発生する
FIG. 3 is a schematic block diagram showing still another embodiment of the present invention. In the embodiment shown in FIG. 3, two DPRAM-incorporated single-chip microcomputers shown in FIG. Interrupt request generation circuit 8 of one single-chip microcomputer 2a with built-in DPRAM
A generates an interrupt request signal when data is written into the DPRAM 3a from the other DPRAM-equipped single-chip microcomputer 2b. Similarly, the interrupt request generation circuit 8b of the other single-chip microcomputer 2b with built-in DPRAM receives data from the single-chip microcomputer 2a with built-in DPRAM.
Generates an interrupt request signal when written to AM3b.

【0015】上述のごとく、DPRAM内蔵シングルチ
ップマイクロコンピュータ2a,2b同士を接続する場
合であっても、特別なソフトウエアの作成は不要となる
As described above, even when the single-chip microcomputers 2a and 2b with built-in DPRAM are connected to each other, it is not necessary to create any special software.

【0016】なお、図1に示した実施例では、既存のシ
ングルチップマイクロコンピュータ1をDPRAM内蔵
シングルチップマイクロコンピュータ2に接続したもの
を示したが、マイクロプロセッサをDPRAM内蔵シン
グルチップマイクロコンピュータ2に接続するようにし
てもよい。
In the embodiment shown in FIG. 1, an existing single-chip microcomputer 1 is connected to a single-chip microcomputer 2 with a built-in DPRAM. You may also do so.

【0017】[0017]

【発明の効果】以上のように、この発明によれば、外部
中央処理手段からメモリにデータが書込まれたことに応
じて内部中央処理手段に対して割込み要求を発生する割
込み要求発生手段を内蔵するようにしたので、既存のシ
ングルチップマイクロコンピュータのソフトウエアの変
更を必要とせず、マルチCPUシステムを構築できる。
As described above, according to the present invention, the interrupt request generating means generates an interrupt request to the internal central processing means in response to data being written to the memory from the external central processing means. Since it is built-in, a multi-CPU system can be constructed without the need to change the software of an existing single-chip microcomputer.

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

【図1】この発明の一実施例を示す概略ブロック図であ
る。
FIG. 1 is a schematic block diagram showing one embodiment of the present invention.

【図2】この発明の他の実施例を示す概略ブロック図で
ある。
FIG. 2 is a schematic block diagram showing another embodiment of the invention.

【図3】この発明のさらに他の実施例を示す概略ブロッ
ク図である。
FIG. 3 is a schematic block diagram showing still another embodiment of the invention.

【図4】従来のマルチCPUシステムを示す概略ブロッ
ク図である。
FIG. 4 is a schematic block diagram showing a conventional multi-CPU system.

【符号の説明】[Explanation of symbols]

1,1a〜1c  シングルチップマイクロコンピュー
タ2,2a,2b  DPRAM内蔵シングルチップマ
イクロコンピュータ 3,3a,3b  DPRAM 4,4a,4b  CPU 5a〜5d  ポート 6,6a,6b  内部データバス 7,7a〜7c  外部データバス 8,8a,8b  割込み要求発生回路9  マルチポ
ートRAM
1, 1a to 1c Single chip microcomputer 2, 2a, 2b Single chip microcomputer with built-in DPRAM 3, 3a, 3b DPRAM 4, 4a, 4b CPU 5a to 5d Ports 6, 6a, 6b Internal data bus 7, 7a to 7c External Data buses 8, 8a, 8b Interrupt request generation circuit 9 Multiport RAM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  複数の入出力ポートを有するメモリと
内部中央処理手段とを内蔵したシングルチップマイクロ
コンピュータにおいて、前記メモリの1つの入出力ポー
トに接続される外部処理手段によって前記メモリにデー
タが書込まれたことに応じて、前記内部中央処理手段に
対して割込み要求を発生する割込み要求発生手段を備え
た、複数の入出力ポートを有するメモリ内蔵のシングル
チップマイクロコンピュータ。
1. A single-chip microcomputer incorporating a memory having a plurality of input/output ports and an internal central processing means, wherein data is written to the memory by an external processing means connected to one input/output port of the memory. A single-chip microcomputer having a built-in memory and having a plurality of input/output ports, the single-chip microcomputer having a plurality of input/output ports and comprising interrupt request generating means for generating an interrupt request to the internal central processing means in response to a request for an interrupt request to the internal central processing means.
JP872891A 1991-01-28 1991-01-28 Single chip microcomputer with built-in memory having plural input/output ports Withdrawn JPH04252345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP872891A JPH04252345A (en) 1991-01-28 1991-01-28 Single chip microcomputer with built-in memory having plural input/output ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP872891A JPH04252345A (en) 1991-01-28 1991-01-28 Single chip microcomputer with built-in memory having plural input/output ports

Publications (1)

Publication Number Publication Date
JPH04252345A true JPH04252345A (en) 1992-09-08

Family

ID=11701014

Family Applications (1)

Application Number Title Priority Date Filing Date
JP872891A Withdrawn JPH04252345A (en) 1991-01-28 1991-01-28 Single chip microcomputer with built-in memory having plural input/output ports

Country Status (1)

Country Link
JP (1) JPH04252345A (en)

Similar Documents

Publication Publication Date Title
US5682518A (en) System for updating inactive system memory using dual port memory
JPH056223B2 (en)
JPH04252345A (en) Single chip microcomputer with built-in memory having plural input/output ports
JPH0114616B2 (en)
JP2751878B2 (en) Multiprocessor device
JPH0254362A (en) Parallel process computer
JP3228575B2 (en) Data communication method
JP2531080B2 (en) Bus adapter switching method
JP2837522B2 (en) I / O instruction control method
JP3012402B2 (en) Information processing system
JPH08137738A (en) Cpu arbitration circuit
JPS62241041A (en) Information processor
JPH01214945A (en) Microcomputer
JPS63158660A (en) Multiprocessor bus control system
JPS62186344A (en) Address mapped register
JPH01276241A (en) Multiple interrupting device
JPH11345221A (en) Multiprocessor system
JPS63128464A (en) Processor circuit
JPS59128653A (en) Controlling device of status history memory
JPH11282590A (en) Plural system bus control microcomputer
JPH0462653A (en) Electronic computer and extension device module
JPH0336650A (en) Memory protecting system
JPS63206855A (en) Data transmission equipment
JPH02277142A (en) Duplex computer system
JPS63149748A (en) Storage device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514