JPH07302222A - Processor provided with external program memory - Google Patents

Processor provided with external program memory

Info

Publication number
JPH07302222A
JPH07302222A JP9653194A JP9653194A JPH07302222A JP H07302222 A JPH07302222 A JP H07302222A JP 9653194 A JP9653194 A JP 9653194A JP 9653194 A JP9653194 A JP 9653194A JP H07302222 A JPH07302222 A JP H07302222A
Authority
JP
Japan
Prior art keywords
program memory
program
signal
external
processor
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
JP9653194A
Other languages
Japanese (ja)
Inventor
Hidenori Ohashi
秀紀 大橋
Takashi Uchino
高志 内野
Takashi Kuroda
隆 黒田
Akira Yoshida
昭 吉田
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP9653194A priority Critical patent/JPH07302222A/en
Publication of JPH07302222A publication Critical patent/JPH07302222A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve diversification at the time of using the plural kinds of programs by performing program control for specifying the optional address of a selected program memory within external or internal program memories. CONSTITUTION:A program memory control part 11 sends out PCS signals for selecting the internal program memory 2a or the external program memory 2b to the memory 2a or 2b corresponding to the kind of IN/EXT signals impressed from the outside of this processor during a reset period by RESET signals. Simultaneously, the program memory control part 11 specifies the instruction execution starting address of the selected program memory by EMSEL0 signals, EMSEL1 signals, PA signals, PRD signals and PWR signals impressed from the outside of the processor. As a result, instruction codes are successively sent out from the addresses of the internal and external program memories 2a and 2b through internal and external program buses to an instruction register 3 and instructions are executed in an arithmetic part 8.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、演算処理を行うプロセ
ッサ内の内部プログラムメモリ、又はそのプロセッサ外
の外部プログラムメモリのうち一方を選択し、選択され
たプログラムメモリの予め決められた任意のアドレスか
らプログラムの命令実行開始が可能であると共に、プロ
セッサ内の内部プログラムメモリ、又はそのプロセッサ
外の外部プログラムメモリのうち一方を選択し、選択さ
れたプログラムメモリの予め決められた任意のアドレス
からプログラムを格納することが可能な外部プログラム
メモリを有するプロセッサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention selects one of an internal program memory in a processor for performing arithmetic processing and an external program memory outside the processor, and selects a predetermined address of the selected program memory. It is possible to start the instruction execution of the program from, and select one of the internal program memory inside the processor or the external program memory outside the processor, and execute the program from any predetermined address of the selected program memory. The present invention relates to a processor having an external program memory capable of storing.

【0002】[0002]

【従来の技術】従来のTI(テキサスインスツルメン
ツ)社製のプロセッサTMS320シリーズは、演算等
のプログラム(以下、単にプログラムという。)を格納
するプログラムメモリをプロセッサ内に内蔵しており
(以下、このプログラムメモリを内部プログラムメモリ
という。)、更にこの内部プログラムメモリの他にプロ
セッサ外に外部プログラムメモリをも備えて、内部プロ
グラムメモリに格納されたプログラムと同種、又は異種
の大容量のプログラムを格納することができ、更に内部
プログラムメモリ、又は外部プログラムメモリに対して
プログラムの読み出し、又は書き込みの指令を行うこと
ができるプログラムメモリ制御部を備えている。
2. Description of the Related Art A processor TMS320 series manufactured by TI (Texas Instruments) Co., Ltd. has a built-in program memory for storing programs such as arithmetic operations (hereinafter, simply referred to as programs) (hereinafter, this program The memory is referred to as an internal program memory.) In addition to the internal program memory, an external program memory is provided outside the processor to store a large-capacity program of the same type or a different type from the program stored in the internal program memory. In addition, a program memory control unit capable of issuing a program reading or writing command to an internal program memory or an external program memory is provided.

【0003】図4は斯かる外部プログラムメモリを備え
ているプロセッサ周辺の概略構成図を示している。ここ
で、以下に使用する信号の説明をまとめると表1のよう
になる。
FIG. 4 is a schematic block diagram of the periphery of a processor provided with such an external program memory. Here, the description of the signals used below is summarized in Table 1.

【0004】[0004]

【表1】 [Table 1]

【0005】この構成において、内部プログラムメモ
リ、又は外部プログラムメモリからプログラムを読み出
してから演算部(図示せず。)でプログラムを実行する
までの動作を(A)欄に説明する。尚、内部プログラム
メモリ、及び外部プログラムメモリには予めプログラム
が格納されているものとする。
In this configuration, the operation from the reading of the program from the internal program memory or the external program memory to the execution of the program by the arithmetic unit (not shown) will be described in section (A). It is assumed that programs are stored in advance in the internal program memory and the external program memory.

【0006】(A)まず、内部プログラムメモリのプロ
グラムの読み出しに当って、プロセッサ外からプログラ
ムメモリ制御部に印加されるIN/EXT信号によって
内部プログラムメモリを選択すると、プログラムメモリ
制御部は内部プログラムメモリにCS信号を送出するこ
とによって内部プログラムメモリを選択する。通常、各
プログラムメモリにはプログラムメモリ制御部からIR
D信号、ERD信号が印加されており、内部プログラム
メモリではIRD信号、及びCS信号によって内部プロ
グラムメモリの先頭アドレスから順次プログラムが読み
出されて、このプログラムはインストラクションレジス
タを介して、インストラクションデコーダへ送出され、
斯かるプログラムの内容に応じた演算が演算部で実行さ
れる。
(A) First, in reading a program from the internal program memory, if the internal program memory is selected by an IN / EXT signal applied to the program memory control unit from outside the processor, the program memory control unit will select the internal program memory. The internal program memory is selected by sending a CS signal to. Normally, each program memory has an IR from the program memory control unit.
The D signal and the ERD signal are applied, and the program is sequentially read from the start address of the internal program memory by the IRD signal and the CS signal in the internal program memory, and this program is sent to the instruction decoder via the instruction register. Is
The calculation unit executes a calculation according to the content of such a program.

【0007】一方、外部プログラムメモリのプログラム
の読み出しに当って、プロセッサ外からプログラムメモ
リ制御部に印加されるIN/EXT信号によって外部プ
ログラムメモリを選択すると、プログラムメモリ制御部
は外部プログラムメモリにCS信号を送出することによ
って外部プログラムメモリを選択する。ここで、上述と
同様、各プログラムメモリにはプログラムメモリ制御部
からIRD信号、ERD信号が印加されており、外部プ
ログラムメモリではERD信号、及びCS信号によって
外部プログラムメモリの先頭アドレスから順次プログラ
ムが読み出されて、このプログラムはインストラクショ
ンレジスタを介して、インストラクションデコーダへ送
出され、斯かるプログラムの内容に応じた演算が演算部
で実行される。
On the other hand, in reading the program from the external program memory, when the external program memory is selected by the IN / EXT signal applied to the program memory control unit from outside the processor, the program memory control unit causes the external program memory to send the CS signal. To select the external program memory. Here, similar to the above, the IRD signal and the ERD signal are applied to each program memory from the program memory control unit, and the program is sequentially read from the start address of the external program memory by the ERD signal and the CS signal in the external program memory. The program is issued and sent to the instruction decoder via the instruction register, and the arithmetic unit executes the arithmetic operation according to the content of the program.

【0008】次に、内部プログラムメモリ、又は外部プ
ログラムメモリへのプログラムの書き込み動作を(B)
欄に説明する。
Next, the operation of writing the program to the internal program memory or the external program memory is performed (B).
Explain in the column.

【0009】(B)内部プログラムメモリへのプログラ
ムの書き込みに当って、プロセッサ外からプログラムメ
モリ制御部に印加されるIN/EXT信号によって内部
プログラムメモリを選択すると、プログラムメモリ制御
部は内部プログラムメモリにCS信号を送出して内部プ
ログラムメモリを選択し、これによって内部プログラム
メモリから書き込み用のプログラムが一旦読み出され
る。この読み出されたプログラムの内容はプログラムメ
モリ制御部から内部プログラムメモリ、及び外部プログ
ラムメモリに対してIWR信号、及びEWR信号を印加
する命令であり、このプログラムはインストラクション
レジスタを介して、インストラクションデコーダに送出
される。この後、そのプログラムの命令はプログラムメ
モリ制御部に送出され、このプログラムメモリ制御部は
内部プログラムメモリ、及び外部プログラムメモリに対
してIRD信号、及びERD信号に代えて、IWR信
号、及びEWR信号を印加する。
(B) In writing a program to the internal program memory, if the internal program memory is selected by an IN / EXT signal applied to the program memory control unit from outside the processor, the program memory control unit will be stored in the internal program memory. The CS signal is sent to select the internal program memory, whereby the program for writing is once read from the internal program memory. The content of the read program is an instruction to apply the IWR signal and the EWR signal to the internal program memory and the external program memory from the program memory control unit, and the program is sent to the instruction decoder via the instruction register. Sent out. After that, the command of the program is sent to the program memory control unit, and the program memory control unit sends the IWR signal and the EWR signal to the internal program memory and the external program memory in place of the IRD signal and the ERD signal. Apply.

【0010】斯くして、内部プログラムメモリでは、I
WR信号、及びCS信号によって内部プログラムメモリ
の先頭アドレスから順次プログラムが書き込まれる。
Thus, in the internal program memory, I
The program is sequentially written from the head address of the internal program memory by the WR signal and the CS signal.

【0011】一方、外部プログラムメモリへのプログラ
ムの書き込みに当って、プロセッサ外からプログラムメ
モリ制御部に印加されるIN/EXT信号によって外部
プログラムメモリを選択すると、プログラムメモリ制御
部は外部プログラムメモリにCS信号を送出して外部プ
ログラムメモリを選択し、これによって外部プログラム
メモリから書き込み用のプログラムが一旦読み出され
る。この読み出されたプログラムの内容はプログラムメ
モリ制御部から内部プログラムメモリ、及び外部プログ
ラムメモリに対してIWR信号、及びEWR信号を印加
する命令であり、このプログラムはインストラクション
レジスタを介して、インストラクションデコーダに送出
される。この後、そのプログラムの命令はプログラムメ
モリ制御部に送出され、このプログラムメモリ制御部は
内部プログラムメモリ、及び外部プログラムメモリに対
してIRD信号、及びERD信号に代えて、IWR信
号、及びEWR信号を印加する。
On the other hand, when writing a program to the external program memory, if the external program memory is selected by the IN / EXT signal applied to the program memory control unit from outside the processor, the program memory control unit causes the external program memory to CS A signal is sent to select the external program memory, and the program for writing is once read from the external program memory. The content of the read program is an instruction to apply the IWR signal and the EWR signal to the internal program memory and the external program memory from the program memory control unit, and the program is sent to the instruction decoder via the instruction register. Sent out. After that, the command of the program is sent to the program memory control unit, and the program memory control unit sends the IWR signal and the EWR signal to the internal program memory and the external program memory in place of the IRD signal and the ERD signal. Apply.

【0012】斯くして、外部プログラムメモリでは、I
WR信号、及びCS信号によって外部プログラムメモリ
の先頭アドレスから順次プログラムが書き込まれる。
Thus, in the external program memory, I
The program is sequentially written from the head address of the external program memory by the WR signal and the CS signal.

【0013】このように、従来のプロセッサは或る限ら
れた用途にしか使用されることがないため、内部プログ
ラムメモリ、又は外部プログラムメモリ自体を選択し、
その先頭アドレスからプログラムを読み出したり、また
書き込んだりすることで十分であった。
As described above, since the conventional processor is used only for a limited purpose, the internal program memory or the external program memory itself is selected,
It was sufficient to read or write the program from the start address.

【0014】[0014]

【発明が解決しようとする課題】然し乍ら、今日、プロ
セッサの用途は、例えば留守番電話、携帯電話等に亘っ
て多種多様化してきているものの、従来のプロセッサで
は内部プログラムメモリ、又は外部プログラムの読み出
しアドレスを任意に指定してプログラムを読み出した
り、また書き込んだりすることができないという問題が
あった。
However, although the use of the processor has been diversified today, for example, in an answering machine and a mobile phone, in the conventional processor, the read address of the internal program memory or the external program is read. There is a problem in that the program cannot be read or written by arbitrarily specifying.

【0015】[0015]

【課題を解決するための手段】そこで、本発明は上述の
問題に鑑み為されたものであり、演算処理を行うプロセ
ッサ内に設けられ、プログラムを格納する内部プログラ
ムメモリと、上記プロセッサ外に設けられ、上記プログ
ラムと同種、又は異種のプログラムを格納する外部プロ
グラムメモリと、上記内部プログラムメモリ、又は外部
プログラムメモリの任意のアドレスを指定するプログラ
ムメモリ制御部と、を具備することを特徴とする。
SUMMARY OF THE INVENTION Therefore, the present invention has been made in view of the above-mentioned problems, and is provided in an internal program memory for storing a program, which is provided in a processor for performing arithmetic processing, and provided outside the processor. And an external program memory for storing a program of the same type as or different from the program, and a program memory control unit for designating an arbitrary address of the internal program memory or the external program memory.

【0016】また、本発明は演算処理を行うプロセッサ
内に設けられ、プログラムを格納する内部プログラムメ
モリと、上記プロセッサ外に設けられ、上記プログラム
と同種、又は異種のプログラムを格納する外部プログラ
ムメモリと、上記プロセッサ内に設けられ、所定信号発
生の後、上記内部プログラムメモリ、又は外部プログラ
ムメモリのうち一方を選択するべく、上記プロセッサ外
から印加されるプログラムメモリ切換信号(IN/EX
T信号)、及び上記内部プログラムメモリ、或るいは外
部プログラムメモリのプログラムの読み出し領域を指定
するべく、上記プロセッサ外から印加される実行開始領
域指定信号(EMSEL0信号、EMSEL1信号)の
両信号に応じて、上記内部プログラムメモリ、或るいは
外部プログラムメモリのうちプログラムの読み出しの対
象となるプログラムメモリを選択するプログラムメモリ
選択信号(PCS信号)、及び上記プログラムの読み出
しの対象となるプログラムメモリの任意のアドレスを指
定するアドレス指定信号(PA信号)を上記内部プログ
ラムメモリ、或るいは外部プログラムメモリに印加する
プログラムメモリ制御部と、を具備することを特徴とす
る。
According to the present invention, there is provided an internal program memory which is provided in a processor for performing arithmetic processing and stores a program, and an external program memory which is provided outside the processor and stores a program of the same kind as or a different kind of the program. , A program memory switching signal (IN / EX) applied from the outside of the processor to select one of the internal program memory and the external program memory provided in the processor after a predetermined signal is generated.
T signal) and an execution start area designating signal (EMSEL0 signal, EMSEL1 signal) applied from outside the processor to designate a program reading area of the internal program memory or the external program memory. A program memory selection signal (PCS signal) for selecting a program memory to be read from the internal program memory or an external program memory, and an arbitrary program memory to be read from the program. A program memory control unit for applying an address designation signal (PA signal) for designating an address to the internal program memory or an external program memory.

【0017】更に、本発明は演算処理を行うプロセッサ
内に設けられ、プログラムを格納することが可能な内部
プログラムメモリと、上記プロセッサ外に設けられ、上
記プログラムと同種、又は異種のプログラムを格納する
ことが可能な外部プログラムメモリと、上記プロセッサ
内に設けられ、上記内部プログラムメモリ、又は外部プ
ログラムメモリのうち一方を選択するべく、上記プロセ
ッサ外から印加されるプログラムメモリ切換信号(IN
/EXT信号)、及び上記内部プログラムメモリ、或る
いは外部プログラムメモリに対してプログラムの書き込
み領域を指定するべく、上記プロセッサ外から印加され
る実行開始領域指定信号(EMSEL0信号、EMSE
L1信号)の両信号に応じて、上記内部プログラムメモ
リ、或るいは外部プログラムメモリのうちプログラムの
書き込みの対象となるプログラムメモリを選択するプロ
グラムメモリ選択信号(PCS信号)、及び上記プログ
ラムの書き込みの対象となるプログラムメモリの任意の
アドレスを指定するアドレス指定信号(PA信号)を上
記内部プログラムメモリ、或るいは外部プログラムメモ
リに印加するプログラムメモリ制御部と、を具備するこ
とを特徴とする。
Further, according to the present invention, an internal program memory, which is provided in a processor for performing arithmetic processing and is capable of storing a program, and an external program, provided outside the processor, store programs of the same kind or different kinds. And an external program memory capable of controlling the program memory switching signal (IN) applied from outside the processor to select one of the internal program memory and the external program memory provided in the processor.
/ EXT signal) and the internal program memory or the external program memory to specify a program writing area, the execution start area designating signals (EMSEL0 signal, EMSE) applied from outside the processor.
L1 signal), a program memory selection signal (PCS signal) for selecting a program memory to be programmed from the internal program memory or the external program memory, and the program writing It is characterized by comprising a program memory control unit for applying an address designation signal (PA signal) designating an arbitrary address of a target program memory to the internal program memory or an external program memory.

【0018】[0018]

【作用】上述の手段によれば、外部プログラムメモリ、
又は内部プログラムメモリのうち、選択したプログラム
メモリの任意のアドレスからプログラムの読み出し、又
は書き込みを行なう。
According to the above means, the external program memory,
Alternatively, the program is read or written from an arbitrary address of the selected program memory among the internal program memories.

【0019】[0019]

【実施例】本発明の実施例を図1乃至図3にしたがって
説明し、以下本発明の実施例で使用する信号の種類とそ
の信号の説明を予め表2に定義しておく。尚、IN/E
XT信号は従来と同一であるので、ここでの説明は割愛
する。また、特許請求の範囲に記載した「プログラムメ
モリ切換信号」とはIN/EXT信号を、「実行開始領
域指定信号」とはEMSEL0信号、及びEMSEL1
信号を、また「プログラムメモリ選択信号」とはPCS
信号を、更に「アドレス指定信号」とはPA信号を夫々
表している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. 1 to 3, and the types of signals used in the embodiments of the present invention and a description of the signals are defined in Table 2 in advance. IN / E
Since the XT signal is the same as the conventional one, the explanation is omitted here. Further, the “program memory switching signal” described in the claims is an IN / EXT signal, and the “execution start area designation signal” is an EMSEL0 signal and EMSEL1.
Signal and "program memory selection signal" means PCS
Signals, and "addressing signals" refer to PA signals, respectively.

【0020】[0020]

【表2】 [Table 2]

【0021】図1は本発明のプログラムメモリ制御部を
含むプロセッサ周辺の概略構成図である。
FIG. 1 is a schematic configuration diagram of a peripheral of a processor including a program memory control unit of the present invention.

【0022】図1において、1は次に実行するプログラ
ムのアドレスが格納されているプログラムカウンタ、2
aはプログラムの命令コードなどが格納されている内部
プログラムメモリ、2bは内部プログラムメモリ2aに
て格納されているプログラムと同種、又は異種のプログ
ラムの命令コードなどが格納されている外部プログラム
メモリ、3は内部プログラムメモリ2a、又は外部プロ
グラムメモリ2bに格納されている命令コードを一時的
に読み込んで格納しておくインストラクションレジス
タ、4はインストラクションレジスタ3に格納されてい
る命令コードを解読するインストラクションデコーダ、
5はイミディエートデータが格納されているイミディエ
ートデータレジスタ、6は演算データが格納されている
データメモリ、7はデータメモリ6におけるデータのリ
ード/ライトの際のアドレスを指定するアドレスレジス
タ、8はインストラクションデコーダ4で解読された命
令コードにしたがって、データメモリ6の演算データを
用い乍ら、演算処理を実行する演算部、9はインストラ
クションデコーダ4にて解読された命令にしたがってデ
ータバスを介して送出されてくる演算データを格納する
データレジスタ、10は演算部8にて行われた演算結果
を累算格納するアキュムレータ、11はIN/EXT信
号、及びEMSEL0信号、EMSEL1信号にしたが
って、PCS信号によって内部プログラムメモリ2a、
又は外部プログラムメモリ2bを選択すると共に、内部
プログラムメモリ2a、又は外部プログラムメモリ2b
のプログラムの読み出し、或るいは書き込みの際のアド
レスを指定するプログラムメモリ制御部である。
In FIG. 1, 1 is a program counter in which the address of the program to be executed next is stored, 2
a is an internal program memory in which instruction codes of programs are stored, 2b is an external program memory in which instruction codes of programs of the same type or different types from the programs stored in the internal program memory 2a are stored, 3 Is an instruction register for temporarily reading and storing the instruction code stored in the internal program memory 2a or the external program memory 2b, 4 is an instruction decoder for decoding the instruction code stored in the instruction register 3,
Reference numeral 5 is an immediate data register in which immediate data is stored, 6 is a data memory in which operation data is stored, 7 is an address register for designating an address when reading / writing data in the data memory 6, and 8 is an instruction decoder. According to the instruction code decoded in 4, the arithmetic unit for executing the arithmetic processing by using the arithmetic data in the data memory 6, 9 is transmitted via the data bus in accordance with the instruction decoded by the instruction decoder 4. Data register for storing the calculation data, 10 is an accumulator for accumulating and storing the calculation result performed by the calculation unit 8, 11 is an IN / EXT signal, and an internal program memory by the PCS signal according to the EMSEL0 signal and the EMSEL1 signal. 2a,
Alternatively, the external program memory 2b is selected and the internal program memory 2a or the external program memory 2b is selected.
Is a program memory control unit for designating an address for reading or writing the program.

【0023】ここで、IN/EXT信号による内部プロ
グラムメモリ2a、又は外部プログラムメモリ2bの選
択、及びEMSEL0信号、EMSEL1信号の組み合
わせによる内部プログラムメモリ2a、又は外部プログ
ラムメモリ2bの読み出し開始アドレス、或るいは書き
込み開始アドレスをまとめると表3のようになる。
Here, the selection of the internal program memory 2a or the external program memory 2b by the IN / EXT signal and the read start address of the internal program memory 2a or the external program memory 2b by the combination of the EMSEL0 signal and the EMSEL1 signal, or Table 3 shows the write start addresses.

【0024】[0024]

【表3】 [Table 3]

【0025】ここで、図1の構成にしたがって、内部プ
ログラムメモリ2aからプログラムを読み出してから演
算部8での演算処理までの概略動作を説明する。
Here, according to the configuration of FIG. 1, a schematic operation from the reading of the program from the internal program memory 2a to the arithmetic processing in the arithmetic unit 8 will be described.

【0026】まず、プログラムカウンタ1のアドレス
は、クロックの立ち上がりに同期し乍ら、次に実行され
る命令が格納されている内部プログラムメモリ2aのア
ドレスを生成する。
First, the address of the program counter 1 is synchronized with the rising edge of the clock, and the address of the internal program memory 2a in which the instruction to be executed next is stored is generated.

【0027】このプログラムカウンタ1のアドレスにし
たがって、プログラムの命令コードが内部プログラムメ
モリ2aからインストラクションレジスタ3に送出さ
れ、インストラクションレジスタ3は斯かる命令コード
をロードし、その命令コードはインストラクションデコ
ーダ4、及びイミディエ−トデータレジスタ5に送出さ
れる。
In accordance with the address of the program counter 1, the instruction code of the program is sent from the internal program memory 2a to the instruction register 3, the instruction register 3 loads the instruction code, and the instruction code is read by the instruction decoder 4 and It is sent to the immediate data register 5.

【0028】次に、インストラクションデコーダ4はア
ドレスレジスタ7に対してアドレスのインクリメント、
又はデクリメント等の制御指令を送出する。これにした
がって、アドレスレジスタ7からアドレスデータがデー
タメモリ6に送出され、このアドレスデータに対応する
データメモリ6のデータが読み出された後、そのデータ
はデータバスを介してデータレジスタ9等に送出され
る。
Next, the instruction decoder 4 increments the address to the address register 7,
Alternatively, a control command such as decrement is sent. According to this, the address data is sent from the address register 7 to the data memory 6, the data of the data memory 6 corresponding to this address data is read out, and then the data is sent to the data register 9 or the like via the data bus. To be done.

【0029】演算部8はデータレジスタ9に格納されて
いる演算データを用いて演算処理を行ない、この処理結
果はアキュムレータ10に一時的に格納された後、デー
タメモリ6に適宜送出・格納される。
The arithmetic unit 8 performs arithmetic processing using the arithmetic data stored in the data register 9. The processing result is temporarily stored in the accumulator 10 and then sent / stored in the data memory 6 as appropriate. .

【0030】更に、演算処理を続ける場合には、データ
メモリ6に格納されている演算データがデータレジスタ
9に送出され、演算部8はこの演算データを用い乍ら、
演算処理を続けて行ない、このときの演算最終結果はア
キュムレータ10からデータメモリ6に格納されること
によって、一連の演算処理を終了する。
Further, when the arithmetic processing is continued, the arithmetic data stored in the data memory 6 is sent to the data register 9, and the arithmetic unit 8 uses this arithmetic data.
The arithmetic processing is continued and the final arithmetic result at this time is stored in the data memory 6 from the accumulator 10 to complete the series of arithmetic processing.

【0031】次に、内部プログラムメモリ2a、又は外
部プログラムメモリ2bに格納されているプログラムを
予め設定した任意のアドレスから読み出し、或るいは書
き込む際に用いられる信号の接続関係を詳述する。
Next, the connection relationship of signals used when reading or writing a program stored in the internal program memory 2a or the external program memory 2b from an arbitrary preset address will be described in detail.

【0032】図1において、プログラムメモリ制御部1
1はRESET信号によるリセット期間中にプロセッサ
外から印加されるIN/EXT信号の種類に応じて、内
部プログラムメモリ2a、又は外部プログラムメモリ2
bを選択するPCS(プログラムチップセレクト)信号
を内部プログラムメモリ2a、又は外部プログラムメモ
リ2bに送出する。
In FIG. 1, the program memory control unit 1
1 is the internal program memory 2a or the external program memory 2 depending on the type of IN / EXT signal applied from outside the processor during the reset period by the RESET signal.
A PCS (program chip select) signal for selecting b is sent to the internal program memory 2a or the external program memory 2b.

【0033】これと共に、プログラムメモリ制御部11
はプロセッサ外から印加されるEMSEL0信号、及び
EMSEL1信号、並びにPA(プログラムアドレス)
信号、PRD(プログラムリード)信号、PWR(プロ
グラムライト)信号によって選択されたプログラムメモ
リの命令実行開始アドレスを指定することができるよう
に構成されている。
At the same time, the program memory controller 11
Is the EMSEL0 signal and EMSEL1 signal applied from outside the processor, and PA (program address)
The instruction execution start address of the program memory selected by the signal, the PRD (program read) signal, and the PWR (program write) signal can be designated.

【0034】以下では、外部プログラムメモリ2bの4
000番地からプログラムを読み出す際の動作を図2の
タイミングチャートにしたがって(C)欄で説明し、ま
た外部プログラムメモリ2bの4000番地にプログラ
ムを書き込む際の動作を図3のタイミングチャートにし
たがって(D)欄で説明する。 (C)外部プログラムメモリ2bからのプログラムの読
み出し まず、プログラムメモリ制御部11に印加されるIN/
EXT信号が“1”、EMSEL0信号が“0”、及び
EMSEL1信号が“0”に夫々設定されると、プログ
ラムカウンタ1で発生されるクロック(以下、CLKと
いう。)aに同期して、外部プログラムメモリ2bの選
択命令がプログラムメモリ制御部11に印加される。こ
れと共に、プログラムカウンタ1から送出されるPA信
号によって外部プログラムメモリ2bの命令実行開始ア
ドレス4000番地が指定される(図2中のPA信号の
d参照。)。尚、この時点では単にPA信号によって外
部プログラムメモリ2bの命令実行開始アドレス400
0番地が指定されるだけである。
In the following, 4 of the external program memory 2b will be used.
The operation at the time of reading the program from the address 000 will be described in the section (C) according to the timing chart of FIG. 2, and the operation at the time of writing the program at the address 4000 of the external program memory 2b will be described in accordance with the timing chart of FIG. ) Column. (C) Reading of Program from External Program Memory 2b First, IN / applied to the program memory control unit 11
When the EXT signal is set to "1", the EMSEL0 signal is set to "0", and the EMSEL1 signal is set to "0", respectively, in synchronization with the clock (hereinafter, referred to as CLK) a generated by the program counter 1, the external The selection command for the program memory 2b is applied to the program memory control unit 11. At the same time, the PA signal sent from the program counter 1 specifies the instruction execution start address 4000 of the external program memory 2b (see the PA signal d in FIG. 2). At this point, the instruction execution start address 400 of the external program memory 2b is simply changed by the PA signal.
Only address 0 is specified.

【0035】次に、プログラムカウンタ1で発生される
CLKbに同期して、プログラムメモリ制御部11から
送出されるPCS信号、及びPRD信号が“0”に設定
されることによって、外部プログラムメモリ2bが選択
される。
Next, in synchronization with CLKb generated by the program counter 1, the PCS signal and the PRD signal sent from the program memory control unit 11 are set to "0", so that the external program memory 2b is stored. To be selected.

【0036】この結果、外部プログラムメモリ2bの命
令実行開始アドレス4000番地から順次命令コードが
PD信号によって外部プログラムバスを介して、インス
トラクションレジスタ3に送出され、演算部8で命令が
実行される。 (D)外部プログラムメモリ2bに対するプログラムの
書き込み まず、プログラムメモリ制御部11に印加されるIN/
EXT信号が“1”、EMSEL0信号が“0”、及び
EMSEL1信号が“0”に夫々設定されると、外部プ
ログラムメモリ2bの選択命令がプログラムメモリ制御
部11に印加される。
As a result, the instruction code is sequentially sent from the instruction execution start address 4000 of the external program memory 2b to the instruction register 3 by the PD signal via the external program bus, and the instruction is executed by the arithmetic unit 8. (D) Writing of Program to External Program Memory 2b First, IN / applied to the program memory control unit 11
When the EXT signal is set to "1", the EMSEL0 signal is set to "0", and the EMSEL1 signal is set to "0", the selection command of the external program memory 2b is applied to the program memory control unit 11.

【0037】次に、プログラムカウンタ1で発生される
CLKeに同期して、プログラムカウンタ1から送出さ
れるPA信号によって外部プログラムメモリ2bの命令
実行開始アドレス0001番地が指定され、外部プログ
ラムメモリ2bから命令コードが読み出される。この命
令コードはプログラムの書き込み命令であり、インスト
ラクションレジスタ3を介して、インストラクションデ
コーダ4に送出される。
Next, in synchronization with CLKe generated by the program counter 1, the PA signal transmitted from the program counter 1 specifies the instruction execution start address 0001 of the external program memory 2b, and the instruction from the external program memory 2b is designated. The code is read. This instruction code is a program write instruction, and is sent to the instruction decoder 4 via the instruction register 3.

【0038】CLKfに同期して、IN/EXT信号
“1”によって、プログラムメモリ制御部11から送出
されるPCS信号が一旦アクティブローとなることによ
って外部プログラムメモリ2bを選択する。これと共
に、EMSEL0信号が“0”、及びEMSEL1信号
が“0”によって、プログラムカウンタ1から送出され
るPA信号によって外部プログラムメモリ2bの命令実
行開始アドレス4000番地が指定される。これと共に
CLKfに同期してPWR信号が一旦アクティブローと
なり、プログラムの書き込み可能状態となる。
In synchronization with CLKf, the IN / EXT signal "1" causes the PCS signal sent from the program memory control unit 11 to once become active low, thereby selecting the external program memory 2b. At the same time, when the EMSEL0 signal is "0" and the EMSEL1 signal is "0", the PA signal sent from the program counter 1 specifies the instruction execution start address 4000 of the external program memory 2b. At the same time, the PWR signal becomes active low once in synchronization with CLKf, and the program can be written.

【0039】この結果、外部プログラムメモリ2bの命
令実行開始アドレス4000番地から命令コードがPD
信号によって外部プログラムバスを介して、インストラ
クションレジスタ3に送出され、演算部8で命令が実行
される。
As a result, the instruction code is PD from the instruction execution start address 4000 in the external program memory 2b.
The signal is sent to the instruction register 3 via the external program bus, and the arithmetic unit 8 executes the instruction.

【0040】ところで、上述の実施例ではリセット期間
中にIN/EXT信号が“1”、EMSEL0が
“0”、及びEMSEL1が“0”のときに外部プログ
ラムメモリ2bの4000番地からプログラムの読み出
し、及び書き込みの動作を述べたが、これだけには限ら
れず、表2に示すようにIN/EXT信号、EMSEL
0信号、及びEMSEL1信号の設定によって、外部プ
ログラムメモリ2bのプログラム実行開始アドレスを
“8000”、“C000”、及び“0”に設定するこ
とができる。
In the above embodiment, during the reset period, when the IN / EXT signal is "1", EMSEL0 is "0", and EMSEL1 is "0", the program is read from the 4000th address of the external program memory 2b. Although the write operation has been described, the present invention is not limited to this, and as shown in Table 2, IN / EXT signal, EMSEL, and
The program execution start address of the external program memory 2b can be set to "8000", "C000", and "0" by setting the 0 signal and the EMSEL1 signal.

【0041】[0041]

【発明の効果】以上の説明から明らかなように、本発明
によればプロセッサ内に設けられた内部プログラムメモ
リの他に、そのプロセッサ外に外部プログラムメモリを
有するプロセッサにおいて所定信号発生後のプログラム
の実行に当って外部プログラムメモリ、又は内部プログ
ラムメモリのうち一方を選択することができると共に、
外部プログラムメモリが選択された場合にはその外部プ
ログラムメモリのプログラムの実行開始を予め設定した
アドレスから任意に行なうことができる結果、複数種の
プログラムが内部プログラムメモリ、又は外部プログラ
ムメモリに存在する場合にプログラムを使用するに際し
ての多様性を向上させることができる。
As is apparent from the above description, according to the present invention, in addition to the internal program memory provided in the processor, a program having an external program memory outside the processor can be used to store the program after generation of a predetermined signal. One of external program memory or internal program memory can be selected for execution,
When an external program memory is selected, execution of the program in the external program memory can be arbitrarily started from a preset address, and as a result, multiple types of programs exist in the internal program memory or the external program memory. You can improve the variety of using the program.

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

【図1】本発明のプログラムメモリ制御部を含むプロセ
ッサ周辺の概略構成図である。
FIG. 1 is a schematic configuration diagram of a peripheral of a processor including a program memory control unit of the present invention.

【図2】本発明に係る外部プログラムメモリ2bのプロ
グラムの読み出しに関するタイミングチャートである。
FIG. 2 is a timing chart regarding reading of a program from an external program memory 2b according to the present invention.

【図3】本発明に係る外部プログラムメモリ2bのプロ
グラムの書き込みに関するタイミングチャートである。
FIG. 3 is a timing chart regarding writing of a program in an external program memory 2b according to the present invention.

【図4】従来の、外部プログラムメモリを備えているプ
ロセッサ周辺の概略構成図である。
FIG. 4 is a schematic configuration diagram of a peripheral of a processor including an external program memory according to the related art.

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

1 プログラムカウンタ 2a 内部プログラムメモリ 2b 外部プログラムメモリ 3 インストラクションレジスタ 4 インストラクションデコーダ 5 イミディエートデータレジスタ 6 データメモリ 7 アドレスレジスタ 8 演算部 9 データレジスタ 10 アキュムレータ 11 プログラムメモリ制御部 1 Program Counter 2a Internal Program Memory 2b External Program Memory 3 Instruction Register 4 Instruction Decoder 5 Immediate Data Register 6 Data Memory 7 Address Register 8 Operation Unit 9 Data Register 10 Accumulator 11 Program Memory Control Unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 吉田 昭 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Akira Yoshida 2-5-5 Keihan Hondori, Moriguchi City, Osaka Sanyo Electric Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 演算処理を行うプロセッサ内に設けら
れ、プログラムを格納する内部プログラムメモリと、上
記プロセッサ外に設けられ、上記プログラムと同種、又
は異種のプログラムを格納する外部プログラムメモリ
と、上記プロセッサ内に設けられ、上記内部プログラム
メモリ、又は外部プログラムメモリの任意のアドレスを
指定するプログラムメモリ制御部と、を具備することを
特徴とする外部プログラムメモリを有するプロセッサ。
1. An internal program memory for storing a program, which is provided in a processor that performs arithmetic processing, an external program memory, which is provided outside the processor, for storing a program of the same type or a different type of the program, and the processor. A processor having an external program memory, comprising: a program memory control unit which is provided inside and which specifies an arbitrary address of the internal program memory or the external program memory.
【請求項2】 演算処理を行うプロセッサ内に設けら
れ、プログラムを格納する内部プログラムメモリと、上
記プロセッサ外に設けられ、上記プログラムと同種、又
は異種のプログラムを格納する外部プログラムメモリ
と、上記プロセッサ内に設けられ、所定信号発生の後、
上記内部プログラムメモリ、又は外部プログラムメモリ
のうち一方を選択するべく、上記プロセッサ外から印加
されるプログラムメモリ切換信号(IN/EXT信
号)、及び上記内部プログラムメモリ、或るいは外部プ
ログラムメモリのプログラムの読み出し領域を指定する
べく、上記プロセッサ外から印加される実行開始領域指
定信号(EMSEL0信号、EMSEL1信号)の両信
号に応じて、上記内部プログラムメモリ、或るいは外部
プログラムメモリのうちプログラムの読み出しの対象と
なるプログラムメモリを選択するプログラムメモリ選択
信号(PCS信号)、及び上記プログラムの読み出しの
対象となるプログラムメモリの任意のアドレスを指定す
るアドレス指定信号(PA信号)を上記内部プログラム
メモリ、或るいは外部プログラムメモリに印加するプロ
グラムメモリ制御部と、を具備することを特徴とする外
部プログラムメモリを有するプロセッサ。
2. An internal program memory for storing a program, which is provided in a processor that performs arithmetic processing, an external program memory, which is provided outside the processor, for storing a program of the same kind as or a different kind of the program, and the processor. Is provided inside, and after the predetermined signal is generated,
A program memory switching signal (IN / EXT signal) applied from outside the processor to select one of the internal program memory and the external program memory, and the program of the internal program memory or the external program memory. In response to both signals of the execution start area designating signal (EMSEL0 signal, EMSEL1 signal) applied from outside the processor to designate the reading area, the program reading from the internal program memory or the external program memory is performed. A program memory selection signal (PCS signal) for selecting a target program memory and an address designation signal (PA signal) for designating an arbitrary address of the program memory as a target for reading the program are used as the internal program memory, or Is external Processor with external program memory, characterized by comprising: a program memory controller applied to the program memory.
【請求項3】 上記所定信号とはリセット信号、又はト
リガー信号であることを特徴とする請求項2記載の外部
プログラムメモリを有するプロセッサ。
3. The processor having an external program memory according to claim 2, wherein the predetermined signal is a reset signal or a trigger signal.
【請求項4】 演算処理を行うプロセッサ内に設けら
れ、プログラムを格納することが可能な内部プログラム
メモリと、上記プロセッサ外に設けられ、上記プログラ
ムと同種、又は異種のプログラムを格納することが可能
な外部プログラムメモリと、上記プロセッサ内に設けら
れ、上記内部プログラムメモリ、又は外部プログラムメ
モリのうち一方を選択するべく、上記プロセッサ外から
印加されるプログラムメモリ切換信号(IN/EXT信
号)、及び上記内部プログラムメモリ、或るいは外部プ
ログラムメモリに対してプログラムの書き込み領域を指
定するべく、上記プロセッサ外から印加される実行開始
領域指定信号(EMSEL0信号、EMSEL1信号)
の両信号に応じて、上記内部プログラムメモリ、或るい
は外部プログラムメモリのうちプログラムの書き込みの
対象となるプログラムメモリを選択するプログラムメモ
リ選択信号(PCS信号)、及び上記プログラムの書き
込みの対象となるプログラムメモリの任意のアドレスを
指定するアドレス指定信号(PA信号)を上記内部プロ
グラムメモリ、或るいは外部プログラムメモリに印加す
るプログラムメモリ制御部と、を具備することを特徴と
する外部プログラムメモリを有するプロセッサ。
4. An internal program memory provided in a processor for performing arithmetic processing and capable of storing a program, and an external program provided outside the processor and capable of storing a program of the same type or a different type from the program. External program memory and a program memory switching signal (IN / EXT signal) applied from outside the processor to select one of the internal program memory and the external program memory provided in the processor, and Execution start area designation signals (EMSEL0 signal, EMSEL1 signal) applied from outside the processor to designate a program writing area to the internal program memory or the external program memory.
In accordance with both signals, a program memory selection signal (PCS signal) for selecting a program memory to be written in the internal program memory or an external program memory, and an object to be written in the program. An external program memory, characterized by comprising: an address designating signal (PA signal) designating an arbitrary address of the program memory; Processor.
JP9653194A 1994-05-10 1994-05-10 Processor provided with external program memory Pending JPH07302222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9653194A JPH07302222A (en) 1994-05-10 1994-05-10 Processor provided with external program memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9653194A JPH07302222A (en) 1994-05-10 1994-05-10 Processor provided with external program memory

Publications (1)

Publication Number Publication Date
JPH07302222A true JPH07302222A (en) 1995-11-14

Family

ID=14167718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9653194A Pending JPH07302222A (en) 1994-05-10 1994-05-10 Processor provided with external program memory

Country Status (1)

Country Link
JP (1) JPH07302222A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107209721A (en) * 2015-02-20 2017-09-26 高通股份有限公司 Local and non-local memory adaptive memory is accessed

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107209721A (en) * 2015-02-20 2017-09-26 高通股份有限公司 Local and non-local memory adaptive memory is accessed

Similar Documents

Publication Publication Date Title
JPH07302222A (en) Processor provided with external program memory
JP2001195242A5 (en) Data processing system and initialization method
JP3530886B2 (en) Microcontroller
US6393498B1 (en) System for reducing processor workloads with memory remapping techniques
US20030181994A1 (en) Microprocessor performing efficient external bus access
JP3540553B2 (en) Microcontroller address reset circuit
JPH0713869A (en) Data processing system with dynamic address converting function
JP2988512B2 (en) Direct flash memory access device and direct flash memory access method
JPH06110506A (en) Comment storage method for programmable controller
JPS61190386A (en) Display control system
JPH0512107A (en) Program execution system
JPS61208542A (en) Microprogram control system
JPH09160528A (en) Micro-controller
JPS59114622A (en) Initial microprogram loading system
JPH01224835A (en) Microprogram controller
JPH05134921A (en) Memory space expanding system
JPH01269140A (en) Memory extending circuit
JPH01200450A (en) Memory extending circuit
JPH05127979A (en) Memory address space extending device
JPS63184833A (en) Microcomputer
JPH04195454A (en) Microcomputer device
JPH0836522A (en) Memory control system
JPH03189726A (en) Data processor
JPH04199208A (en) System for controlling resetting of memory
JPH02259943A (en) Arithmetic controller with working area