JPS62285166A - Address control system for microcomputer - Google Patents

Address control system for microcomputer

Info

Publication number
JPS62285166A
JPS62285166A JP12787986A JP12787986A JPS62285166A JP S62285166 A JPS62285166 A JP S62285166A JP 12787986 A JP12787986 A JP 12787986A JP 12787986 A JP12787986 A JP 12787986A JP S62285166 A JPS62285166 A JP S62285166A
Authority
JP
Japan
Prior art keywords
peripheral
peripheral elements
microprocessor
elements
flip
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
JP12787986A
Other languages
Japanese (ja)
Inventor
Koji Ayada
綾田 耕治
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP12787986A priority Critical patent/JPS62285166A/en
Publication of JPS62285166A publication Critical patent/JPS62285166A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • G06F13/26Handling requests for interconnection or transfer for access to input/output bus using interrupt with priority control

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To give accesses to plural peripheral elements just with the application of a single pair of addresses by using a flip-flop which holds the priority selection results of the peripheral elements when an interruption is accepted from a microprocessor. CONSTITUTION:In an initial setting mode the reset output 18 is set at '1' by the resetting action of a CPU 1 and flip-flops 4 and 5 are reset together with the outputs of OR circuits 8 and 9 set at '1' respectively. Under such conditions, a CPU 1 gives accesses to the peripheral elements and the port address information 19 is outputted. While the output 20 allocated to peripheral elements 2 and 3 of a decoder 6 are set at '1' and at the same time the outputs of AND circuits 10 and 11 are set at '1'. Thus it is possible to give the accesses to both elements 2 and 3 at a time.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔産業上の利用分野〕 六へおけマイクロブロセ9すの入出カポ−ドアドレスの
制御に係り、特に複数の同一アドレス構成の周辺素子に
対して好適な入出カポ−ドアドレス制御方式に関する。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Industrial Field of Application] This invention relates to the control of the input/output coupler addresses of the microprocessor 9 in the sixth section, and is particularly applicable to peripheral elements having a plurality of identical address configurations. The present invention relates to a suitable input/output address control method for use with a computer.

〔従来の技術〕[Conventional technology]

従来の直接ポートアドレス指定方式のマイクロプロセッ
サにおいて、同一種類の複数の周辺素子を制御する方式
として以中の2方式がある。
In conventional microprocessors using direct port addressing, there are two methods for controlling a plurality of peripheral elements of the same type.

第1の方式としては各周辺素子毎に個別アドレスを割り
付けて制御する方式がある。
The first method is to assign an individual address to each peripheral element and control it.

第2の方式としては周辺素子グループに1組のアドレス
を割り付け、かつ外部に選択回路を設けて制御する方式
がある。なお、この種の方式として関連するものには例
えば特開昭56−92620号。
A second method is to allocate a set of addresses to a group of peripheral elements and provide an external selection circuit for control. A related method of this type is, for example, Japanese Patent Application Laid-Open No. 56-92620.

特開昭58−114222号等が挙げられる。Examples include JP-A-58-114222.

〔発明が解決しようとする間聰点〕[The problem that the invention attempts to solve]

上記従来技術の個別アドレス方式は、周辺素子毎にアド
レスが異っているため、入出力命令がそれぞれ異なる。
In the individual addressing method of the prior art described above, the addresses are different for each peripheral element, so the input/output commands are different for each peripheral element.

このため周辺素子の数が多い場合や、周辺素子の制御手
順が複雑な場合、プログラム量が増大するため、プログ
ラムを拡納するメモリ容量が大きくなる。
For this reason, when the number of peripheral elements is large or when the control procedure for the peripheral elements is complicated, the amount of programs increases, and the memory capacity for storing the programs increases.

また上記選択回路方式は、同一アドレスのためプログラ
ム量の増加は大きくないが、周辺素子へのアクセスの前
に選択回路に対する制御が必要となる。このため制御の
時間が増加する。また電源投入時等の周辺素子への初期
設定処理においては周辺素子の数に比例して処理時間が
増大する。
Further, in the selection circuit method described above, since the address is the same, the increase in the amount of programming is not large, but it is necessary to control the selection circuit before accessing the peripheral elements. This increases control time. Further, in initial setting processing for peripheral elements such as when power is turned on, processing time increases in proportion to the number of peripheral elements.

このため応答時間に制限がある周辺素子を複数個、限ら
れたメモリ容量で制御する場合には限界がある。
For this reason, there is a limit when controlling a plurality of peripheral elements each having a limited response time using a limited memory capacity.

本発明の目的は複数の周辺素子に対して、プログラムに
よる選択処理を必要とせず、同一アドレスで制御可能と
する選択回路を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a selection circuit that can control a plurality of peripheral elements using the same address without requiring selection processing by a program.

〔間類点を解決するための手段〕[Means for solving intersimilarities]

上記目的は、ある種の周辺素子においては、マイクロプ
ロセッサから周辺素子へアクセスする場合は、初期時に
周辺素子を初期設定する場合、および周辺素子からのマ
イクロプロセッサに対して処理要求の割込を行なう場合
であることに着目し、マイクロプロセッサからの割込受
付時に周辺素子の優先選択結果を保持するフリップ・フ
ロップを設け、マイクロプロセッサから周辺素子へのア
クセス時に、前記7リツプ・70ツグに値が設定されて
いる場合は対応する周辺素子のみ選択し、前記フリップ
・フロップに値が設定されていない場合はすべての周辺
素子を選択する周辺素子選択回路とすれば、周辺素子に
対して1組のアドレス付与のみでよく、また選択@路に
対してプログラムによる処理が不要のため、達成される
For some types of peripheral devices, the purpose of the above is to access the peripheral device from the microprocessor, to initialize the peripheral device at the time of initialization, and to interrupt processing requests from the peripheral device to the microprocessor. Focusing on this, we provided a flip-flop that holds the priority selection result of the peripheral element when accepting an interrupt from the microprocessor, and when the microprocessor accesses the peripheral element, the value is set in the 7 lip and 70 tug. If the peripheral element selection circuit selects only the corresponding peripheral element if the value is set in the flip-flop, and selects all peripheral elements if the value is not set in the flip-flop, then one set of peripheral elements is selected for the peripheral element. This is achieved because only addressing is required and no program processing is required for the selection@path.

〔作用〕[Effect]

前記のアドレス制御方式は、割込優先選択結果を保持す
るフリップ・フロップに値が設定されていない場合、す
べての周辺素子にアクセスが行なわれるが同一内容の設
定のための出力動作のみであり、周辺素子に対して入力
動作は行なわれないため誤動作することがない。また前
記フリップ・フロップに値が設定されている場合は、周
辺素子に対して人力動作、出力動作を行なうが周辺素子
は1個のみしか選択されていないので誤動作することは
ない。
In the above address control method, if no value is set in the flip-flop that holds the interrupt priority selection result, all peripheral elements are accessed, but only output operations are performed to set the same content. Since no input operation is performed on peripheral elements, there is no possibility of malfunction. Further, when a value is set in the flip-flop, manual operation and output operation are performed on the peripheral elements, but since only one peripheral element is selected, no malfunction occurs.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図により説明する。 An embodiment of the present invention will be described below with reference to FIG.

第1図において、1はマイクロプロセッサ、2.3は周
辺素子、4,5はフリップ・フロップ、6はデコーダ、
7〜9はOR回路、10〜14ハAND回路、15〜1
7はNOT回路をそれぞれ示している。
In FIG. 1, 1 is a microprocessor, 2.3 is a peripheral element, 4 and 5 are flip-flops, 6 is a decoder,
7-9 are OR circuits, 10-14 are AND circuits, 15-1
7 each indicate a NOT circuit.

マイクロプロセッサ1は、周辺素子からの割込要求入力
端子I NTR1周辺素子への割込受付応答出力端子I
NTA、I’71辺素子へのポートアドレ2出力端子A
DH,およびリセット出力端子R8Tを持つ。割込み動
作は割込要求信号がlNTRに入力されることにより行
なわれ、割込受付応答信号をINTAK出力する。周辺
素子へのアクセス動作は、ボートアドレス情報をADH
に出力して行なう。リセット動作は、リセット信号をR
3Tに出力することにより行な5゜ 県im普エク 罵は マイクロプロ+、1.廿への伽込
要求出力端子INT、マイクロプロセッサからのアクセ
ス時のチ、ツブセレクト入力端子C8を持つ。マイクロ
プロセッサへの割込み動作は、割込要求信号をINTに
出力することにより行なう。
The microprocessor 1 has an interrupt request input terminal I from a peripheral element and an interrupt acceptance response output terminal I to the peripheral element NTR1.
Port address 2 output terminal A to NTA, I'71 side element
DH, and a reset output terminal R8T. An interrupt operation is performed by inputting an interrupt request signal to 1NTR, and outputting an interrupt acceptance response signal INTAK. Access operation to peripheral elements uses boat address information as ADH.
Execute by outputting to . Reset operation is performed by sending the reset signal to R.
By outputting to 3T, 5゜prefecture im general excursion is performed by MicroPro+, 1. It has an input request output terminal INT for input, a select input terminal C8 for access from the microprocessor, and a select input terminal C8. An interrupt operation to the microprocessor is performed by outputting an interrupt request signal to INT.

マイクロプロセッサからのアクセスは、チップセレクト
信号がC8に入力されている場合のみ行なえる。
Access from the microprocessor is possible only when the chip select signal is input to C8.

本発明は主に周辺素子のアドレス選択方式に特徴があり
、他については通常のマイクロプロセッサおよび周辺素
子と同様であるので、詳しい説明は省略する。
The present invention is mainly characterized by the address selection method of the peripheral elements, and the other aspects are similar to those of ordinary microprocessors and peripheral elements, so a detailed explanation will be omitted.

次に第1図の構成での動作を説明する。Next, the operation of the configuration shown in FIG. 1 will be explained.

まず初期設定動作ではマイクロプロセッサ1からのリセ
ット処理により、リセット出力18が1となり、フリッ
プ・フaツブ4,5はリセットされ、OR回路8,9の
出力は1となる。この状態でマイクロプロセッサ1より
、周辺素子へのアクセスを行なうと、ポートアドレス情
報19が出力されデコーダ6の周辺素子2,3に割付け
られた出力20が1となり、AND回路10 、11の
出力ばともに1となる。このため周辺素子へのアクセス
は周辺素子2,3に対して同時に行なわれる。
First, in the initial setting operation, the reset output 18 becomes 1 due to the reset processing from the microprocessor 1, the flip-flops 4 and 5 are reset, and the outputs of the OR circuits 8 and 9 become 1. When the microprocessor 1 accesses the peripheral elements in this state, the port address information 19 is output, the output 20 assigned to the peripheral elements 2 and 3 of the decoder 6 becomes 1, and the outputs of the AND circuits 10 and 11 become 1. Both become 1. Therefore, access to the peripheral elements is performed to the peripheral elements 2 and 3 at the same time.

次に周辺素子からの割込み動作では、周辺素子2.5の
割込み要求信号21 、22はOR回路7でオアされマ
イクロプロセッサ1に通知される。
Next, in an interrupt operation from a peripheral element, the interrupt request signals 21 and 22 of the peripheral element 2.5 are ORed by the OR circuit 7 and notified to the microprocessor 1.

マイクロプロセッサ1は割込動作を行ない、割込受付応
答信号23を1とする。AND回路12゜13は優先選
択論理となっているため、フリップ・フロップ4.5に
周辺素子2,3からの割込要求の優先選択結果がセット
され、OR回路8,9の出力は割込優先順位に従ってい
ずれか一方が1となる。この状態でマイクロプロセッサ
1より、周辺素子へのアクセスを行なうと、フリップ・
フロップ4.5の状態に対応した周辺素子2,3のいず
れか1個にアクセスが行なわれる。
The microprocessor 1 performs an interrupt operation and sets the interrupt acceptance response signal 23 to 1. Since the AND circuits 12 and 13 have a priority selection logic, the priority selection results of the interrupt requests from the peripheral elements 2 and 3 are set in the flip-flops 4.5, and the outputs of the OR circuits 8 and 9 are the priority selection logic. One of them becomes 1 according to the priority order. When microprocessor 1 accesses peripheral elements in this state, a flip occurs.
Either one of peripheral elements 2, 3 corresponding to the state of flop 4.5 is accessed.

第2図は上記動作説明を表に示したもので、動作内容と
割込選択フリップ・フロップの状態、および周辺素子へ
のアクセス選択の関係を現わす。
FIG. 2 shows the above operation explanation in a table, showing the relationship between the operation contents, the state of the interrupt selection flip-flop, and access selection to peripheral elements.

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

本発明によれば、マイクロプロセッサかう1数の周辺素
子に対して1組のアドレス付与のみでアクセスが可能と
なるため、プログラム容量の低減の効果がある。また1
組のアドレス付与としてもプログラムによる選択処理を
必要としないため、周辺素子に対して高速にアクセスが
可能である。
According to the present invention, it is possible to access the microprocessor by only assigning one set of addresses to the peripheral elements, which has the effect of reducing the program capacity. Also 1
Since there is no need for selection processing by a program even when assigning a set of addresses, peripheral elements can be accessed at high speed.

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

第1図は本発明の一実施例のマイクロプロセッサと周辺
素子づ構成図、第2図は動作内容と割込選択保持フリッ
プ・フロップの状態および周辺素子アクセスの選択状態
の関係火である。 1・・・マイクロプロセッサ、 2.3・・・周辺素子、 4.5・・・フリップ・フロッグ、 6・・・デコーダ。 1゛+−
FIG. 1 is a block diagram of a microprocessor and peripheral elements according to an embodiment of the present invention, and FIG. 2 is a diagram showing the relationship between the operation contents, the state of the interrupt selection holding flip-flop, and the selection state of peripheral element access. 1...Microprocessor, 2.3...Peripheral element, 4.5...Flip frog, 6...Decoder. 1゛+-

Claims (1)

【特許請求の範囲】[Claims] 1、マイクロプロセッサと、マイクロプロセッサに対し
て割込み機能を持つ同一種類の複数の周辺素子からなる
マイクロコンピュータにおいて、周辺素子からの割込み
時に、マイクロプロセッサからの割込受付応答信号によ
り、周辺素子の優先選択結果を保持するフリップ、フロ
ップを設け、複数の周辺素子に対して1組のアドレスを
付与し、マイクロプロセッサから周辺素子へのアクセス
時、前記フリップ、フロップのいずれかが1の場合は対
応する周辺素子のみを選択し、前記フリップ、フロップ
がすべて0の場合はすべての周辺素子を選択することを
特徴とするマイクロコンピュータのアドレス制御方式。
1. In a microcomputer consisting of a microprocessor and multiple peripheral elements of the same type that have an interrupt function for the microprocessor, when an interrupt is received from a peripheral element, priority is given to the peripheral element by an interrupt acceptance response signal from the microprocessor. A flip or flop is provided to hold the selection result, a set of addresses is assigned to a plurality of peripheral elements, and when the microprocessor accesses the peripheral element, if any of the flips or flops is 1, it corresponds. 1. An address control system for a microcomputer, characterized in that only peripheral elements are selected, and when the flips and flops are all 0, all peripheral elements are selected.
JP12787986A 1986-06-04 1986-06-04 Address control system for microcomputer Pending JPS62285166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12787986A JPS62285166A (en) 1986-06-04 1986-06-04 Address control system for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12787986A JPS62285166A (en) 1986-06-04 1986-06-04 Address control system for microcomputer

Publications (1)

Publication Number Publication Date
JPS62285166A true JPS62285166A (en) 1987-12-11

Family

ID=14970898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12787986A Pending JPS62285166A (en) 1986-06-04 1986-06-04 Address control system for microcomputer

Country Status (1)

Country Link
JP (1) JPS62285166A (en)

Similar Documents

Publication Publication Date Title
KR100385871B1 (en) Interrupt controller
JPH02267634A (en) Interrupt system
JPH0221018B2 (en)
US6141713A (en) Bus arbitrator with a hierarchical control structure
JPH0650493B2 (en) Data processing device
KR920008448B1 (en) Data process
US4250547A (en) Information processing apparatus capable of effecting parallel processings by using a divided common bus
EP0355462B1 (en) Dedicated service processor with inter-channel communication features
US5828891A (en) Multilevel interrupt device
US5287486A (en) DMA controller using a programmable timer, a transfer counter and an or logic gate to control data transfer interrupts
US5581771A (en) Microcomputer having interrupt control circuit to determine priority level
JPS62285166A (en) Address control system for microcomputer
JPH06236291A (en) Peripheral apparatuses at inside and at outside and microcomputer capable of being operated in emulation mode
JP3182906B2 (en) Microcomputer
JPH0443302B2 (en)
JP2619385B2 (en) DMA controller
JP2758257B2 (en) Computer system
US5167027A (en) Apparatus and method for forming a sequencer link for a sequencer controlled by a micro-program
KR940003845B1 (en) Communication path bus selecting method
JPS61282946A (en) Programmable controller
JPS603049A (en) Bus interface apparatus
JPH04346140A (en) Access controller for shared memory
JPS6229813B2 (en)
JPS61267149A (en) Data processor
JPS6227846A (en) Input and output channel