JPH0535637A - Microprocessor control circuit - Google Patents

Microprocessor control circuit

Info

Publication number
JPH0535637A
JPH0535637A JP18670991A JP18670991A JPH0535637A JP H0535637 A JPH0535637 A JP H0535637A JP 18670991 A JP18670991 A JP 18670991A JP 18670991 A JP18670991 A JP 18670991A JP H0535637 A JPH0535637 A JP H0535637A
Authority
JP
Japan
Prior art keywords
microprocessor
control
circuit
control object
rom
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
JP18670991A
Other languages
Japanese (ja)
Inventor
Akiko Komatsuda
晃樹子 小松田
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
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 filed Critical NEC Corp
Priority to JP18670991A priority Critical patent/JPH0535637A/en
Publication of JPH0535637A publication Critical patent/JPH0535637A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To perform the DMA transfer of necessary control object selecting circuit information to a control object selecting circuit from other ROM and to change a control object circuit even after starting the operation, when it becomes necessary to select the control object circuit of the assembling different at the time of starting the operation. CONSTITUTION:The above circuit has a microprocessor 1, plural ROMs 2 and 3 to supply, to the microprocessor, a control instruction to control by the microprocessor 1, a circuit 4 which becomes the control object of the microprocessor, a DMA 5 to perform directly the memory transfer between the control object circuits of the microprocessor by the instruction of the microprocessor 1 while it is the control object of the microprocessor 1, and an electrically writable programmable logical circuit 6 to select the circuit which becomes the control object of the microprocessor by the instruction from the microprocessor.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサ制
御回路に関し、特にマイクロプロセッサの運用開始後に
おいてもマイクロプロセッサ処理の変更ができるマイク
ロプロセッサ制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor control circuit, and more particularly to a microprocessor control circuit that can change the microprocessor processing even after the microprocessor starts operating.

【0002】[0002]

【従来の技術】従来のマイクロプロセッサ制御回路は図
2に示すように、マイクロプロセッサ21と、マイクロ
プロセッサ21が制御を行うための制御命令をマイクロ
プロセッサ21に供給するROM22と、マイクロプロ
セッサ21の制御対象となる回路RAM23と、マイク
ロプロセッサ21からのアドレス信号26と制御信号2
7を解読しマイクロプロセッサ21の制御対称を選択す
るための制御対象選択回路24とから構成される。ここ
で制御対象選択回路24はマイクロプロセッサ21から
のアドレス信号26の一部と制御信号27を解読して選
択信号28又は29を出力し、制御対象とする回路のみ
をマイクロプロセッサの制御が受けられる状態にする働
きを持つ。
2. Description of the Related Art As shown in FIG. 2, a conventional microprocessor control circuit includes a microprocessor 21, a ROM 22 for supplying control instructions to the microprocessor 21 for control, and a control for the microprocessor 21. Target circuit RAM 23, address signal 26 and control signal 2 from microprocessor 21
7 and a control target selection circuit 24 for selecting the control symmetry of the microprocessor 21. Here, the control target selection circuit 24 decodes a part of the address signal 26 and the control signal 27 from the microprocessor 21 and outputs a selection signal 28 or 29, so that only the circuit to be controlled can be controlled by the microprocessor. It has a function to make a state.

【0003】マイクロプロセッサ21はそのマイクロプ
ロセッサに固有のマイクロプロセッサ実行条件が成立す
ると、まず実行開始アドレスを出力する。通常実行開始
アドレスにはマイクロプロセッサ21が制御を行なうた
めの制御命令をマイクロプロセッサ21に供給するRO
M22を制御対象として配置するので、この場合には制
御対象選択回路24からROM22に対する制御対象選
択信号28が出力され、ROM22のみがマイクロプロ
セッサによって制御できる状態になる。そこでマイクロ
プロセッサ21はROM22から制御命令を読み出し、
その制御命令が制御対象とする回路を選択するためのア
ドレス信号26と制御信号27を制御対象選択回路24
に対して出力する。制御対象選択回路24はマイクロプ
ロセッサ21からのアドレス信号26と制御信号27を
解読して選択信号29を出力し、RAM23のみをマイ
クロプロセッサが制御できる状態にする。そこでマイク
ロプロセッサ21はRAM23に対し制御を実行し、引
続き次の実行のアドレスのROM22に対する制御対象
選択信号28を出力する。
When the microprocessor execution condition peculiar to the microprocessor 21 is satisfied, the microprocessor 21 first outputs the execution start address. RO which supplies the microprocessor 21 with a control instruction for controlling the microprocessor 21 at the normal execution start address
Since M22 is arranged as a control target, in this case, the control target selection circuit 24 outputs the control target selection signal 28 to the ROM 22, and only the ROM 22 can be controlled by the microprocessor. Therefore, the microprocessor 21 reads the control command from the ROM 22,
An address signal 26 and a control signal 27 for selecting a circuit to be controlled by the control instruction are supplied to the control target selection circuit 24.
Output to. The control target selection circuit 24 decodes the address signal 26 and the control signal 27 from the microprocessor 21 and outputs a selection signal 29, so that only the RAM 23 can be controlled by the microprocessor. Therefore, the microprocessor 21 controls the RAM 23 and then outputs the control target selection signal 28 to the ROM 22 at the next execution address.

【0004】マイクロプロセッサ21はそのマイクロプ
ロセッサにあらかじめ決められているマイクロプロセッ
サ停止条件のいずれかが満たされるまで以上の動作を繰
り返す。そしてマイクロプロセッサ実行開始条件が再び
成立するとあらためて実行開始アドレスに割り当てられ
た制御対象回路であるROM22を選択するためのアド
レス信号26と制御信号27を制御対象選択回路24に
対して出力し、処理を再開する。
The microprocessor 21 repeats the above operation until one of the microprocessor stop conditions predetermined by the microprocessor is satisfied. When the microprocessor execution start condition is again satisfied, the address signal 26 and the control signal 27 for selecting the ROM 22 which is the control target circuit assigned to the execution start address are output to the control target selection circuit 24, and the processing is performed. To resume.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のマイク
ロプロセッサ制御回路では、制御対象選択回路は制御対
象をただ一つ選択しマイクロプロセッサが制御できる状
態としているので、マイクロプロセッサ実行開始条件が
成立したときには実行開始アドレスに配置された回路か
ら常に処理を実行することになり、運用開始後に変更す
ることは不可能であった。
In the conventional microprocessor control circuit described above, the control object selection circuit selects only one control object and puts it in a state in which the microprocessor can control, so that the microprocessor execution start condition is satisfied. At times, the processing is always executed from the circuit arranged at the execution start address, and it is impossible to change the processing after the operation is started.

【0006】[0006]

【課題を解決するための手段】本発明のマイクロプロセ
ッサ制御回路はマイクロプロセッサと、前記マイクロプ
ロセッサが制御を行うための制御指令を前記マイクロプ
ロセッサに供給するROMと、前記マイクロプロセッサ
の制御対称となる回路と、前記マイクロプロセッサの制
御対称である前記マイクロプロセッサの指示により前記
マイクロプロセッサの制御対称回路間での直接メモリ転
送を行うDMAと、前記マイクロプロセッサからの命令
によって前記マイクロプロセッサの制御対称となる回路
を選択するための電気的に書き換え可能なプログラマブ
ル論理回路とを有する。
SUMMARY OF THE INVENTION A microprocessor control circuit of the present invention has a microprocessor, a ROM for supplying a control command for the microprocessor to control, and a control symmetry of the microprocessor. Control symmetry of the microprocessor, which is a control symmetry of the microprocessor, and DMA which performs direct memory transfer between the control symmetry circuit of the microprocessor according to an instruction of the microprocessor, and control symmetry of the microprocessor by an instruction from the microprocessor. And an electrically rewritable programmable logic circuit for selecting a circuit.

【0007】[0007]

【実施例】次に本発明について図面を参照して説明す
る。図1は、本発明の一実施例のブロック図である。図
1の実施例は、マイクロプロセッサ1と、マイクロプロ
セッサ1が制御を行なうための制御命令をマイクロプロ
セッサ1に供給するROM2と、マイクロプロセッサ1
の制御対象となる回路RAM4、ROM3と、マイクロ
プロセッサ1の指示によりマイクロプロセッサの制御対
象回路間での直接メモリ転送を行なうDMA5と、マイ
クロプロセッサ1からの命令によってマイクロプロセッ
サ1からのアドレス信号8と制御信号9を解読しマイク
ロプロセッサ1の制御対象を選択するための電気的に書
き換え可能なプログラマル論理回路を備えた制御対象選
択回路6とを有している。
The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention. In the embodiment of FIG. 1, a microprocessor 1, a ROM 2 for supplying control instructions for the microprocessor 1 to control the microprocessor 1, and a microprocessor 1
Circuit RAM4, ROM3 to be controlled by the microprocessor 1, a DMA 5 for direct memory transfer between the control target circuits of the microprocessor 1 according to an instruction from the microprocessor 1, and an address signal 8 from the microprocessor 1 according to an instruction from the microprocessor 1. The control target selection circuit 6 is provided with an electrically rewritable programmable logic circuit for decoding the control signal 9 and selecting the control target of the microprocessor 1.

【0008】次に本実施例の動作を説明する。マイクロ
プロセッサ1はマイクロプロセッサに固有のマイクロプ
ロセッサ実行条件が成立すると、制御命令をマイクロプ
ロセッサ1に供給するROM2を選択するためのアドレ
ス信号8と制御信号9を制御対象選択回路1に対して出
力する。制御対象選択回路6はアドレス信号8と制御信
号9を解読して対応するROM2のみをマイクロプロセ
ッサ1が制御できる状態にする。そこでマイクロプロセ
ッサ1はROM2から制御命令を読み出し、その制御命
令が制御対象とする回路を選択するためのアドレス信号
8と制御信号9を解読して、対応する制御対象回路、た
とえばRAM1のみをマイクロプロセッサ1が制御でき
る状態にする。そこでマイクロプロセッサ1はRAM1
に対し処理を実行し、引続き次の実行アドレスのROM
2に対する選択信号10を出力する。マイクロプロセッ
サ1はそのマイクロプロセッサにあらかじめ決められて
いるマイクロプロセッサ停止条件のいずれかが満たされ
るまで以上の動作を繰り返す。
Next, the operation of this embodiment will be described. When the microprocessor execution condition peculiar to the microprocessor 1 is satisfied, the microprocessor 1 outputs an address signal 8 and a control signal 9 for selecting the ROM 2 which supplies the control instruction to the microprocessor 1 to the control target selection circuit 1. .. The control target selection circuit 6 decodes the address signal 8 and the control signal 9 and puts only the corresponding ROM 2 into a state in which the microprocessor 1 can control it. Therefore, the microprocessor 1 reads the control command from the ROM 2, decodes the address signal 8 and the control signal 9 for selecting the circuit to be controlled by the control command, and only the corresponding control target circuit, for example, the RAM 1 is processed by the microprocessor. 1 can be controlled. Therefore, microprocessor 1 is RAM1
To the ROM of the next execution address.
The selection signal 10 for 2 is output. The microprocessor 1 repeats the above operation until one of the microprocessor stop conditions predetermined for the microprocessor is satisfied.

【0009】さて、マイクロプロセッサ1の制御対象と
なる回路のうち同じ時間に制御対象となることがあり得
ない回路の組み合わせがあるとき、たとえば、あらかじ
めマイクロプロセッサ1が制御を行うための制御用プロ
グラムとROM3を実行開始アドレスとするための制御
対象選択回路情報が書き込まれているとする。この場合
ROM2の制御用プログラムに基づき運用開始を開始し
た後で必要となった時に、ROM3にあらかじめ書き込
まれた制御用プログラムをマイクロプロセッサ1に供給
できるような制御対象選択回路情報を制御対象選択回路
6に直接メモリ転送するためにDMA5を制御する命令
をあらかじめROM2にえ書き込んでおくことになり、
制御対象選択回路6をダイナミックに書き換えることが
可能となる。
When there is a combination of circuits that can be controlled by the microprocessor 1 that cannot be controlled at the same time, for example, a control program for the microprocessor 1 to control in advance. And control target selection circuit information for setting the ROM 3 as the execution start address is written. In this case, the control target selection circuit information is provided so that the control program previously written in the ROM 3 can be supplied to the microprocessor 1 when it becomes necessary after the start of operation based on the control program in the ROM 2 is started. In order to directly transfer the data to the memory 6, the command for controlling the DMA 5 is written in advance in the ROM 2,
The controlled object selection circuit 6 can be dynamically rewritten.

【0010】すなわち、マイクロプロセッサ1はまずD
MA5に対してROM2のデータ領域にあらかじめ書き
込まれている、たとえばROM3を実行開始アドレスに
配置するための制御対象選択回路情報を制御対象選択回
路6に転送する指示を出す。
That is, the microprocessor 1 first sets D
The MA 5 is instructed to transfer the control target selection circuit information, which is previously written in the data area of the ROM 2, for example, for arranging the ROM 3 at the execution start address, to the control target selection circuit 6.

【0011】次に制御対象選択回路6に対して制御対象
選択信号を出力し制御対象選択回路6を書き込み可能状
態とする。DMA5はROM3から制御対象選択回路情
報を読みだし制御対象選択回路6に直接メモリ転送を行
なう。この時点ではマイクロプロセッサ1はどの制御対
象回路に対してもアクセスが不可能となるが、DMA5
による制御対象選択回路情報が終了するとDMA5はマ
イクロプロセッサ1に対して割り込みを行い処理の終了
をしらせるので、マイクロプロセッサ1は割込処理の実
行アドレスに従って処理を再開する。しかしながら実行
アドレスに配置されている回路はここですでにROM3
であるので、マイクロプロセッサはROM3から順次命
令を読みだし制御対象となる回路、たとえばRAM4に
対して制御を実行する。
Next, a control target selection signal is output to the control target selection circuit 6 to put the control target selection circuit 6 in a writable state. The DMA 5 reads the control target selection circuit information from the ROM 3 and directly transfers the memory to the control target selection circuit 6. At this point, the microprocessor 1 cannot access any control target circuit.
When the control target selection circuit information by is completed, the DMA 5 interrupts the microprocessor 1 to terminate the processing, so that the microprocessor 1 restarts the processing according to the execution address of the interrupt processing. However, the circuit located at the execution address is already ROM3 here.
Therefore, the microprocessor sequentially reads the instructions from the ROM 3 and executes the control on the circuit to be controlled, for example, the RAM 4.

【0012】制御対象選択回路6の書き換え後は、マイ
クロプロセッサ1はそのマイクロプロセッサにあらかじ
め決められているマイクロプロセッサ停止条件が成立
し、そしてマイクロプロセッサ実行開始条件が再び成立
した場合にもこのとき実行開始アドレスに割り合でられ
たROM3の制御命令に従って制御を実行することにな
る。
After the control target selection circuit 6 is rewritten, the microprocessor 1 executes at this time even when a predetermined microprocessor stop condition is satisfied and the microprocessor execution start condition is satisfied again. The control is executed according to the control instruction of the ROM 3 assigned to the start address.

【0013】[0013]

【発明の効果】以上説明したように本発明は、電気的に
書き換え可能なプログラマブル論理回路を備えた制御対
象選択回路とDMAを備えることにより、運用開始時と
異なる組み合わせの制御対象回路選択が必要になった場
合に、他のROMから必要な制御対象選択回路情報を制
御対象選択回路にDMA転送できる。したがって運用時
間であっても制御対象回路を変更できる効果がある。
As described above, according to the present invention, it is necessary to select a control target circuit in a combination different from that at the start of operation by providing a control target selection circuit having an electrically rewritable programmable logic circuit and a DMA. In this case, the necessary control target selection circuit information can be DMA-transferred from another ROM to the control target selection circuit. Therefore, there is an effect that the control target circuit can be changed even during the operation time.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】従来のマイクロプロセッサ制御回路のブロック
図である。
FIG. 2 is a block diagram of a conventional microprocessor control circuit.

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

1,21 マイクロプロセッサ 2,3,22 ROM 4,23 RAM 5 DMA 6,24 制御対象選択回路 7 データ信号 8 アドレス信号 9 制御信号 10〜14 選択信号 1,21 Microprocessor 2,3,22 ROM 4,23 RAM 5 DMA 6,24 Control target selection circuit 7 Data signal 8 Address signal 9 Control signal 10-14 Selection signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 マイクロプロセッサと、前記マイクロプ
ロセッサが制御を行うための制御指令を前記マイクロプ
ロセッサに供給するROMと、前記マイクロプロセッサ
の制御対称となる回路と、前記マイクロプロセッサの制
御対称である前記マイクロプロセッサの指示により前記
マイクロプロセッサの制御対称回路間での直接メモリ転
送を行うDMAと、前記マイクロプロセッサからの命令
によって前記マイクロプロセッサの制御対称となる回路
を選択するための電気的に書き換え可能なプログラマブ
ル論理回路とを有することを特徴とするマイクロプロセ
ッサ制御回路。
1. A microprocessor, a ROM that supplies a control command for the microprocessor to control the microprocessor, a circuit that is control symmetrical to the microprocessor, and a control symmetrical to the microprocessor. DMA for direct memory transfer between control symmetrical circuits of the microprocessor according to instructions of the microprocessor, and electrically rewritable for selecting a circuit which becomes control symmetrical of the microprocessor according to an instruction from the microprocessor. A microprocessor control circuit having a programmable logic circuit.
JP18670991A 1991-07-26 1991-07-26 Microprocessor control circuit Pending JPH0535637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18670991A JPH0535637A (en) 1991-07-26 1991-07-26 Microprocessor control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18670991A JPH0535637A (en) 1991-07-26 1991-07-26 Microprocessor control circuit

Publications (1)

Publication Number Publication Date
JPH0535637A true JPH0535637A (en) 1993-02-12

Family

ID=16193268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18670991A Pending JPH0535637A (en) 1991-07-26 1991-07-26 Microprocessor control circuit

Country Status (1)

Country Link
JP (1) JPH0535637A (en)

Similar Documents

Publication Publication Date Title
US4095268A (en) System for stopping and restarting the operation of a data processor
US6880029B2 (en) Programmable controller
JPH0535637A (en) Microprocessor control circuit
EP0393281A2 (en) Method and apparatus for shadowing memory
JPH0760669A (en) Operation system for industrial machine
JP2731166B2 (en) Programmable controller
JPH05241853A (en) Programmable controller
JP3111911B2 (en) Device with microprocessor
JP3024719B2 (en) Arithmetic processing method of programmable controller
JPS6132105A (en) Program setting device
JPS61282946A (en) Programmable controller
JPH0546212A (en) System setting method for programmable controller
JPH02199535A (en) Microprogram control
JPH1185223A (en) Programmable controller
JPH05334098A (en) Interrupt control method and interrupt control device
JPS6051737B2 (en) Option instruction illegal processing method
JPH0517595B2 (en)
JPS62276630A (en) Data processor
JP2001147802A (en) Image processor
JPH0612319A (en) Microprocessor system
JPS624729B2 (en)
JPH04314101A (en) Sequencer
JPH03233703A (en) Sequence controller
JPH056280A (en) Interruption control system
JPH03164849A (en) Microprocessors and microprocessor systems