JPS5965356A - Single-chip microcomputer - Google Patents

Single-chip microcomputer

Info

Publication number
JPS5965356A
JPS5965356A JP57175015A JP17501582A JPS5965356A JP S5965356 A JPS5965356 A JP S5965356A JP 57175015 A JP57175015 A JP 57175015A JP 17501582 A JP17501582 A JP 17501582A JP S5965356 A JPS5965356 A JP S5965356A
Authority
JP
Japan
Prior art keywords
signal
address
circuit
program counter
external 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.)
Pending
Application number
JP57175015A
Other languages
Japanese (ja)
Inventor
Hiroki Kamata
鎌田 宏樹
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP57175015A priority Critical patent/JPS5965356A/en
Publication of JPS5965356A publication Critical patent/JPS5965356A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • G06F9/321Program or instruction counter, e.g. incrementing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To increase the storage capacity, by providing a circuit within a program counter to change a program counter to the set value other than (0) with an AND of the signal which sets the program counter at (0) and the address region level setting signal. CONSTITUTION:A set value changing circuit 5 is provided within a program counter 1'. When the resetting signal is fed to a terminal R, the counter 1' is set at (0). Then an AND of the address region level setting signal A and the resetting signal R is supplied to the circuit 5 through an AND circuit 6 to change and set the contents of the counter 1' to the value other than (0). The state signal T1phi and the signal sent from the counter 1' are latched 2 temporarily. Then the external memory access signal is delivered to an address bus 4 via an address buffer 3. Therefore an ROM and an RAM are connected from outside to increase the storage capacity.

Description

【発明の詳細な説明】 本発明はシングル・チップ・マイクロコンピュータに関
し、特にそのアドレス初期化回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a single chip microcomputer, and more particularly to an address initialization circuit thereof.

従来のシングル拳チップ・マイクロコンピュータでは電
源がオンになり動作開始する際、リセット端子にアクテ
ィブなレベルの信号?規定クロククパルス幅だけ入力す
ることによL プログラムカウンタは(0000)Hに
セットされ、該アドレスに配置されたROMより命令コ
ード?フエヴチすることによりマイクロコンピュータと
しての動作が開始する。しかしながら、シングル・チッ
プ・マイクロコンピータでは内部ROMに使用者側の特
定プログラムコードが半導体供給者側においてマスク化
されて製造されているためあるジアームウェア化システ
ムに用いたマイクロコンピュータはプログラム全追加し
て該システムの機能追加を実施する場合やマイクロコン
ピュータのROM’l(−テストしたシする場合など元
々の内部プログラムは前記の必要性が生じた場合5条件
によって外部メモリアドレスにジャンプできるように作
っておかなければならないが、ジャンプ不可能な場合が
多い。何故なら前記の必要性即ち、マイクロコンピュー
タ組込み機器に機能を追加するという要求は該機器の市
場反響等市場実績から来るものであるためである。また
、ある新機器のプログラム七開発中に外部メモリヲ用い
てプログラム実行による総合デバッグを行う場合、使用
者側において別機器用プログラムがマスク化された手許
のマイクロコンピータを用いて行うのが最も効率良い筈
である。このような場合1元の内部ROMに書かれたプ
ログラムによっては全く外部メモリにジャンプできず、
外部に特別にハードウェアが必要であった。
In conventional single-fist chip microcomputers, when the power is turned on and operation begins, an active level signal is sent to the reset terminal? By inputting only the specified clock pulse width, the L program counter is set to (0000)H, and the instruction code is read from the ROM located at the address. By doing so, the microcomputer starts operating. However, single-chip microcomputers are manufactured with the user's specific program code in the internal ROM masked by the semiconductor supplier, so microcomputers used in certain armware systems do not have the entire program added. The original internal program was created in such a way that it could jump to an external memory address according to the 5 conditions when the above-mentioned need arose, such as when adding functions to the system or when testing the microcomputer's ROM. However, it is often impossible to jump because the above-mentioned need, that is, the request to add functions to microcomputer-embedded equipment, comes from the market performance of the equipment, such as the market response. Also, when performing comprehensive debugging by executing programs using external memory while developing a program for a new device, it is best for the user to use a microcomputer at hand on which the program for another device is masked. It should be efficient. In this case, depending on the program written in the original internal ROM, it may not be possible to jump to the external memory at all.
Special external hardware was required.

第1図は従来のマイクロコンピュータのアドレス初期化
回路の一例のブロック図、第3図は第1図のアドレス初
期化回路の動作時のタイミング図である。
FIG. 1 is a block diagram of an example of an address initialization circuit of a conventional microcomputer, and FIG. 3 is a timing diagram of the operation of the address initialization circuit of FIG. 1.

リセット端子几から高レベルのリセット信号が、  プ
ログラムカウンタlに入力さ五ると、プログラムカウン
タ1はある規定クロック数で「0」に設定される。例え
ば、規定クロック数′に3とするならば、第3図のaで
示すタイミングで開始し、bで示すタイミングで終了す
る。アドレス空間64にバイトの場会、プログラムカウ
ンタlは(0000)Hに設定される。
When a high-level reset signal is input to the program counter 1 from the reset terminal 1, the program counter 1 is set to "0" at a certain specified number of clocks. For example, if the specified number of clocks is set to 3, the process starts at the timing shown by a in FIG. 3 and ends at the timing shown by b in FIG. If there is a byte in address space 64, program counter l is set to (0000)H.

リセット後、マシンサイクル1のT1状態M1・Toに
なったとき、プログ2ムカウンタlからの出力信号はT
□状態のクロックであるステート信号T0 φのタイミ
ング、即ち第3図のCで示すタイミングでアドレスラッ
チ回路2七通シ、プログラムカウンタlの内容、即ちア
ドレス信号をアドレスバッファ3からアドレスバス4に
出力する。
After reset, when the T1 state M1・To of machine cycle 1 is reached, the output signal from program counter 1 is T.
□ At the timing of the state signal T0 φ, which is the state clock, that is, at the timing shown by C in FIG. do.

アドレス空間64にバイトで16進数の場で、アドレス
バスは16個(A o−A□5)となる。所で。
In address space 64, there are 16 address buses (A o - A□5) in hexadecimal bytes. At the place.

マイクロコンピュータの場合、アドレスバス4に出力さ
れるアドレス信号が内蔵メモリ空間内のアドレス値であ
れば、外部端子にはアドレス信号が出力されず、メモリ
読出し信号M)1等の制御信号端子と共に外部端子は高
インピーダンスになっていて、外部メモリやIloのア
クセスを防止している。従って1元の内部ROMに書か
れたプログラムによっては全く外部メモリにジャンプし
たりI10?アクセスケしようとすると、特別のハード
ウェア倉付加する必要があるという欠点があった。
In the case of a microcomputer, if the address signal output to the address bus 4 is an address value in the built-in memory space, the address signal is not output to the external terminal, and the address signal is output to the external terminal along with the control signal terminal such as memory read signal M)1. The terminal has high impedance, preventing access to external memory and Ilo. Therefore, depending on the program written in the internal ROM, it may jump to the external memory at all. The drawback was that access required special hardware.

本発明は上記欠点を除去し、外部からの制御信号による
割込み処理をしなくても外部メモリやIloのアクセス
ケすることのできるシングル拳チップ・マイクロコンピ
ュータを提供するものである。
The present invention eliminates the above drawbacks and provides a single-chip microcomputer that can access external memory and Ilo without interrupt processing using external control signals.

本発明のシングル・チップ・マイクロコンピュータは、
リセット信号?受けてゼロにリセットするプログラムカ
ウンタと、アドレス領域レベル設定信号と前記リセット
信号と?受けてアドレス領域設定信号音出力するアンド
回路と、該アドレス領域設定信号を受けて前記プログラ
ムカウンタの内容をゼロ以外のある値に変更して設定す
る設定値変更回路と、ステート信号と前記プログラムカ
ウンタから出力されるアドレス信号とを一時保持し外部
メモリアクセス信号を出力するアドレスラッチ回路と、
該外部メモリアクセス信号を受は外部メモリアクセス用
アドレス信号全アドレスバスに出力するアドレスバッフ
ァとを含んで構成される。
The single chip microcomputer of the present invention is
Reset signal? A program counter that receives and resets to zero, an address area level setting signal, and the reset signal? an AND circuit that receives the address area setting signal and outputs an address area setting signal sound; a set value changing circuit that receives the address area setting signal and changes the contents of the program counter to a value other than zero and sets it; and a state signal and an AND circuit that outputs an address area setting signal sound. an address latch circuit that temporarily holds an address signal output from the address latch circuit and outputs an external memory access signal;
The address buffer receives the external memory access signal and outputs the address signal for external memory access to all address buses.

本発明の実施例について図面を用いて説明する。Embodiments of the present invention will be described with reference to the drawings.

第2図は本発明の一実施例のブロック図である。FIG. 2 is a block diagram of one embodiment of the present invention.

この実施例は、リセット信号を受けてゼロにリセットす
るプログラムカウンタl′と、アドレス領域レベル設定
信号とリセット信号と奮受けてアドレス領域設定信号音
出力するアンド回路6と、該アドレス領域設定信号を受
けてプログラムカウンタlの内容をゼロ以外のある値に
変更して設定する設定値変更回路5と、ステート信号と
プログラムカウンタl′から出力されるアドレス信号と
ヲ一時保持し外部メモリアクセス信号を出刃するアドレ
スラッチ回路3と、外部メモリアクセス信号?受は外部
メモリアクセス用アドレス信号をアドレスバス4に出力
するアドレスバッファ3とt含んで構成される。
This embodiment includes a program counter l' that receives a reset signal and resets it to zero, an AND circuit 6 that receives an address area level setting signal and a reset signal, and outputs an address area setting signal sound, and an AND circuit 6 that outputs an address area setting signal sound. A setting value changing circuit 5 changes the contents of the program counter l' to a value other than zero and sets the contents, and a set value changing circuit 5 temporarily holds the state signal and the address signal output from the program counter l' and outputs an external memory access signal. address latch circuit 3 and external memory access signal? The receiver includes an address buffer 3 and t which output address signals for external memory access to an address bus 4.

次に、この実施例の動作について第3図を併用して説明
する。
Next, the operation of this embodiment will be explained with reference to FIG.

リセット信号はリセット端子几からプログラムカウンタ
l′に入ると同時にアンド回路6にも入る。
The reset signal enters the program counter l' from the reset terminal and also enters the AND circuit 6 at the same time.

アンド回路6には端子Aからアドレス領域レベル設定信
号も入シ、リセット信号との論理積からアンド回路6は
アドレス領域設定信号を発生し、この信号ケ設定値変更
回路5へ送出する。リセット信号の入力によりプログラ
ムカウンタl′はある規冗りロンク数で「0」に設定さ
れる。前の場合と同様に、アドレス空間64にバイトの
場合で説明すると(0000)Hに設定する。アンド回
路6からアドレス領域設定信号が設定値変更回路5に入
ると、設定値変更回路5はプログラムカウンタlの内容
をそのままとするか変更するかのいずれかを行う。変更
するということは外部メモリ開始アドレスに変更すると
いうことである。例えば、内部メモリが+にバイトであ
れば(0040)Hに変更する。この変更操作は第3図
のaからbまでの時間内に行われる。aからbのクロッ
クサイクルは若干延びるが、システムパフォーマンス上
ニハ殆んど影響はない。(0040)Hが設定されると
、外部端子は制御信号端子と共に低インピーダンスにな
って外部メモリやIloのアクセスが可能となる。プロ
グラムカウンタの内容が変更されずに(0000)Hの
ままのときは第1図の従来例と同じ動作をする。
An address area level setting signal is also input to the AND circuit 6 from the terminal A, and the AND circuit 6 generates an address area setting signal from the AND with the reset signal, and sends this signal to the setting value changing circuit 5. By inputting the reset signal, the program counter l' is set to "0" for a certain number of cycles. As in the previous case, in the case of a byte in the address space 64, it is set to (0000)H. When the address area setting signal from the AND circuit 6 enters the setting value changing circuit 5, the setting value changing circuit 5 either leaves the contents of the program counter l unchanged or changes them. Changing it means changing it to the external memory start address. For example, if the internal memory is + bytes, change it to (0040)H. This changing operation is performed within the time period a to b in FIG. Although the clock cycle from a to b is slightly extended, this has almost no effect on system performance. When (0040) H is set, the external terminal and the control signal terminal become low impedance, allowing access to the external memory and Ilo. When the contents of the program counter are not changed and remain at (0000)H, the same operation as in the conventional example shown in FIG. 1 is performed.

なお、端子Aは一つに限定されず、複数個設けることが
でき、その場合には実行開始アドレスも複数に設定可能
である。
Note that the number of terminals A is not limited to one, and a plurality of terminals can be provided, and in that case, the execution start address can also be set to a plurality of numbers.

以上詳細に説明したように5本発明によれば。According to the present invention, as described above in detail.

外部からの制御信号による割込み処理を用いなくても外
部メモリやIloのアクセスをすることができ、任意の
アドレスからマイクロコンピュータの実行開始が可能と
なp、ROMやRAM1外部から接続して処理機能な記
憶容量?増やすことも可能なシングル・チップ・マイク
ロコンピュータが得られるのでその効果は大きい。
It is possible to access external memory and Ilo without using interrupt processing by external control signals, and it is possible to start execution of the microcomputer from any address. What storage capacity? The effect is great because a single-chip microcomputer that can be expanded is obtained.

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

第1図は従来のマイクロコンピータのアドレス初期化回
路の一例のブロック図、第2図は本発明の一実施例のブ
ロック図、第3図は第1図に示すアドレス初期化回路の
動作時のタイミング図である。 1.1′・・・・・・プログラムカウンタ、2・・・・
・・アドレスラッチ回路、3・・・・・・アドレス/く
ツファ、4・・・・・・アドレスバス、5・・・・・・
設定値変更回路。 3イシ ノ  (?1 竿2 図 a       b         c簗 3 図
FIG. 1 is a block diagram of an example of an address initialization circuit of a conventional microcomputer, FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a block diagram of an example of an address initialization circuit of a conventional microcomputer. FIG. 1.1'...Program counter, 2...
...address latch circuit, 3...address/couple, 4...address bus, 5...
Setting value change circuit. 3 Ishi no (?1 Rod 2 Figure a b c Yan 3 Figure

Claims (1)

【特許請求の範囲】[Claims] リセット信号を受けてゼロにリセットするプログラムカ
ウンタと、アドレス領域レベル設定信号と前記リセット
信号とを受けてアドレス領域設定信号を出力するアンド
回路と、該アドレス領域設定信号ケ受けて前記プログラ
ムカウンタの内容をゼロ以外のある値に変更して設定す
る設定値変更回路と、ステート信号と前記プログ2ムカ
ウンタから出力されるアドレス信号とt一時保持し外部
メモリアクセス信号を出力するアドレスラッチ回路と、
該外部メモリアクセス信号を受は外部メモリアクセス用
アドレス信号をアドレスバスに出力するアドレスバッフ
ァとを含むこと?特徴とするシングル争チップ・マイク
ロコンピュータ。
a program counter that receives a reset signal and resets to zero; an AND circuit that receives an address area level setting signal and the reset signal and outputs an address area setting signal; and a program counter that receives the address area setting signal and outputs the address area setting signal. a set value changing circuit that changes and sets the state signal to a value other than zero, and an address latch circuit that temporarily holds the state signal and the address signal output from the program counter and outputs an external memory access signal;
An address buffer that receives the external memory access signal and outputs an address signal for external memory access to the address bus? Features a single chip microcomputer.
JP57175015A 1982-10-05 1982-10-05 Single-chip microcomputer Pending JPS5965356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57175015A JPS5965356A (en) 1982-10-05 1982-10-05 Single-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57175015A JPS5965356A (en) 1982-10-05 1982-10-05 Single-chip microcomputer

Publications (1)

Publication Number Publication Date
JPS5965356A true JPS5965356A (en) 1984-04-13

Family

ID=15988720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57175015A Pending JPS5965356A (en) 1982-10-05 1982-10-05 Single-chip microcomputer

Country Status (1)

Country Link
JP (1) JPS5965356A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61267858A (en) * 1985-01-18 1986-11-27 Nec Corp Microcomputer
JPS62199858U (en) * 1986-06-09 1987-12-19
JPH02168320A (en) * 1988-12-21 1990-06-28 Mitsubishi Electric Corp Microprocessor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5597641A (en) * 1979-01-19 1980-07-25 Nec Corp Address generator
JPS5771049A (en) * 1980-10-20 1982-05-01 Seiko Epson Corp One-chip microcomputer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5597641A (en) * 1979-01-19 1980-07-25 Nec Corp Address generator
JPS5771049A (en) * 1980-10-20 1982-05-01 Seiko Epson Corp One-chip microcomputer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61267858A (en) * 1985-01-18 1986-11-27 Nec Corp Microcomputer
JPS62199858U (en) * 1986-06-09 1987-12-19
JPH02168320A (en) * 1988-12-21 1990-06-28 Mitsubishi Electric Corp Microprocessor

Similar Documents

Publication Publication Date Title
EP0127440A2 (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
JPS5829197A (en) Dynamic memory refleshing circuit
JPH08305585A (en) Interruption controller
JP2845433B2 (en) Integrated circuit device
US4095268A (en) System for stopping and restarting the operation of a data processor
US4947478A (en) Switching control system for multipersonality computer system
US4636945A (en) Microprocessor
JPS5965356A (en) Single-chip microcomputer
US6550015B1 (en) Scalable virtual timer architecture for efficiently implementing multiple hardware timers with minimal silicon overhead
US5761482A (en) Emulation apparatus
JP2738141B2 (en) Single chip microcomputer
US7065669B2 (en) System and method for providing a write strobe signal to a receiving element before both an address and data signal
JPS633328B2 (en)
US5649207A (en) Microprocessor unit having interrupt mechanism
JP3001526B1 (en) Interrupt processing circuit and interrupt debugging method
JPH0827741B2 (en) Single-chip microcomputer
JPS5557960A (en) Debugging system
JP2705359B2 (en) Trace circuit
JPS5965354A (en) Priority control system for reception of processing request
JP3702592B2 (en) Pulse generator, multi-chip module and single-chip microcomputer
JPS55120252A (en) Error control system
JPH04107748A (en) Microcomputer
JPS602708B2 (en) Single-chip computer addressing scheme
JPH0363863A (en) Microcomputer
JPS61183764A (en) Direct memory access controlling system