JP2661222B2 - Pulse output device - Google Patents

Pulse output device

Info

Publication number
JP2661222B2
JP2661222B2 JP63321251A JP32125188A JP2661222B2 JP 2661222 B2 JP2661222 B2 JP 2661222B2 JP 63321251 A JP63321251 A JP 63321251A JP 32125188 A JP32125188 A JP 32125188A JP 2661222 B2 JP2661222 B2 JP 2661222B2
Authority
JP
Japan
Prior art keywords
output
pulse
signal
interrupt
unit
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.)
Expired - Fee Related
Application number
JP63321251A
Other languages
Japanese (ja)
Other versions
JPH02165721A (en
Inventor
美津江 阿部
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP63321251A priority Critical patent/JP2661222B2/en
Publication of JPH02165721A publication Critical patent/JPH02165721A/en
Application granted granted Critical
Publication of JP2661222B2 publication Critical patent/JP2661222B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、周辺機器などの制御を行うためのパルス出
力装置に関する。
Description: TECHNICAL FIELD The present invention relates to a pulse output device for controlling peripheral devices and the like.

〔従来の技術〕[Conventional technology]

今日、マイクロコンピュータはLSI技術の進歩により
高集積化、多機能化が進み、各種の周辺ハードウェアを
ワンチップに搭載するようになってきた。なかでも、パ
ルス出力装置はモータなどの外部機構の制御には不可欠
なもので、制御対象となる外部機器の種類や性質に応じ
て、さまざまなパルスを発生することが必要となる。こ
のようなパルス出力機能を備えた製品として日本電気製
のμPD7811などがある。
Today, microcomputers are becoming more highly integrated and multifunctional due to advances in LSI technology, and various peripheral hardware have been mounted on a single chip. Above all, a pulse output device is indispensable for controlling an external mechanism such as a motor, and it is necessary to generate various pulses according to the type and properties of an external device to be controlled. Products having such a pulse output function include the μPD7811 manufactured by NEC.

ここで、従来のパルス出力装置について、プログラマ
ブル矩形波(以下、PPGと記す)出力装置を一例に説明
する。
Here, a conventional pulse output device will be described using a programmable rectangular wave (hereinafter, referred to as PPG) output device as an example.

第4図は従来のパネル出力装置のブロック図、第5
図、第6図はその動作タイミング図である。
FIG. 4 is a block diagram of a conventional panel output device, and FIG.
FIG. 6 is a timing chart of the operation.

このパルス出力装置は、プログラムを読出して実行す
る中央処理装置(以下CPUと記す)10と、プログラムお
よびデータが格納される記憶手段(以下メモリと記す)
20と、任意のパルスを発生するパルス出力部30と、パル
ス出力部30からの割込み要求を受けてCPU10に割込み処
理の起動を要求する割込み制御部40と、およびこれらを
相互に接続する内部バス50とから構成されている。
The pulse output device includes a central processing unit (hereinafter, referred to as a CPU) 10 for reading and executing a program, and storage means (hereinafter, referred to as a memory) for storing programs and data.
20, a pulse output unit 30 for generating an arbitrary pulse, an interrupt control unit 40 for receiving an interrupt request from the pulse output unit 30 and requesting the CPU 10 to start an interrupt process, and an internal bus connecting these components to each other Consists of 50 and 50.

メモリ20は、プログラムを記憶するプログラムメモリ
21と、処理データを記憶するデータメモリ22とからなっ
ている。パルス出力部30は、カウントクロックφを計数
するカウンタ31と、カウンタ31と比較する値を記憶する
第1および第2のレジスタ32,33と、カウンタ31と第1
および第2のレジスタ32,33の比較動作を行ない、カウ
ンタ31の内容と第1および第2のレジスタ32,33の内容
が一致するとアクティブになる第1および第2の一致信
号41,42を出力する第1および第2の比較器34,35と、外
部に出力するパルスを制御する出力制御回路36とからな
っている。割込み制御部40は第1の比較器34から発生す
る第1の一致信号41がアクティブになったことを検知す
ると、割込み要求信号43により割込み要求が発生したこ
とをCPU10に通知する。
The memory 20 is a program memory for storing a program.
21 and a data memory 22 for storing processing data. The pulse output unit 30 includes a counter 31 that counts the count clock φ, first and second registers 32 and 33 that store a value to be compared with the counter 31, a counter 31 and a first
And the comparison operation of the second registers 32 and 33 is performed, and the first and second coincidence signals 41 and 42 which become active when the contents of the counter 31 and the contents of the first and second registers 32 and 33 match are output. The first and second comparators 34 and 35 perform the above-mentioned operations, and the output control circuit 36 controls a pulse output to the outside. When detecting that the first match signal 41 generated from the first comparator 34 has become active, the interrupt control unit 40 notifies the CPU 10 of the occurrence of the interrupt request by the interrupt request signal 43.

次に、第4図を参照して各部の動作を説明する。 Next, the operation of each unit will be described with reference to FIG.

パルス出力部30のカウンタ31はシステムリセット解除
後、カウント動作を開始し、カウントクロックφを入力
するたびにカウントアップする。第1の比較器34はカウ
ンタ31と第1のレジスタ32の内容を常に比較し、両者の
内容が等しくなると、第1の一致信号をアクティブ
(“1")にする。第1の一致信号41がアクティブになる
と、第1の一致信号41は出力制御回路36のR−Sフリッ
プフロップをセット(“1")すると同時に割込み制御部
40に出力され、割込み要求の発生を通知する。一方、第
2の比較器35はカウンタ31と第2のレジスタ33の内容を
常に比較し、両者の内容が等しくなると第2の一致信号
42をアクティブ(“1")にする。第2の一致信号42がア
クティブになると、第2の一致信号42は出力制御回路36
のR−Sフリップフロップをリセット(“0")すると同
時に、カウンタ31の内容を“0"にクリヤする。割込み制
御部40は第1の一致信号41がアクティブ(“1")になっ
たことを検知すると割込み起動信号43をアクティブ
(“1")にして、CPU10に割込み処理の起動を要求す
る。CPU10は通常メモリ20内のプログラムメモリ21から
プログラムカウンタ(図示せず)に従って命令を読出し
て実行する。1つの命令の処理が終了するたびに、CPU1
0は、割込み起動信号43がアクティブ(“1")であるか
否かを判定し、“0"であれば上記命令処理を繰り返す。
もし割込み起動信号43がアクティブ(“1")であれば、
CPU10は割込み処理プログラムの実行を開始する。
The counter 31 of the pulse output unit 30 starts the counting operation after the system reset is released, and counts up every time the count clock φ is input. The first comparator 34 constantly compares the contents of the counter 31 and the contents of the first register 32, and when the contents of the two become equal, activates the first coincidence signal ("1"). When the first coincidence signal 41 becomes active, the first coincidence signal 41 sets the RS flip-flop of the output control circuit 36 ("1"), and at the same time, sets the interrupt control unit.
Output to 40 to notify the occurrence of an interrupt request. On the other hand, the second comparator 35 always compares the contents of the counter 31 and the contents of the second register 33.
Make 42 active ("1"). When the second coincidence signal 42 becomes active, the second coincidence signal 42 is output to the output control circuit 36.
Is reset ("0"), and at the same time, the contents of the counter 31 are cleared to "0". When detecting that the first coincidence signal 41 has become active ("1"), the interrupt control unit 40 activates the interrupt activation signal 43 ("1") and requests the CPU 10 to activate the interrupt processing. The CPU 10 reads and executes instructions from a program memory 21 in the normal memory 20 according to a program counter (not shown). Each time the processing of one instruction ends, the CPU1
A value of 0 determines whether or not the interrupt activation signal 43 is active (“1”). If the value is “0”, the instruction processing is repeated.
If the interrupt activation signal 43 is active (“1”),
The CPU 10 starts executing the interrupt processing program.

次に、第5図のタイミング図を参照して、パルス出力
部30の動作と割込み処理の関係について説明する。
Next, the relationship between the operation of the pulse output unit 30 and the interrupt processing will be described with reference to the timing chart of FIG.

今、第1のレジスタ32は、端子から出力パルスのパル
ス幅を決定する値w1が、第2の比較レジスタ33にはパル
ス周期を決定する値P(P>w1)が設定されている。カ
ウンタ31はカウントクロックφの順次計数し、カウント
値がw1になると、第1の比較器34は第1の一致信号41を
アクティブにし、出力制御回路36のR−フリップフロッ
プをリセット(“0")し、パルス出力を反転する。ま
た、割込み制御部40は第1の一致信号41がアクティブに
なったことを検知してCPU10に割込み起動信号43を出力
する。CPU10は割込み起動信号43がアクティブになった
ことを検知すると、割込み処理プログラムの実行を開始
する。割込み処理プログラムでは、次に出力するパルス
のパルス幅w2をデータメモリ22から読出し、第1のレジ
スタ32へ書込む処理を行う。カウンタ31はカウント値が
w1になった後もカウントアップ動作を行い、カウント値
がPになると今度は第2の比較器35が第2の一致信号42
をアクティブにし、出力制御回路36のR−Sフリップフ
ロップをセット(“1")し、パルス出力を反転する。同
時にカウンタ31を“0"にクリヤし、再びカウントアップ
動作を行う。
Now, the first register 32, the value w 1 that determines the pulse width of the output pulse from the terminal, the value determines the pulse period P (P> w 1) is set in the second comparison register 33 . Counter 31 sequentially counts the count clock phi, when the count value becomes w 1, the first comparator 34 activates the first coincidence signal 41, R- flip flop reset ( "0 of the output control circuit 36 ") And invert the pulse output. Further, the interrupt control unit 40 detects that the first coincidence signal 41 has become active, and outputs an interrupt activation signal 43 to the CPU 10. When detecting that the interrupt activation signal 43 has become active, the CPU 10 starts executing the interrupt processing program. The interrupt processing program reads the pulse width w 2 of the pulse will be output from the data memory 22, the process of writing to the first register 32 performs. The counter 31
also performs a count-up operation after becoming w 1, now when the count value becomes P is a second comparator 35 the second coincidence signal 42
Is activated, the RS flip-flop of the output control circuit 36 is set ("1"), and the pulse output is inverted. At the same time, the counter 31 is cleared to "0" and the count-up operation is performed again.

以上の処理を繰り返すことにより、 パルス周期 TP=P×tφ tφ=カウントクロックφの周期 パルス幅 TW=wn×tφ wn=nパルス目の第1のレジスタ32の値(n=1,2,…) のパルスを出力することができる。By repeating the above processing, the pulse cycle T P = P × tφ tφ = the cycle of the count clock φ Pulse width T W = w n × t φ w n = the value of the first register 32 at the n -th pulse (n = 1 , 2, ...) can be output.

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

上述した従来のパルス出力装置は、比較器から一致信
号が発生してから割込み処理が終了するまでの時間と、
その割込み処理の中で設定される次のパルス幅の値との
関係によっては正しい制御が行われない場合がある。
The conventional pulse output device described above has a time from when a coincidence signal is generated from the comparator to when the interrupt processing ends,
Correct control may not be performed depending on the relationship with the next pulse width value set in the interrupt processing.

この現象について第6図のタイミング図をもとに説明
する。
This phenomenon will be described with reference to the timing chart of FIG.

今、カウンタ31のカウント値がw1になると、第1の一
致信号41がアクティブになり、出力制御回路36のR−S
フリップフロップはセット(“1")され、パルス出力レ
ベルが反転する。同時に割込み制御部40は第1の一致信
号41を受けて割込み起動信号43を発生する。CPU10は、
割込み起動信号43がアクティブになったことを検知する
と、前述の割込み処理を開始する。
Now, when the count value of the counter 31 becomes w 1, a first coincidence signal 41 becomes active, R-S of the output control circuit 36
The flip-flop is set (“1”), and the pulse output level is inverted. At the same time, the interrupt controller 40 receives the first coincidence signal 41 and generates an interrupt activation signal 43. CPU10
Upon detecting that the interrupt activation signal 43 has become active, the above-described interrupt processing is started.

この割込み処理において設定された次のパルス設定値
w2が、設定された時点におけるカウンタ31のカウント値
よりも大きい場合、カウンタ31のカウント値がw2になる
と、1パルス周期内に再び第1の一致信号41が発生す
る。この第1の一致信号41に対応した割込み処理によ
り、次のパルス幅w3が第1のレジスタ32に書き込まれて
しまい、第6図に示すように、w2に相当するパルスは出
力されず、w3に対応するパルスが次に出力される。
Next pulse set value set in this interrupt processing
w 2 is greater than the count value of the counter 31 at the time of the set, the count value of the counter 31 becomes the w 2, a first coincidence signal 41 is generated again in one pulse period. An interrupt process corresponding to the first match signal 41, the next pulse width w 3 will be written into the first register 32, as shown in FIG. 6, a pulse corresponding to w 2 is not output , pulses corresponding to w 3 is then output.

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

本発明のパルス出力装置は、パルス出力部が、第1の
一致信号が出力されてから第2の一致信号が出力される
までの間に再度、第1の一致信号が出力された場合、該
第1の一致信号が割込み要求信号として割込み制御部へ
出力されるのを禁止する禁止回路を備えている。
In the pulse output device according to the present invention, when the pulse output unit outputs the first coincidence signal again after the output of the first coincidence signal and before the output of the second coincidence signal, A prohibition circuit is provided for prohibiting the first match signal from being output as an interrupt request signal to the interrupt control unit.

〔作用〕[Action]

したがって、次のパルス幅の設定値が、設定された時
点におけるカウンタのカウント値より大きい場合に、次
のパルス幅が第1のレジスタに書込まれることはなくな
る。
Therefore, when the set value of the next pulse width is larger than the count value of the counter at the set time, the next pulse width will not be written to the first register.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のパルス出力装置の一実施例のブロッ
ク図、第2図はその動作タイミング図である。
FIG. 1 is a block diagram of one embodiment of the pulse output device of the present invention, and FIG. 2 is an operation timing diagram thereof.

このパルス出力装置は、プログラムを読出し実行する
CPU10と、プログラムおよびデータを格納するためのメ
モリ20と、パルスを出力するパルス出力部30と、パルス
出力部30からの割込み要求信号44を受付けCPU10へ通知
する割込み制御部40と、これら各部を接続する内部バス
50から構成される。CPU10、メモリ20、割込み制御部40
の構成は第4図の従来のパルス出力装置と同様なので説
明は省略する。
This pulse output device reads and executes a program
A CPU 10, a memory 20 for storing programs and data, a pulse output unit 30 for outputting pulses, an interrupt control unit 40 for receiving an interrupt request signal 44 from the pulse output unit 30 and notifying the CPU 10, and Internal bus to connect
Consists of 50. CPU 10, memory 20, interrupt control unit 40
Is similar to that of the conventional pulse output device shown in FIG.

パルス出力部30は、カウントクロックφを計数するカ
ウンタ31と、カウンタ31と比較する値を記憶する第1お
よび第2のレジスタ32,33と、第1および第2のレジス
タ32,33とカウンタ31の値を比較し、カウンタ31の値と
第1,第2のレジスタ32,33の内容が一致するとアクティ
ブになる第1および第2の一致信号41,42が出力する第
1および第2の比較器34,35と、出力パルスを制御する
R−Sフリップフロップ36と、R−Sフリップフロップ
36の出力により第1の一致信号41から割込み要求信号44
を生成する割込み要求禁止回路37とからなっている。
The pulse output unit 30 includes a counter 31 that counts the count clock φ, first and second registers 32 and 33 that store a value to be compared with the counter 31, first and second registers 32 and 33, and a counter 31. And the first and second comparison signals output by the first and second coincidence signals 41 and 42 which become active when the value of the counter 31 and the contents of the first and second registers 32 and 33 match. Devices 34 and 35, an RS flip-flop 36 for controlling the output pulse, and an RS flip-flop
From the output of 36, the first match signal 41 to the interrupt request signal 44
And an interrupt request prohibition circuit 37 for generating

次に、第2図のタイミング図を参照して本実施例の動
作について説明する。
Next, the operation of this embodiment will be described with reference to the timing chart of FIG.

今、カウンタ31の値がw1になると、第1の比較器34は
第1の一致信号41をアクティブにする。このとき端子か
ら出力されるパルスのレベル、即ちR−Sフリップフロ
ップ36の出力がロウレベルであるので、割込み要求信号
44がアクティブになり割込み制御部40に出力すると同時
にR−Sフリップフロップ36をセット(“1")する。割
込み制御部40は、割込み要求信号44がアクティブになっ
たことを検知すると、割込み起動信号43をCPU10に出力
して割込み処理の起動を促す。CPU10は割込み起動信号4
3がアクティブになったことを検知すると割込み処理を
開始して、次のパルス幅を決める値w2を第1のレジスタ
32に書込む。このw2が書込みを行った時点におけるカウ
ンタ31の値より大きい場合、第2の一致信号42が発生す
る前に再び第1の一致信号41が発生する。しかし、R−
Sフリップフロップ36の出力はハイレベル(“1")にな
っているため、割込み要求信号44はアクティブになら
ず、したがって、割込み処理も行われないので、第1の
レジスタ32はw2の値を保持する。そして、カウンタ値が
Pに達すると第2の一致信号42がアクティブとなり、R
−Sフリップフロップ36をリセット(“0")し、またカ
ウンタ31を0にクリアする。その後カウンタ31はカウン
トアップ動作を続け、再びカウント値がw2に達すると第
1の一致信号41がアクティブになる。このときR−Sフ
リップフロップ36の出力はロウレベル(“0")なので割
込み要求信号44がアクティブとなり、R−Sフリップフ
ロップ36はセット(“1")される。つまり、w2に対応す
るロウレベル幅(TW2)のパルスが出力されたことにな
る。割込み要求信号44が4アクティブになると、CPU10
は対応する割込み処理において次のパルス幅w3を第1の
比較レジスタ32に書込む。
Now, the value of the counter 31 becomes to w 1, the first comparator 34 activates the first coincidence signal 41. At this time, since the level of the pulse output from the terminal, that is, the output of the RS flip-flop 36 is low, the interrupt request signal
44 becomes active and outputs to the interrupt control unit 40, and at the same time, the RS flip-flop 36 is set ("1"). When detecting that the interrupt request signal 44 has become active, the interrupt control unit 40 outputs an interrupt start signal 43 to the CPU 10 to prompt the start of interrupt processing. CPU10 is interrupt activation signal 4
When it detects that 3 has become active, it starts interrupt processing, and stores the value w 2 that determines the next pulse width in the first register.
Write to 32. If this w 2 is greater than the value of the counter 31 at the time of performing the write, first coincidence signal 41 is generated again before the second coincidence signal 42 is generated. However, R-
The output of the S flip-flop 36 is at high level ( "1"), the interrupt request signal 44 is not active, therefore, does not take place even interrupt process, the first register 32 of the w 2 value Hold. When the counter value reaches P, the second coincidence signal 42 becomes active, and R
Reset the -S flip-flop 36 ("0") and clear the counter 31 to 0. Thereafter the counter 31 continues to count-up operation, the first coincidence signal 41 becomes active again count value reaches w 2. At this time, since the output of the RS flip-flop 36 is low level ("0"), the interrupt request signal 44 becomes active, and the RS flip-flop 36 is set ("1"). That is, a pulse having a low level width (T W2 ) corresponding to w 2 has been output. When four interrupt request signals 44 become active, the CPU 10
Write the next pulse width w 3 in the first comparison register 32 in the interrupt process corresponding to.

本実施例においては、出力パルスがロウレベル
(“0")の期間のみ第1の一致信号41による割込み処理
の起動を促すものであるが、逆のレベルのパルスを出力
する場合にも、割込み要求禁止回路37にR−Sフリップ
フロップ36の出力を反転した信号を入力するだけで同様
の制御を行うことが容易にできる。
In the present embodiment, the activation of the interrupt processing by the first coincidence signal 41 is urged only during the period when the output pulse is at the low level ("0"). The same control can be easily performed simply by inputting a signal obtained by inverting the output of the RS flip-flop 36 to the prohibition circuit 37.

第3図は本発明のパルス出力装置の第2の実施例のパ
ルス出力部のブロック図である。
FIG. 3 is a block diagram of a pulse output unit of a second embodiment of the pulse output device of the present invention.

本実施例では、フリップフロップ381とインバータ382
とアンドゲート383とオアゲート384からなる出力制御回
路38と、インバータ391とアンドゲート392からなる割込
み要求回路39を備えている。
In this embodiment, the flip-flop 381 and the inverter 382
And an output control circuit 38 comprising an AND gate 383 and an OR gate 384; and an interrupt request circuit 39 comprising an inverter 391 and an AND gate 392.

この場合でも動作タイミングは第1の実施例の場合と
全く同じで、第2図に示すタイミングで動作するが、回
路構成は第1の実施例に比べて容易であるため、設計が
容易で、かつ回路規模を小さくすることができる。
Also in this case, the operation timing is exactly the same as that of the first embodiment, and the operation is performed at the timing shown in FIG. 2. However, since the circuit configuration is easier than that of the first embodiment, the design is easy. In addition, the circuit scale can be reduced.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、高速な割込み応答によ
る誤ったパルス出力動作を防ぐため、簡単な制御回路を
付加し、1パルス周期内において同一割込み処理が複数
回行われることをハードウェアで禁止することにより、
割込みの応答時間やカウンタのデータに影響されずに正
確なパルス出力を行うことができる効果がある。
As described above, the present invention adds a simple control circuit in order to prevent an erroneous pulse output operation due to a high-speed interrupt response, and prohibits hardware from performing the same interrupt processing a plurality of times within one pulse cycle. By doing
There is an effect that accurate pulse output can be performed without being affected by the response time of the interrupt or the data of the counter.

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

第1図は本発明のパルス出力装置の第1の実施例を示す
ブロック図、第2図は第1図の実施例の動作タイミング
図、第3図は本発明の第2の実施例におけるパルス出力
部の構成を示すブロック図、第4図は従来のパルス出力
装置のブロック図、第5図および第6図は第4図の従来
のパルス出力装置の動作タイミング図である。 10……CPU、20……メモリ、 21……プログラムメモリ、 22……データメモリ、30……パルス出力部、 31……カウンタ、 32……第1のレジスタ、33……第2のレジスタ、 34……第1の比較器、35……第2の比較器、 36,38……パルス出力制御回路、 37,39……割込み要求発生禁止回路、 40……割込み要求制御部、 41……第1の一致信号、42……第2の一致信号、 43……割込み起動信号、44……割込み要求信号、 50……内部バス。
FIG. 1 is a block diagram showing a first embodiment of the pulse output device of the present invention, FIG. 2 is an operation timing chart of the embodiment of FIG. 1, and FIG. 3 is a pulse in the second embodiment of the present invention. FIG. 4 is a block diagram showing the configuration of the output unit, FIG. 4 is a block diagram of a conventional pulse output device, and FIGS. 5 and 6 are operation timing diagrams of the conventional pulse output device of FIG. 10 ... CPU, 20 ... memory, 21 ... program memory, 22 ... data memory, 30 ... pulse output unit, 31 ... counter, 32 ... first register, 33 ... second register, 34 first comparator, 35 second comparator, 36,38 pulse output control circuit, 37,39 interrupt request generation prohibition circuit, 40 interrupt request control unit, 41 First match signal, 42... Second match signal, 43... Interrupt start signal, 44... Interrupt request signal, 50.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】中央処理装置と、データを記憶する記憶手
段と、所望の周期とパルス幅を持ったパルスを出力する
パルス出力部と、中央処理装置に割込み要求を発生する
割込み要求発生部を備え、パルス出力部は、クロックを
カウントし、第2の一致信号によりリセットされるカウ
ンタと、パルス幅、周期を決定する値がそれぞれ設定さ
れる第1、第2のレジスタと、カウンタの値と第1、第
2のレジスタの値をそれぞれ比較し、一致するとそれぞ
れ第1、第2の一致信号を出力する第1、第2の比較器
と、第1、第2の一致信号により外部にパルスを出力す
る出力制御回路とを含み、割込み制御部は第1の一致信
号が発生すると、これを割込み要求信号として入力し、
中央処理装置に割込み起動信号を出力し、中央処理装置
はこれを受けて記憶手段から、次に出力するパルスのパ
ルス幅を決定する値を読出して第1のレジスタに書き込
む処理を行なうパルス出力装置において、 パルス出力部は、第1の一致信号が出力されてから第2
の一致信号が出力されるまでの間に再度、第1の一致信
号が出力された場合、該第1の一致信号が割込み要求信
号として割込み制御部へ出力されるのを禁止する禁止回
路を備えたことを特徴とするパルス出力装置。
A central processing unit, storage means for storing data, a pulse output unit for outputting a pulse having a desired period and a pulse width, and an interrupt request generating unit for generating an interrupt request to the central processing unit. A pulse output unit that counts clocks and is reset by a second coincidence signal; first and second registers in which values for determining a pulse width and a period are respectively set; The first and second registers compare the values of the first and second registers, respectively, and when they match, output first and second comparators, respectively, and output a pulse to the outside by the first and second match signals. And an output control circuit for outputting the first coincidence signal when the first coincidence signal is generated.
A pulse output device that outputs an interrupt start signal to the central processing unit, and the central processing unit receives the signal and reads a value that determines the pulse width of the next pulse to be output from the storage unit and writes the read value into the first register. In the pulse output unit, after the first coincidence signal is output,
And a prohibition circuit for prohibiting the first match signal from being output to the interrupt control unit as an interrupt request signal when the first match signal is output again until the match signal is output. A pulse output device.
JP63321251A 1988-12-19 1988-12-19 Pulse output device Expired - Fee Related JP2661222B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63321251A JP2661222B2 (en) 1988-12-19 1988-12-19 Pulse output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63321251A JP2661222B2 (en) 1988-12-19 1988-12-19 Pulse output device

Publications (2)

Publication Number Publication Date
JPH02165721A JPH02165721A (en) 1990-06-26
JP2661222B2 true JP2661222B2 (en) 1997-10-08

Family

ID=18130492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63321251A Expired - Fee Related JP2661222B2 (en) 1988-12-19 1988-12-19 Pulse output device

Country Status (1)

Country Link
JP (1) JP2661222B2 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008294786A (en) * 2007-05-25 2008-12-04 Nippon Seiki Co Ltd Pulse generator
JP2009021707A (en) * 2007-07-10 2009-01-29 Fujitsu Microelectronics Ltd Oscillating device, method of adjusting the same, and memory
JP5018292B2 (en) * 2007-07-10 2012-09-05 富士通セミコンダクター株式会社 Memory device
US8332448B2 (en) * 2007-10-12 2012-12-11 Sanyo Semiconductor Co., Ltd. Semiconductor integrated circuit having a random number and oscillator circuit for variably controlling stored data
JP5294718B2 (en) * 2008-06-16 2013-09-18 ココリサーチ株式会社 Frequency converter
JP2010041532A (en) * 2008-08-07 2010-02-18 Yokogawa Electric Corp Pulse rate converter
US7888983B2 (en) * 2009-06-26 2011-02-15 Qualcomm Incorporated Predetermined duty cycle signal generator
CN102064715A (en) * 2009-11-17 2011-05-18 鸿富锦精密工业(深圳)有限公司 PWM controller phase adjusting system and adjusting method
JP5494063B2 (en) 2010-03-17 2014-05-14 コニカミノルタ株式会社 Control device and image forming apparatus
JP2012085038A (en) * 2010-10-08 2012-04-26 Denso Corp Load controller
JP2012094934A (en) * 2010-10-22 2012-05-17 Sharp Corp Pulse width modulation device
JP5621795B2 (en) * 2012-01-31 2014-11-12 株式会社デンソー Pulse signal generator
US8873616B2 (en) * 2012-02-23 2014-10-28 Microchip Technology Incorporated High resolution pulse width modulator
TWI521883B (en) 2012-05-16 2016-02-11 點晶科技股份有限公司 Pwm circuit and pwm signal generating method that can have two fresh rates
CN110299901B (en) * 2019-05-28 2023-02-28 莱芜钢铁集团电子有限公司 Controllable algorithm for circulating on-off program

Also Published As

Publication number Publication date
JPH02165721A (en) 1990-06-26

Similar Documents

Publication Publication Date Title
JP2661222B2 (en) Pulse output device
JP3088180B2 (en) Serial input interface circuit
US5021950A (en) Multiprocessor system with standby function
JPH0743653B2 (en) Interrupt controller
US4348722A (en) Bus error recognition for microprogrammed data processor
US5287486A (en) DMA controller using a programmable timer, a transfer counter and an or logic gate to control data transfer interrupts
JPH0652070A (en) Device and method for data protection in integrated circuit
EP0462622B1 (en) Microprocessor capable of ensuring flexible recovery time for I/O device
JPS61237150A (en) Arithmetic system for input/output processing
JPH0143392B2 (en)
JP3627352B2 (en) Programmable controller
JP3093374B2 (en) Interrupt controller
JP2990140B2 (en) Interrupt control circuit
JPH0664483B2 (en) Pulse counter
JP2569534B2 (en) Microcomputer
JP2870083B2 (en) Microcomputer with built-in watchdog timer
JPS6246017B2 (en)
JPS6342547A (en) Line control unit
JP2539064B2 (en) Microprocessor
JPH039486B2 (en)
JPH01237841A (en) Retry system
JPH0784835A (en) Microcomputer system
JPH04332040A (en) Wait generator
JPH0285951A (en) Input/output bus cycle control system
JPH06139076A (en) Interruption processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees