JPS6143321A - Output device of pulse signal - Google Patents

Output device of pulse signal

Info

Publication number
JPS6143321A
JPS6143321A JP59165852A JP16585284A JPS6143321A JP S6143321 A JPS6143321 A JP S6143321A JP 59165852 A JP59165852 A JP 59165852A JP 16585284 A JP16585284 A JP 16585284A JP S6143321 A JPS6143321 A JP S6143321A
Authority
JP
Japan
Prior art keywords
pulse signal
address
instruction
output
constant
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
JP59165852A
Other languages
Japanese (ja)
Inventor
Kei Kotorii
小鳥井 継
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 JP59165852A priority Critical patent/JPS6143321A/en
Publication of JPS6143321A publication Critical patent/JPS6143321A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate the easy change of an address outputting a pulse signal by making a constant part in an instruction sentence instructing the output of pulse signals offset for the address used for output of pulse signals. CONSTITUTION:A pulse signal output device is provided with an instruction recorder 1, instruction registers 2 and 3, pulse signal producing part 7, etc. The output timing of pulse signals is decided by the numerica value of a constat part in an instruction sentence 50 and outputted. In such a case, the numerical value obtained by adding the constant data 53 of a constant register 3 and the address data 54 is set to an address store part 8 for pulse signal address at a time point when a pulse generation control signal 9 is outputted. An address 61 of the contents of said numerical value is compared with the data 54 through an address comparison part 59. Then the data 54 changes gradually and an address coincidence signal 62 is outputted when the coincidence is obtained from said comparison. The part 7 outputs a pulse signal 60 by the signal 62.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明はプログラム制御によってパルス信号を出力す
るパルス信号出力装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a pulse signal output device that outputs pulse signals under program control.

〔従来妖術〕[Conventional magic]

従来、この種の装置としては、第1図に示すものかめる
。図において、(IIはプログラムメモリから読出され
た命令を解読する命令デコーダ、(21は解読された命
令コードを格納する命令レジスタ、(3)はその命令に
付随する定数を格ス6する定数レジスタ、(41はプロ
グラムメモリにアクセスしてプログラムメモリt−読出
すためのメモリアドレスを作成するプログラムカウンタ
、(51は各櫨演′Xを行う演算部、(61は演算結果
を格納する演算レジスタ、(7)はパルス信号を作成す
るためのi<tレス作成部である。
Conventionally, a device of this type is shown in FIG. In the figure, (II is an instruction decoder that decodes instructions read from the program memory, (21 is an instruction register that stores the decoded instruction code, and (3) is a constant register that stores constants associated with the instruction. , (41 is a program counter that accesses the program memory and creates a memory address for reading the program memory t-, (51 is an arithmetic unit that performs each operation'X, (61 is an arithmetic register that stores the operation results, (7) is an i<t response creation unit for creating a pulse signal.

また、各部分間で送受される信号のうち(50)はプロ
グラムメモリの出力でめる命令文、(51)はプログラ
ムメモリへアクセスするためのメモリアドレス、  (
52)は命令文(50)から解読された命令コード、(
53)は命令文(50)中に含まれていて定数レジスタ
(3)にセットされた定数データ、(54)はアドレス
データ、(55)は演算データ、(56)は処理データ
、(57)はデータ(53) 、 (54) 、 (5
5)。
Also, among the signals sent and received between each part, (50) is a command statement that can be output from the program memory, (51) is a memory address for accessing the program memory, (
52) is the instruction code decoded from the instruction sentence (50), (
53) is constant data included in the instruction statement (50) and set in constant register (3), (54) is address data, (55) is operation data, (56) is processing data, (57) are data (53), (54), (5
5).

(56)が伝送されるデータバス、(58)は各種制御
信号、  (59)に信号(58)中のパルス発生制御
信号、(60)はパルス信号である。
(56) is a data bus for transmission, (58) is various control signals, (59) is a pulse generation control signal in signal (58), and (60) is a pulse signal.

所望のタイミングでパルス信号を出力しようとする場合
は、プログラムメモリ内の、その所望めタイミングに対
応するアドレス位置にノくルス信号出力命令を入れてお
く。
When a pulse signal is to be output at a desired timing, a pulse signal output command is placed in the address position corresponding to the desired timing in the program memory.

プログラムカウンタi41はプログラムメモリから読出
すべき命令文のアドレスを指定するメモリアドレス(s
x)を発生してプログタムメモリにアクセスする。メモ
リアドレス(51)としては現在読出されているデータ
(プログラムメモリの場合は命令文)のアドレスに数値
1を加えたアドレス力;出力されるのであるが、実行中
の命令によって特に指定される場合は、定数レジスタ(
31の内容等を演算部(51によシ演算処理したデータ
がアドレスデータ(54)としてプログラムカウンタ(
41會経てメモリアドレス(51)−となって出力され
る、メモリアドレス(51)で指定されたデータが、命
令文(5o)として読出され、その命令文(50)の中
の命令部は命令デコーダfilによって解読されて、解
読された命令コード(b’t )が命令レジスタ(2)
にセットされる。また、命令文(50)中の定数部は定
数レジスタ(31にセットされる。
The program counter i41 is a memory address (s) that specifies the address of the instruction statement to be read from the program memory.
x) to access program memory. The memory address (51) is the address of the currently read data (instruction statement in the case of program memory) plus the number 1; it is output, but if it is specifically specified by the instruction being executed. is a constant register (
The contents of 31 are processed by the arithmetic unit (51) and the data is sent to the program counter (54) as address data (54).
The data specified by memory address (51), which is output as memory address (51) after 41 sessions, is read out as an instruction statement (5o), and the instruction part in that instruction statement (50) is an instruction. The decoder fil decodes the decoded instruction code (b't), and the decoded instruction code (b't) is stored in the instruction register (2).
is set to Further, the constant part in the instruction statement (50) is set in the constant register (31).

命令レジスタ(2)にセットされている命令コード(5
2)の内容によって各種制御信号(58)が作成される
が、命令コード(5z)が/(ルス信号出力命令である
ときは、パルス発生制御信号(59) Ii比出力れ、
これに応じてパルス信号作成部(7)から7.aルス信
号(6(J )が出力される。
The instruction code (5) set in the instruction register (2)
Various control signals (58) are created depending on the contents of 2), but when the instruction code (5z) is a /( pulse signal output command, the pulse generation control signal (59) Ii ratio output,
In response to this, the pulse signal generator (7) sends 7. A pulse signal (6 (J)) is output.

このパルス信号(60)はプログラムの動作確認、他の
装置の制御等に使用される。
This pulse signal (60) is used for checking the operation of the program, controlling other devices, etc.

従来の装置は以上のように構成されているので、パルス
信号出力のタイミングを変更することが困難であるとい
う欠点があった。すなわち、パルス信号出力のタイミン
グを変更するにはパルス信号出力を命令する命令文のプ
ログラムメモリ内におけるアドレスを変更しなければな
らず、このアドレス変更は必然的に他の命令文のアドレ
ス変更をひき起し、そのような変更をしてもプログラム
メモリに格納されているプログラムによる動作にエラー
が発生しないことを保証する措置を講じておかねばなら
ぬので、このアドレス変更には手間がかかる等の欠点が
あった。
Since the conventional device is configured as described above, it has the disadvantage that it is difficult to change the timing of pulse signal output. In other words, in order to change the timing of pulse signal output, it is necessary to change the address in the program memory of the command statement that commands pulse signal output, and this address change inevitably causes address changes of other command statements. Address changes are time-consuming, and measures must be taken to ensure that such changes do not cause errors in the operation of programs stored in program memory. There were drawbacks.

〔発明の概要〕[Summary of the invention]

この発明は上記のような従来のものの欠点を除去するた
めになされたもので、この発明ではパルス信号出力を命
令する命令文中の定数部の数値によりてパルス信号出力
のタイミングを定めるもので、この定数部の数値を書換
えることは容易であシ、従ってパルス信号出力のタイミ
ングを変更することも容易となる。
This invention was made in order to eliminate the drawbacks of the conventional ones as described above. In this invention, the timing of pulse signal output is determined by the value of the constant part in the instruction statement that commands pulse signal output. It is easy to rewrite the numerical value of the constant part, and therefore it is also easy to change the timing of pulse signal output.

〔発明の実施例〕[Embodiments of the invention]

以下この発明の実施例を図面について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第2図はこの発明の一実施例を示すブロック図であって
、第1図と同一符号は同−又は相当部分を示し、(8)
はパルス信号出力アドレス格納部、(9)はアドレス比
較部、(61)はパルス信号出力アドレス、(62)は
アドレス一致信号である。
FIG. 2 is a block diagram showing an embodiment of the present invention, in which the same reference numerals as in FIG. 1 indicate the same or corresponding parts, (8)
(9) is an address comparator, (61) is a pulse signal output address, and (62) is an address match signal.

命令レジスタ(2)からパルス発生制御信号(59)が
出力するまでの動作は第1図について説明したと同様で
ある。信号(59)が出力した時点で定数レジスタ(3
1の内容(すなわち定数データ(53))とプログラム
カウンタ(4)の内容(すなわちアドレスデータ(54
))と全加算した数値をパルス信号出力アドレス格納部
(8)にセットする。比較部(9)はパルス信号出力ア
ドレス格納部(8)の内容のパルス信号出力アドレス(
61)とアドレスデータ(54)とを比較しているがア
ドレスデータ(54)が順次変化してパルス信号出力ア
ドレス(6エ)と一致するとアドレス一致信号(62)
が出力する。アドレス一致信号(62)によってパルス
信号作成部(7)がパルス信号(60) t−出力する
The operation up to the output of the pulse generation control signal (59) from the instruction register (2) is the same as that described with reference to FIG. When the signal (59) is output, the constant register (3
1 (i.e., constant data (53)) and the contents of program counter (4) (i.e., address data (54)).
)) and the total added value are set in the pulse signal output address storage section (8). The comparator (9) compares the pulse signal output address (
61) and address data (54), and when the address data (54) changes sequentially and matches the pulse signal output address (6e), an address match signal (62) is generated.
outputs. In response to the address match signal (62), the pulse signal generator (7) outputs a pulse signal (60) t-.

なお、上記実施例ではパルス信号出力アドレス格納部(
8)にはアドレスデータ(54)と定数データ(53)
との和がセットされるので、定数レジスタ(3)にセッ
トされる定数データはアドノスオフセッ) (addr
ess off−set )値であるが、命令文(50
)の定数部にパルス信号を出力するアドレスそのものを
入れておいてこれを定数レジスタに設定してもよい。こ
の場合はパルス発生制御信号(59)によって定数レジ
スタ(3)の内容の定数データ(53)そのものをパル
ス信号出力アドレス格納部(8)(格納する。
Note that in the above embodiment, the pulse signal output address storage section (
8) contains address data (54) and constant data (53)
The constant data set in the constant register (3) is Adnos Offset) (addr
ess off-set ) value, but the imperative statement (50
) may contain the address itself for outputting the pulse signal and set it in the constant register. In this case, the constant data (53) of the constant register (3) is stored in the pulse signal output address storage section (8) by the pulse generation control signal (59).

また、上記の実施例ではパルス信号作成部(71はアド
レス一致信号(62)だけで駆動されるが、アドレス一
致信号(62)とパルス発生制御信号(59)との論理
和によって駆動されるようにしてもよい。
Further, in the above embodiment, the pulse signal generator (71) is driven only by the address match signal (62), but it is driven by the logical sum of the address match signal (62) and the pulse generation control signal (59). You can also do this.

さらに、パルス発生制御信号(b9)で駆動されるパル
ス信号作成部を別に設けてもよい。この場合はこの別に
設けたパルス信号作成部から出力するパルス信号出力と
第2図に示すパルス信号作成部(7)から出力するパル
ス信号出力とを適宜使い分けし、或は互にパルス幅の異
なったパルスとすることができる。
Furthermore, a pulse signal generator driven by the pulse generation control signal (b9) may be provided separately. In this case, the pulse signal output output from the separately provided pulse signal generation section and the pulse signal output output from the pulse signal generation section (7) shown in Fig. 2 may be used appropriately, or they may have different pulse widths. It can be a pulse.

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

以上のようにこの発明によれは、パルス信号出力を命令
する命令文−中の定数部をパルス信号出力のためのアド
レスオフセットとしたのでパルス信号を出力するアドレ
スを変更することが容易になった。
As described above, according to this invention, the constant part in the command statement for commanding pulse signal output is used as an address offset for pulse signal output, making it easy to change the address at which the pulse signal is output. .

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

第1図は従来の装att示すブロック図、第2図はこの
発明の一実施例を示すブロック図である。・(2)・・
・命令レジスタ、(31・・・定数レジスタ、(41・
・・プログラムカウンタ、(7)・・・パルス信号作成
部、(81・・・パルス信号出力アドレス格納部、(9
)・・・アドレス比較部、(50)・・・命令文、(5
1)・・・メモリアドレス、(52)・・・命令コード
、(53)・・・定数データ、(54)・・・アドレス
データ、(59)・・・パルス発生制御信号、(bO)
・・・パルス信号、(61)・・・パルス信号出力アド
レス、(62)・・・アドレス一致信号。 尚、各図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing a conventional device, and FIG. 2 is a block diagram showing an embodiment of the present invention.・(2)・・
・Instruction register, (31...Constant register, (41・
...Program counter, (7)...Pulse signal creation section, (81...Pulse signal output address storage section, (9
)...Address comparison unit, (50)...Instruction statement, (5
1)...Memory address, (52)...Instruction code, (53)...Constant data, (54)...Address data, (59)...Pulse generation control signal, (bO)
...Pulse signal, (61)...Pulse signal output address, (62)...Address match signal. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 プログラム制御によってパルス信号を出力するパルス信
号出力装置において、 パルス信号の出力を命ずる命令コードと、パルス信号を
出力するタイミングを定める定数とを含む命令文を、プ
ログラムメモリの所定のアドレス位置に格納する手段、 上記プログラムメモリにアクセスするメモリアドレスを
順次生成するプログラムカウンタ、上記命令文が読出さ
れた時、上記命令コードを命令レジスタにセットし、上
記定数を定数レジスタにセットする手段、 上記命令レジスタにセットされた命令コードで定める命
令の実行によって上記定数レジスタの内容によって定め
られる数値をパルス信号出力アドレス格納部にセットす
る手段、 上記プログラムカウンタの出力のメモリアドレスと上記
パルス信号出力アドレス格納部の内容とを比較するアド
レス比較部、 このアドレス比較部からの比較一致の信号に対応してパ
ルス信号を出力するパルス信号作成部とを備えたことを
特徴とするパルス信号出力装置。
[Claims] In a pulse signal output device that outputs a pulse signal under program control, an instruction statement including an instruction code for commanding the output of the pulse signal and a constant for determining the timing for outputting the pulse signal is stored in a predetermined location in the program memory. a program counter that sequentially generates memory addresses for accessing the program memory; and when the instruction statement is read, the instruction code is set in the instruction register and the constant is set in the constant register. means for setting a numerical value determined by the contents of the constant register into a pulse signal output address storage section by executing an instruction determined by an instruction code set in the instruction register; a memory address of the output of the program counter and the pulse signal; A pulse signal output device comprising: an address comparison section that compares the contents of an output address storage section; and a pulse signal generation section that outputs a pulse signal in response to a comparison match signal from the address comparison section. .
JP59165852A 1984-08-06 1984-08-06 Output device of pulse signal Pending JPS6143321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59165852A JPS6143321A (en) 1984-08-06 1984-08-06 Output device of pulse signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59165852A JPS6143321A (en) 1984-08-06 1984-08-06 Output device of pulse signal

Publications (1)

Publication Number Publication Date
JPS6143321A true JPS6143321A (en) 1986-03-01

Family

ID=15820216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59165852A Pending JPS6143321A (en) 1984-08-06 1984-08-06 Output device of pulse signal

Country Status (1)

Country Link
JP (1) JPS6143321A (en)

Similar Documents

Publication Publication Date Title
JP2548428B2 (en) Timing generator
JPS6143321A (en) Output device of pulse signal
JPH0447349A (en) Data storage device
JPH0330917Y2 (en)
JP2597409B2 (en) Microcomputer
KR920001102B1 (en) Data processing unit
JPH0423051A (en) Microprocessor
JP2575025B2 (en) In-circuit emulator
JPS6117474Y2 (en)
JPH02136921A (en) Register access system
JPS628235A (en) Storage device for activity log
JPS6091461A (en) Expanding device for data address space of microprocessor
JPH02183331A (en) Microcomputer
JPS60126731A (en) Program control method
JPS60193046A (en) Detecting system for instruction exception
JPH0323938B2 (en)
JPH047739A (en) Controlling system for instruction executing time
JPH04209046A (en) Memory access circuit
JPS6156820B2 (en)
JPS58123142A (en) Information processor
JPH01102643A (en) Data processing system
JPH02310746A (en) Memory access wait control circuit
JPH03129536A (en) Brake address detecting device
JPH02109146A (en) Program debugging device
JPS5815203U (en) programmable controller