[go: up one dir, main page]

JP2000348011A - Microcomputer with electrically rewritable nonvolatile memory - Google Patents

Microcomputer with electrically rewritable nonvolatile memory

Info

Publication number
JP2000348011A
JP2000348011A JP11160133A JP16013399A JP2000348011A JP 2000348011 A JP2000348011 A JP 2000348011A JP 11160133 A JP11160133 A JP 11160133A JP 16013399 A JP16013399 A JP 16013399A JP 2000348011 A JP2000348011 A JP 2000348011A
Authority
JP
Japan
Prior art keywords
bus
code
data
memory
control signal
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
JP11160133A
Other languages
Japanese (ja)
Inventor
Hiroshi Ueki
浩 植木
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 JP11160133A priority Critical patent/JP2000348011A/en
Publication of JP2000348011A publication Critical patent/JP2000348011A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

(57)【要約】 【課題】 メモリ書換モード時におけるCPU1の停止
を回避することである。 【解決手段】 ROM18を外部から書き換えるメモリ
書き換えモード時に、当該メモリ書き換えに占有される
データ専用アドレスバス11とデータバス12をCPU
1から開放するとともに、前記メモリ書き換えモード時
に占有されないコード専用アドレスバス9とコードバス
10をRAM16に対するコードアクセス用途とデータ
アクセス用途に時分割で使い分けることにより、CPU
1の前記RAM16へのアクセスを可能にし、前記メモ
リ書き換えモード時におけるCPU1の動作停止を回避
するバス制御手段を備える。
(57) [Summary] [PROBLEMS] To prevent the CPU 1 from stopping in a memory rewrite mode. In a memory rewrite mode in which a ROM is externally rewritten, a data-only address bus and a data bus occupied by the memory rewrite are connected to a CPU.
1 by releasing the dedicated address bus 9 and the code bus 10 which are not occupied in the memory rewriting mode for code access and data access to the RAM 16 in a time-division manner.
1 is provided with a bus control means for enabling access to the RAM 16 and avoiding stopping the operation of the CPU 1 in the memory rewrite mode.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、電気的に書き換
え可能な不揮発性メモリを内蔵したハーバードアーキテ
クチャー型マイクロコンピュータに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Harvard architecture type microcomputer having a built-in electrically rewritable nonvolatile memory.

【0002】[0002]

【従来の技術】図6は、従来の電気的に書き換え可能な
不揮発性メモリを内蔵化したハーバードアーキテクチャ
ー型マイクロコンピュータ(以下、ハーバード型マイコ
ンという)の概略的な部分構成を示す回路ブロック図で
ある。図において、1はCPU、2はコードインタフェ
ースユニット(CIU)、3はデータインタフェースユ
ニット(DIU)、5はコードインタフェースユニット
2のコード専用アドレス端子、6はコードインタフェー
スユニット2のコード端子、7はデータインタフェース
ユニット3のデータ専用アドレス端子、8はデータイン
タフェースユニット3のデータ端子、9はコード専用ア
ドレスバス(C_AD)、11はデータ専用アドレスバ
ス(D_AD)、10はコードバス(CB)、12はデ
ータバス(DB)、16はRAM、18はROMであ
る。
2. Description of the Related Art FIG. 6 is a circuit block diagram showing a schematic partial configuration of a conventional Harvard architecture type microcomputer (hereinafter referred to as Harvard type microcomputer) having a built-in electrically rewritable nonvolatile memory. is there. In the drawing, 1 is a CPU, 2 is a code interface unit (CIU), 3 is a data interface unit (DIU), 5 is a code dedicated address terminal of the code interface unit 2, 6 is a code terminal of the code interface unit 2, and 7 is a data terminal. 8 is a data terminal of the data interface unit 3, 9 is a code-only address bus (C_AD), 11 is a data-only address bus (D_AD), 10 is a code bus (CB), and 12 is data. A bus (DB), 16 is a RAM, and 18 is a ROM.

【0003】15はRAMインタフェース回路であり、
コード専用アドレスバス9あるいはデータ専用アドレス
バス11をRAM16内のアドレスバス20(RAM_
AD)に接続し、また、コードバス10あるいはデータ
バス12をRAM16内のバス21(RAM_DB)に
接続する。
Reference numeral 15 denotes a RAM interface circuit.
The code-only address bus 9 or the data-only address bus 11 is connected to the address bus 20 (RAM_
AD), and the code bus 10 or the data bus 12 is connected to a bus 21 (RAM_DB) in the RAM 16.

【0004】17はROMインタフェース回路であり、
コード専用アドレスバス9あるいはデータ専用アドレス
バス11をROM18内のアドレスバス22(ROM_
AD)に接続し、また、コードバス10あるいはデータ
バス12をROM18内のバス23(ROM_DB)に
接続する。
Reference numeral 17 denotes a ROM interface circuit.
The code-only address bus 9 or data-only address bus 11 is connected to the address bus 22 (ROM_ROM
AD), and the code bus 10 or the data bus 12 is connected to a bus 23 (ROM_DB) in the ROM 18.

【0005】19はメモリ書き換えモード時において、
外部端子とデータ専用アドレスバス11およびデータバ
ス12を接続するメモリ書換インタフェース回路であ
る。24はモード設定回路であり、端子設定によりモー
ドが選択されると、マイコンモード時に“0”となり、
メモリ書換モード時に“1”となる制御信号Hを出力す
る。
[0005] In the memory rewrite mode 19,
This is a memory rewriting interface circuit for connecting external terminals to the data bus 11 and the data bus 12. Reference numeral 24 denotes a mode setting circuit, which is set to "0" in the microcomputer mode when a mode is selected by terminal setting,
A control signal H which becomes "1" in the memory rewrite mode is output.

【0006】先ず、図6を参照して、CPU1がROM
18やRAM16のコードやデータにアクセスして動作
するモード(マイコンモード)の動作について述べる。
このマイコンモードでは、CPU1はROM18あるい
はRAM16からコードを読み出し、そのコードを解読
して命令を実行していくが、その命令がデータ読出命令
であれば、CPU1はROM18あるいはRAM16か
らデータを読み出す。また、前記命令が書込命令であれ
ば、CPU1のレジスタに格納されたデータをRAM1
6に書き込む。このようにマイコンモードでは、CPU
1はROM18やRAM16に対してコードの読み出し
(コードアクセス)と、データの読み書き(データアク
セス)という2つのアクセスを行う。
[0006] First, referring to FIG.
An operation in a mode (microcomputer mode) of operating by accessing codes and data in the RAM 18 and RAM 16 will be described.
In this microcomputer mode, the CPU 1 reads a code from the ROM 18 or the RAM 16 and decodes the code to execute a command. If the command is a data read command, the CPU 1 reads data from the ROM 18 or the RAM 16. If the instruction is a write instruction, the data stored in the register of CPU 1 is stored in RAM 1.
Write to 6. Thus, in microcomputer mode, CPU
1 performs two accesses to the ROM 18 and the RAM 16, namely, code reading (code access) and data reading / writing (data access).

【0007】特に、図6に示すようにコードアクセス用
のコード専用アドレスバス9とコードバス10、データ
アクセス用のデータ専用アドレスバス11とデータバス
12を独立に持つものは、コードアクセスとデータアク
セスを同時刻に行うことが出来るので処理性能が高くな
る。このようにコードアクセス用のバスとデータアクセ
ス用のバスを分離したアーキテクチャはハーバードアー
キテクチャと呼ばれる。
In particular, as shown in FIG. 6, those having independent code dedicated address bus 9 and code bus 10 for code access and independent data dedicated address bus 11 and data bus 12 for data access are code access and data access. Can be performed at the same time, so that the processing performance is improved. Such an architecture in which a bus for code access and a bus for data access are separated is called a Harvard architecture.

【0008】図6の符号4はコードインタフェースユニ
ット2とデータインタフェースユニット3の調停回路で
あり、同一時刻に同一のメモリにコードアクセスとデー
タアクセスが重ならないようにするゲート制御信号Eを
発生する。
Reference numeral 4 in FIG. 6 denotes an arbitration circuit for the code interface unit 2 and the data interface unit 3, which generates a gate control signal E at the same time so that code access and data access do not overlap in the same memory.

【0009】図6において、ゲート制御信号/Eはゲー
ト制御信号Eの反転信号を表す。ここで、調停が必要と
されるのは同一時刻に同一のメモリにコードアクセスと
データアクセスが重なる場合のみであり、例えば同一時
刻にコードアクセスがROM18に対して行われ、デー
タアクセスがRAM16に対して行われる場合や、その
逆に同一時刻にコードアクセスがRAM16に対して行
われ、データアクセスがROM18に対して行われる場
合は動作上問題はない。
In FIG. 6, a gate control signal / E represents an inverted signal of the gate control signal E. Here, arbitration is required only when code access and data access to the same memory overlap at the same time. For example, code access is performed to the ROM 18 at the same time, and data access is performed to the RAM 16 at the same time. When the code access is performed to the RAM 16 at the same time and the data access is performed to the ROM 18 at the same time, there is no operational problem.

【0010】図7は、図6に示すハーバード型マイクロ
コンピュータのCPU1によるメモリアクセス時の動作
を示すタイミングチャートである。ゲート制御信号Eが
“1”のときは、RAM16内のアドレスバス20はコ
ード専用アドレスバス9に、RAM16内のバス21は
コードバス10に、ROM18内のアドレスバス22は
データ専用アドレスバス11に、ROM18内のバス2
3はデータバス12にそれぞれ接続される。
FIG. 7 is a timing chart showing an operation at the time of memory access by the CPU 1 of the Harvard microcomputer shown in FIG. When the gate control signal E is "1", the address bus 20 in the RAM 16 becomes the code-only address bus 9, the bus 21 in the RAM 16 becomes the code bus 10, and the address bus 22 in the ROM 18 becomes the data-only address bus 11. , Bus 2 in ROM 18
3 are connected to the data bus 12, respectively.

【0011】また、ゲート制御信号Eが“0”のとき
は、RAM16内のアドレスバス20はデータ専用アド
レスバス11に、RAM16内のバス21はデータバス
12に、ROM18内のアドレスバス22はコード専用
アドレスバス9に、ROM18内のバス23はコードバ
ス10にそれぞれ接続される。
When the gate control signal E is "0", the address bus 20 in the RAM 16 is the data dedicated address bus 11, the bus 21 in the RAM 16 is the data bus 12, and the address bus 22 in the ROM 18 is the code bus. The dedicated address bus 9 and the bus 23 in the ROM 18 are connected to the code bus 10, respectively.

【0012】すなわち、ゲート制御信号Eが“1”のと
きは、RAM16に対してはコードアクセスが行われ、
ROM18に対してはデータアクセスが行われる。ま
た、ゲート制御信号Eが“0”のときはRAM16に対
してはデータアクセスが、ROM18に対してコードア
クセスが行われる。(なお、マイコンモードでは制御信
号Hは“0”なのでデータ専用アドレスバス11とデー
タバス12はメモリ書換インタフェース回路19に接続
されないので、メモリ書換インタフェース回路19は動
作せず、データ専用アドレスバス11やデータバス12
に影響は与えない。)
That is, when the gate control signal E is "1", code access to the RAM 16 is performed,
Data access to the ROM 18 is performed. When the gate control signal E is “0”, data access to the RAM 16 and code access to the ROM 18 are performed. (Since the control signal H is "0" in the microcomputer mode, the data-only address bus 11 and the data bus 12 are not connected to the memory-rewriting interface circuit 19, so that the memory-rewriting interface circuit 19 does not operate and the data-only address bus 11 and Data bus 12
Has no effect. )

【0013】次に、メモリ書換モードの動作について述
べる。図8は、図6に示すハーバード型マイクロコンピ
ュータのメモリ書換モード時の動作を示すタイミングチ
ャートである。ここでメモリ書換モードとは、ROM1
8の内容を電気的に書き換えるモードのことで、CPU
1が停止してリセット状態になり、マイコンチップがあ
たかも単体のメモリとして振る舞うモードである。
Next, the operation in the memory rewrite mode will be described. FIG. 8 is a timing chart showing an operation in the memory rewrite mode of the Harvard microcomputer shown in FIG. Here, the memory rewrite mode is the ROM1
8 is a mode for electrically rewriting the contents of
1 is a reset mode in which the microcomputer chip 1 is stopped, and the microcomputer chip behaves as a single memory.

【0014】外部端子の設定によってメモリ書換モード
になると、モード設定回路24から出力される制御信号
Hが“1”となる。このときCPU1、コードインタフ
ェースユニット2、データインタフェースユニット3は
停止し、調停回路4から出力されるゲート制御信号Eは
“1”となる。このとき、図8に示すようにRAM16
内のアドレスバス20はコード専用アドレスバス9に、
RAM16内のバス21はコードバス10に、ROM1
8内のアドレスバス22はデータ専用アドレスバス11
に、ROM18内のバス23はデータバス12にそれぞ
れ接続されたままになる。
When the memory rewrite mode is set by the setting of the external terminal, the control signal H output from the mode setting circuit 24 becomes "1". At this time, the CPU 1, the code interface unit 2, and the data interface unit 3 stop, and the gate control signal E output from the arbitration circuit 4 becomes "1". At this time, as shown in FIG.
The address bus 20 in the inside is connected to the code-only address bus 9,
The bus 21 in the RAM 16 is connected to the code bus 10 and the ROM 1
The address bus 22 in 8 is a data-only address bus 11
Meanwhile, the buses 23 in the ROM 18 remain connected to the data bus 12, respectively.

【0015】この結果、メモリ書換インタフェース回路
19は外部端子から入力されるアドレスおよびデータ情
報をデータアクセス用のデータ専用アドレスバス11と
データバス12を介してROM18に与えることによ
り、ROM18の書き換え動作を遂行することができ
る。
As a result, the memory rewriting interface circuit 19 supplies the address and the data information inputted from the external terminals to the ROM 18 via the data access dedicated address bus 11 and the data bus 12 to perform the rewriting operation of the ROM 18. Can be accomplished.

【0016】[0016]

【発明が解決しようとする課題】従来の電気的に書き換
え可能な不揮発性メモリ内蔵マイクロコンピュータは以
上のように構成されていたので、メモリ書換モードを用
いてROM18のデータを書き換えているときは、デー
タアクセス用のデータ専用アドレスバス11およびデー
タバス12がメモリ書換インタフェース回路19に占有
されてしまい、CPU1はデータアクセスが不可能とな
り、CPU1は停止せざるを得ない。従って、メモリを
書き換えている時間はCPU1が動作しないので、マイ
クロコンピュータを搭載しているシステムが停止してし
まうという制限が生じる課題があった。
Since the conventional microcomputer with a built-in electrically rewritable nonvolatile memory is constructed as described above, when the data in the ROM 18 is rewritten using the memory rewriting mode, The dedicated data address bus 11 and the data bus 12 for data access are occupied by the memory rewrite interface circuit 19, so that the CPU 1 cannot access the data, and the CPU 1 has to stop. Therefore, there is a problem that the system in which the microcomputer is mounted is stopped because the CPU 1 does not operate while the memory is being rewritten.

【0017】この発明は上記のような課題を解決するた
めになされたもので、メモリ書換モードでメモリの書き
換えを実行している最中でもCPUが停止することのな
い電気的に書き換え可能な不揮発性メモリ内蔵マイクロ
コンピュータを得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and is an electrically rewritable nonvolatile memory which does not stop the CPU even while rewriting the memory in the memory rewriting mode. It is intended to obtain a microcomputer with a built-in memory.

【0018】また、メモリ書換モードにおけるメモリの
書き換え実行時間を減らして、マイクロコンピュータを
搭載するシステムが停止する時間を削減できる電気的に
書き換え可能な不揮発性メモリ内蔵マイクロコンピュー
タを得ることを目的とする。
It is another object of the present invention to provide an electrically rewritable nonvolatile memory built-in microcomputer capable of reducing the time required for rewriting the memory in the memory rewriting mode and reducing the time for stopping the system equipped with the microcomputer. .

【0019】[0019]

【課題を解決するための手段】この発明に係る電気的に
書き換え可能な不揮発性メモリ内蔵マイクロコンピュー
タは、不揮発性メモリを外部から書き換えるメモリ書き
換えモード時に、当該メモリ書き換えに占有されるデー
タ専用アドレスバスとデータバスをCPUから開放する
とともに、前記メモリ書き換えモード時に占有されない
コード専用アドレスバスとコードバスを揮発性メモリに
対するコードアクセス用途とデータアクセス用途に時分
割で使い分けることにより、前記CPUの前記揮発性メ
モリへのアクセスを可能にし、前記メモリ書き換えモー
ド時における前記CPUの動作停止を回避するバス制御
手段を備えるようにしたものである。
A microcomputer with an electrically rewritable nonvolatile memory according to the present invention has a data-only address bus occupied by the memory rewrite in a memory rewrite mode in which the nonvolatile memory is rewritten from the outside. And the data bus is released from the CPU, and the code-only address bus and the code bus which are not occupied in the memory rewrite mode are separately used in a time-division manner for code access use and data access use for the volatile memory. A bus control means is provided for enabling access to the memory and avoiding the stop of the operation of the CPU in the memory rewrite mode.

【0020】この発明に係る電気的に書き換え可能な不
揮発性メモリ内蔵マイクロコンピュータは、データ専用
アドレスバスおよびデータバスとデータインタフェース
ユニットとの接続および開放、コード専用アドレスバス
とコードバスについての前記データインタフェースユニ
ットおよびコードインタフェースユニットへの接続およ
び開放を、ゲート制御信号をもとにメモリ書き換えモー
ド時の時分割制御により行うバス切替回路と、前記メモ
リ書き換えモード時において、揮発性メモリを前記コー
ド専用アドレスバスと前記コードバスへゲート制御信号
をもとに接続し、不揮発性メモリを前記データ専用アド
レスバスおよびデータバスへゲート制御信号をもとに接
続するメモリインタフェース回路と、前記メモリ書き換
えモード、CPUによる前記揮発性メモリおよび前記不
揮発性メモリへのアクセスを可能にするマイコンモード
の設定に応じた制御信号を出力するモード設定回路と、
前記データ専用アドレスバスおよびデータバスと外部端
子との接続および開放を前記制御信号をもとに行うゲー
ト回路と、同一時刻に同一のメモリにコードアクセスと
データアクセスが重ならないようにするとともに前記時
分割制御を実現するための前記ゲート制御信号を、前記
データインタフェースユニットおよび前記コードインタ
フェースユニットによる信号入出力の状態と前記モード
設定回路が出力した前記制御信号をもとに出力する調停
回路とを備えるようにしたものである。
A microcomputer with an electrically rewritable nonvolatile memory according to the present invention includes a data-only address bus, connection and disconnection of a data bus and a data interface unit, and a data interface for a code-only address bus and a code bus. A bus switching circuit for performing connection and disconnection to the unit and the code interface unit by time-division control in a memory rewrite mode based on a gate control signal; and, in the memory rewrite mode, connecting the volatile memory to the code-only address bus. A memory interface circuit for connecting a nonvolatile memory to the data-only address bus and the data bus based on a gate control signal; a memory interface circuit for connecting the nonvolatile memory to the data bus based on a gate control signal; A mode setting circuit for outputting a control signal corresponding to the setting of the microcomputer mode which allows the volatile memory and access to the nonvolatile memory with,
A gate circuit for connecting and disconnecting the data-only address bus and the data bus to and from the external terminals based on the control signal; and preventing code access and data access from overlapping in the same memory at the same time, and An arbitration circuit that outputs the gate control signal for realizing the division control based on a signal input / output state of the data interface unit and the code interface unit and the control signal output by the mode setting circuit. It is like that.

【0021】この発明に係る電気的に書き換え可能な不
揮発性メモリ内蔵マイクロコンピュータは、不揮発性メ
モリを外部から書き換えるメモリ書き換えモード時に、
当該メモリ書き換えに占有されるデータ専用アドレスバ
スとデータバスをCPUから開放するとともに、前記メ
モリ書き換えモード時に占有されないコード専用アドレ
スバスまたはコードバスのいずれか一方のバスを前記C
PUおよび揮発性メモリから開放し、該開放した前記一
方のバスを前記データバスの拡張用バスとして使うこと
により、前記メモリ書き換えモード時における前記不揮
発性メモリに対する書き換えを高速化するバス制御手段
を備えるようにしたものである。
A microcomputer with an electrically rewritable non-volatile memory according to the present invention provides a microcomputer in a memory rewriting mode in which the non-volatile memory is rewritten from outside.
The data-only address bus and the data bus occupied by the memory rewrite are released from the CPU, and one of the code-only address bus and the code bus that is not occupied in the memory rewrite mode is connected to the C bus.
A bus control means for releasing from the PU and the volatile memory and using the one of the released buses as an extension bus for the data bus to speed up rewriting of the nonvolatile memory in the memory rewriting mode; It is like that.

【0022】この発明に係る電気的に書き換え可能な不
揮発性メモリ内蔵マイクロコンピュータは、データ専用
アドレスバスおよびデータバスとデータインタフェース
ユニットとの接続および開放、コードバスとコードイン
タフェースユニットおよび外部端子との接続および開放
を制御信号をもとに制御するゲート回路と、メモリ書き
換えモード時において、前記ゲート回路により前記コー
ドインタフェースユニットとの接続が開放された前記コ
ードバスの揮発性メモリとの接続をゲート制御信号およ
び制御信号をもとに開放するとともに、前記コードバス
を不揮発性メモリの拡張バスへ制御信号をもとに接続す
るメモリインタフェース回路と、前記メモリ書き換えモ
ード、CPUによる前記揮発性メモリおよび前記不揮発
性メモリへのアクセスを可能にするマイコンモードの設
定に応じた前記制御信号を出力するモード設定回路と、
同一時刻に同一のメモリにコードアクセスとデータアク
セスが重ならないようにするとともに、前記メモリ書き
換えモード時における前記コードバスの揮発性メモリと
の接続を開放するための前記ゲート制御信号を、前記デ
ータインタフェースユニットおよび前記コードインタフ
ェースユニットによる信号入出力の状態と前記モード設
定回路が出力した前記制御信号をもとに出力する調停回
路とを備えるようにしたものである。
A microcomputer having an electrically rewritable nonvolatile memory according to the present invention comprises a data address bus, a data bus and a data interface unit connected and disconnected, and a code bus connected to a code interface unit and an external terminal. And a gate circuit for controlling the opening and closing based on a control signal, and a gate control signal for connecting the volatile memory of the code bus whose connection with the code interface unit is released by the gate circuit in the memory rewriting mode. And a memory interface circuit for opening the code bus to an extended bus of the nonvolatile memory based on the control signal, the memory rewriting mode, the volatile memory and the nonvolatile memory by a CPU. Access to memory A mode setting circuit for outputting the control signal according to the setting of the microcomputer mode which enables scan,
At the same time, code access and data access to the same memory are prevented from overlapping, and the gate control signal for releasing the connection of the code bus to the volatile memory in the memory rewrite mode is transmitted to the data interface. And an arbitration circuit for outputting the signal based on the control signal output from the mode setting circuit.

【0023】[0023]

【発明の実施の形態】以下、この発明の実施の一形態に
ついて説明する。 実施の形態1.図1は、この実施の形態1の電気的に書
き換え可能な不揮発性メモリ内蔵マイクロコンピュータ
の概略的な部分構成を示す回路ブロック図である。図に
おいて、1はCPU、2はコードインタフェースユニッ
ト(ClU)、3はデータインタフェースユニット(D
lU)、5はコードインタフェースユニット2のコード
専用アドレス端子、6はコードインタフェースユニット
2のコード端子、7はデータインタフェースユニット3
のデータ専用アドレス端子、8はデータインタフェース
ユニット3のデータ端子、9はコード専用アドレスバス
(C_AD)、10はコードバス(CB)、11はデー
タ専用アドレスバス(D_AD)、12はデータバス
(DB)、16はRAM(揮発性メモリ)、18は電気
的に書き換え可能なROM(不揮発性メモリ)である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a circuit block diagram showing a schematic partial configuration of a microcomputer with an electrically rewritable nonvolatile memory according to the first embodiment. In the figure, 1 is a CPU, 2 is a code interface unit (CLU), 3 is a data interface unit (DU).
1U), 5 is a code dedicated address terminal of the code interface unit 2, 6 is a code terminal of the code interface unit 2, and 7 is a data interface unit 3.
8 is a data terminal of the data interface unit 3, 9 is a code-only address bus (C_AD), 10 is a code bus (CB), 11 is a data-only address bus (D_AD), and 12 is a data bus (DB). ) And 16 are a RAM (volatile memory) and 18 is an electrically rewritable ROM (non-volatile memory).

【0024】15はRAMインタフェース回路(メモリ
インタフェース回路,バス制御手段)であり、コード専
用アドレスバス9あるいはデータ専用アドレスバス11
をRAM16内のアドレスバス20(RAM_AD)に
接続し、また、コードバス10あるいはデータバス12
をRAM16内のバス21(RAM_DB)に接続す
る。
Reference numeral 15 denotes a RAM interface circuit (memory interface circuit, bus control means), which is a code-only address bus 9 or a data-only address bus 11.
Is connected to the address bus 20 (RAM_AD) in the RAM 16 and the code bus 10 or the data bus 12
Is connected to the bus 21 (RAM_DB) in the RAM 16.

【0025】17はROMインタフェース回路(メモリ
インタフェース回路,バス制御手段)であり、コード専
用アドレスバス9あるいはデータ専用アドレスバス11
をROM18内のアドレスバス22(ROM_AD)に
接続し、また、コードバス10あるいはデータバス12
をROM18内のバス23(ROM_DB)に接続す
る。
Reference numeral 17 denotes a ROM interface circuit (memory interface circuit, bus control means), which is a code-only address bus 9 or a data-only address bus 11.
Is connected to the address bus 22 (ROM_AD) in the ROM 18 and the code bus 10 or the data bus 12
Is connected to the bus 23 (ROM_DB) in the ROM 18.

【0026】19はメモリ書き換えモード時において、
外部端子とデータ専用アドレスバス11およびデータバ
ス12を接続するメモリ書換インタフェース回路であ
る。24はモード設定回路(バス制御手段)であり、端
子設定によりモードが選択されると、マイコンモード時
に“0”となり、メモリ書換モード時に“1”となる制
御信号Hを出力する。
In the memory rewrite mode 19,
This is a memory rewriting interface circuit for connecting external terminals to the data bus 11 and the data bus 12. Reference numeral 24 denotes a mode setting circuit (bus control means) which outputs a control signal H which becomes "0" in the microcomputer mode and "1" in the memory rewrite mode when the mode is selected by terminal setting.

【0027】25はバス切替回路(バス制御手段)であ
り、コード専用アドレスバス9をコードインタフェース
ユニット2側に接続するかデータインタフェースユニッ
ト3側に接続するかを切り替えることが出来、またコー
ドバス10をコードインタフェースユニット2側に接続
するかデータインタフェースユニット3側に接続するか
を切り替えることが出来る。41は入力される制御信号
Hに応じてゲート制御信号A,B,C,Eを出力する調
停回路(バス制御手段)である。
Reference numeral 25 denotes a bus switching circuit (bus control means), which can switch between connecting the code dedicated address bus 9 to the code interface unit 2 and the data interface unit 3. Can be switched between connecting to the code interface unit 2 side and connecting to the data interface unit 3 side. An arbitration circuit (bus control means) 41 outputs gate control signals A, B, C, and E in response to the input control signal H.

【0028】なお、図1においてシンボル◇で示す回路
要素、シンボル◇で示す符号G1,G2などの回路要素
は制御端子を有したゲート回路であり、前記制御端子へ
供給される制御信号H、ゲート制御信号A,B,C,E
などによりオン・オフが制御されるトランスミッション
ゲートを用いることが可能である。ゲート回路G1,G
2はバス制御手段に対応する。
In FIG. 1, circuit elements indicated by the symbol ◇ and circuit elements such as G1 and G2 indicated by the symbol ゲ ー ト are gate circuits having control terminals. Control signals A, B, C, E
For example, it is possible to use a transmission gate whose on / off is controlled by the above. Gate circuits G1, G
2 corresponds to a bus control means.

【0029】次に、図1を参照して動作について説明す
る。先ず、マイコンモードでの動作について図2を参照
して説明する。図2はマイコンモードにける制御信号
H、ゲート制御信号A,B,C,Eと、RAM16内の
アドレスバス20、RAM16内のバス21、ROM1
8内のアドレスバス22およびROM18内のバス23
上の信号を示すタイミングチャートである。
Next, the operation will be described with reference to FIG. First, the operation in the microcomputer mode will be described with reference to FIG. FIG. 2 shows a control signal H, gate control signals A, B, C, and E in the microcomputer mode, an address bus 20 in the RAM 16, a bus 21 in the RAM 16,
8 and the bus 23 in the ROM 18.
It is a timing chart which shows an upper signal.

【0030】このマイコンモードでは制御信号Hが
“0”となり、調停回路41はゲート制御信号Aを
“0”で出力し、ゲート制御信号Bとゲート制御信号C
を“1”で出力する。このとき、データインタフェース
ユニット3のデータ専用アドレス端子7はデータ専用ア
ドレスバス11に、またデータインタフェースユニット
3のデータ端子8がデータバス12に接続されるので、
マイコンモードでの動作は従来の技術で説明した図7の
タイミングチャートを参照して述べたものと同一とな
る。
In this microcomputer mode, the control signal H becomes "0", the arbitration circuit 41 outputs the gate control signal A as "0", and the gate control signal B and the gate control signal C
Is output as “1”. At this time, since the data dedicated address terminal 7 of the data interface unit 3 is connected to the data dedicated address bus 11 and the data terminal 8 of the data interface unit 3 is connected to the data bus 12,
The operation in the microcomputer mode is the same as that described with reference to the timing chart of FIG.

【0031】次に、メモリ書き換えモードでの動作につ
いて説明する。図3は、このメモリ書き換えモードにお
ける制御信号H、ゲート制御信号A,B,C,Eと、R
AM16内のアドレスバス20、RAM16内のバス2
1、ROM18内のアドレスバス22およびROM18
内のバス23上の信号を示すタイミングチャートであ
る。
Next, the operation in the memory rewrite mode will be described. FIG. 3 shows a control signal H, gate control signals A, B, C, E, and R in this memory rewrite mode.
Address bus 20 in AM 16 and bus 2 in RAM 16
1. Address bus 22 in ROM 18 and ROM 18
6 is a timing chart showing signals on a bus 23 in FIG.

【0032】メモリ書き換えモード時、制御信号Hが
“1”となり、調停回路41はゲート制御信号Bを
“0”で出力し、ゲート制御信号Eを“1”で出力す
る。ゲート制御信号Eが“1”なのでデータ専用アドレ
スバス11とデータバス12は、従来の技術での説明と
同様にメモリ書換インタフェース回路19とROM18
に占有され、ROM18のデータ書き換えが実行され
る。
In the memory rewrite mode, the control signal H becomes "1", and the arbitration circuit 41 outputs the gate control signal B as "0" and the gate control signal E as "1". Since the gate control signal E is "1", the data dedicated address bus 11 and the data bus 12 are connected to the memory rewriting interface circuit 19 and the ROM 18 in the same manner as described in the prior art.
And the data in the ROM 18 is rewritten.

【0033】図3のタイミングチャートにおいて、従来
の技術で説明した図8のタイミングチャートと異なる点
は以下の通りである。ゲート制御信号Cが“1”でゲー
ト制御信号Aが“0”のときは、RAM16内のアドレ
スバス20はコード専用アドレスバス9に、RAM16
内のバス21はコードバス10にそれぞれ接続される。
また、ゲート制御信号Cが“0”でゲート制御信号Aが
“1”のときは、RAM16内のアドレスバス20はコ
ード専用アドレスバス9を介してデータ専用アドレスバ
ス11に、RAM16内のバス21はコードバス10を
介してデータバス12にそれぞれ接続される。
The difference between the timing chart of FIG. 3 and the timing chart of FIG. 8 described in the prior art is as follows. When the gate control signal C is "1" and the gate control signal A is "0", the address bus 20 in the RAM 16 is
Are connected to the code bus 10, respectively.
When the gate control signal C is “0” and the gate control signal A is “1”, the address bus 20 in the RAM 16 is connected to the data dedicated address bus 11 via the code dedicated address bus 9 and to the bus 21 in the RAM 16. Are connected to the data bus 12 via the code bus 10, respectively.

【0034】このことを利用すれば、CPU1はメモリ
書き換えモードでも動作可能となる。すなわち、ゲート
制御信号Cが“1”でゲート制御信号Aが“0”のとき
はRAM16に対してコードアクセスを、ゲート制御信
号Cが“0”でゲート制御信号Aが“1”のときはRA
M16に対してはデータアクセスをCPU1が行うこと
が出来る。
By utilizing this, the CPU 1 can operate even in the memory rewriting mode. That is, when the gate control signal C is "1" and the gate control signal A is "0", code access to the RAM 16 is performed. When the gate control signal C is "0" and the gate control signal A is "1", code access is performed. RA
The CPU 1 can perform data access to M16.

【0035】このように、RAM16に対するコードア
クセス用途とRAM16に対するデータアクセス用途に
コード専用アドレスバス9とコードバス10を時分割で
使い分けることによって、CPU1はROM書き換え実
行中でもRAM16にアクセスして動作することが出来
る。
As described above, by using the dedicated code address bus 9 and the code bus 10 in a time-sharing manner for code access to the RAM 16 and data access to the RAM 16, the CPU 1 can access and operate the RAM 16 even during execution of ROM rewriting. Can be done.

【0036】以上、説明したように、この実施の形態1
によれば、メモリ書き換えモードでCPU1を動作させ
るために、コード専用アドレスバス9とコードバス10
を流用したので、新規のバスを追加してチップ面積を増
大させることなく、CPU1の停止に伴うシステムの動
作停止を回避できる電気的に書き換え可能な不揮発性メ
モリ内蔵マイクロコンピュータが得られる効果がある。
As described above, the first embodiment
According to this, in order to operate the CPU 1 in the memory rewrite mode, the code-only address bus 9 and the code bus 10
Therefore, there is an effect that a microcomputer with an electrically rewritable nonvolatile memory can be obtained which can avoid the stop of the operation of the system due to the stop of the CPU 1 without increasing the chip area by adding a new bus. .

【0037】実施の形態2.図4は、この実施の形態2
の電気的に書き換え可能な不揮発性メモリ内蔵マイクロ
コンピュータの概略的な部分構成を示す回路ブロック図
である。図4において図1と同一または相当の部分につ
いては同一の符号を付し説明を省略する。図6に示す従
来の電気的に書き換え可能な不揮発性メモリ内蔵マイク
ロコンピュータとの相違点は、コードバス10がメモリ
書換インタフェース回路59に制御信号Hを介して接続
されている点と、ROM18のROMインタフェース回
路37内に制御信号Hでスイッチングされる符号61で
示す経路が追加されている点と、さらに、RAM16の
RAMインタフェース回路35内に制御信号Hによる条
件(制御信号Hおよびゲート制御信号Eが共に“0”で
あるときにゲート制御信号Dが“1”となってRAM1
6内のバス21がコードバス10へ接続される)が付加
された点と、コードインタフェースユニット2における
コードバス10の接続端子と前記コードバス10とが制
御信号Hでスイッチングされている点である。
Embodiment 2 FIG. 4 shows the second embodiment.
1 is a circuit block diagram showing a schematic partial configuration of a microcomputer with a built-in electrically rewritable nonvolatile memory. 4, the same or corresponding parts as in FIG. 1 are denoted by the same reference numerals, and description thereof will be omitted. The difference from the conventional microcomputer with built-in electrically rewritable nonvolatile memory shown in FIG. 6 is that the code bus 10 is connected to the memory rewriting interface circuit 59 via the control signal H, and the ROM 18 The point indicated by the reference numeral 61 switched by the control signal H is added to the interface circuit 37, and the condition by the control signal H (the control signal H and the gate control signal E When both are “0”, the gate control signal D becomes “1” and the RAM 1
6 is connected to the code bus 10) and the connection terminal of the code bus 10 in the code interface unit 2 and the code bus 10 are switched by the control signal H. .

【0038】図4において、4は調停回路(バス制御手
段)、35はRAMインタフェース回路(メモリインタ
フェース回路,バス制御手段)、37はROMインタフ
ェース回路(メモリインタフェース回路,バス制御手
段)、59はメモリ書換インタフェース回路である。こ
の実施の形態2では、コードバス10はメモリ書換イン
タフェース回路59とコードインタフェースユニット2
との間に構成されている。
In FIG. 4, 4 is an arbitration circuit (bus control means), 35 is a RAM interface circuit (memory interface circuit, bus control means), 37 is a ROM interface circuit (memory interface circuit, bus control means), and 59 is a memory. It is a rewriting interface circuit. In the second embodiment, the code bus 10 is connected to the memory rewriting interface circuit 59 and the code interface unit 2.
Is configured between.

【0039】なお、図4においてシンボル◇で示す回路
要素、シンボル◇で示す符号G3,G4,G5,G6な
どの回路要素は制御端子を有したゲート回路であり、前
記制御端子へ供給される制御信号H、ゲート制御信号
E,Dなどによりオン・オフが制御されるトランスミッ
ションゲートを用いることが可能である。ゲート回路G
3,G4,G5,G6はバス制御手段に対応する。
In FIG. 4, the circuit elements indicated by the symbol 、 and the circuit elements such as G3, G4, G5 and G6 indicated by the symbol ◇ are gate circuits having control terminals, and control signals supplied to the control terminals. It is possible to use a transmission gate whose on / off is controlled by the signal H, the gate control signals E and D, and the like. Gate circuit G
3, G4, G5 and G6 correspond to bus control means.

【0040】次に、マイコンモードとメモリ書き換えモ
ードでの動作について説明する。マイコンモードでは制
御信号Hが“0”となり、コードバス10とメモリ書換
インタフェース回路59間のゲート、およびROMイン
タフェース回路37内の制御信号Hでスイッチングされ
るROM18内のバス23とコードバス10間のゲート
は遮断されるので、図4に示す回路の動作は前記従来の
図6に示す回路動作と同一となる。すなわち、従来の技
術で説明した図7のタイミングチャートで示される動作
となる。
Next, the operation in the microcomputer mode and the memory rewrite mode will be described. In the microcomputer mode, the control signal H becomes "0", and the gate between the code bus 10 and the memory rewrite interface circuit 59 and the bus 23 in the ROM 18 which is switched by the control signal H in the ROM interface circuit 37 and the code bus 10 Since the gate is cut off, the operation of the circuit shown in FIG. 4 is the same as that of the conventional circuit shown in FIG. That is, the operation is the operation shown in the timing chart of FIG. 7 described in the related art.

【0041】次に、メモリ書き換えモードにおける動作
について説明する。このメモリ書き換えモードでは制御
信号Hが“1”となり、コードバス10とメモリ書換イ
ンタフェース回路59間、およびROMインタフェース
回路37内の制御信号HでスイッチングされるROM1
8内のバス23とコードバス10間が接続される。
Next, the operation in the memory rewrite mode will be described. In this memory rewriting mode, the control signal H becomes "1", and the ROM 1 switched between the code bus 10 and the memory rewriting interface circuit 59 and the ROM 1 switched by the control signal H in the ROM interface circuit 37.
8 and the code bus 10 are connected.

【0042】すなわち、ROM18に対しては、コード
バス10とデータバス12がROM18内部のバス23
に接続されることになる。また、メモリ書換インタフェ
ース回路59に対してもコードバス10とデータバス1
2が接続されることになる。
That is, for the ROM 18, the code bus 10 and the data bus 12 are connected to the bus 23 inside the ROM 18.
Will be connected. The code bus 10 and the data bus 1 are also connected to the memory rewriting interface circuit 59.
2 will be connected.

【0043】このような接続の利点は、従来のメモリ書
き換えモードでは使用していなかったコードバス10を
メモリ書き換え時のデータ伝送経路としてデータバス1
2に追加したことにより、メモリ書き換えのデータバス
幅を2倍にできる点である。もし、データバス12のビ
ット幅が16ビット、コードバス10のビット幅が16
ビットであれば、図4のメモリ書き換えモード時のデー
タ伝送用のバス幅を32ビットに拡張できる。このバス
幅拡張によって、書き換えに要する時間を短縮すること
が出来、例えばメモリのデータをベリファイするのに要
する時間は、理論的に半分になる。
The advantage of such a connection is that the code bus 10 which has not been used in the conventional memory rewrite mode is used as a data transmission path when rewriting the memory.
2 is that the data bus width for memory rewriting can be doubled. If the bit width of the data bus 12 is 16 bits and the bit width of the code bus 10 is 16 bits
With bits, the bus width for data transmission in the memory rewrite mode in FIG. 4 can be extended to 32 bits. By this bus width expansion, the time required for rewriting can be reduced, and, for example, the time required for verifying the data in the memory is theoretically halved.

【0044】図5にメモリ書き換えモードでのタイミン
グチャートを示す。従来の電気的に書き換え可能な不揮
発性メモリ内蔵マイクロコンピュータにおける図8に示
すタイミングチャートとの相違点は、ROM18内のバ
ス23がコードバス10とデータバス12の両方を用い
て、メモリ書換インタフェース回路59に接続されてい
る点である。なお、この実施の形態2のメモリ書き換え
モードにおいてはCPU1は停止したままである。
FIG. 5 shows a timing chart in the memory rewrite mode. The difference from the timing chart shown in FIG. 8 in the conventional microcomputer with built-in electrically rewritable nonvolatile memory is that the bus 23 in the ROM 18 uses both the code bus 10 and the data bus 12 and the memory rewriting interface circuit 59. In the memory rewriting mode of the second embodiment, the CPU 1 remains stopped.

【0045】以上のように、この実施の形態2によれ
ば、メモリ書き換えモードにおける書換速度の高速化を
図るためにコードバス10を流用しバス幅を拡張可能に
したので、新規のバスを追加してチップ面積を増大させ
ることなく、メモリ書き換えモードにおける書換速度の
高速化を図り、CPU停止に伴うシステムの停止時間を
少なく出来る電気的に書き換え可能な不揮発性メモリ内
蔵マイクロコンピュータが得られる効果がある。
As described above, according to the second embodiment, the code bus 10 can be diverted and the bus width can be expanded in order to increase the rewrite speed in the memory rewrite mode, so that a new bus is added. This makes it possible to increase the rewriting speed in the memory rewriting mode without increasing the chip area, and to obtain an electrically rewritable nonvolatile memory built-in microcomputer that can reduce the system stop time due to the CPU stop. is there.

【0046】[0046]

【発明の効果】以上のように、この発明によれば、不揮
発性メモリを外部から書き換えるメモリ書き換えモード
時に、前記不揮発性メモリの書き換えのために占有され
ないコード専用アドレスバスとコードバスを揮発性メモ
リに対するコードアクセス用途とデータアクセス用途に
時分割で使い分けることが出来るように構成したので、
前記CPUの前記揮発性メモリへのアクセスがメモリ書
き換えモード時に可能になり、前記メモリ書き換えモー
ド時において前記CPUは停止することなく動作できる
効果がある。
As described above, according to the present invention, in the memory rewrite mode in which the nonvolatile memory is rewritten from the outside, the code-only address bus and the code bus which are not occupied for rewriting the nonvolatile memory are connected to the volatile memory. It is configured so that it can be used in a time-sharing manner for code access and data access for
The volatile memory can be accessed by the CPU in the memory rewrite mode, and the CPU can operate without stopping in the memory rewrite mode.

【0047】この発明に係る電気的に書き換え可能な不
揮発性メモリ内蔵マイクロコンピュータは、データ専用
アドレスバスおよびデータバスとデータインタフェース
ユニットとの接続および開放、コード専用アドレスバス
とコードバスについての前記データインタフェースユニ
ットおよびコードインタフェースユニットへの接続およ
び開放を、メモリ書き換えモード時にバス切替回路がゲ
ート制御信号をもとに時分割制御し、前記メモリ書き換
えモード時においてCPUが揮発性メモリをアクセス出
来るように構成したので、前記CPUの前記揮発性メモ
リへのアクセスがメモリ書き換えモード時に可能にな
り、前記メモリ書き換えモード時において前記CPUは
停止することなく動作できる効果がある。
The microcomputer with built-in electrically rewritable nonvolatile memory according to the present invention includes a data-only address bus, connection and disconnection of a data bus and a data interface unit, and a data interface for a code-only address bus and a code bus. The bus switching circuit controls the connection and disconnection to the unit and the code interface unit in the memory rewrite mode in a time-division manner based on the gate control signal, so that the CPU can access the volatile memory in the memory rewrite mode. Therefore, the CPU can access the volatile memory in the memory rewrite mode, and the CPU can operate without stopping in the memory rewrite mode.

【0048】この発明に係る電気的に書き換え可能な不
揮発性メモリ内蔵マイクロコンピュータは、不揮発性メ
モリを外部から書き換えるメモリ書き換えモード時に、
当該メモリ書き換えに占有されるデータ専用アドレスバ
スとデータバスをCPUから開放するとともに、前記メ
モリ書き換えモード時に占有されないコード専用アドレ
スバスまたはコードバスのいずれか一方のバスを前記C
PUおよび揮発性メモリから開放し、該開放した前記一
方のバスを前記データバスの拡張用バスとして使うよう
に構成したので、前記メモリ書き換えモード時における
前記不揮発性メモリに対する書き換え処理を高速化で
き、マイコン搭載システムが停止する時間を削減できる
効果がある。
A microcomputer with an electrically rewritable nonvolatile memory according to the present invention is capable of rewriting a nonvolatile memory from the outside in a memory rewriting mode.
The data-only address bus and the data bus occupied by the memory rewrite are released from the CPU, and one of the code-only address bus and the code bus that is not occupied in the memory rewrite mode is connected to the C bus.
Since the configuration is configured to be released from the PU and the volatile memory and to use the released one bus as an extension bus of the data bus, it is possible to speed up the rewriting process for the nonvolatile memory in the memory rewriting mode, This has the effect of reducing the time during which the microcomputer-equipped system stops.

【0049】この発明に係る電気的に書き換え可能な不
揮発性メモリ内蔵マイクロコンピュータは、データ専用
アドレスバスおよびデータバスとデータインタフェース
ユニットとの接続および開放、コードバスとコードイン
タフェースユニットおよび外部端子との接続および開放
をメモリ書き換えモードおよびマイコンモードの設定に
応じた制御信号をもとに制御するゲート回路と、メモリ
書き換えモード時において、前記ゲート回路により前記
コードインタフェースユニットとの接続が開放された前
記コードバスの揮発性メモリとの接続をゲート制御信号
および前記制御信号をもとに開放するとともに、前記コ
ードバスを不揮発性メモリの拡張バスへ前記制御信号を
もとに接続するメモリインタフェース回路とを備えるよ
うに構成したので、前記メモリ書き換えモード時に占有
されない前記コードバスを前記CPUおよび揮発性メモ
リから開放し、該開放した前記コードバスを前記データ
バスの拡張用バスとして使うことが出来、前記メモリ書
き換えモード時における前記不揮発性メモリに対する書
き換え処理を高速化でき、マイコン搭載システムが停止
する時間を削減できる効果がある。
The microcomputer with built-in electrically rewritable nonvolatile memory according to the present invention comprises: a connection and disconnection of a data-only address bus, a data bus and a data interface unit, and a connection of a code bus to a code interface unit and an external terminal. And a gate circuit for controlling the opening and closing based on a control signal according to the setting of the memory rewrite mode and the microcomputer mode, and the code bus in which the connection to the code interface unit is released by the gate circuit in the memory rewrite mode. A memory interface circuit that opens the connection with the volatile memory based on the gate control signal and the control signal and connects the code bus to an expansion bus of the nonvolatile memory based on the control signal. Because it was configured in The code bus that is not occupied in the memory rewrite mode can be released from the CPU and the volatile memory, and the released code bus can be used as an expansion bus for the data bus. This has the effect of speeding up the rewriting process for the memory and reducing the time during which the system with the microcomputer is stopped.

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

【図1】 この発明の実施の形態1の電気的に書き換え
可能な不揮発性メモリ内蔵マイクロコンピュータの概略
的な部分構成を示す回路ブロック図である。
FIG. 1 is a circuit block diagram showing a schematic partial configuration of a microcomputer with a built-in electrically rewritable nonvolatile memory according to a first embodiment of the present invention;

【図2】 この発明の実施の形態1の電気的に書き換え
可能な不揮発性メモリ内蔵マイクロコンピュータのマイ
コンモード時の動作を示すタイミングチャートである。
FIG. 2 is a timing chart showing an operation in a microcomputer mode of the microcomputer with a built-in electrically rewritable nonvolatile memory according to the first embodiment of the present invention;

【図3】 この発明の実施の形態1の電気的に書き換え
可能な不揮発性メモリ内蔵マイクロコンピュータのメモ
リ書き換えモード時の動作を示すタイミングチャートで
ある。
FIG. 3 is a timing chart showing an operation in a memory rewriting mode of the microcomputer with a built-in electrically rewritable nonvolatile memory according to the first embodiment of the present invention;

【図4】 この発明の実施の形態2の電気的に書き換え
可能な不揮発性メモリ内蔵マイクロコンピュータの概略
的な部分構成を示す回路ブロック図である。
FIG. 4 is a circuit block diagram showing a schematic partial configuration of a microcomputer with a built-in electrically rewritable nonvolatile memory according to a second embodiment of the present invention;

【図5】 この発明の実施の形態2の電気的に書き換え
可能な不揮発性メモリ内蔵マイクロコンピュータのメモ
リ書き換えモード時の動作を示すタイミングチャートで
ある。
FIG. 5 is a timing chart showing an operation in a memory rewrite mode of a microcomputer with an electrically rewritable nonvolatile memory according to a second embodiment of the present invention;

【図6】 従来の電気的に書き換え可能な不揮発性メモ
リを内蔵化したハーバードアーキテクチャー型マイクロ
コンピュータの概略的な部分構成を示す回路ブロック図
である。
FIG. 6 is a circuit block diagram showing a schematic partial configuration of a conventional Harvard architecture microcomputer incorporating an electrically rewritable nonvolatile memory.

【図7】 従来の電気的に書き換え可能な不揮発性メモ
リを内蔵化したハーバードアーキテクチャー型マイクロ
コンピュータのCPUによるメモリアクセス時のタイミ
ング図である。
FIG. 7 is a timing chart at the time of memory access by a CPU of a Harvard architecture type microcomputer incorporating a conventional electrically rewritable nonvolatile memory.

【図8】 従来の電気的に書き換え可能な不揮発性メモ
リを内蔵化したハーバードアーキテクチャー型マイクロ
コンピュータのメモリ書換モード時の動作を示すタイミ
ングチャートである。
FIG. 8 is a timing chart showing an operation in a memory rewriting mode of a Harvard architecture type microcomputer incorporating a conventional electrically rewritable nonvolatile memory.

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

1 CPU、2 コードインタフェースユニット、3
データインタフェースユニット、4,41 調停回路
(バス制御手段)、9 コード専用アドレスバス、10
コードバス、11 データ専用アドレスバス、12
データバス、15,35 RAMインタフェース回路
(メモリインタフェース回路、バス制御手段)、16
RAM(揮発性メモリ)、17,37 ROMインタフ
ェース回路(メモリインタフェース回路、バス制御手
段)、18 ROM(不揮発性メモリ)、24 モード
設定回路(バス制御手段)、25 バス切替回路(バス
制御手段)、G1,G2,G3,G4,G5,G6 ゲ
ート回路(バス制御手段)。
1 CPU, 2 code interface unit, 3
Data interface unit, 4,41 arbitration circuit (bus control means), 9 dedicated code address bus, 10
Code bus, 11 Data-only address bus, 12
Data bus, 15, 35 RAM interface circuit (memory interface circuit, bus control means), 16
RAM (volatile memory), 17, 37 ROM interface circuit (memory interface circuit, bus control means), 18 ROM (non-volatile memory), 24 mode setting circuit (bus control means), 25 bus switching circuit (bus control means) , G1, G2, G3, G4, G5, G6 gate circuits (bus control means).

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 コードアクセス用のコード専用アドレス
バスとコードバス、およびデータアクセス用のデータ専
用アドレスバスとデータバスをそれぞれ独立して有し、
前記コード専用アドレスバスと前記コードバス、および
前記データ専用アドレスバスと前記データバスを介して
アクセス可能な揮発性メモリおよび電気的に書き換え可
能な不揮発性メモリを内蔵した不揮発性メモリ内蔵マイ
クロコンピュータにおいて、 前記不揮発性メモリを外部から書き換えるメモリ書き換
えモード時に、当該メモリ書き換えに占有される前記デ
ータ専用アドレスバスとデータバスをCPUから開放す
るとともに、前記メモリ書き換えモード時に占有されな
い前記コード専用アドレスバスとコードバスを前記揮発
性メモリに対するコードアクセス用途とデータアクセス
用途に時分割で使い分けることにより、前記CPUの前
記揮発性メモリへのアクセスを可能にし、前記メモリ書
き換えモード時における前記CPUの動作停止を回避す
るバス制御手段を備えていることを特徴とする電気的に
書き換え可能な不揮発性メモリ内蔵マイクロコンピュー
タ。
An independent bus dedicated to code access and a code bus for data access, and an independent address bus dedicated to data access and a data bus for data access;
A nonvolatile memory built-in microcomputer including a volatile memory and an electrically rewritable nonvolatile memory accessible through the code dedicated address bus and the code bus, and the data dedicated address bus and the data bus, In a memory rewrite mode in which the nonvolatile memory is externally rewritten, the data-only address bus and the data bus occupied by the memory rewrite are released from the CPU, and the code-only address bus and the code bus not occupied in the memory rewrite mode Is used for code access and data access to the volatile memory in a time-sharing manner, thereby enabling the CPU to access the volatile memory, and stopping the operation of the CPU during the memory rewrite mode. A microcomputer with a built-in electrically rewritable nonvolatile memory, characterized by comprising a bus control means for avoiding shutdown.
【請求項2】 バス制御手段は、 データ専用アドレスバスおよびデータバスとデータイン
タフェースユニットとの接続および開放、コード専用ア
ドレスバスとコードバスについての前記データインタフ
ェースユニットおよびコードインタフェースユニットへ
の接続および開放を、ゲート制御信号をもとにメモリ書
き換えモード時の時分割制御により行うバス切替回路
と、 前記メモリ書き換えモード時において、揮発性メモリを
前記コード専用アドレスバスと前記コードバスへゲート
制御信号をもとに接続し、不揮発性メモリを前記データ
専用アドレスバスおよびデータバスへゲート制御信号を
もとに接続するメモリインタフェース回路と、 前記メモリ書き換えモード、CPUによる前記揮発性メ
モリおよび前記不揮発性メモリへのアクセスを可能にす
るマイコンモードの設定に応じた制御信号を出力するモ
ード設定回路と、 前記データ専用アドレスバスおよびデータバスと外部端
子との接続および開放を前記制御信号をもとに行うゲー
ト回路と、 同一時刻に同一のメモリにコードアクセスとデータアク
セスが重ならないようにするとともに前記時分割制御を
実現するための前記ゲート制御信号を、前記データイン
タフェースユニットおよび前記コードインタフェースユ
ニットによる信号入出力の状態と前記モード設定回路が
出力した前記制御信号をもとに出力する調停回路とを備
えたことを特徴とする請求項1記載の電気的に書き換え
可能な不揮発性メモリ内蔵マイクロコンピュータ。
2. A bus control means for connecting and disconnecting a dedicated data address bus and a data bus to a data interface unit, and connecting and disconnecting a dedicated code address bus and a code bus to and from the data interface unit and the code interface unit. A bus switching circuit for performing time-division control in a memory rewrite mode based on a gate control signal; and, in the memory rewrite mode, transferring a volatile memory to the code-only address bus and the code bus based on a gate control signal. A memory interface circuit that connects the nonvolatile memory to the data-only address bus and the data bus based on a gate control signal; and the memory rewrite mode, and the CPU accesses the volatile memory and the nonvolatile memory. To A mode setting circuit for outputting a control signal according to the setting of the microcomputer mode to be enabled; a gate circuit for connecting and disconnecting the data-only address bus and the data bus to external terminals based on the control signal; The gate control signal for realizing the time-division control while preventing code access and data access from overlapping in the same memory at the same time is determined based on the signal input / output states of the data interface unit and the code interface unit. 2. The microcomputer with built-in electrically rewritable nonvolatile memory according to claim 1, further comprising an arbitration circuit that outputs the control signal based on the control signal output from a mode setting circuit.
【請求項3】 コードアクセス用のコード専用アドレス
バスとコードバス、およびデータアクセス用のデータ専
用アドレスバスとデータバスをそれぞれ独立して有し、
前記コード専用アドレスバスと前記コードバス、および
前記データ専用アドレスバスと前記データバスを介して
アクセス可能な揮発性メモリおよび電気的に書き換え可
能な不揮発性メモリを内蔵した不揮発性メモリ内蔵マイ
クロコンピュータにおいて、 前記不揮発性メモリを外部から書き換えるメモリ書き換
えモード時に、当該メモリ書き換えに占有される前記デ
ータ専用アドレスバスとデータバスをCPUから開放す
るとともに、前記メモリ書き換えモード時に占有されな
い前記コード専用アドレスバスまたはコードバスのいず
れか一方のバスを前記CPUおよび前記揮発性メモリか
ら開放し、該開放した前記一方のバスを前記データバス
の拡張用バスとして使うことにより、前記メモリ書き換
えモード時における前記不揮発性メモリに対する書き換
えを高速化するバス制御手段を備えていることを特徴と
する電気的に書き換え可能な不揮発性メモリ内蔵マイク
ロコンピュータ。
3. A code dedicated address bus and code bus for code access, and a data dedicated address bus and data bus for data access are independently provided,
A nonvolatile memory-equipped microcomputer including a volatile memory and an electrically rewritable nonvolatile memory accessible through the code-only address bus and the code bus, and the data-only address bus and the data bus, In a memory rewrite mode in which the nonvolatile memory is rewritten from outside, the data dedicated address bus and the data bus occupied by the memory rewrite are released from the CPU, and the code dedicated address bus or the code bus not occupied in the memory rewrite mode. By releasing any one of the buses from the CPU and the volatile memory, and using the released one bus as an extension bus of the data bus, the nonvolatile memory in the memory rewrite mode can be used. A microcomputer with a built-in electrically rewritable nonvolatile memory, comprising a bus control means for speeding up rewriting.
【請求項4】 バス制御手段は、 データ専用アドレスバスおよびデータバスとデータイン
タフェースユニットとの接続および開放、コードバスと
コードインタフェースユニットおよび外部端子との接続
および開放を制御信号をもとに制御するゲート回路と、 メモリ書き換えモード時において、前記ゲート回路によ
り前記コードインタフェースユニットとの接続が開放さ
れた前記コードバスの揮発性メモリとの接続をゲート制
御信号および制御信号をもとに開放するとともに、前記
コードバスを不揮発性メモリの拡張バスへ制御信号をも
とに接続するメモリインタフェース回路と、 前記メモリ書き換えモード、CPUによる前記揮発性メ
モリおよび前記不揮発性メモリへのアクセスを可能にす
るマイコンモードの設定に応じた前記制御信号を出力す
るモード設定回路と、 同一時刻に同一のメモリにコードアクセスとデータアク
セスが重ならないようにするとともに、前記メモリ書き
換えモード時における前記コードバスの揮発性メモリと
の接続を開放するための前記ゲート制御信号を、前記デ
ータインタフェースユニットおよび前記コードインタフ
ェースユニットによる信号入出力の状態と前記モード設
定回路が出力した前記制御信号をもとに出力する調停回
路とを備えたことを特徴とする請求項3記載の電気的に
書き換え可能な不揮発性メモリ内蔵マイクロコンピュー
タ。
4. The bus control means controls connection and disconnection of a data-only address bus and a data bus to a data interface unit, and connection and disconnection of a code bus to a code interface unit and an external terminal based on control signals. A gate circuit, and in a memory rewrite mode, a connection between the code circuit and the volatile memory of the code bus whose connection to the code interface unit is released by the gate circuit is released based on a gate control signal and a control signal, A memory interface circuit for connecting the code bus to an extension bus of the nonvolatile memory based on a control signal; and a memory mode for enabling the memory rewrite mode and a CPU to access the volatile memory and the nonvolatile memory by a CPU. Outputs the control signal according to the setting A mode setting circuit for inputting the code access and the data access to the same memory at the same time, and the gate for releasing the connection of the code bus to the volatile memory in the memory rewrite mode. 4. An arbitration circuit for outputting a control signal based on a signal input / output state of the data interface unit and the code interface unit and the control signal output by the mode setting circuit. The microcomputer with built-in electrically rewritable nonvolatile memory described in the above.
JP11160133A 1999-06-07 1999-06-07 Microcomputer with electrically rewritable nonvolatile memory Pending JP2000348011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11160133A JP2000348011A (en) 1999-06-07 1999-06-07 Microcomputer with electrically rewritable nonvolatile memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11160133A JP2000348011A (en) 1999-06-07 1999-06-07 Microcomputer with electrically rewritable nonvolatile memory

Publications (1)

Publication Number Publication Date
JP2000348011A true JP2000348011A (en) 2000-12-15

Family

ID=15708595

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11160133A Pending JP2000348011A (en) 1999-06-07 1999-06-07 Microcomputer with electrically rewritable nonvolatile memory

Country Status (1)

Country Link
JP (1) JP2000348011A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100474622B1 (en) * 2001-11-15 2005-03-10 미쓰비시덴키 가부시키가이샤 Microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100474622B1 (en) * 2001-11-15 2005-03-10 미쓰비시덴키 가부시키가이샤 Microcomputer

Similar Documents

Publication Publication Date Title
JPH0472255B2 (en)
KR0142033B1 (en) Micro computer
KR100475267B1 (en) Memory and Microcomputers
JP2000348011A (en) Microcomputer with electrically rewritable nonvolatile memory
US4627035A (en) Switching circuit for memory devices
US6182207B1 (en) Microcontroller with register system for the indirect accessing of internal memory via auxiliary register
US5506994A (en) Multiprocessor-type one-chip microcomputer with dual-mode functional terminals
JPH10333898A (en) Microcomputer
JPH03668B2 (en)
JP2643803B2 (en) Microcomputer
US8120418B2 (en) Large-scale integrated circuit
JP2001318907A (en) Microcomputer incorporating flash memory
JPH1050086A (en) Microcomputer having eeprom and its rewriting method
JPH06103106A (en) Program debug device
JPH07122872B2 (en) 1-chip microcomputer
JP2000231512A (en) High speed memory copy method and copy circuit
JPH0624908Y2 (en) Data transfer control device
JP2968636B2 (en) Microcomputer
JP3161370B2 (en) Port shared circuit
JPS6027017A (en) Setting system for action mode of terminal device
JP2005032001A (en) Information processing apparatus and microcomputer firmware rewriting method
JP2000020340A (en) Microcomputer and its testing method
JPH1031647A (en) Cpu board having data bus width conversion control circuit
JPH06175929A (en) Duplex main storage device
JPS607825B2 (en) memory system