JPH03147046A - Data processor - Google Patents

Data processor

Info

Publication number
JPH03147046A
JPH03147046A JP28618789A JP28618789A JPH03147046A JP H03147046 A JPH03147046 A JP H03147046A JP 28618789 A JP28618789 A JP 28618789A JP 28618789 A JP28618789 A JP 28618789A JP H03147046 A JPH03147046 A JP H03147046A
Authority
JP
Japan
Prior art keywords
data
address
mpu
pair
port
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
JP28618789A
Other languages
Japanese (ja)
Inventor
Yasuhiko Nitta
新田 泰彦
Kazuo Nakamura
和夫 中村
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 JP28618789A priority Critical patent/JPH03147046A/en
Publication of JPH03147046A publication Critical patent/JPH03147046A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the execution speed of a data processor from being deteriorated even if the occurrence frequency of resetting and interruption is increased by setting a pair of data consisting of the address of an I/O port and data which is set in the I/O port in an initial state in a memory from a certain address. CONSTITUTION:In the initial state, MPU 8 sets a state flag in MPU 8, generates an address A and reads a pair of data 10. Then, MPU 8 writes prescribed data 10b in a pair of data 10 in the I/O port 2 which the address 10a of a pair of data 10 designates. Then, a macro instruction is executed. When a resetting signal or a special interruption signal is given to MPU 8 halfway, MPU 8 returns to the initial state after the execution of a processing such as an interruption processing. Thus, the I/O port 2 is initialized and the macro instruction is executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理に関し、特に、外部とのデータの
やりとりを行なうI10ボートを備えたデータ処理装置
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to data processing, and particularly to a data processing device equipped with an I10 port for exchanging data with the outside.

〔従来の技術〕[Conventional technology]

第3図は従来のデータ処理装置を示すブロック系統図で
あり、第4図は第3図のデータ処理装置のメモリの内容
を示す説明図である。
FIG. 3 is a block system diagram showing a conventional data processing device, and FIG. 4 is an explanatory diagram showing the contents of the memory of the data processing device shown in FIG.

まず、第3図および第4図を参照して従来のデータ処理
装置の構成について説明する。第3図において、データ
処理装置1は、I10ボート2により外部制御信号線3
と接続される。これによりデータ処理装置1は、外部制
御信号線3に接続されている外部周辺装置(図示せず)
の制御やデータのやりとりを行なう。
First, the configuration of a conventional data processing device will be explained with reference to FIGS. 3 and 4. In FIG. 3, the data processing device 1 is connected to an external control signal line 3 via an I10 port 2.
connected to. As a result, the data processing device 1 connects to an external peripheral device (not shown) connected to the external control signal line 3.
control and exchange data.

マイクロプロセッサ(以下rMPUJという)4は、例
えば8086のようなMPUであり、内部バス5を通じ
てメモリ6およびI10ボート2と接続されている。そ
してMPU4は、メモリ6に格納されたマクロ命令を読
み込み、このマクロ命令に従って、内部バス5を通じて
行なわれる■10ボート2.MPU4およびメモリ6の
それぞれの間のデータ転送、I10ボート2と外部制御
信号線3の間のデータ転送、そしてMPU4内部でのデ
ータ処理などの動作(これを以下「所定の動作」という
)を行なう。ここで、I10ボート2やメモリ6にはア
ドレスが割り振られている。
A microprocessor (hereinafter referred to as rMPUJ) 4 is, for example, an MPU such as an 8086, and is connected to a memory 6 and an I10 board 2 through an internal bus 5. Then, the MPU 4 reads the macro instruction stored in the memory 6, and according to this macro instruction, 10 votes 2. Performs operations such as data transfer between the MPU 4 and the memory 6, data transfer between the I10 port 2 and the external control signal line 3, and data processing within the MPU 4 (hereinafter referred to as "predetermined operations"). . Here, addresses are assigned to the I10 boat 2 and memory 6.

また第4図はメモリ6の初期設定を示しており、図中の
命令1.命令2.命令3.・・・、命令n・・・はすべ
てマクロ命令である。第4図では、命令1.命令2.命
令3.・・・、命令n、・・・はメモリ6上のアドレス
八より順次格納されている。
Further, FIG. 4 shows the initial setting of the memory 6, and the instructions 1. Command 2. Command 3. ..., instruction n... are all macro instructions. In FIG. 4, command 1. Command 2. Command 3. . . , instructions n, . . . are stored sequentially from address 8 on the memory 6.

次に動作について説明する。ここでは話を簡略化するた
めに、命令1.命令1.命令3.・・・、命令n、・・
・の順番にマクロ命令は実行されるとする。
Next, the operation will be explained. Here, in order to simplify the discussion, we will explain instruction 1. Command 1. Command 3. ..., instruction n, ...
It is assumed that the macro instructions are executed in the order of .

まず初期状態において、MPU4は、MPU4内部の状
態フラグ(図示せず)などを設定した後にアドレスAを
発生させ、メモリ6より命令1を読み込む。そして、命
令1に従って所定の動作を行なった後に、MPU4は、
命令2が格納されているアドレスを発生し、命令2をメ
モリ6より読み出す。以下同様にして命令2.命令3.
・・・とマクロ命令が実行される。
First, in the initial state, the MPU 4 generates an address A after setting a status flag (not shown) inside the MPU 4, and reads an instruction 1 from the memory 6. After performing the predetermined operation according to instruction 1, the MPU 4
An address where instruction 2 is stored is generated, and instruction 2 is read from memory 6. Similarly, command 2. Command 3.
...and the macro instruction is executed.

しかし、途中でリセット信号あるいは特別な割込み信号
がMPU4に与えられた場合、MPU4は、割込み処理
などのある種の処理を行なった後に初期状態に戻るため
、再び命令1.命令2.命令3.・・・、命令n、・・
・の順番にマクロ命令を実行する。
However, if a reset signal or a special interrupt signal is given to the MPU 4 in the middle, the MPU 4 returns to the initial state after performing some kind of processing such as interrupt processing, so the instruction 1. Command 2. Command 3. ..., instruction n, ...
・Execute macro instructions in the order shown.

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

上述の第3図および第4図に示したデータ処理装置にお
いて、MPU4は、リセットやある種の割込みが発生し
たときにMPU4の内部を初期状態に戻すことはできる
が、それに伴って行なわなければいけないそれ以外の部
分の初期設定、例えばI10ボート2の初期設定を行な
うことはできない。そしてI10ポート2の初期設定は
、アドレスAより始まるマクロ命令である命令l、命令
2、命令3.・・・、命令n、・・・によって行なって
いる。このことにより、リセットやある種の割込みの発
生頻度が多くなるにつれて、データ処理装置の実行速度
が低下するという問題が生じる。
In the data processing apparatus shown in FIGS. 3 and 4 above, the MPU 4 can return the internal state of the MPU 4 to its initial state when a reset or a certain type of interrupt occurs, but it is necessary to do this accordingly. It is not possible to initialize other parts, for example, initialize the I10 boat 2. The initial settings of I10 port 2 are macro instructions starting from address A, such as instruction l, instruction 2, instruction 3, and so on. ..., instruction n, .... This causes a problem in that the execution speed of the data processing device decreases as the frequency of occurrence of resets and certain types of interrupts increases.

本発明はこのような点に鑑みてなされたものであり、そ
の目的とするところは、リセットやある種の割込みの発
生頻度が多くなってもデータ処理装置の実行速度が低下
しないデータ処理装置を得ることにある。
The present invention has been made in view of these points, and its purpose is to provide a data processing device in which the execution speed of the data processing device does not decrease even if the frequency of occurrence of resets and certain types of interrupts increases. It's about getting.

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

このような目的を達成するために本発明は、データ入出
力を行なうアドレス付けされた1つ又は複数の入出力部
と、この入出力部に割り当てられたアドレス以外のアド
レスが割り当てられている記憶部と、入出力部および記
憶部に対する読出しおよび書込みを指示する処理部とで
構成されたデータ処理装置において、記憶部は、アドレ
ス値とデータ値とで構成されるデータ対を記憶部の特定
アドレスから少なくとも一対記憶し、処理部は、初期設
定時やある特別な割込み時に記憶部の特定アドレスより
データ対を読み出し、データ値をアドレス値によって指
定される1つ又は複数の入出力部に書き込むようにした
ものである。
In order to achieve such an object, the present invention provides one or more addressed input/output units for inputting and outputting data, and a memory to which an address other than the address assigned to this input/output unit is assigned. In the data processing device, the storage unit stores a data pair consisting of an address value and a data value at a specific address in the storage unit. The processing unit stores at least one pair of data from a specific address in the storage unit at the time of initial setting or a certain special interrupt, and writes the data value to one or more input/output units specified by the address value. This is what I did.

〔作用〕[Effect]

本発明によるデータ処理装置は、メモリ内にI10ボー
トのアドレスと初期状態においてI10ボートに設定す
る所定のデータとから成るデータ対を成るアドレスより
設定しておき、初期状態またはリセットやある種の割込
みが発生したときに、MPUは自動的に上記酸るアドレ
スより上記データ対を読み出してI10ボートに所定の
データを設定する。これにより、必要なマクロ命令を削
ることができ、データ処理装置の処理速度を上げること
ができる。
The data processing device according to the present invention sets in memory a data pair consisting of the address of the I10 boat and predetermined data to be set in the I10 boat in the initial state, and When this occurs, the MPU automatically reads the data pair from the above address and sets predetermined data in the I10 port. This makes it possible to eliminate necessary macro instructions and increase the processing speed of the data processing device.

〔実施例〕 第1図は本発明によるデータ処理装置の一実施例を示す
ブロック系統図であり、第2図は第1図の装置のメモリ
の内容を示す説明図である。
[Embodiment] FIG. 1 is a block system diagram showing an embodiment of a data processing device according to the present invention, and FIG. 2 is an explanatory diagram showing the contents of the memory of the device in FIG. 1.

まず、第1図および第2図を参照して、本発明によるデ
ータ処理装置の一実施例の構成について説明する。なお
、第1図および第2図において、第3図および第4図と
同一部分又は相当部分には同一符号が付してあり、その
説明は省略する。
First, the configuration of an embodiment of a data processing apparatus according to the present invention will be described with reference to FIGS. 1 and 2. In FIGS. 1 and 2, the same or equivalent parts as in FIGS. 3 and 4 are given the same reference numerals, and their explanations will be omitted.

データ処理装置7の処理部としてのMPU8は、通常は
従来のMPU4と同様、メモリ9に格納されたマクロ命
令を読み込み、上記マクロ命令に従って所定の動作を行
なうが、初期状態およびリセットあるいは特別な割込み
状態においての動作が従来とは異なる。
The MPU 8 as a processing unit of the data processing device 7 normally reads macro instructions stored in the memory 9 and performs predetermined operations according to the macro instructions, like the conventional MPU 4. The operation in this state is different from the conventional one.

メモリ9には、メモリ6と同様のアドレスが割り振られ
ている。また、第2図はメモリ9の初期設定を示してお
り、I10ボート2のアドレスと初期状態においてI1
0ボート2に設定する所定のデータとからなるデータ対
10およびマクロ命令である命令l、命令2.命令3.
・・・、命令n、・・・がメモリ9上のアドレス八より
順次格納されている。
The memory 9 is assigned the same address as the memory 6. FIG. 2 shows the initial setting of the memory 9, and the address of the I10 boat 2 and the initial state of the I1
A data pair 10 consisting of predetermined data set to 0 port 2, an instruction 1 which is a macro instruction, an instruction 2 . Command 3.
. . , instructions n, . . . are stored sequentially from address 8 on the memory 9.

次に動作について説明する。ここでも話を簡略化するた
めに、マクロ命令は命令l、命令2.命令3.・・・、
命令n、・・・の順番に実行されるとする。
Next, the operation will be explained. Again, to simplify the discussion, the macro instructions are instruction l, instruction 2, and so on. Command 3. ...,
It is assumed that instructions n, . . . are executed in order.

まず初期状態において、MPU8は、MPU8内部の状
態フラグ(図示せず)などを設定した後にアドレスAを
発生させ、メモリ9より上記データ対10を読み込む。
First, in the initial state, the MPU 8 generates an address A after setting a status flag (not shown) inside the MPU 8, and reads the data pair 10 from the memory 9.

そしてMPU8は、上記データ対IOのアドレス10a
が指定するI10ボート2に上記データ対10の所定の
データ10bを書き込むことにより、I10ポート2の
初期化を達成する。このあとは、従来のデータ処理装置
1と同様に、命令1.命令2.命令3.・・・命令n、
・・・とマクロ命令が実行される。
Then, the MPU 8 selects the address 10a of the data pair IO.
Initialization of the I10 port 2 is achieved by writing the predetermined data 10b of the data pair 10 to the I10 port 2 designated by the I10 port 2. After this, as in the conventional data processing device 1, command 1. Command 2. Command 3. ...Instruction n,
...and the macro instruction is executed.

また、途中でリセット信号あるいは特別な割込み信号が
MPU8に与えられた場合、M P tJ 8は割込み
処理などのある種の処理を行なった後に初期状態に戻る
ため、再びMPU8は、上記動作を繰り返してI10ボ
ート2の初期化およびマクロ命令の実行を行なう。
Furthermore, if a reset signal or a special interrupt signal is given to the MPU 8 during the process, the M P tJ 8 returns to the initial state after performing some kind of processing such as interrupt processing, so the MPU 8 repeats the above operation again. The I10 port 2 is initialized and macro instructions are executed.

なお、上記実施例では、I10ボート2とデータ対lO
が1つずつの例について説明したが、初期化しなければ
ならないI10ボート2の数とデータ対10の数がそろ
っていればよく、それらが複数であっても上記と同様の
効果を奏する。
In addition, in the above embodiment, the I10 boat 2 and the data pair lO
Although an example has been described in which one number of I10 ports 2 and the number of data pairs 10 that must be initialized are the same, it is sufficient that the number of I10 ports 2 and the number of data pairs 10 that must be initialized are the same, and even if there are a plurality of them, the same effect as described above can be achieved.

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

以上説明したように本発明は、アドレス値とデータ値と
で構成されるデータ対を219部の特定アドレスから少
なくとも一対記憶し、初期設定時やある特別な割込み時
に記憶部の特定アドレスよりデータ対を読み出し、デー
タ値をアドレス値によって指定される1つ又は複数の入
出力部に書き込むようにしたことにより、従来は必要で
あったマクロ命令を削ることができ、データ処理装置の
処理速度を上げることができる効果がある。
As explained above, the present invention stores at least one data pair consisting of an address value and a data value from 219 specific addresses, and at the time of initial setting or a certain special interrupt, the data pair is stored from a specific address in the storage section. By reading the data value and writing the data value to one or more input/output units specified by the address value, it is possible to eliminate the macro instructions that were previously required, increasing the processing speed of the data processing device. There is an effect that can be done.

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

第1図は本発明によるデータ処理装置の一実施例を示す
ブロック系統図、第2図は第1図の装置のメモリの初期
設定を示す説明図、第3図は従来のデータ処理装置を示
すブロック系統図、第4図は第3図の装置のメモリの初
期設定を示す説明図である。 2・・弓10ボート、3・・・外部制御信号線、5・・
・内部バス、7・・・データ処理装置、8・・・MPU
、9・・・メモリ。
FIG. 1 is a block system diagram showing an embodiment of a data processing device according to the present invention, FIG. 2 is an explanatory diagram showing initial settings of the memory of the device in FIG. 1, and FIG. 3 shows a conventional data processing device. The block system diagram, FIG. 4, is an explanatory diagram showing the initial setting of the memory of the device of FIG. 3. 2... Bow 10 boats, 3... External control signal line, 5...
・Internal bus, 7...data processing device, 8...MPU
, 9...Memory.

Claims (1)

【特許請求の範囲】 データ入出力を行なうアドレス付けされた1つ又は複数
の入出力部と、この入出力部に割り当てられたアドレス
以外のアドレスが割り当てられている記憶部と、前記入
出力部および前記記憶部に対する読出しおよび書込みを
指示する処理部とで構成されたデータ処理装置において
、 前記記憶部は、アドレス値とデータ値とで構成されるデ
ータ対を前記記憶部の特定アドレスから少なくとも一対
記憶し、前記処理部は、初期設定時やある特別な割込み
時に前記記憶部の前記特定アドレスより前記データ対を
読み出し、前記データ値を前記アドレス値によって指定
される前記1つ又は複数の入出力部に書き込むことを特
徴とするデータ処理装置。
[Scope of Claims] One or more addressed input/output sections that perform data input/output, a storage section to which an address other than the address assigned to this input/output section is assigned, and the input/output section and a processing unit that instructs reading and writing to the storage unit, wherein the storage unit stores at least one data pair consisting of an address value and a data value from a specific address of the storage unit. The processing unit reads the data pair from the specific address of the storage unit at the time of initial setting or a certain special interrupt, and the processing unit reads the data pair from the specific address of the storage unit, and transfers the data value to the one or more input/outputs specified by the address value. A data processing device characterized in that a data processing device writes data to a part.
JP28618789A 1989-11-01 1989-11-01 Data processor Pending JPH03147046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28618789A JPH03147046A (en) 1989-11-01 1989-11-01 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28618789A JPH03147046A (en) 1989-11-01 1989-11-01 Data processor

Publications (1)

Publication Number Publication Date
JPH03147046A true JPH03147046A (en) 1991-06-24

Family

ID=17701076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28618789A Pending JPH03147046A (en) 1989-11-01 1989-11-01 Data processor

Country Status (1)

Country Link
JP (1) JPH03147046A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8274012B2 (en) 2009-02-12 2012-09-25 Kobe Steel, Ltd. Welding control apparatus for pulse arc welding of consumed electrode type, arc length control method for use with the same, and welding system including the welding control apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8274012B2 (en) 2009-02-12 2012-09-25 Kobe Steel, Ltd. Welding control apparatus for pulse arc welding of consumed electrode type, arc length control method for use with the same, and welding system including the welding control apparatus

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
JPH01320564A (en) Parallel processor
US4764896A (en) Microprocessor assisted memory to memory move apparatus
JPS6113629B2 (en)
US6134642A (en) Direct memory access (DMA) data transfer requiring no processor DMA support
JPH03147046A (en) Data processor
US5561818A (en) Microprocessor and data processing system for data transfer using a register file
JPH0713920A (en) Dma transferring method
JPH05242009A (en) Direct memory access device
JPS59218569A (en) Microcomputer
JP2687716B2 (en) Information processing device
JPS60142450A (en) Storage system
SU1683039A1 (en) Device for data processing for multiprocessor system
KR100194263B1 (en) High speed data processing system
JPH0261749A (en) Data transfer device
JPH01266651A (en) Semiconductor memory device
JPH02183342A (en) Interruption controller
JPH06301641A (en) Electronic computer
JPH05334234A (en) High speed dma transferring device
JPH01266642A (en) Memory controller
JPH08161253A (en) Dma control method and dma controller
JPH05159042A (en) Picture processor
JPH02133851A (en) Communication controller
JPH07129519A (en) Dual cpu system
JPH05225115A (en) Microcomputer controller