JPH05282069A - Timer device - Google Patents

Timer device

Info

Publication number
JPH05282069A
JPH05282069A JP4110689A JP11068992A JPH05282069A JP H05282069 A JPH05282069 A JP H05282069A JP 4110689 A JP4110689 A JP 4110689A JP 11068992 A JP11068992 A JP 11068992A JP H05282069 A JPH05282069 A JP H05282069A
Authority
JP
Japan
Prior art keywords
timer
counter
register
signal
interrupt
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
JP4110689A
Other languages
Japanese (ja)
Inventor
Katsue Kobayashi
克衛 小林
Masahiro Nomura
昌弘 野村
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 JP4110689A priority Critical patent/JPH05282069A/en
Publication of JPH05282069A publication Critical patent/JPH05282069A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To perform pulse output control over a timer by the timer device at more precise timing in synchronism with interruption. CONSTITUTION:A control register which controls the start and stop of the counting operation of the counter 100-1 of the timer device counting a count clock is of master-slave constitution and control information set in a master-side control register 100-2-2 is transferred to a slave-side control register 200-2-2 to start the counting operation of the counter 100-1. Consequently, the counting operation of the counter of the timer device can be started through hardware in synchronism with an interruption signal, so the pulse output control over the timer can be performed at the precise timing from the generation of the interruption signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、パルス出力機能を有す
るタイマ装置に関し、特に外部割り込みによってタイマ
のパルス出力動作の制御を行うタイマ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a timer device having a pulse output function, and more particularly to a timer device which controls a pulse output operation of a timer by an external interrupt.

【0002】[0002]

【従来の技術】従来のタイマについて、機能及び動作に
ついての一例を図を用いて説明する。
2. Description of the Related Art An example of the function and operation of a conventional timer will be described with reference to the drawings.

【0003】図3は、従来のタイマの一例である。CP
U1000は、タイマ100に対して、タイマのパルス
出力動作の開始、及び停止の制御データを出力する演算
装置である。
FIG. 3 shows an example of a conventional timer. CP
The U1000 is an arithmetic unit that outputs control data for starting and stopping the pulse output operation of the timer to the timer 100.

【0004】従来のタイマ300は、カウントクロック
2000を計数するためのカウンタ100−1と、カウ
ンタの計数動作の開始及び停止を制御する制御レジスタ
300−1と、カウンタ100−1の計数値との一致タ
イミングを設定するためのレジスタである比較レジスタ
100−3及び比較レジスタ100−4と、比較レジス
タ100−3とカウンタ100−1との比較を行い、一
致すれば一致信号100−7を出力する比較器100−
5と、比較レジスタ100−3とカウンタ100−1と
の比較を行い、一致すれば一致信号100−8を出力す
る比較器100−5と、比較器の一致信号100−7に
よりセット1され、比較器100−6の一致信号Rでリ
セットされるS・Rフリップ・フロップ100−9で構
成されている。
The conventional timer 300 includes a counter 100-1 for counting the count clock 2000, a control register 300-1 for controlling start and stop of counting operation of the counter, and a count value of the counter 100-1. The comparison register 100-3 and the comparison register 100-4, which are registers for setting the coincidence timing, are compared with the comparison register 100-3 and the counter 100-1, and if they coincide, a coincidence signal 100-7 is output. Comparator 100-
5, the comparison register 100-3 and the counter 100-1 are compared, and if they match, a comparator 100-5 that outputs a match signal 100-8 and a match signal 100-7 of the comparator are set to 1. It is composed of an SR flip-flop 100-9 which is reset by the coincidence signal R of the comparator 100-6.

【0005】次に従来例の動作について説明する。従来
例では、タイマを利用した単発出力動作について述べ
る。
Next, the operation of the conventional example will be described. In the conventional example, a single output operation using a timer will be described.

【0006】予めタイマを起動する前に、比較レジスタ
100−3には、図4に示す出力波形の0から1に変化
するまでの時間mを記憶させておき、比較レジスタ10
0−4は出力波形の1から0に変化するまでの時間nを
記憶させておく。
Before starting the timer, the comparison register 100-3 stores the time m until the output waveform shown in FIG. 4 changes from 0 to 1, and the comparison register 10-3 stores the time m.
For 0-4, the time n until the output waveform changes from 1 to 0 is stored.

【0007】タイマ300の起動は、CPU1000が
制御レジスタ300−1の値を1にセットすることによ
って、カウンタ100−1が入力される内部クロックの
カウント・アップを開始する。
To start the timer 300, the CPU 1000 sets the value of the control register 300-1 to 1, so that the counter 100-1 starts counting up the input internal clock.

【0008】制御レジスタ300−1の値を0にする
と、カウンタ100−1の値をクリアしてカウント・ア
ップを停止する。
When the value of the control register 300-1 is set to 0, the value of the counter 100-1 is cleared and counting up is stopped.

【0009】カウンタ100−1の計数値が比較レジス
タ100−3の値と一致すると、比較器100−5は一
致信号100−7を出力し、S・Rフリップ・フロップ
100−9のセット側に1が入力され、出力波形が0か
ら1に変わる。
When the count value of the counter 100-1 coincides with the value of the comparison register 100-3, the comparator 100-5 outputs a coincidence signal 100-7, which is sent to the set side of the SR flip-flop 100-9. When 1 is input, the output waveform changes from 0 to 1.

【0010】次にカウンタの計数値が比較レジスタ10
0−4の値と一致すると、比較器100−8は一致信号
100−8を出力し、S・Rフリップ・フロップ100
−9のリセット側に1が入力され、出力波形が1から0
に変わる。これにより図4に示すとおり、mとnとによ
って決められる単発パルスが出力される。
Next, the count value of the counter is compared with the comparison register 10.
When it matches the value of 0-4, the comparator 100-8 outputs the match signal 100-8, and the SR flip-flop 100
1 is input to the reset side of -9, and the output waveform is from 1 to 0.
Change to. As a result, a single pulse determined by m and n is output, as shown in FIG.

【0011】割込み信号3000に同期して、タイマ1
00のパルス出力の制御を行う場合には、CPU100
0が発生した割り込みを受け付けて、タイマのパルス出
力を開始させる割り込みルーチンの中で、制御レジスタ
300−1に対して1を書き込むことで、タイマ100
のカウンタが計数動作を開始する。
The timer 1 is synchronized with the interrupt signal 3000.
When controlling the pulse output of 00, the CPU 100
By writing 1 to the control register 300-1 in the interrupt routine that accepts the interrupt generated by 0 and starts the pulse output of the timer,
Counter starts counting operation.

【0012】図5に割り込み発生から、パルス出力開始
までのタイミングを示す。
FIG. 5 shows the timing from the generation of an interrupt to the start of pulse output.

【0013】T1は、割り込み発生から、CPUが割り
込みを受け付けるまでの時間である。T2は、CPUが
割り込みを受け付けてから、割り込みルーチン内でタイ
マの計数動作を開始するまでの時間である。
T1 is the time from the occurrence of an interrupt until the CPU accepts the interrupt. T2 is the time from when the CPU accepts the interrupt until the counting operation of the timer is started in the interrupt routine.

【0014】[0014]

【発明が解決しようとする課題】従来のタイマは、割り
込みに同期してパルス出力のタイミング制御を行う場
合、CPUが、発生した割り込みを受け付けてから割り
込みルーチンを実行し、その中でタイマの計数動作を開
始させる。割り込み発生時点で、他の割り込み要求の発
生状態やCPUの命令実行状態により、CPUの割り込
み受付タイミングが異なること、及び割り込み受付から
割り込みルーチンでのレジスタ設定まで時間を要するこ
とにより、従来のタイマでは正確にある割り込みに同期
させて、タイマの計数動作を開始させることはできず、
割り込み発生からタイマ出力まで、正確なタイミング制
御が困難であった。
In the conventional timer, when the timing control of the pulse output is performed in synchronization with the interrupt, the CPU accepts the generated interrupt and then executes the interrupt routine, in which the timer counts. Start operation. At the time of an interrupt, the conventional timer does not work because the interrupt acceptance timing of the CPU differs depending on the status of other interrupt requests and the instruction execution status of the CPU, and it takes time from interrupt acceptance to register setting in the interrupt routine. It is not possible to start the counting operation of the timer exactly in synchronization with an interrupt,
Accurate timing control was difficult from interrupt generation to timer output.

【0015】本発明の目的は、割り込みに同期して、よ
り精度の高いタイミングでタイマのパルス出力制御を行
うタイマ装置を提供することにある。
It is an object of the present invention to provide a timer device which controls a pulse output of a timer at a more accurate timing in synchronization with an interrupt.

【0016】[0016]

【課題を解決するための手段】前記目的を達成するた
め、本発明に係るタイマ装置は、カウント・クロックを
計数するカウンタと、前記カウンタの計数値との一致タ
イミングを設定する2個の比較レジスタと、前記カウン
タの計数値と前記2個の比較レジスタに設定されている
設定値とを比較し一致した場合には一致信号を出力する
2個の比較器と、前記一致信号によって制御されるパル
スを出力するタイマ出力部と、前記カウンタのカウント
動作の開始及び停止を制御する制御手段とを有し、前記
制御手段は、マスタ側記憶手段とスレーブ側記憶手段と
のマスタ・スレーブ構成とし、外部からの割り込み信号
に同期して前記マスタ側記憶手段から前記スレーブ側記
憶手段に転送することにより、前記割り込み信号に同期
し、前記カウンタのカウント動作を開始して、前記タイ
マ出力部からタイマ出力するものである。
In order to achieve the above object, a timer device according to the present invention comprises a counter for counting a count clock and two comparison registers for setting coincidence timing of the count value of the counter. And two comparators that compare the count value of the counter with the set values set in the two comparison registers and output a match signal when they match, and a pulse controlled by the match signal. And a control means for controlling the start and stop of the counting operation of the counter, wherein the control means has a master / slave configuration of a master side storage means and a slave side storage means. By transferring from the master side storage means to the slave side storage means in synchronization with the interrupt signal from Start the count operation is for timer output from the timer output unit.

【0017】また、前記カウンタの計数動作の開始及び
停止の制御方法を選択する選択レジスタを有するもので
ある。
Further, it has a selection register for selecting a control method for starting and stopping the counting operation of the counter.

【0018】[0018]

【作用】割り込み信号に同期して、ハードウェア的にタ
イマ装置のカウンタのカウント動作を開始することによ
り、高い精度のタイミングでタイマのパルス出力制御を
行う。
The timer pulse output control is performed at a highly accurate timing by starting the counting operation of the counter of the timer device by hardware in synchronization with the interrupt signal.

【0019】[0019]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0020】(実施例1)図1は、本発明の実施例1を
示す回路図である。
(Embodiment 1) FIG. 1 is a circuit diagram showing Embodiment 1 of the present invention.

【0021】図1において、CPU1000は、本発明
のタイマ100に対して、タイマのパルス出力動作の開
始、及び停止の制御データを出力する演算装置である。
In FIG. 1, a CPU 1000 is an arithmetic unit that outputs control data for starting and stopping a pulse output operation of the timer to the timer 100 of the present invention.

【0022】タイマ100は、カウント・クロック20
00を計数するためのカウンタ100−1と、カウンタ
の計数動作の開始及び停止を制御する制御レジスタと、
カウンタ100−1の計数値との一致タイミングを設定
するためのレジスタである比較レジスタ100−3及び
比較レジスタ100−4と、比較レジスタ100−3と
カウンタ100−1との比較を行い一致すれば一致信号
100−7を出力する比較器100−5と、比較レジス
タ100−4とカウンタ100−1との比較を行い一致
すれば一致信号100−8を出力する比較器100−6
と、比較器100−5の一致信号100−7によりセッ
ト1され、比較器100−6の一致信号100−8でリ
セットされるS・Rフリップ・フロップ100−9とで
構成されている。
The timer 100 has a count clock 20.
A counter 100-1 for counting 00, a control register for controlling start and stop of counting operation of the counter,
If the comparison register 100-3 and the comparison register 100-4, which are registers for setting the coincidence timing with the count value of the counter 100-1, and the comparison register 100-3 and the counter 100-1 are compared and coincident, The comparator 100-5 which outputs the coincidence signal 100-7, and the comparator 100-6 which compares the comparison register 100-4 and the counter 100-1 and outputs the coincidence signal 100-8 if they coincide with each other.
And an SR flip-flop 100-9 which is set 1 by the coincidence signal 100-7 of the comparator 100-5 and reset by the coincidence signal 100-8 of the comparator 100-6.

【0023】制御レジスタは、制御レジスタ100−2
−1と制御レジスタ100−2−2のマスタ・スレーブ
構成になっており、マスタ側である制御レジスタ100
−2−1は、CPUからのデータ書き込みが行われ、ス
レーブ側の制御レジスタ100−2−2の値でタイマ1
00のカウンタ100−1のカウント開始及び停止が制
御される。
The control register is the control register 100-2.
-1 and the control register 100-2-2 have a master / slave configuration, and the control register 100 on the master side is
In 2-1, data is written from the CPU, and the value of the control register 100-2-2 on the slave side is used for timer 1
The counting start and stop of the counter 100-1 of 00 is controlled.

【0024】制御レジスタ100−2−2の値が“1”
の時、カウンタ100−1のカウント・アップが行わ
れ、“0”の時にカウントが停止する。また割り込み信
号3000に同期して、マスタ側の制御レジスタ100
−2−1の内容が、スレーブ側の制御レジスタ100−
2−2に転送される。
The value of the control register 100-2-2 is "1".
At the time of, the counter 100-1 is counted up, and at the time of "0", the counting is stopped. Further, in synchronization with the interrupt signal 3000, the control register 100 on the master side
2-1 is the slave side control register 100-
2-2 is transferred.

【0025】次に、本実施例の動作について説明する。
本実施例では、割り込み信号3000によって、タイマ
100のパルス出力制御を開始する場合について説明す
る。
Next, the operation of this embodiment will be described.
In this embodiment, a case where the pulse output control of the timer 100 is started by the interrupt signal 3000 will be described.

【0026】まず、タイマ100の初期設定として、比
較レジスタ100−3と比較レジスタ100−4に任意
の値を設定する。本実施例では、一例として比較レジス
タ100−3に“0FH”、比較レジスタ100−4に
“1FH”を設定する。
First, as an initial setting of the timer 100, an arbitrary value is set in the comparison register 100-3 and the comparison register 100-4. In this embodiment, as an example, "0FH" is set in the comparison register 100-3 and "1FH" is set in the comparison register 100-4.

【0027】タイマ100のカウンタ100−1のカウ
ント動作をスタートさせるために、CPUは制御レジス
タ100−2−1にタイマ100の動作許可情報“1”
を設定する。しかし、この段階では制御レジスタ100
−2−2には、制御レジスタ100−1に設定した値
“1”はまだ転送されず、スレーブ側の制御レジスタ1
00−2−2の値が“0”であるので、カウンタ100
−6にはカウント・クロック2000は供給されず、タ
イマ100は動作を停止している。
In order to start the counting operation of the counter 100-1 of the timer 100, the CPU sets the operation permission information "1" of the timer 100 in the control register 100-2-1.
To set. However, at this stage, the control register 100
The value "1" set in the control register 100-1 has not yet been transferred to the 2-2-2, and the slave side control register 1
Since the value of 00-2-2 is “0”, the counter 100
The count clock 2000 is not supplied to -6, and the timer 100 stops operating.

【0028】この状態において、割り込み信号3000
がアクティブ“1”となることにより、制御レジスタ1
00−2−1の内容は割り込み信号3000に同期し
て、制御レジスタ100−2−2に転送される。制御レ
ジスタ100−2−2に“1”が転送されることによ
り、カウンタ100−1にカウント・クロック2000
が供給され、タイマ100が、割り込み信号3000に
同期してカウント動作を開始する。
In this state, the interrupt signal 3000
Becomes active “1”, the control register 1
The contents of 00-2-1 are transferred to the control register 100-2-2 in synchronization with the interrupt signal 3000. By transferring “1” to the control register 100-2-2, the count clock 2000 is sent to the counter 100-1.
Is supplied, and the timer 100 starts the counting operation in synchronization with the interrupt signal 3000.

【0029】カウンタ100−1の計数値が“0FH”
となり、比較レジスタ100−3との値“0FH”と一
致した場合には、比較器100−5は、一致信号100
−7を出力する。この一致信号100−7は、パルス出
力をするS・Rフリップ・フロップ100−9の、セッ
ト側の入力信号となり、タイマ100の出力パルスが0
から1に変わる。次にカウンタ100−1の計数値が
“1FH”となり、比較レジスタ100−4の値“1F
H”と一致した場合には、比較器100−6は、一致信
号100−8を出力する。この一致信号100−8は、
パルス出力をするS・Rフリップ・フロップ100−9
の、リセット側の入力信号となり、出力パルスが1から
0に変わる。
The count value of the counter 100-1 is "0FH".
Therefore, when the value "0FH" in the comparison register 100-3 matches, the comparator 100-5 determines that the match signal 100
Output -7. This coincidence signal 100-7 becomes an input signal on the set side of the SR flip-flop 100-9 that outputs a pulse, and the output pulse of the timer 100 is 0.
Changes from 1 to 1. Next, the count value of the counter 100-1 becomes “1FH”, and the value of the comparison register 100-4 becomes “1FH”.
If it matches H ", the comparator 100-6 outputs a match signal 100-8. The match signal 100-8 is
S / R flip-flop 100-9 for pulse output
, Becomes the input signal on the reset side, and the output pulse changes from 1 to 0.

【0030】図6は、割り込み発生からパルス出力開始
までのタイミングを示す図である。
FIG. 6 is a diagram showing the timing from the generation of an interrupt to the start of pulse output.

【0031】T1は、割り込み発生から、タイマ100
のカウンタ100−1の計数動作を開始するまでの時間
である。
From the occurrence of the interrupt, T1 is the timer 100.
This is the time until the counting operation of the counter 100-1 is started.

【0032】(実施例2)図2は、本発明の実施例2を
示す回路図である。
(Second Embodiment) FIG. 2 is a circuit diagram showing a second embodiment of the present invention.

【0033】図2において、CPU1000は、本発明
のタイマ200に対して、タイマのパルス出力動作の開
始、及び停止の制御データを出力する演算装置である。
In FIG. 2, the CPU 1000 is an arithmetic unit for outputting control data for starting and stopping the pulse output operation of the timer to the timer 200 of the present invention.

【0034】タイマ200は、カウンタ100−1、制
御レジスタ100−2−1、制御レジスタ100−2−
2、比較レジスタ100−3、比較レジスタ100−
4、比較器100−5、比較器100−6、一致信号1
00−7、一致信号100−8、S・Rフリップ・フロ
ップ100−9についての動作は、実施例1で示した動
作と同じである。
The timer 200 includes a counter 100-1, a control register 100-2-1 and a control register 100-2-.
2, comparison register 100-3, comparison register 100-
4, comparator 100-5, comparator 100-6, coincidence signal 1
The operation of 00-7, the coincidence signal 100-8, and the SR flip-flop 100-9 is the same as the operation described in the first embodiment.

【0035】選択レジスタ200−1は、カウンタ10
0−1の計数動作の開始及び停止の制御方法を選択する
レジスタである。選択レジスタ200−1には、CPU
1000により選択信号“1”、もしくは“0”が設定
される。
The selection register 200-1 includes a counter 10
It is a register that selects a control method for starting and stopping the counting operation of 0-1. The selection register 200-1 has a CPU
The selection signal “1” or “0” is set by 1000.

【0036】選択レジスタ200−1にCPU1000
から、選択信号“1”が設定された場合には、実施例1
で挙げた、割り込み信号3000に同期した、カウンタ
100−1の開始及び停止の制御を行う。
The CPU 1000 is added to the selection register 200-1.
Therefore, if the selection signal “1” is set,
The control for starting and stopping the counter 100-1 is performed in synchronization with the interrupt signal 3000 described in (1).

【0037】一方、選択信号“0”が設定された場合に
は、CPU1000が任意のタイミングで、タイマ20
0のカウンタ100−1の計数動作の開始及び停止の制
御を行う。
On the other hand, when the selection signal "0" is set, the CPU 1000 sets the timer 20 at an arbitrary timing.
It controls the start and stop of the counting operation of the counter 100-1 of 0.

【0038】以下、タイマのパルス出力動作の開始から
停止までの動作は、実施例1で示した場合と同じであ
る。
Hereinafter, the operation from the start to the stop of the pulse output operation of the timer is the same as that shown in the first embodiment.

【0039】以上のように、本発明の実施例2では、選
択レジスタ200−1によって、タイマ200の制御方
法を選択することができ、以下のような特徴を持つ。 1.選択レジスタ200−1に、選択信号“1”が設定
された場合。 ・割り込み制御信号にハードウェア的に同期して、タイ
マ200のパルス出力を開始することができる。 2.選択レジスタ200−1に、選択信号“0”が設定
された場合。 ・CPU1000が任意のタイミングによって、タイマ
200のパルス出力を開始することができる。
As described above, in the second embodiment of the present invention, the control method of the timer 200 can be selected by the selection register 200-1, and has the following features. 1. When the selection signal “1” is set in the selection register 200-1. The pulse output of the timer 200 can be started in synchronization with the interrupt control signal in terms of hardware. 2. When the selection signal “0” is set in the selection register 200-1. The CPU 1000 can start the pulse output of the timer 200 at an arbitrary timing.

【0040】[0040]

【発明の効果】以上説明したように本発明のタイマは、
割り込み信号に同期してパルス出力制御を行う場合、タ
イマ内のカウンタのカウント開始及び、停止を制御する
レジスタをマスタ・スレーブ構成にし、割り込み信号に
同期して、マスタ側の制御レジスタに設定された制御情
報が、スレーブ側の制御レジスタに転送される構成をと
ることによって、割り込み信号に同期してハードウェア
的にタイマ内のカウンタのカウント・アップを開始する
ことができるため、割り込み信号発生から精度の高いタ
イミングでタイマ出力を発生させることができるという
効果を有する。
As described above, the timer of the present invention is
When performing pulse output control in synchronization with the interrupt signal, the register that controls the start and stop of the counter in the timer has a master / slave configuration, and is set in the control register on the master side in synchronization with the interrupt signal. By configuring the control information to be transferred to the control register on the slave side, it is possible to start counting up the counter in the timer by hardware in synchronization with the interrupt signal. This has the effect that the timer output can be generated at a high timing.

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

【図1】本発明の実施例1を示す回路図である。FIG. 1 is a circuit diagram showing a first embodiment of the present invention.

【図2】本発明の実施例2を示す回路図である。FIG. 2 is a circuit diagram showing a second embodiment of the present invention.

【図3】従来のタイマを示す回路図である。FIG. 3 is a circuit diagram showing a conventional timer.

【図4】タイマのパルス出力波形を示す図である。FIG. 4 is a diagram showing a pulse output waveform of a timer.

【図5】従来のタイマの起動タイミングを示した図であ
る。
FIG. 5 is a diagram showing a start timing of a conventional timer.

【図6】本発明のタイマの起動タイミングを示した図で
ある。
FIG. 6 is a diagram showing a start timing of a timer of the present invention.

【符号の説明】[Explanation of symbols]

100−1 カウンタ 100−2−1 制御レジスタ 100−2−2 制御レジスタ 100−3 比較レジスタ 100−4 比較レジスタ 100−5 比較器 100−6 比較器 100−7 一致信号 100−8 一致信号 100−9 S・Rフリップ・フロップ 300−1 制御レジスタ 1000 CPU 2000 カウント・クロック 3000 割り込み信号 100-1 Counter 100-2-1 Control register 100-2-2 Control register 100-3 Comparison register 100-4 Comparison register 100-5 Comparator 100-6 Comparator 100-7 Match signal 100-8 Match signal 100- 9 SR flip-flop 300-1 Control register 1000 CPU 2000 Count clock 3000 Interrupt signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 カウント・クロックを計数するカウンタ
と、 前記カウンタの計数値との一致タイミングを設定する2
個の比較レジスタと、 前記カウンタの計数値と前記2個の比較レジスタに設定
されている設定値とを比較し一致した場合には一致信号
を出力する2個の比較器と、 前記一致信号によって制御されるパルスを出力するタイ
マ出力部と、 前記カウンタのカウント動作の開始及び停止を制御する
制御手段とを有し、 前記制御手段は、マスタ側記憶手段とスレーブ側記憶手
段とのマスタ・スレーブ構成とし、外部からの割り込み
信号に同期して前記マスタ側記憶手段から前記スレーブ
側記憶手段に転送することにより、前記割り込み信号に
同期し、前記カウンタのカウント動作を開始して、前記
タイマ出力部からタイマ出力するものであることを特徴
とするタイマ装置。
1. A counter that counts a count clock, and sets a coincidence timing between the count value of the counter and 2
Number of comparison registers, two comparators that compare the count value of the counter and the set values set in the two comparison registers, and output a match signal when they match, A timer output unit that outputs a controlled pulse, and a control unit that controls the start and stop of the counting operation of the counter, wherein the control unit is a master / slave of a master-side storage unit and a slave-side storage unit. The timer output section starts the counting operation of the counter in synchronization with the interrupt signal by transferring from the master side storage means to the slave side storage means in synchronization with an external interrupt signal. A timer device characterized by being output from a timer.
【請求項2】 請求項1に記載のタイマ装置であって、 前記カウンタの計数動作の開始及び停止の制御方法を選
択する選択レジスタを有することを特徴とするタイマ装
置。
2. The timer device according to claim 1, further comprising a selection register for selecting a control method for starting and stopping the counting operation of the counter.
JP4110689A 1992-04-03 1992-04-03 Timer device Pending JPH05282069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4110689A JPH05282069A (en) 1992-04-03 1992-04-03 Timer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4110689A JPH05282069A (en) 1992-04-03 1992-04-03 Timer device

Publications (1)

Publication Number Publication Date
JPH05282069A true JPH05282069A (en) 1993-10-29

Family

ID=14541957

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4110689A Pending JPH05282069A (en) 1992-04-03 1992-04-03 Timer device

Country Status (1)

Country Link
JP (1) JPH05282069A (en)

Similar Documents

Publication Publication Date Title
JP3322893B2 (en) Microcomputer
JPH05282069A (en) Timer device
JP2001051744A (en) Clock control circuit
JPH10268902A (en) Pwm control circuit
JP2624388B2 (en) DMA device
JP2517943B2 (en) Timer device
JP2615504B2 (en) Microcontroller
JPH04305720A (en) Microcomputer
JP3405513B2 (en) Redundant controller for programmable controller
JPH02192315A (en) Pulse generator
JPH02280263A (en) Microprocessor
JP3221109B2 (en) Multiprocessor system and TOD synchronization control method
JPS59176863A (en) Timer synchronizing system
JP2794440B2 (en) PWM controller
JPH08256041A (en) Method of adjusting first and second order network, method of controlling dependence of first order network on second order network status signal, method of controlling combination of state machine and order network system
JPH04211832A (en) Information processor
JPH03263159A (en) Bus acquisition request generating system
JPH04143833A (en) Timer circuit for microcomputer
JPH0736819A (en) Dma data transfer device
JP2002215602A (en) Self-synchronizing transfer control circuit and data driving information processor having same
JPH01276240A (en) Timer counter
JPH04273696A (en) Outputting circuit for remote controller
JPH02183353A (en) Transmission control circuit
JPS60211545A (en) Microcomputer system
JPH02123448A (en) Bus mediation circuit