JPH02297234A - Internal/external rom switching device for single chip microcomputer - Google Patents

Internal/external rom switching device for single chip microcomputer

Info

Publication number
JPH02297234A
JPH02297234A JP1116130A JP11613089A JPH02297234A JP H02297234 A JPH02297234 A JP H02297234A JP 1116130 A JP1116130 A JP 1116130A JP 11613089 A JP11613089 A JP 11613089A JP H02297234 A JPH02297234 A JP H02297234A
Authority
JP
Japan
Prior art keywords
rom
chip microcomputer
external rom
external
internal
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
JP1116130A
Other languages
Japanese (ja)
Inventor
Keiichi Maeda
前田 恵一
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP1116130A priority Critical patent/JPH02297234A/en
Publication of JPH02297234A publication Critical patent/JPH02297234A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To reduce the soft changing cost by providing a connection part on a bus line set between a circuit to be controlled and a single chip microcomputer, causing a short-circuit with a jumper line in a normal control state, and attaching an external ROM in response to the soft change. CONSTITUTION:When a jumper part 2-1 is mounted to the connection parts 5A and 5B, a terminal 8 is earthed and an L signal is generated at the terminal 8. The L signal actuates the internal ROM 6 of a single chip microcomputer 1. Then an external ROM unit 2-2 is mounted on both parts 5A and 5B in place of the part 2-1. Thus the terminal 8 is opened and an H signal is generated at the terminal 8. The signal H stops the operation of the ROM 6. Simultaneously, the EPROM 7 of the unit 2-2 is actuated and a control signal is sent to a circuit 3 to be controlled via a PIO 12.

Description

【発明の詳細な説明】 〔概 要〕 本発明はシングルチップマイコンと被制御回路とを接続
するバスラインの中間に二つの接続部を設け、酸二つの
接続部の間に酸二つの接続部を直接接続させるジャンパ
部と、前記シングルチップマイコンの内部ROMから切
替えられる外部ROMを含む外部ROMユニットとを選
択的に接続するシングルチップマイコンの内部ROMと
外部ROMとの切替え装置であって、ソフト変更のコス
ト低下を図れる。
[Detailed Description of the Invention] [Summary] The present invention provides two connection parts in the middle of a bus line that connects a single-chip microcomputer and a controlled circuit, and connects two connection parts between two connection parts. A switching device between an internal ROM and an external ROM of a single-chip microcomputer that selectively connects a jumper unit that directly connects the ROM and an external ROM unit that includes an external ROM that is switched from the internal ROM of the single-chip microcomputer, You can reduce the cost of changes.

〔産業上の利用分野〕[Industrial application field]

本発明はシングルチップマイコンに関する。 The present invention relates to a single-chip microcomputer.

シングルチップマイコンは多くの製品の制御用マイコン
として使用され、プログラムがチップ内のROMにマス
ク化という形で書き込まれる。本発明はシングルチップ
マイコンの内部のROMと外部にあるROMとの切替え
方法に言及する。
Single-chip microcomputers are used as control microcomputers for many products, and programs are written into a ROM within the chip in the form of a mask. The present invention refers to a method of switching between an internal ROM and an external ROM of a single-chip microcomputer.

〔従来の技術〕[Conventional technology]

第6図は従来のROM内蔵方式によるシングルチップマ
イコンを用いた制御を説明する図である。
FIG. 6 is a diagram illustrating control using a single-chip microcomputer based on the conventional ROM built-in system.

以下に本図の構成を説明する。なお全図を通じて同様の
構成要素については同一参照番号または記号をもって表
わす。本図においてシングルチップマイコン1はCPU
 10の他生なくともマスクされた1ンO門6 、 R
AM 11 、 PIo 12を装0iii シている
。被制御回路3はシングルチップマイコン1によって制
御される−・船釣な回路である。次に動作を説明する。
The configuration of this figure will be explained below. Note that similar components are represented by the same reference numbers or symbols throughout the drawings. In this figure, single-chip microcomputer 1 is a CPU
10 other life masked 1 in O gate 6, R
It is equipped with AM 11 and PIo 12. The controlled circuit 3 is a typical circuit controlled by the single-chip microcomputer 1. Next, the operation will be explained.

シングルチップマイコンl内のCl1tl toによっ
てROM 6から取出された命令に基づき、算術論理演
算が行われる。得られた結果はRAM 11に一時保持
され、Plo 12を介して被制御回路3へ伝送される
Arithmetic and logical operations are performed based on instructions retrieved from the ROM 6 by Cl1tl to in the single-chip microcomputer l. The obtained results are temporarily held in the RAM 11 and transmitted to the controlled circuit 3 via the Plo 12.

シングルチップマイコン1にROMを内蔵する方式はマ
スクROMが使用されるためプリント基板をしめるその
占有面積を小さくでき、数量が多い場合に低コストにで
きる利点を有する。反面、ソフト変更すなわちROM 
6の命令内容を変更するような場合にはシングルチップ
マイコン1を取り替える必要があり、ソフト変更に時間
がかかりコスト高になるという欠点を有する。この欠点
を改善する技術として次に説明するものがある。
The system in which the ROM is built into the single-chip microcomputer 1 has the advantage that since a mask ROM is used, the area occupied by the printed circuit board can be reduced, and costs can be reduced when the number of units is large. On the other hand, software changes, i.e. ROM
In the case of changing the instruction contents of 6, it is necessary to replace the single-chip microcomputer 1, which has the disadvantage that changing the software takes time and increases costs. There is a technique described below as a technique for improving this drawback.

第7図は従来のシングルチップマイコンで外部ROMを
用いた制御を説明する図である。本図において第6図と
相違するものに外付けEPROM 7およびl”+01
2からなる外部ROM2−2がある。この場合、シング
ルチップマイコン1の内部ROM 6はそれ自身の使用
も可能であり選択により外部1?0M2−2の外付けE
PROM 7に切替えられる。さらに外付け[EPI?
OM方式は通常EPROMのICを取替え可能な構造に
しうるので、ソフト変更を容易にでき、被制?ff11
回路すなわち装置の台数や使用目的に応じて、シングル
デツプマイコンlの能力を拡張できる利点がある。すな
わち第6図におけるソフト変更に対する問題点を解決す
る。反面、外付EPROM方式はプリント基板にしめる
占有面積が大きく、第6図に示す場合よりもコストが高
いという欠点がある。
FIG. 7 is a diagram illustrating control using an external ROM with a conventional single-chip microcomputer. In this figure, the external EPROM 7 and l"+01 are different from those in Figure 6.
There is an external ROM 2-2 consisting of 2. In this case, the internal ROM 6 of the single-chip microcontroller 1 can be used by itself, and the external ROM 6 of the external 1?
Switched to PROM 7. Furthermore, external [EPI?
The OM method usually has a structure in which the IC of the EPROM can be replaced, so it is easy to change the software, and it is easy to change the software. ff11
There is an advantage that the capability of a single deep microcomputer 1 can be expanded depending on the number of circuits, that is, devices and the purpose of use. That is, the problem with the software change shown in FIG. 6 is solved. On the other hand, the external EPROM method has the disadvantage that it occupies a large area on a printed circuit board and is more expensive than the case shown in FIG.

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

しかしながら、!!!造当初ソフトの変更がある程度発
生することが明白であるけれども、ソフトを変更する台
数もそんなに見込めない場合には、第7図に示す外付E
PROM方式を採用するとソフト変更する装置に対して
は特に問題はないが、ソフト変更を必要としないものに
対してもEl”ROM 、 PIQを装備することとな
りコスト高になるだけでなく、不必要にプリント、1板
占有面積を大きくすることとなるという問題点がある。
however,! ! ! If it is obvious that the software will change to some extent at the time of manufacture, but it is not expected that the number of units that will have to change the software will be that large, use the external E as shown in Figure 7.
If the PROM method is adopted, there will be no particular problem for equipment that requires software changes, but even equipment that does not require software changes will be equipped with El'ROM and PIQ, which not only increases costs but also makes unnecessary changes. There is a problem in that printing requires a large area on one board.

第6図に示すようなROM内蔵方式ではソフト変更しな
い装置に対しては特に問題はないが、ソフト変更する場
合には、ソフト変更する!lt置のシングルチップの取
替えをせざるを得ないという問題がある。
With the built-in ROM system as shown in Figure 6, there is no particular problem for devices that do not change the software, but if you want to change the software, change the software! There is a problem in that the single chip in the lt position must be replaced.

そこで、本発明は上記問題点に鑑み、ソフト変更を容易
にできるシングルチップマイコンの内部ROMと外部R
OMとの切替え装置を提供することを目的とする。
Therefore, in view of the above problems, the present invention has developed an internal ROM and an external R
The purpose is to provide a switching device with OM.

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

第1A図は本発明の原理構成である内部ROMの使用を
示す図であり、第1B図は本発明の原理構成である外部
r?OM切替えを示す図である。本発明では前記問題点
を解決するために内部ROMおよび外部ROM切替え装
置2はシングルチップマイコン1および被制御回路3の
間に設けられる。
FIG. 1A is a diagram showing the use of an internal ROM, which is the principle configuration of the present invention, and FIG. 1B is a diagram showing the use of an external ROM, which is the principle configuration of the present invention. It is a figure showing OM switching. In the present invention, in order to solve the above problem, the internal ROM and external ROM switching device 2 is provided between the single-chip microcomputer 1 and the controlled circuit 3.

該内部ROMおよび外部ROM切替え装置2は二つの接
続部5Aおよび5Bとジャンパ部2−1と外部ROMユ
ニット2−2とからなる。二つの接続部5Aおよび5B
はシングルチップマイコン1と被制御回路3とを接続す
るバスライン4の中間に配設される。ジャンパ部2−1
は前記二つの接続部5Aおよび5Bを直接接続する。外
部ROMユニット2−2は前記ジャンパ部2−1と選択
的に、前記二つの接続部5Aおよび5Bに接続すること
によって、前記シングルチップマイコン1の内部ROM
 6から切替えられる。
The internal ROM and external ROM switching device 2 consists of two connecting sections 5A and 5B, a jumper section 2-1, and an external ROM unit 2-2. Two connections 5A and 5B
is arranged between the bus line 4 that connects the single-chip microcomputer 1 and the controlled circuit 3. Jumper section 2-1
directly connects the two connecting portions 5A and 5B. The external ROM unit 2-2 is connected to the jumper section 2-1 and selectively to the two connection sections 5A and 5B, so that the internal ROM of the single-chip microcomputer 1 can be connected to the jumper section 2-1.
It can be switched from 6.

〔作 用〕[For production]

第1A図においてシングルチップマイコンlが、その内
部ROM 6を用いて、被制御回路3を制御するときに
は二つの接続部5Aおよび5Bはジャンパ部2−1によ
って直接接続すなわちショートとされる。
In FIG. 1A, when the single-chip microcomputer 1 uses its internal ROM 6 to control the controlled circuit 3, the two connection parts 5A and 5B are directly connected, that is, short-circuited, by the jumper part 2-1.

第1B図において、シングルチップマイコン1が外部R
OM 7を用いて、被制御回路3を制御するときには第
1A図のジャンパ部2−1を外部ROMユニyト2 2
に置き換え接続することによってソフト変更の目的を達
成できる。第6図の従来技術と比較すると、二つの接続
部5Aおよび5Bならびにジャンパ部2−1が余計に設
けられているがこれらはコスト上安価にできる。従来で
はソフト変更時にはシングルチップマイコンを取替えな
ければならなかったが、そのような取替えは不要となり
第1B図に示すようにソフト変更が容易にできる。特に
第7図に示すような外付けEPROMを設けた場合との
比較では、第1A図の構成でのコストは著しく安価にな
る。
In Figure 1B, the single-chip microcomputer 1
When controlling the controlled circuit 3 using the OM 7, the jumper section 2-1 in FIG. 1A is connected to the external ROM unit 22.
The purpose of soft modification can be achieved by replacing and connecting. Compared to the prior art shown in FIG. 6, two connecting portions 5A and 5B and a jumper portion 2-1 are additionally provided, but these can be made at low cost. Conventionally, when changing the software, it was necessary to replace the single-chip microcomputer, but such replacement is no longer necessary, and the software can be changed easily as shown in FIG. 1B. Especially when compared with the case where an external EPROM as shown in FIG. 7 is provided, the cost of the configuration shown in FIG. 1A is significantly lower.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して詳細に説
明する。第2A図は本発明の実施例である内部ROM使
用状態を示す図であり、第2B図は本発明の実施例であ
る外部ROM切替え状態を示す図である。これらの図に
おいて、第6図および第7図と異なる構成要素は内部R
OMおよび外部ROM切替部2であり、以下にその構成
を説明する。接続部5Aおよび5Bはソケットからなり
シングルチップマイコンlと被制御回路3との間にある
バスライン4に設けられる。接続部5Aおよび5Bと接
続するバスライン4は例えばデータライン8ビツト、ア
ドレスライン16ビツトの計24ビットからなる。第3
図は第2A図および第2B図の接続部を示す図である。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 2A is a diagram showing an internal ROM usage state according to an embodiment of the present invention, and FIG. 2B is a diagram showing an external ROM switching state according to an embodiment of the present invention. In these figures, the components different from those in FIGS. 6 and 7 are internal R.
This is an OM and external ROM switching unit 2, and its configuration will be explained below. The connecting portions 5A and 5B are comprised of sockets and are provided on the bus line 4 between the single-chip microcomputer 1 and the controlled circuit 3. The bus line 4 connected to the connection parts 5A and 5B consists of a total of 24 bits, for example, an 8-bit data line and 16-bit address line. Third
The figure is a diagram showing the connections in FIGS. 2A and 2B.

接続部5Aはシングルチップマイコン1側のバスライン
4と、接続部5Bは被制御回路側のバスライン4と接続
する。第3図に示すような接続部5Aおよび5Bにジャ
ンパ部2−1または外部ROMユニット22のいずれか
一方がセットされる。ジャンパ部2−1は接続部5Aと
5Bを直接接続すなわちショートさせるバスライン4の
ジャンパ線9を有する。
The connecting portion 5A is connected to the bus line 4 on the single-chip microcomputer 1 side, and the connecting portion 5B is connected to the bus line 4 on the controlled circuit side. Either the jumper section 2-1 or the external ROM unit 22 is set to the connecting sections 5A and 5B as shown in FIG. The jumper section 2-1 has a jumper wire 9 of the bus line 4 that directly connects or shorts the connecting sections 5A and 5B.

第4図は第2A図のジャンパ部を説明する。第4図の(
a)に示すようにジャンパ部2−1ではジャンパ線9が
ソケッ1−5A’および5B’に接続され、該ソケット
5A′および5B’ は接続部5Aおよび5Aの各ソケ
ット部に接続される。第4図の(b)は別の例を示すも
ので、ジャンパ線9が基板に設けられた場合の構成を示
す。
FIG. 4 illustrates the jumper section of FIG. 2A. In Figure 4 (
As shown in a), jumper wires 9 are connected to sockets 1-5A' and 5B' in jumper section 2-1, and sockets 5A' and 5B' are connected to respective socket sections of connection sections 5A and 5A. FIG. 4(b) shows another example, in which the jumper wire 9 is provided on the board.

第2B図に示す外部ROMユニット2−2は外部ROM
7およびパラレル入出力インクフェイスPIO12を装
備する。第5図は第2B図の外部ROM部を説明する図
である。第5図の(a)では外部ROMユニット2−2
はケーブル13によってソケッ)5A’および5B’を
介して各接続部5Aおよび5Bと接続する。第5図の(
b)ではケーブル13を基板に配設した例を示す。
The external ROM unit 2-2 shown in FIG. 2B is an external ROM.
7 and a parallel input/output ink face PIO12. FIG. 5 is a diagram illustrating the external ROM section of FIG. 2B. In FIG. 5(a), the external ROM unit 2-2
are connected by cables 13 to the respective connections 5A and 5B via sockets 5A' and 5B'. In Figure 5 (
b) shows an example in which the cable 13 is arranged on a board.

次に動作を説明する。接続部5Aおよび5Bにジャンパ
部2−1が装着されると、端子8がアースされ端子8に
L信号を発生させる。このし信号によりシ ングルチップマイコンlの内部ROM 6が動作する。
Next, the operation will be explained. When the jumper section 2-1 is attached to the connecting sections 5A and 5B, the terminal 8 is grounded and an L signal is generated at the terminal 8. This signal causes the internal ROM 6 of the single-chip microcomputer 1 to operate.

続いて、ジャンパ部2−1に代えて外部ROMユニット
2−2を接続部5Aおよび5Bに装着すると、端子8は
オーブンになり、端子8にH信号を発生させ、この[■
信号によりシングルチップマイコン1の内部ROMの動
作を休止させる。これとともに、外部ROMユニット2
−2の外部ROM 7を動作させ、PIO12を介し、
被制御回路3へ制御信号を送出する。さらにこの状態か
ら元のジャンパ部2−1へ切替えることも可能である。
Subsequently, when the external ROM unit 2-2 is attached to the connection parts 5A and 5B in place of the jumper part 2-1, the terminal 8 becomes an oven, generates an H signal at the terminal 8, and this [■
The signal causes the operation of the internal ROM of the single-chip microcomputer 1 to be halted. Along with this, external ROM unit 2
-2's external ROM 7 is operated, and via PIO12,
A control signal is sent to the controlled circuit 3. Furthermore, it is also possible to switch from this state to the original jumper section 2-1.

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

以上説明したように本発明によれば、被制御回路とシン
グルチップマイコンとの間のバスラインに安価なソケッ
トである接続部を設け、通常の制御では該ソケットを安
価なジャンパ線でショートするようにし、ソフト変更の
必要に応じて該ソケットに外付きEPROMからなる外
部ROMを着脱自在に取り付は可能としたのでソフト変
更のコスト低下を図ることができる。
As explained above, according to the present invention, a connection section, which is an inexpensive socket, is provided on the bus line between the controlled circuit and the single-chip microcomputer, and in normal control, the socket is short-circuited with an inexpensive jumper wire. In addition, an external ROM consisting of an external EPROM can be detachably attached to the socket according to the need for software changes, thereby reducing the cost of software changes.

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

第1A図は本発明の原理構成である内部ROMの使用を
示す図、 第1B図は本発明の原理構成である外部ROM切替えを
示す図、 第2A図は本発明の一実施例である内部ROMの使用状
態を示す図、 第2B図は本発明の一実施例である外部ROM部切替え
状態を示す図、 第3図は第2A図および第2B図の接続部を示す図、 第4図は第2A図のジャンパ部を説明する図、第5図は
第2B図の外部ROM部を説明する図、第6図は従来の
r<OM内蔵方式によるシングルチップマイコンを用い
た制御を説明する図、第7図は従来の外付けHPROM
方式によるシングルチップマイコンを用いた制御を説明
する図である。 図において、 1・・・シングルチップマイコン、 2・・・内部ROMおよび外部ROM切替え装置、2−
1・・・ジャンパ部、 2−2・・・外部ROMユニント、 3・・・被制御部、     5A、5B・・・接続部
FIG. 1A is a diagram showing the use of internal ROM, which is the principle configuration of the present invention. FIG. 1B is a diagram showing external ROM switching, which is the principle configuration of the present invention. FIG. 2A is a diagram showing the internal ROM, which is an embodiment of the present invention. FIG. 2B is a diagram showing the switching state of the external ROM section according to an embodiment of the present invention; FIG. 3 is a diagram showing the connections in FIGS. 2A and 2B; FIG. 4 is a diagram explaining the jumper section in FIG. 2A, FIG. 5 is a diagram explaining the external ROM section in FIG. 2B, and FIG. 6 is a diagram explaining control using a single-chip microcomputer using the conventional r<OM built-in method. Figure 7 shows a conventional external HPROM
FIG. 2 is a diagram illustrating control using a single-chip microcomputer according to the method. In the figure, 1... Single-chip microcomputer, 2... Internal ROM and external ROM switching device, 2-
DESCRIPTION OF SYMBOLS 1... Jumper part, 2-2... External ROM unit, 3... Controlled part, 5A, 5B... Connection part.

Claims (1)

【特許請求の範囲】 1、被制御回路(3)に対するシングルチップマイコン
(1)の内部ROM(6)と外部ROM(7)との切替
え装置であって、 シングルチップマイコン(1)と被制御回路(3)とを
接続するバスライン(4)の中間に二つの接続部(5A
、5B)を設け、 該二つの接続部(5A、5B)の間に、該二つの接続部
(5A、5B)を直接接続する着脱可能なジャンパ部(
2−1)と、前記外部ROM(7)を含む外部ROMユ
ニット(2−2)と選択的に接続可能としてなることを
特徴とするシングルチップマイコンの内部ROMと外部
ROMとの切替え装置。
[Claims] 1. A switching device between an internal ROM (6) and an external ROM (7) of a single-chip microcomputer (1) for a controlled circuit (3), comprising: There are two connections (5A
, 5B), and a removable jumper part (5A, 5B) that directly connects the two connection parts (5A, 5B) is provided between the two connection parts (5A, 5B).
2-1) and an external ROM unit (2-2) including the external ROM (7).
JP1116130A 1989-05-11 1989-05-11 Internal/external rom switching device for single chip microcomputer Pending JPH02297234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1116130A JPH02297234A (en) 1989-05-11 1989-05-11 Internal/external rom switching device for single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1116130A JPH02297234A (en) 1989-05-11 1989-05-11 Internal/external rom switching device for single chip microcomputer

Publications (1)

Publication Number Publication Date
JPH02297234A true JPH02297234A (en) 1990-12-07

Family

ID=14679462

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1116130A Pending JPH02297234A (en) 1989-05-11 1989-05-11 Internal/external rom switching device for single chip microcomputer

Country Status (1)

Country Link
JP (1) JPH02297234A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04128347U (en) * 1991-05-20 1992-11-24 横河電機株式会社 interface circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04128347U (en) * 1991-05-20 1992-11-24 横河電機株式会社 interface circuit

Similar Documents

Publication Publication Date Title
JPH02297234A (en) Internal/external rom switching device for single chip microcomputer
JPS5850768A (en) Semiconductor ic device
JPH074664Y2 (en) Portable computer
JPH07253872A (en) Input output circuit for processor
JPH06324722A (en) Programmable controller
JPS61234415A (en) Board mounting type computer unit
JPH02312299A (en) Duplicated switching unit
JPH0324609A (en) Buffer ic for input/output
JP2686763B2 (en) Segment type display device
JPH06167362A (en) Master-slave switching type measuring instrument
JPH02214328A (en) Output controller
JPH11289051A (en) Programmable controller and processor
JPS62165261A (en) Microprocessor board
JPH07226439A (en) Semiconductor integrated circuit
JPH01225388A (en) Circuit for printed wiring board
JPH09204354A (en) Memory device
JPS6022356A (en) Large scale integrated circuit
JPH05127788A (en) Multi-input circuit for switch signal
KR19990066596A (en) Parallel port interface circuit
JPS59229652A (en) Adaptive system evaluator
JPS63136236A (en) Switching device debugging
JP2004157690A (en) Memory control system
JPH0433122A (en) Keyboard display controller
JPH02113359A (en) Bus circuit for cpu system
JPH03105811A (en) Changeover switch device