JPH02136901A - Data processor - Google Patents

Data processor

Info

Publication number
JPH02136901A
JPH02136901A JP29130988A JP29130988A JPH02136901A JP H02136901 A JPH02136901 A JP H02136901A JP 29130988 A JP29130988 A JP 29130988A JP 29130988 A JP29130988 A JP 29130988A JP H02136901 A JPH02136901 A JP H02136901A
Authority
JP
Japan
Prior art keywords
register
processing
interrupt
request
conveyor
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.)
Granted
Application number
JP29130988A
Other languages
Japanese (ja)
Other versions
JP2536102B2 (en
Inventor
Takashi Miyazaki
孝 宮崎
Hajime Sakuma
肇 佐久間
Yukio Maehashi
幸男 前橋
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 JP63291309A priority Critical patent/JP2536102B2/en
Priority to DE89121317T priority patent/DE68905028T2/en
Priority to EP89121317A priority patent/EP0369470B1/en
Priority to US07/438,750 priority patent/US5126944A/en
Publication of JPH02136901A publication Critical patent/JPH02136901A/en
Application granted granted Critical
Publication of JP2536102B2 publication Critical patent/JP2536102B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To realize the highly accurate output control by carrying out a process according to the process form information supplied previously without performing the saving processes of the PC and the PSW in case an interruption process request is received. CONSTITUTION:A data memory 213 stores the process form information which designates a prescribed data process form. A prescribed data process request is given to a CPU 200 from an interruption controller INTC 211 when an interruption request signal is received from a 1st comparing register 101. Then the CPU 200 interrupts an instruction executing process after detecting that a form designating signal 220 points a prescribed data process. Thus the CPU 200 operates a 2nd comparing register 102 and a data memory 213 based on the process form information in order to control the generation of pulses to output ports P0 - P3. As a result, the output control is attained with high accuracy.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、メカ制御におけるパルス出力eこおいて、特
に複数のパルスを連続的に出力するパルス発生装置に関
する8 〔従来の技術〕 昨今、メカ制御においては、マイクロコン・ビ、−タ(
以下、マイコンという)が利用されており、基本的には
、マイコンから出力されるPWM出力パルスに1″って
弁の開閉や、モータの駆動などを直接行なっているのが
一般的である8第6図は、4本のパルス出力を行なう場
合のパルス出カバターン例を示1〜でいる。−数的にパ
ルス出力制御は、何らかの基準信号の発生から、ある時
間の遅れをもってパルスをアクティブ(ハイレベル)に
し、パルス出力がアクティブ(ハイレベル)の期間、メ
カを駆動するという方法?とっている。この場合の、あ
る時間の遅れというのは、パルスを出力するタイミング
を意味し、またパルス出力がアクティブの期間(すなわ
ちアクティブパルス幅)というのは制in量そのものを
意味12てい、56 11下、第7図と第8図ヤ参照し2ながら従来のバノ1
ス発生装置を説明する。第7図は従来のパルス発生装置
のプロ、ツク図、第8図は従来の周辺ハードウェアのフ
ロック図である。
[Detailed Description of the Invention] [Industrial Field of Application] The present invention relates to a pulse generator that continuously outputs a plurality of pulses in pulse output e in mechanical control. [Prior Art] Recently, In mechanical control, microcontrollers (
A microcomputer (hereinafter referred to as a microcomputer) is used, and basically, the PWM output pulse output from the microcomputer is used to directly open and close valves, drive motors, etc.8 Fig. 6 shows examples of pulse output patterns when four pulses are output. - Numerically, pulse output control activates pulses after a certain time delay from the generation of some reference signal. The mechanism is driven during the period when the pulse output is active (high level).In this case, a certain time delay means the timing to output the pulse, and the pulse output is active (high level). The period during which the output is active (that is, the active pulse width) refers to the amount of control in itself.
The gas generating device will be explained below. FIG. 7 is a block diagram of a conventional pulse generator, and FIG. 8 is a block diagram of conventional peripheral hardware.

第7図は、CP U 250、アドレスバス214、デ
ータバス205、INTC240、ノログラムメモリ2
12、データメモリ213.周辺バードウ、r−’72
22から構成されている。CPU250は、算術論理演
算二・−ユツト(以下A 、T、 Uと記す)201、
テ゛、/ボラリレジスタ202、M用しジスタ203、
アドレスバッファ204 (図ではABで表現されてい
5)、マイクロアトL/ス(以子μアドレスと記す)生
成部206、μROM209、PC207、PSW20
8、夕・イミング制御部230かも構成される。またI
NTC(割り込みコントローラ)240には、外部入力
信冒260が受は入れらることによりセットする割り込
み要求フラグレジスタ215があり、タイミ゛7グ制御
部230に対し、割り込み要求信821Bを出力する。
FIG. 7 shows the CPU 250, address bus 214, data bus 205, INTC 240, and Norogram memory 2.
12, data memory 213. Surrounding Birdow, r-'72
It consists of 22. The CPU 250 includes an arithmetic and logic operation unit (hereinafter referred to as A, T, and U) 201,
/volatile register 202, M register 203,
Address buffer 204 (represented by AB in the figure 5), microatto L/S (hereinafter referred to as μ address) generation unit 206, μROM 209, PC 207, PSW 20
8. An evening/timing control section 230 is also configured. Also I
The NTC (interrupt controller) 240 has an interrupt request flag register 215 that is set when an external input signal 260 is received, and outputs an interrupt request signal 821B to the timing control section 230.

夕・イミング制御部230は、1:NTC240に対し
5割り込み要求クリア信ン217を出力する。
The evening/timing control unit 230 outputs a 5 interrupt request clear signal 217 to the 1:NTC 240.

INTC240は、外部のハ・−ドウエアから幾−)か
の割り込み信号を受は付け、各割り込みソースに側湾て
らノ1.た優先順位を判別し、最も高い優先順位をもっ
た割り込みソースを・−・つ選択17、その割り込みソ
ースに対応した割り込み要求7ラグL・ジスタをセット
する。割り込み要求フラグレジスタ(オ、割り込み要求
がn個あるときに、n個設定されるが、図中には1個だ
け記載されている。
The INTC 240 accepts a number of interrupt signals from external hardware and assigns side inputs to each interrupt source. The interrupt source with the highest priority is selected 17, and the interrupt request 7 lag L register corresponding to that interrupt source is set. Interrupt request flag register (e) When there are n interrupt requests, n values are set, but only one is shown in the figure.

また、外部のハードウェアからの割り込み信号や、優先
順位判別部などは、特に図示1〜でいない。
In addition, interrupt signals from external hardware, a priority order determining unit, and the like are not particularly shown in the figures.

従来の割込み処理は、通常ベクタ割り込みと呼ばれ、メ
モリ9間中にベクタテーブル空間が予め設定され、この
9間には各割り込)\ソー・スに対応1、た、割9込み
処理プログラムのゴ、ントリアドトスが格納さλ′r−
Cいる。ベクタ割り込みが発生する、と・、割り込みソ
ースに対応した一一7トす1”ドレス・・・・り岐J−
不)5 次に第8図を用いで、間辺ハードウェア222σ)構成
を35.入門する。周辺、・・−ドウエア222 (、
、l、クロックをバー・スと1.たダウンプ!つ、・′
り800−803と、ポー トレジスタ809と、出カ
ポ・−1・PO〜P3から構成される。ダウンカウンタ
800〜803は、データバス205からのカウント値
の書き込みで、デクリメント動作を開始し、オール0か
らのデクリメントによるボロー・の発生で、]:NTC
240に対12割り込み要求を発生する。
Conventional interrupt processing is usually called vectored interrupt, and a vector table space is set in advance in memory 9, and in these 9 spaces there is a program corresponding to each interrupt source. The ntriadotos is stored λ′r−
There is C. When a vectored interrupt occurs, the address corresponding to the interrupt source is...
F)5 Next, using FIG. Get started. Periphery,...-Dware 222 (,
, l, clock as bar and 1. Tadownpu! Tsu、・′
It consists of registers 800-803, a port register 809, and output capos -1, PO to P3. The down counters 800 to 803 start decrement operation by writing the count value from the data bus 205, and when a borrow occurs due to the decrement from all 0, ]:NTC
Generates a 12 interrupt request to 240.

同時に、各ボローによりダウンカウンタ800〜803
はデクリタンl−動作を停止する。また、出カバルスの
制御は、データバス205から、ボートlノジスタ80
9に出力レベルを直4妾1Fき゛込む、−とで行なって
いる。
At the same time, each borrow causes down counters 800 to 803.
stops the decritane l- operation. Further, the control of the output signal is carried out from the data bus 205 to the port nozzle 80.
This is done by directly inputting the output level into 9 and 1F.

以下、ボー)POに注目し、ボート0におけるパルス出
力制御に・ついて図(3における基準i号0が発生1−
たところから説明を行なうつ通常の命令処理では、CP
U207に格納されA=ニブログラムアドレス、アドレ
スバッファ204に転送され、アドレスバス214をド
ライフシ、プログラムメモリ212から次Iこ実行rべ
き命令がフェッチざJ7る。
Below, we will focus on PO (Boat) and discuss the pulse output control in Boat 0.
In normal instruction processing, the CP
A = program address stored in U207 is transferred to the address buffer 204, the address bus 214 is moved, and the next instruction to be executed is fetched from the program memory 212.

取り込まれた命令は、データバス205を経由し、μア
ドレス生成部206に転送される。μアドレス生成部2
・06は、命令フードからμROM209のアドレスを
生成する。以降、μROM209に格納されている該命
令に対するμプログラムの指令に従い、汎用レジスタ2
03、ALU201、テンポラリレジスタ202などを
操作することで命令の処理を行なう。
The fetched instruction is transferred to the μ address generation unit 206 via the data bus 205. μ address generation section 2
-06 generates the address of μROM 209 from the instruction food. Thereafter, according to the instructions of the μ program for the instruction stored in the μROM 209, the general-purpose register 2
03, instructions are processed by operating the ALU 201, temporary register 202, etc.

:[NTC240は、CPU250の処理とは独立に、
周辺ハードウェアから割り込み要求が発生しているか否
かを絶えずサンプルし、要求が発生していれば要求を1
つ選択し、そのソースに対応する割り込み要求フラグレ
ジスタをセットする。
: [NTC 240 independently of the processing of CPU 250,
It constantly samples whether or not an interrupt request is generated from peripheral hardware, and if a request is generated, the request is set to 1.
select one and set the interrupt request flag register corresponding to that source.

ここで、基準信号0は外部割り込み信号260に入力さ
れており、基準信号0はINTC240に対し割り込み
要求を発生する。INTO240が要求を受は付は割り
込み要求フラグ215がセットされれば、割り込み要求
信号218がタイミング制御部230に対して出力され
る。
Here, the reference signal 0 is input to the external interrupt signal 260, and the reference signal 0 generates an interrupt request to the INTC 240. When the INTO 240 accepts the request and the interrupt request flag 215 is set, an interrupt request signal 218 is output to the timing control section 230.

μプログラムの最後の指令は、通常割り込みが発生して
いるかいないかを検知するための指令で、この指令が出
るとタイミング制御部230は、割り込み要求信号21
8の有無をサンプルする。割り込み要求信号218がア
クティブであれば、割り込み要求クリア信号217をI
NTC240に対し出力し、割り込み要求フラグ215
をクリアする。
The last command of the μ program is a command for detecting whether an interrupt has occurred or not. When this command is issued, the timing control unit 230 sends an interrupt request signal 21
Sample the presence or absence of 8. If the interrupt request signal 218 is active, the interrupt request clear signal 217 is
Output to NTC240, interrupt request flag 215
Clear.

次にPC207とPSW208をスタックポインタ(C
PU250中に設定されているレジスタであるが図示は
していない)が指し示すスタック空間に退避し、データ
メモリ213中の特定のアドレスに設定されているベク
タテーブルに格納されている割り込みソースに対応する
割り込み処理プログラムのエントリアドレスを読み出し
、データバス205経由でPC207に設定する。PC
207に新たに設定されたプログラムアドレスから読み
込み処理プログラムは実行を開始する。
Next, connect the PC 207 and PSW 208 to the stack pointer (C
It is saved in the stack space pointed to by a register (not shown) set in the PU 250, and corresponds to the interrupt source stored in the vector table set at a specific address in the data memory 213. The entry address of the interrupt processing program is read and set in the PC 207 via the data bus 205. PC
The reading processing program starts execution from the program address newly set in 207.

基準信号Oによる割り込み処理プログラムは、ボー)P
Oからのパルス出力開始タイミングを設定する割り込み
処理で、CPU250は、基準信号0の発生からポート
POのパルス出力をアクティブにするまでの期間に相当
するデータをダウンカウンタ800に書き込む。
The interrupt processing program based on the reference signal O is
In the interrupt processing for setting the pulse output start timing from port PO, the CPU 250 writes data corresponding to the period from the generation of the reference signal 0 to the activation of the pulse output of the port PO to the down counter 800.

割り込み処理プログラムを終了する命令の処理では、ス
タック空間に退避しあったPC値、psw値をそれぞれ
PC207,PSW208へ復帰することで、割り込み
が発生した時点の次の命令から処理を再開する。
In the processing of the instruction to end the interrupt processing program, the PC value and psw value saved in the stack space are restored to the PC 207 and PSW 208, respectively, and processing is restarted from the next instruction at the time when the interrupt occurred.

またダウンカウンタ800は、上述したCPU250に
よるデータの書き込みが行なわれると、これに同期して
ダウンカウントを開始する。
Furthermore, when the above-described data is written by the CPU 250, the down counter 800 starts counting down in synchronization with this.

次に通常の命令実行中、パルス出力開始タイミングを示
すダウンカウンタ800からのポローが発生し、INT
C240が割り込みを受は入れれば、CPU250は、
ダウンカウンタ800からのポローによる割り込み処理
を行なう。INTC240がダウンカウンタ0からのポ
ローを割り込み信号として受は付け、割り込み処理プロ
グラムの実行が開始されるまでの期間と、割り込み処理
プログラムの実行が終了したときの各ハードウェアの動
作については前述の基準信号Oによる割り込みと同様で
あるので説明は省略し、割り込み処理プログラムの内容
について説明スる。
Next, during normal instruction execution, a pollo occurs from the down counter 800 indicating the pulse output start timing, and the INT
If the C240 accepts the interrupt, the CPU 250
Interrupt processing by polling from down counter 800 is performed. The period from when the INTC 240 accepts the poll from down counter 0 as an interrupt signal to when the execution of the interrupt processing program starts, and the operation of each hardware when the execution of the interrupt processing program is finished, is based on the above-mentioned standards. Since this is the same as the interrupt caused by signal O, the explanation will be omitted, and the contents of the interrupt processing program will be explained.

この割り込み処理プログラムは、まずポートレジスタ8
09の内容を読み込み、ポートレジスタ8090ビツト
0が“0”であることから、ボー)POにおけるパルス
出力を立ちあげる割り込み処理となり、CPU250は
ボートレジスタ809のビット0を“1”に設定するこ
とで、ボー)POカラメ出力パルスをハイレベルにし、
パルス出力を開始する。同時に、ダウンカウンタ800
にパルス幅に相当するデータを設定する。
This interrupt processing program starts with port register 8.
Since the contents of port register 8090 are read and bit 0 of port register 8090 is "0", the CPU 250 sets bit 0 of port register 809 to "1". , baud) Set the PO color output pulse to high level,
Start pulse output. At the same time, down counter 800
Set the data corresponding to the pulse width to .

さらに、ダウンカウンタ800が上述の割り込み処理で
設定されたパルス幅分をカウントすると再度ポローが発
生し、INTC240に対して割り込みを発生する。
Furthermore, when the down counter 800 counts the pulse width set in the above-mentioned interrupt processing, pollow occurs again and an interrupt is generated to the INTC 240.

このとき実行される割り込み処理プログラムは、まずボ
ートレジスタ809の内容を読み込み、ポートレジスタ
8090ビツト0が“1”であることから、ボー)PO
におけるパルス出力を立ち下げる割り込み処理となり、
ボー トレジスタ809のビット0を“0″に設定する
ご・とで、ボー I・POからの出力パルスをロウ1.
−ベルにし、パルス出’Jbを終r−する。
The interrupt processing program executed at this time first reads the contents of the port register 809, and since bit 0 of the port register 8090 is "1", the interrupt processing program executes at this time.
This is an interrupt process that lowers the pulse output at
Every time bit 0 of the boat register 809 is set to "0", the output pulse from the boat I/PO is set to low 1.
-bell, and end the pulse output 'Jb.

同様の処理を、ボー1−P−1からボー)P3に対l−
Cも同様に打力う。以上、種々あるパルス出力制御力法
の1例を示1〜たが、基本的には同様の処理力法′ご制
御が行なわれる。
Similar processing is performed from Baud 1-P-1 to Baud) P3.
C has the same batting power. Examples of various pulse output control force methods have been shown above, but basically the same processing force method' control is performed.

し究明が解決1.ようとする課題〕 上述1.た従来のバ/Lス発牛装買は、(′1)パルス
列データの転送処理を割り込み処理プログラムの実行に
よって処理することにより、基準信号発生時、パルス出
力開始時、パルス出力終了時の割り込み処理開始毎にP
C,PSW。
Investigation solved the problem 1. Problems to be solved〕 Above 1. The conventional bus/L bus system ('1) transfers pulse train data by executing an interrupt processing program, so that interrupts can be generated when a reference signal is generated, when pulse output starts, and when pulse output ends. P every time processing starts
C.PSW.

汎用レジスタの退避を行ない、割り込み処理後、再びP
C,PSWの復帰を行なう処理を必要とするため、CP
Uがパルス出力制御の他に行うべぎ処理に割かれるCP
U時間が減少し、CP U)・−タルの実行能率を低下
させている。
After saving the general-purpose register and processing the interrupt, return to P.
Since it requires processing to restore C and PSW, CP
CP used for processing performed by U in addition to pulse output control
The U time decreases, reducing the execution efficiency of the CPU.

■ 上記のCPUの実行能率は、パルス発生装置のパル
ス出力回数の増加、及び出力ボート数の増加に件、って
さ「)に悪化する。
(2) The execution efficiency of the CPU described above deteriorates as the number of pulse outputs from the pulse generator increases and the number of output ports increases.

■ パルス出力を割り込み処理ブログラノ・、によるソ
フトウェア処理だげで制御する方法Cは、割り込み要因
が発生1.てから劃り込み処理プl’XIグラムが開始
するまでの時間の遅れや、ボー1= −=。
■ Method C, in which the pulse output is controlled solely by software processing using the interrupt processing function 1. There is a time delay between the start of the processing program and the start of the processing program.

のテ゛−タ書き込み時間による遅冶2フJどが発生し精
度の高い制御が−Qきない。
Delays such as 2 steps occur due to the data write time, and highly accurate control is not possible.

■ 各ダウンカウンタ毎に割り込み要求を行うため、パ
ルス出力ボート数の増加に伴う゛〜ズン・々アレジスタ
の増加ンこより、INTC内の割)、、) 込2r、要
求フラグも増加17、また割り込み要求信号線も増加す
るL−め、I N T Cと周辺バー ドウエア間の配
線領域も増え、ンフ、テム全体のバー ドウエア量が増
えることにより、製品コストを上げ”Cしまう。
■ Since an interrupt request is made for each down counter, the number of registers increases with the increase in the number of pulse output ports, so the interrupt in INTC),,), request flag also increases17, and the interrupt As the number of required signal lines increases, the wiring area between the INTC and peripheral hardware also increases, and the amount of hardware for the whole system increases, raising product costs.

という欠点を有[7ている。It has the following drawbacks.

[課題を解決するだめの手段] 本発明は、PCとPSWと汎用v−、sスタとμROM
を含むとCPUと、前記CPUへ非同期に処理要求?発
生ずるI N T Cと、プログラムメモリと、データ
(モリと、周辺回路とを有する処理装置に於いて、前記
周辺回路はタイマと、第一の:2ンベア1/ジスタと、
第二のコンベアレジスタと、キャプチャ1ノシスタと、
パルス発生用の複数の出力ボートと、前記出力ボートに
対1〜、選択的にセットパルスを発′]、する手段と、
前記第一のコンベアレジスタから前記TNTCに“対す
る割り込み要求信号と夕備え、旧つ前記INTCは、従
来の割り込み要求の発生に加え、所定のデ・−夕処理の
要求を発生ずる手段と、前記従来の割り込み要求と前記
所定のデータ処理の要求を識別するだめの形態指示手段
を備え、且つ前記データメモリ内には前記θj定のデー
タ地理の処理形態を指定する処理形態情報が格納され、
面記第−のコンベアレジスタ、:I)もの割り込み要求
信月の発生によって、前記I N T Cから前記所定
のデータ処理の要求が前記CPUに対しに発生されると
、前記CP Uは前記形態指示す段が前記所定のデータ
処理を指示していることを検知1.?こ場合には、命令
実行処理を中断1−1前記処理形態情報に従い、曲記第
−:、の一コンベアI/ジスタと、前記r−タメモリを
操作する。::とでff1f記複数の出力ボードからの
ペルス発生を制御するという特徴を有し、ている。
[Means for solving the problem] The present invention provides a PC, a PSW, a general-purpose v-, s-star, and a μROM.
Including the CPU and asynchronous processing requests to the CPU? In a processing device having a generating I NTC, a program memory, a data memory, and a peripheral circuit, the peripheral circuit includes a timer, a first register,
a second conveyor register, a capture 1 register,
a plurality of output ports for generating pulses, and means for selectively emitting set pulses to the output ports;
In addition to generating a conventional interrupt request, the INTC also includes means for generating a request for predetermined data processing in addition to generating a conventional interrupt request; comprising a mode specifying means for identifying a conventional interrupt request and a request for the predetermined data processing, and processing mode information for specifying a processing mode of the data geography given θj is stored in the data memory,
I) When a request for the predetermined data processing is issued from the INTC to the CPU due to the occurrence of an interrupt request, the CPU performs the processing according to the form. Detecting that the instructing stage is instructing the predetermined data processing; 1. ? In this case, the instruction execution process is interrupted and the one conveyor I/register and the r-ta memory are operated according to the processing mode information. :: and ff1f have the feature of controlling pulse generation from a plurality of output boards.

したがって、本発明は、 ■ パルス出力開始タイミングを与える割り込み処理要
求が発生1〜だ際、PC,PSWの退避処理をせずに、
事前に接続された処理形態情報に応じた処理・?実行す
ることで、複数の出カポ−)・に対する精度の高いパル
ス出力制御を実現できる。
Therefore, in the present invention, (1) When an interrupt processing request that gives pulse output start timing is generated, the PC and PSW are not saved;
Processing according to the processing type information connected in advance? By executing this, it is possible to realize highly accurate pulse output control for a plurality of output capacitors.

■ パルス出力開始タイミングを与えるハードウェアと
パルス出力終了タイミングを与え、るバー i;ウェア
とを別々に備えることに’J: ’) 、パルス発生装
置の出力ボートを増加1.た場合1・・=もINTCに
対する割り込み要求信号の本数が増加しない。
■ By providing separate hardware for providing pulse output start timing and hardware for providing pulse output end timing, increase the output port of the pulse generator 1. If 1...=, the number of interrupt request signals to INTC does not increase.

という効果をもたらす。This brings about this effect.

〔実施例〕〔Example〕

以下、図面を・用いて本発明ヤ詳述!″′イ)、1本発
明に基づく第1の実施例を第1図と第2図を参照して説
明する。第1図は第1の実施例の周辺ハードウェアのブ
ロック図、第2図は第1の実施例を示すパルス発生装置
のブロック図である。
The present invention will be explained in detail below using drawings! ``'B), 1 A first embodiment based on the present invention will be explained with reference to FIGS. 1 and 2. FIG. 1 is a block diagram of peripheral hardware of the first embodiment, and FIG. 2 is a block diagram of peripheral hardware of the first embodiment. 1 is a block diagram of a pulse generator showing a first embodiment; FIG.

第2図において、本発明のパルス発生装置は、CPU2
00、アドレスバス214、データノくス205、IN
TC211、プログラムメモリ212、データメモリ2
13、周辺ノ1−ドウエア211から構成されている。
In FIG. 2, the pulse generator of the present invention has a CPU 2
00, address bus 214, data bus 205, IN
TC211, program memory 212, data memory 2
13 and peripheral hardware 211.

CPU200は、ALU201、テンポラリレジスタ2
02、汎用レジスタ203、アドレスバッファ204、
μアドレス生成部206、μROM209、PC207
、PSW208、タイミング制御部210から構成され
る。またINTC211は、割り込み要求フラグレジス
タ215と形態指定フラグレジスタ216を含んで構成
され、タイミング制御部210に対し、割り込み要求信
号218と形態指定信号220を出力する。タイミング
制御部210は、INTC211に対し割り込み要求ク
リア信号217と形態変更信号219を出力する。
The CPU 200 has an ALU 201 and a temporary register 2.
02, general-purpose register 203, address buffer 204,
μ address generation unit 206, μROM 209, PC 207
, PSW 208, and timing control section 210. The INTC 211 also includes an interrupt request flag register 215 and a format designation flag register 216, and outputs an interrupt request signal 218 and a format designation signal 220 to the timing control section 210. Timing control section 210 outputs interrupt request clear signal 217 and form change signal 219 to INTC 211 .

INTC211は、外部のハードウェアから幾つかの割
り込み信号を受は付け(図では一致信号106のみ記載
されている)、各割り込みソースに割当てられた優先順
位を判別し、最も高い優先順位をもった割り込みソース
を一つ選択し、その割り込みソースに対応した割り込み
要求フラグレジスタをセットする。割り込み要求フラグ
レジスタと形態指定フラグレジスタは、割り込み要求が
n個あるときに、それぞれn個設定されるが、図中には
1組だけ記載されている。また、外部のハードウェアか
らの割り込み信号や、優先順位判別部などは、本発明の
主旨に直接関係ないため、特に図示はしていない。
The INTC 211 accepts several interrupt signals from external hardware (only the match signal 106 is shown in the diagram), determines the priority assigned to each interrupt source, and determines which interrupt source has the highest priority. Select one interrupt source and set the interrupt request flag register corresponding to that interrupt source. Although n interrupt request flag registers and mode designation flag registers are each set when there are n interrupt requests, only one set is shown in the figure. Further, interrupt signals from external hardware, a priority order determining section, and the like are not particularly illustrated because they are not directly related to the gist of the present invention.

INTC211からの割り込み要求を、CPU200は
2等りの形態で処理することができる。
The CPU 200 can process interrupt requests from the INTC 211 in a second-order format.

1つは従来からのベクタ割り込み処理で、もう1つは、
本発明の主旨であるところの処理形態で、割り込みが発
生すると、ベクタテーブルは参照せず、データメモリ2
13中の特定アドレスに予め設定されている処理形態情
報に基づき、所定のデータ処理を実行する形態である。
One is traditional vectored interrupt processing, and the other is
In the processing mode that is the gist of the present invention, when an interrupt occurs, the vector table is not referenced and the data memory 2 is
This is a mode in which predetermined data processing is executed based on processing mode information preset to a specific address in 13.

以下、この所定のデータ処理のことをマクロサービスと
記す。
Hereinafter, this predetermined data processing will be referred to as a macro service.

ベクタ割り込みかマクロサービスかの指定は、形態指定
フラグレジスタ216で行ない、CPU200から形態
指定フラグレジスタ216にOnが設定されている時に
はベクタ割り込みとして、“1″が設定された時にはマ
クロサービスとして指定される。
A vectored interrupt or a macro service is specified by the type specification flag register 216. When the CPU 200 sets the type specification flag register 216 to On, it is specified as a vectored interrupt, and when it is set to "1," it is specified as a macro service. Ru.

以下、本発明による専用ノ1−ドウエア構成と、パルス
出力制御におけるマク四サービス処理のフローを説明す
る。まず第1図を用いて、周辺ハードウェア221の構
造を説明する。
The dedicated node hardware configuration and the flow of Mac4 service processing in pulse output control according to the present invention will be described below. First, the structure of the peripheral hardware 221 will be explained using FIG.

周辺ハードウェア221は、クロックφをペースとした
フリーランニングタイマ100(図中にFRTと記り、
コンベアレジスタ101 (図中にGOMPIOと記載
)と102,103,104゜105(図中にC0MP
2O,21,22,23と記載)、キャプチャレジスタ
120 (図中に0APT10と記載)、ビット選択レ
ジスタ125、第1の外部入力信号130、出カポ−)
PO−P3から構成される。一致信号106はコンベア
レジスタ101から出力され、INTC211にも供給
される。また、一致信号107,108,109,11
0はコンベアレジスタ102,103,104,105
から出力されている。また、第1の外部入力信号130
には前述の基準信号が入力されている。
The peripheral hardware 221 includes a free running timer 100 (denoted as FRT in the figure) whose pace is clock φ.
Conveyor register 101 (written as GOMPIO in the figure) and 102, 103, 104°105 (C0MP in the figure)
2O, 21, 22, 23), capture register 120 (described as 0APT10 in the figure), bit selection register 125, first external input signal 130, output capo)
Consists of PO-P3. The match signal 106 is output from the conveyor register 101 and also supplied to the INTC 211 . In addition, the coincidence signals 107, 108, 109, 11
0 is conveyor register 102, 103, 104, 105
It is output from. In addition, the first external input signal 130
The above-mentioned reference signal is input to .

次に、本発明のマクロサービスの処理形態を指定する処
理形態情報について説明する。第3図は処理形態情報の
構成を示す。処理形態情報はデータメモリ213中の特
定のアドレスに配置され、本例の処理形態情報は、チャ
ネルポインタを有する1バイトのヘッダ部と、チャネル
ポインタによって指し示される8バイトのマクロサービ
スチャネルによって構成される。
Next, processing type information that specifies the processing type of the macro service of the present invention will be explained. FIG. 3 shows the structure of processing mode information. The processing mode information is placed at a specific address in the data memory 213, and the processing mode information in this example is composed of a 1-byte header section having a channel pointer and an 8-byte macro service channel pointed to by the channel pointer. Ru.

本例のマクロサービスチャネルは4本のパルス出力制御
を想定した構成となっており、パルス出力幅を指定する
ワードバッファ(PO〜P3用)から構成されている。
The macro service channel in this example has a configuration assuming four pulse output control, and is composed of a word buffer (for PO to P3) that specifies the pulse output width.

コンベアレジスタ101には、パルス出力制御に於ける
基準信号からパルス出力開始タイミングよでの変位を示
tダータが、CPU200tこよって設定される。基準
信号が発生ずるとその基準信号により、キャプチャレジ
スタ120はFRTlooの値を格納する。同時に、基
準信号は割り込みを発生し、CPU200はキャブチャ
1フジスタ120に格納さ7れた病準信号発牛時のFl
l、T100のカウント値に基づぎ、割り込み処理プロ
グラムによっ゛てコンベアレジスタ101にデータの設
定を行なう。本発明では】本のコンベアレジスタ〕01
だはで復数の出力ボートに対し7バルス出力開始夕(i
 :、/グン与える/、−め、基単1言号の選tgを行
なっている。
In the conveyor register 101, t data indicating the displacement from the reference signal to the pulse output start timing in pulse output control is set by the CPU 200t. When the reference signal is generated, the capture register 120 stores the value of FRTloo according to the reference signal. At the same time, the reference signal generates an interrupt, and the CPU 200 outputs the FL signal stored in the cabcha 1 Fujistar 120 at the time of generation of the disease standard signal.
Based on the count value of T100, data is set in the conveyor register 101 by the interrupt processing program. In the present invention: Book conveyor register〕01
Seven pulses of output started for multiple output boats in the evening (i
:, /gun give/, -me, I am performing the selection of basic single words tg.

本例の看゛クロリービスは、コンベアレジス々101か
らの〜致イδ号106によって起動さt+ろ。
In this example, the watch is activated by a signal δ 106 from the conveyor registers 101.

マり I:Iシー−−−ビスが起動される以前に、CP
U200はマ、・′ノロづノービスチャネルやバー・ド
ウエア;・こ対し初期化を行なう、1ビット選択レジス
タ]、 25には、最初にペルスを出力すべき5F−ト
がPOであることを指定〜り“ろために、ボー )PO
に対応]°るビ、。
I: Before the I service is activated, the CP
U200 is a 1-bit selection register that performs initialization for novice channels and bar software; and 25 specifies that the 5F port that should output the pulse first is PO. 〜ri “Lotome, Bo) PO
Compatible with ] ° Rubi,.

トだけを11cぞれ以外を0に設定1,7ておく。Set only 1 and 7 to 0 except for 11c.

第4図は、本例のマク「′サービスをノロ−チャー1・
で示■7たもので、実際に(・マμズ1−1グラム制御
となっている。以下、第1図乃至第4図1−5sよび第
6図を参照1−ながら、マクロサービスの詳細な説明を
行なう。
Figure 4 shows the macro ``' service of this example as
As shown in Figure 7, it is actually (Maμs 1-1 gram control. Below, refer to Figures 1 to 4, 1-5s, and Figure 6.1). A detailed explanation will be provided.

まず最初にコンペン1/ジスタ10 ]がらの−i信号
106が発生号ると、ビット選択1ノジスタ125の初
期値から、ボー +−poのRSフリッフフr!ツブだ
け(・ットされ、ボー)POがらの出力パルスがハイレ
ベルになり、ボ・〜)POのパルス出力が開始される、
同時に、一致信号106は、1NTc21]に対し割り
込み要求を発生づる。
First, when the -i signal 106 from the compen 1/register 10 is generated, from the initial value of the bit selection 1 register 125, the RS flip r! of baud +-po is generated. The output pulse from PO becomes high level, and the pulse output from PO starts.
At the same time, the match signal 106 generates an interrupt request for 1NTc21].

INTC211が一致信号1060割り込み要求を受は
付けると、このソースに対応する割り込み要求フラグレ
ジスタ215を・−セラI・12、割り込み要求信号2
18をアクティブにする。
When the INTC 211 accepts the match signal 1060 interrupt request, the interrupt request flag register 215 corresponding to this source is set to - Sera I 12, interrupt request signal 2.
Activate 18.

り・イミング制御部2】0は、命令処理の終りで割り込
み要求をサンプルする。ここQ割り込み9求信号218
が、アクテ、イブであるブ、−め、形態指定信号220
をサンプルする。形態指定信号220がマク1」−チー
・ビスを示−タ″1”であること検知すると、C1,”
U2O5は、PC207,PSW208を保持したまま
、μTtOM209のマクロザービス処理ユントリアド
ト・スな生成t2、マクロシー・ビスを開始する。
Timing control unit 2]0 samples an interrupt request at the end of instruction processing. Here Q interrupt 9 request signal 218
is acte, eve, -me, form specification signal 220
sample. When it is detected that the format designation signal 220 is "1" indicating Mac1"-Chi-Vis, C1,"
U2O5 starts macro service processing unit generation t2 and macro service of μTtOM209 while holding PC207 and PSW208.

以降、マクロシービスのμブ11グラム指令に従って処
理される処理フローの説明を図4のフ四−ヂ十−1・に
そって進める。
Hereinafter, the explanation of the processing flow according to the μB 11gram command of MacroSevis will be explained along the lines shown in F4-1-1 of FIG.

まr最初に、一致信号106を割込みソースと慣るマク
ロシービスの−・・ラダを、データメモリ213中の特
定アドレスから読み出1.2、マクロサービスチャネル
の位置を検出する、次に、ビット選択1./ジスタ12
5を参照し、1にセラI−さ此Tニイルホー) P O
に対応するマクロサービスチャネル中のシー ドバッフ
ァを読み出す。
First, read the macro service ladder using the match signal 106 as an interrupt source from a specific address in the data memory 213.1.2 Detect the position of the macro service channel; Bit selection 1. /Jista 12
Please refer to 5 and refer to 1.
Read the seed buffer in the macro service channel corresponding to.

さらに、コンベアレジスタ101の内容と、読み出1−
2だシー ドバッファを、ALU201をflJ用して
加算し、モの結W・をコンベアレジスタ102に格納す
る。
Furthermore, the contents of the conveyor register 101 and the readout 1-
The second seed buffer is added using the ALU 201 as flJ, and the result W is stored in the conveyor register 102.

次に、ビット選択レジスタ125の左シフト処理を実行
1.5、ボー) 111に相当するビットだげ1にセッ
トする。タ1′ミング制御部210は、割り込み要求ク
リア信号2 J、 7をINTC211に対し出力し、
割り込み要求フラグレジスタ2】5をリセットシてマク
ロサービス処理を終了する。
Next, left shift processing of the bit selection register 125 is executed, and only the bit corresponding to 111 (1.5, baud) is set to 1. The timing control unit 210 outputs interrupt request clear signals 2J and 7 to the INTC 211,
The interrupt request flag registers 2 and 5 are reset and the macro service processing ends.

マクロシービス処理が終了すれば、CPU200は保持
t、”Cイ’7’jPC207、PSW:?、 O8(
7)値から通常の命令処理を再開する。
When the macro service processing is completed, the CPU 200 holds t, "Ci'7'jPC207, PSW:?, O8(
7) Resume normal instruction processing from the value.

第6 図ノl) t、r; パルスパターンの場合は、
コンベアレジスタ102から一致信号107が発生すイ
)曲に、再度コンベア)/二ンスタ101から−・致信
号106が発生する。
Figure 6 l) t, r; In the case of a pulse pattern,
When the match signal 107 is generated from the conveyor register 102, the match signal 106 is generated again from the conveyor register 101.

この時、ボー)PlのRSフリップフロップだけセラI
・され、ボー)Piからの出力パルスがハイレベルにな
り、ボートP1のパルス出力が開始され、ボートPOと
Plの両方ともパルス出力を行う。
At this time, only the RS flip-flop of Bo) Pl is
- The output pulse from Pi becomes high level, the boat P1 starts to output pulses, and both boats PO and Pl output pulses.

以上の処理なボー)POからP3まで伶く同様に繰り返
す。ボートP3に対するパルス出力開始り・イミングに
よって起動さり、るマクロシー−ビスでは、同様のマク
ロサービス処理を行うが、4回目のマクロサービス処理
で、ビット選択レジスタ125の左シフト処理を実行す
ると、ビット選択レジスタ125からシフトアウトが発
生し、μプログラムの指令で、タイミング制御部210
は、形態変更信号219をINTC211に対し出力し
、形態指定フラグレジスタ216をリセットする。
The above processing is repeated in the same manner from PO to P3. The macro service that is activated by the timing of the pulse output to boat P3 performs similar macro service processing, but in the fourth macro service processing, when the left shift processing of the bit selection register 125 is executed, the bit selection A shift out occurs from the register 125, and the timing control unit 210 receives a command from the μ program.
outputs the format change signal 219 to the INTC 211 and resets the format designation flag register 216.

INTC211は、割り込み要求フラグレジスタ215
がセット状態で、形態指定フラグレジスタ216がリセ
ット状態であるため、今度は通常のベクタ割り込み要求
をCPU200に対し発生し、CPU 200は以下の
ベクタ割り込み処理を実行する。
INTC211 interrupt request flag register 215
is in the set state and the format specification flag register 216 is in the reset state, this time a normal vector interrupt request is generated to the CPU 200, and the CPU 200 executes the following vector interrupt processing.

割り込み処理プログラムは、ボー)POからP3まで一
巡したところで起動され、CPU200はビット選択レ
ジスタ125を初期状態に再設定し、マクロサービスチ
ャネル中のワードバッファの更新を実行し、ボー)PO
からのパルス出力に備える。
The interrupt processing program is started after completing one cycle from baud)PO to P3, and the CPU 200 resets the bit selection register 125 to the initial state, updates the word buffer in the macro service channel, and executes the update of the word buffer in the macro service channel.
Prepare for pulse output from.

以上、本実施例のパルス出力装置は第6図の様ナハルス
パターンの出力を、本マクロサービス処理を適用するこ
とにより実現できる。
As described above, the pulse output device of this embodiment can realize the output of the Nahals pattern as shown in FIG. 6 by applying the present macro service processing.

次に、本発明の第2の実施例を第5図を用いて説明する
。第5図は第2の実施例の周辺ハードウェアのブロック
図である。システムの全体構成、マクロサービスの処理
形態情報の構成は、第1の実施例と同様であるため説明
は省略する。
Next, a second embodiment of the present invention will be described using FIG. 5. FIG. 5 is a block diagram of peripheral hardware of the second embodiment. The overall configuration of the system and the configuration of macro service processing form information are the same as those in the first embodiment, so their explanations will be omitted.

本実施例に於ける周辺ハードウェア221の構成を第5
図を用いて説明する0周辺ハードウェア221は、第2
の外部入力信号531によりカウントするイベントカウ
ンタ500.コンベアレジスタ501〜505.キャプ
チャレジスタ520゜ビット選択レジスタ525.第1
の外部入力信号530、出カポ−)PO〜P3から構成
される。
The configuration of the peripheral hardware 221 in this embodiment is as follows.
The 0 peripheral hardware 221, which will be explained using the diagram, is the second
Event counter 500 . Conveyor registers 501-505. Capture register 520° Bit selection register 525. 1st
It is composed of an external input signal 530 and output signals PO to P3.

一致信号506はコンベアレジスタ501から出力され
、同様に一致信号507〜510はコンベアレジスタ5
02〜505から出力されている。イベントカウンタ5
00は第2の外部入力信号531にパルスが生じるたび
にカウント動作を行う。
A match signal 506 is output from the conveyor register 501, and similarly match signals 507 to 510 are output from the conveyor register 5.
It is output from 02 to 505. event counter 5
00 performs a counting operation every time a pulse occurs in the second external input signal 531.

本実施例では、外部入力信号530にある回転体が一定
角度回転するたびに発生するパルスを入力することによ
り、回転体の角度毎の高精度のパルス出力制御が可能に
なる0本実施例における詳細な動作に関しては、第1の
実施例と全く同様であるため、詳細な説明は省略する。
In this embodiment, by inputting a pulse generated each time the rotating body rotates by a certain angle to the external input signal 530, highly accurate pulse output control for each angle of the rotating body is possible. Since the detailed operation is exactly the same as the first embodiment, detailed explanation will be omitted.

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

以上説明した通り本発明は、パルス出力開始タイミング
の割り込みを、マクロサービスによって処理し、ベクタ
割り込み要求を発生しないため、パルス出力の周波数が
増しても、割り込み処理プログラムへ移行する際のpc
、pswのスタックへの退避や、割り込み処理プログラ
ムからメイン処理へ戻る時、スタックの内容をPC2P
SWへ復帰する処理でCPU時間を占めることがない。
As explained above, in the present invention, the interrupt at the pulse output start timing is processed by the macro service and no vectored interrupt request is generated.
, psw to the stack, or when returning from the interrupt processing program to main processing, the contents of the stack are saved to the PC2P.
Processing to return to SW does not occupy CPU time.

また、最近の高速、高精度の制御が要求されるメカ制御
においては、精度の高いパルス出力制御が必要となって
きていることに対しても、パルス出力開始タイミング、
及びパルス出力終了タイミングを与えるコンベアレジス
タからの一致信号で、直接ポートを制御し出力パルスを
生成することで、割り込み要因が発生してから割り込み
処理プログラムが開始するまでの時間の遅れや、ポート
へのデータ書き込木時間による遅れなど無しに、最小の
誤差で制御できるため、出力パルス幅の調節を高い精度
で行なうことができる。
In addition, in recent mechanical controls that require high-speed, high-precision control, highly accurate pulse output control has become necessary.
By directly controlling the port and generating output pulses using the match signal from the conveyor register that gives the pulse output end timing, the time delay from the occurrence of an interrupt factor to the start of the interrupt processing program, and the time delay to the port. Since the output pulse width can be controlled with a minimum error without any delay due to the data writing time, the output pulse width can be adjusted with high precision.

加えて、本発明のパルス発生装置は、特定の単一のコン
ベアレジスタが各ポートのパルス出力開始タイミングを
与え、複数のコンベアレジスタが各ポート毎にパルス出
力終了タイミングを与える方式をとっているため、出力
ポート数が6,8と増えても、パルス出力終了タイミン
グを与えるコンベアレジスタとマクロサービスチャネル
内のワードバッファの数を増やすだけで全く同様な制御
が可能となる。さらに、INTOに対する割り込み要求
信号は、常に、単一のコンベアレジスタが発生するだけ
であるので、INTC内の割り込み要求フラグ、INT
Cと周辺ハードウェア開力配線領域等のハードウェアの
増加はない、従っ−。
In addition, the pulse generator of the present invention employs a system in which a specific single conveyor register gives the pulse output start timing for each port, and a plurality of conveyor registers gives the pulse output end timing for each port. Even if the number of output ports increases to 6 or 8, exactly the same control can be achieved by simply increasing the number of conveyor registers that provide pulse output end timing and the number of word buffers in the macro service channel. Furthermore, since the interrupt request signal for INTO is always generated by only a single conveyor register, the interrupt request flag in INTC, INT
Therefore, there is no increase in hardware such as C and peripheral hardware and wiring area.

本発明のパルス発生装置は、最小限のハードウェアの追
加によりパルス出力ポー1−数の増加にも容すに対応℃
ぎ、経済的に非常に優位なシステムを構成ゴ゛る・′−
Jが可能J・なり、CPUと周辺回路をq仁−基板トに
集積づろシングルチップなどにも1勺(・こ適)、IJ
さ・十トることができる。
The pulse generator of the present invention can accommodate an increase in the number of pulse output ports with minimal addition of hardware.
This will create an economically very advantageous system.
It is possible to integrate the CPU and peripheral circuits on a single board, making it suitable for single chips.
I can do a lot of things.

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

第1図は本発明の第1の実施例に於ける周辺・1−ドウ
エアのブr;ツク図、第2図は本発明1・、7於げイ・
パル;<発−ト、装置のブロック図、第:3図(・丈マ
ク五−コサービスの処理形態情報構成例、第4図は第1
)実施例1・ご於(〆1゛()マクロリー・ビス処理フ
ロー・チャ1、第5図は本発明第2の5J、:絶倒に於
ζ・)る周辺ハ ドウアアのプロッ・ノ図、第6図はボ
・−1−からのパルス出1:l[’lバ々−ン、第7区
1は従来例に於けるベル7ζ川力装h′Xのブーツク図
、第8図は従来例に於ける周辺ハ ドウエアのブロック
Nである。 100・・・・・フリー ランニソグタイマ、101・
〜105.501・−505・・・・・・コ〕/ベアI
/ジスタ、106・ 110.5(〕6へ・510・・
・・・・・一致信号、120.520・・・・・・キャ
プチャ1.・ジスタ、125525・・・・・・ビット
選択レジスタ、130,530・・・・・・第1の外部
入力信号、200,250・・・・・・CP TJ、2
01・・・・・・ALU、202・・・・・・テンボラ
、lしう2スク、203・・・・・・汎用レジスタ、2
04・・・・・・アト1/スバツフア、205・・・・
・・データバス、206・・・・・・μアト1−・ス生
戎部、207・・・・・・PC1208・・・・・・P
 SW、 209・・・・・・μP、OM、210゜2
3(]・・・・・・タイミング制御部、2]]、240
・・・・・・INT(”:、212・・・・・・)r7
ダラムメモリ、213・・・・・・データ2シモリ、2
14・・・・・・アドレスバス、2】5・・・・・・割
り込み要求フラグl、=ジメ、り、216・・・・・形
態指定フラグ1/ジスタ、217・・・・・・割す込み
要求クリア信パ、2;18・・・・・・割り込み要求値
5号、219・・・・・・形態変更信号、:220・・
・・・影態指定信ゼ”、221.222・・・・・・周
辺バー、 ): I′Tエア、260・・・・・・外部
割り速入信号、500・・・・・イベソトhウンタ、5
31・・・・・第2つり1部入力信号、800 =−8
0:3・・・・・・ダウンカウ゛/夕、809・・・・
ボートレジスタ。 伏込−人 弁理上  内 1原   晋θ  ・ 0I
6) %  Q、  、−へ I\     1 C−−、、−=j ド・く べ9 ξミ5≧ 牟 図 t 箒
FIG. 1 is a block diagram of peripheral/1-doware in the first embodiment of the present invention, and FIG. 2 is a block diagram of the first embodiment of the present invention.
Pal;
) Embodiment 1 (〆1゛() McCrory screw processing flow chart 1, Figure 5 is the second 5J of the present invention: Absolutely ζ・)Program diagram of peripheral hardware , Fig. 6 shows the pulse output 1:l ['l baba-n from bo. is block N of peripheral hardware in the conventional example. 100...Free runnisog timer, 101.
〜105.501・-505・・・・・・ko]/Bear I
/JISTA, 106・110.5 (] to 6・510・・
... Match signal, 120.520 ... Capture 1. - Register, 125525...Bit selection register, 130,530...First external input signal, 200,250...CP TJ, 2
01...ALU, 202...Temperature, 2nd disk, 203...General purpose register, 2
04...Ato 1/Subatuhua, 205...
・・Data bus, 206・・・・μ at 1-・Succeeding part, 207・・・・PC1208・・・・P
SW, 209...μP, OM, 210°2
3(]...timing control section, 2]], 240
...INT(":, 212...)r7
Durham memory, 213... Data 2 Simory, 2
14...Address bus, 2]5...Interrupt request flag l, = Jime, Ri, 216...Form specification flag 1/Jister, 217...Interrupt Insert request clear signal, 2; 18... Interrupt request value No. 5, 219... Form change signal, :220...
...Shadow status designation signal, 221.222...Peripheral bar, ): I'T air, 260...External interrupt fast input signal, 500...Event h Unta, 5
31...2nd suspension 1 part input signal, 800 = -8
0:3...down counter/evening, 809...
Boat register. 1 Hara Susumu θ・0I
6) % Q, ,-to I\ 1 C--,,-=j de・kube9 ξmi5≧ Mutsut broom

Claims (1)

【特許請求の範囲】[Claims] 命令の実行アドレスを保持するプログラムカウンタ、プ
ログラムの実行状態を保持する手段、高速記憶手段とし
ての汎用レジスタおよびマイクロプログラムROMを含
む中央処理装置と、前記中央処理装置へ非同期に処理要
求を発生する割り込み要求発生回路と、プログラムメモ
リと、データメモリと周辺回路とを有するデータ処理装
置に於いて、前記周辺回路は、タイマと、前記タイマと
の比較を行う第一のコンベアレジスタと、複数の第二の
コンベアレジスタと、所定のタイミング前記タイマの値
を格納するキャプチャレジスタと、パルス発生用の複数
の出力ポートと、前記出力ポートに対し、選択的にセッ
トパルスを発生する手段と、前記第一のコンベアレジス
タから前記割り込み要求発生回路に対する割り込み要求
信号とを備え、前記割り込み要求発生回路は、所定のデ
ータ処理の要求を発生する手段と、前記所定のデータ処
理の要求を識別するための形態指示手段とを備え、前記
データメモリ内には前記所定のデータ処理の処理形態を
指定する処理形態情報が格納され、前記第一のコンベア
レジスタからの割り込み要求信号の発生によって、前記
割り込み要求発生回路から前記所定のデータ処理の要求
が前記中央処理装置に対して発生されると、前記中央処
理装置は前記形態指示手段が前記所定のデータ処理を指
示していることを検知した場合には、命令実行処理を中
断し、前記処理形態情報に従い、前記第二のコンベアレ
ジスタと、前記データメモリを操作することで前記複数
の出力ポートからのパルス発生を制御することを特徴と
するデータ処理装置。
A central processing unit that includes a program counter that holds the execution address of an instruction, a means for holding the execution state of the program, a general-purpose register as a high-speed storage means, and a microprogram ROM, and an interrupt that asynchronously issues a processing request to the central processing unit. In a data processing device including a request generation circuit, a program memory, a data memory, and a peripheral circuit, the peripheral circuit includes a timer, a first conveyor register that performs a comparison with the timer, and a plurality of second conveyor registers. a conveyor register, a capture register for storing the value of the timer at a predetermined timing, a plurality of output ports for generating pulses, means for selectively generating set pulses for the output ports, and the first an interrupt request signal from a conveyor register to the interrupt request generation circuit; the interrupt request generation circuit includes means for generating a request for predetermined data processing; and means for specifying a form for identifying the request for predetermined data processing. Processing mode information specifying a processing mode of the predetermined data processing is stored in the data memory, and when an interrupt request signal is generated from the first conveyor register, the interrupt request generation circuit outputs the processing mode information. When a request for predetermined data processing is issued to the central processing unit, the central processing unit executes command execution processing if it detects that the format instruction means is instructing the predetermined data processing. The data processing apparatus is characterized in that the pulse generation from the plurality of output ports is controlled by interrupting the processing and operating the second conveyor register and the data memory according to the processing mode information.
JP63291309A 1988-11-17 1988-11-17 Data processing device Expired - Lifetime JP2536102B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP63291309A JP2536102B2 (en) 1988-11-17 1988-11-17 Data processing device
DE89121317T DE68905028T2 (en) 1988-11-17 1989-11-17 Data processing device for generating a sequence of pulses which have a variable length at the outputs.
EP89121317A EP0369470B1 (en) 1988-11-17 1989-11-17 Data processing apparatus for producing in sequence pulses having variable width at output ports
US07/438,750 US5126944A (en) 1988-11-17 1989-11-17 Data processing apparatus for producing in sequence pulses having variable width at output ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63291309A JP2536102B2 (en) 1988-11-17 1988-11-17 Data processing device

Publications (2)

Publication Number Publication Date
JPH02136901A true JPH02136901A (en) 1990-05-25
JP2536102B2 JP2536102B2 (en) 1996-09-18

Family

ID=17767232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63291309A Expired - Lifetime JP2536102B2 (en) 1988-11-17 1988-11-17 Data processing device

Country Status (1)

Country Link
JP (1) JP2536102B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61212652A (en) * 1985-03-19 1986-09-20 Mitsubishi Motors Corp Control device of internal-combustion engine
JPS63271601A (en) * 1987-04-30 1988-11-09 Toshiba Corp Output pulse generating device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61212652A (en) * 1985-03-19 1986-09-20 Mitsubishi Motors Corp Control device of internal-combustion engine
JPS63271601A (en) * 1987-04-30 1988-11-09 Toshiba Corp Output pulse generating device

Also Published As

Publication number Publication date
JP2536102B2 (en) 1996-09-18

Similar Documents

Publication Publication Date Title
US5261107A (en) Programable interrupt controller
JP2004110785A (en) Memory controller
WO1990010907A1 (en) Controller for direct memory access
JPS6319854Y2 (en)
EP0426331B1 (en) Programmable interrupt controller and method
JPS5911921B2 (en) numerical control device
JPH0312742A (en) Central processing unit
JPH02136901A (en) Data processor
JP2002152020A (en) Pulse signal generator
JPS6329868A (en) Dma controller
JPH08249267A (en) Dma controller
JP2536103B2 (en) Data processing device
JPS62145432A (en) Data processor
JP2844624B2 (en) Data processing device
JPH0821009B2 (en) CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION
JP2731556B2 (en) Fuel injection control device
JP2623501B2 (en) Direct memory access control circuit
JP2847729B2 (en) Information processing device
JPS5942331B2 (en) Prosetsusasouchinoseigiohoshiki
JPH0738156B2 (en) Micro command controller
JPH02252047A (en) Microprocessor
JPS6221130B2 (en)
JPH03175538A (en) Duplex processor
JPH04343132A (en) Central processing unit
JPH03257572A (en) Multiprocessor system