JP2550537B2 - Time division multiple timer method - Google Patents

Time division multiple timer method

Info

Publication number
JP2550537B2
JP2550537B2 JP61251187A JP25118786A JP2550537B2 JP 2550537 B2 JP2550537 B2 JP 2550537B2 JP 61251187 A JP61251187 A JP 61251187A JP 25118786 A JP25118786 A JP 25118786A JP 2550537 B2 JP2550537 B2 JP 2550537B2
Authority
JP
Japan
Prior art keywords
memory
change point
address
circuit
addition
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 - Lifetime
Application number
JP61251187A
Other languages
Japanese (ja)
Other versions
JPS63104152A (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 JP61251187A priority Critical patent/JP2550537B2/en
Publication of JPS63104152A publication Critical patent/JPS63104152A/en
Application granted granted Critical
Publication of JP2550537B2 publication Critical patent/JP2550537B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 技術分野 本発明は時分割多重タイマ方式に関し、特に「1」,
「0」で表わされるnコの入力信号夫々の変化点から経
過した時間の監視を行うマイクロプロセッサの時分割多
重タイマ方式に関する。
TECHNICAL FIELD The present invention relates to a time division multiplex timer system, and more particularly to “1”,
The present invention relates to a time division multiplex timer system of a microprocessor for monitoring a time elapsed from a change point of each of n input signals represented by "0".

従来技術 従来、この種のマイクロプロセッサ36では、第2図に
示すように、「1」,「0」で表わされるnコの入力信
号S1〜Sn夫々の変化点から経過した時間の監視を行う場
合、nコの入力信号夫々個別にタイマ回路T1〜Tnを必要
としていた。
2. Description of the Related Art Conventionally, in this type of microprocessor 36, as shown in FIG. 2, the time elapsed from the change points of n input signals S1 to Sn represented by "1" and "0" is monitored. In this case, the timer circuits T1 to Tn are individually required for each of the n input signals.

このような従来のマイクロプロセッサ36では、
「1」,「0」で表わされる入力信号S1〜Snの変化点か
ら経過した時間の監視を行うときにはnコの入力信号夫
々個別にタイマ回路T1〜Tnを必要としていたので、入力
信号S1〜Snの数に比例したタイマ回路T1〜Tnの数と、そ
のタイマ回路T1〜Tnの数に比例した実装面積とが必要と
なるという欠点がある。
In such a conventional microprocessor 36,
When the time elapsed from the change point of the input signals S1 to Sn represented by "1" and "0" is monitored, each of the n input signals requires the respective timer circuits T1 to Tn. There is a drawback that the number of timer circuits T1 to Tn proportional to the number of Sn and the mounting area proportional to the number of timer circuits T1 to Tn are required.

発明の目的 本発明は上記のような従来のものの欠点を除去すべく
なされたもので、入力信号夫々の変化点から次の変化点
までの経過時間の監視に使用するタイマ回路の数と実装
面積とを縮小することができる時分割多重タイマ方式の
提供を目的とする。
The present invention has been made in order to eliminate the above-mentioned drawbacks of the conventional ones. The number and mounting area of timer circuits used for monitoring the elapsed time from the change point of each input signal to the next change point. It is an object of the present invention to provide a time division multiplex timer system capable of reducing and.

発明の構成 本発明による時分割多重タイマ方式は、複数の入力信
号夫々の変化点からの経過時間を監視するマイクプロセ
ッサの時分割多重タイマ方式であって、前記入力信号夫
々に付与された個別のアドレスを有する第1のメモリ
と、前記入力信号夫々の前記変化点から次の変化点まで
の前記入力信号の変化を予め定められた所定時間毎に監
視し、前記変化点から前記次の変化点までの監視回数を
前記第1のメモリ内の該当入力信号に対応するアドレス
に記憶する手段と、前記第1のメモリと同一のアドレス
に同一のデータが記憶される第2のメモリと、この第2
のメモリの読み出し制御を行う手段とを含むことを特徴
とする。
Configuration of the Invention A time division multiplex timer system according to the present invention is a time division multiplex timer system of a microprocessor for monitoring the elapsed time from the change point of each of a plurality of input signals, and an individual signal assigned to each of the input signals. A first memory having an address and a change in the input signal from the change point to the next change point of each of the input signals are monitored at predetermined time intervals, and the change point is changed to the next change point. Means for storing the number of times of monitoring up to the first memory in an address corresponding to the corresponding input signal, a second memory in which the same data is stored in the same address as the first memory, and Two
And means for controlling reading of the memory.

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

第1図は、本発明の一実施例を示すブロック図であ
る。図において、本発明の一実施例による時分割多重タ
イマ回路は、アドレス発生部1と計算部2と読出し部3
とにより構成されている。
FIG. 1 is a block diagram showing an embodiment of the present invention. Referring to the figure, a time division multiplex timer circuit according to an embodiment of the present invention includes an address generator 1, a calculator 2, and a read unit 3.
It is composed of

アドレス発生部1はアドレス発生回路11で構成され、
計算部2はメモリ21と2進数加算回路22とにより構成さ
れ、読出し部3はメモリ31と、ラインセレクト回路32〜
34と、ラインセレクト制御回路35と、マイクロプロセッ
サ36とにより構成されている。
The address generator 1 is composed of an address generator circuit 11,
The calculation unit 2 includes a memory 21 and a binary number addition circuit 22, and the reading unit 3 includes a memory 31 and a line select circuit 32 to.
34, a line select control circuit 35, and a microprocessor 36.

アドレス発生回路11は各入力信号に割当てられたアド
レスを予め定められた一定周期毎にバスライン10を介し
てメモリ21とラインセレクト回路32とに時分割で出力
し、同時に、このアドレスを出力する毎に、メモリ21へ
の読出し書込み信号を信号線70,71を介してメモリ21と
ラインセレクト回路33とに出力する。
The address generation circuit 11 outputs the address assigned to each input signal to the memory 21 and the line select circuit 32 through the bus line 10 in a predetermined time period in a time division manner, and at the same time, outputs this address. Each time, a read / write signal for the memory 21 is output to the memory 21 and the line select circuit 33 via the signal lines 70 and 71.

メモリ21に読出し信号が信号線70を介して入力される
と、この読出し信号とともに出力されたアドレスで指定
されたメモリ21が記憶箇所に保持されたデータが、バス
ライン20を介して2進数加算回路22とラインセレクト回
路34とに出力される。このメモリ21に保持されたデータ
は、この読出し信号とともに出力されたアドレスと同じ
アドレスが前回指定されたときに2進数加算回路22によ
って処理された2進数の加算結果である。
When a read signal is input to the memory 21 via the signal line 70, the data held in the memory location specified by the address output together with the read signal is added to the binary number via the bus line 20. It is output to the circuit 22 and the line select circuit 34. The data held in the memory 21 is the result of addition of binary numbers processed by the binary number addition circuit 22 when the same address as the address output together with the read signal was previously designated.

2進数加算回路22では、この入力されたデータ、すな
わち、前回の2進数の加算結果に1を加え、メモリ21に
バスライン20を介して出力する。メモリ21では信号線71
を介して書込み信号が入力されると、2進数加算回路22
からの今回の加算結果をそのアドレスに書込む。
The binary number addition circuit 22 adds 1 to the input data, that is, the result of the previous binary number addition, and outputs it to the memory 21 via the bus line 20. Signal line 71 in memory 21
When a write signal is input via the
Write the addition result of this time from to that address.

このようなメモリ21からデータを読出し、このデータ
に1を加算し、その加算結果をメモリ21に書込むという
動作が、各アドレスごとに順次行われる。
The operation of reading data from the memory 21, adding 1 to the data, and writing the addition result to the memory 21 is sequentially performed for each address.

マイクロプロセッサ36によりこの加算結果の読出しが
行われない場合には、ラインセレクト制御回路35からラ
インセレクト回路32〜34を制御する信号が信号線76を介
して送出され、ラインセレクト回路32ではバスライン10
がセレクトされ、ラインセレクト回路33では信号線70,7
1がセレクトされ、ラインセレクト回路34ではバスライ
ン20がセレクトされる。したがって、バスライン50には
アドレス発生回路11から出力されるアドレスが出力さ
れ、信号線74,75にはアドレス発生回路11から出力され
る読出し書込み信号が出力され、バスライン60には2進
数加算回路22から出力される2進数の加算結果が出力さ
れ、これらがメモリ31に入力される。ただし、この場
合、バスライン50はバスライン20からの片方向となって
いる。
When the addition result is not read by the microprocessor 36, a signal for controlling the line select circuits 32 to 34 is sent from the line select control circuit 35 through the signal line 76, and the line select circuit 32 causes the bus line. Ten
Are selected, and the signal lines 70, 7 are selected in the line select circuit 33.
1 is selected, and the bus line 20 is selected by the line select circuit 34. Therefore, the address output from the address generation circuit 11 is output to the bus line 50, the read / write signal output from the address generation circuit 11 is output to the signal lines 74 and 75, and the binary addition is performed to the bus line 60. The binary addition results output from the circuit 22 are output, and these are input to the memory 31. However, in this case, the bus line 50 is unidirectional from the bus line 20.

以上の設定により、メモリ21とメモリ31とは書込み時
に関しては同一条件となるため、2進数加算回路22によ
って加算された加算結果の書込みがメモリ21に行われる
と同時にメモリ31にも同様に行われる。
With the above settings, the memory 21 and the memory 31 have the same condition at the time of writing, so that the addition result added by the binary number addition circuit 22 is written to the memory 21 and at the same time, the same is written to the memory 31. Be seen.

マイクロプロセッサ36により加算結果の読出しが行わ
れる場合は、マイクロプロセッサ36により信号線77に加
算結果読出し信号が送出され、ラインセレクト制御回路
35からラインセレクト回路32〜34を制御する信号が信号
線76を介して送出され、ラインセレクト回路32ではバス
ライン30がセレクトされ、ラインセレクト回路33では信
号線72,73がセレクトされ、ラインセレクト回路34では
バスライン40がセレクトされる。したがってバスライン
50と、信号線74,75とバスライン60とにはそれぞれマイ
クロプロセッサ36からのアドレスバスと読出し書込み信
号とデータバスとが送出される。
When the addition result is read by the microprocessor 36, the addition result read signal is sent to the signal line 77 by the microprocessor 36, and the line select control circuit
A signal for controlling the line select circuits 32-34 is sent from 35 through the signal line 76, the bus line 30 is selected in the line select circuit 32, the signal lines 72, 73 are selected in the line select circuit 33, and the line select In the circuit 34, the bus line 40 is selected. Therefore the bus line
An address bus, a read / write signal, and a data bus from the microprocessor 36 are sent to 50, the signal lines 74 and 75, and the bus line 60, respectively.

以上の設定によりマイクロプロセッサ36からメモリ31
を直接制御できるようになり、アドレス発生回路11によ
って生成される入力信号夫々に個別に割当てられたアド
レスと同様のアドレスをマイクロプロセッサ36により与
えることで、任意のアドレスに対応するメモリ31の内
容、つまり、入力信号の変化点からの時間経過を並列2
進の加算処理の経過としてマイクロプロセッサ36で読出
すことができる。
With the above settings, the microprocessor 36 to the memory 31
Can be directly controlled, by giving an address similar to the address individually assigned to each input signal generated by the address generation circuit 11 by the microprocessor 36, the contents of the memory 31 corresponding to any address, That is, the elapsed time from the change point of the input signal is calculated in parallel 2
It can be read by the microprocessor 36 as the progress of the addition process of the base.

バスライン20とバスライン40,60との夫々のビット数
はすべて等しく、マイクロプロセッサ36の処理ビット数
に左右される。そのビット数の内、最下位の1ビットは
2進数の加算処理開始と中止との制御ビット、つまり、
前述の入力信号の変化点を示すビットととして用い、残
りの上位ビットで2進数の加算が行われる。
The bit numbers of the bus line 20 and the bus lines 40 and 60 are all equal and depend on the number of processing bits of the microprocessor 36. Among the number of bits, the least significant 1 bit is a control bit for starting and stopping the addition processing of binary numbers, that is,
It is used as a bit indicating the change point of the input signal described above, and binary addition is performed with the remaining upper bits.

メモリ21とメモリ31とが書込みに関して同一条件の設
定となったときにバスライン60の最下位ビットのみがラ
インセレクト回路34で独立に制御され、アドレス発生回
路11より信号線70を介して読出し信号が出力されると、
バスライン60の最下位ビットは2進数加算回路22に入力
される。2進数加算回路22はその最下位ビットの状態を
検出して加算を開始するか、中止するかを判断する。
When the memory 21 and the memory 31 are set to the same condition for writing, only the least significant bit of the bus line 60 is independently controlled by the line select circuit 34, and the read signal is output from the address generating circuit 11 via the signal line 70. Is output,
The least significant bit of the bus line 60 is input to the binary adder circuit 22. The binary adder circuit 22 detects the state of the least significant bit and determines whether to start or stop the addition.

2進数加算回路22が加算開始を判断すると、2進数加
算回路22は加算を行い、その加算結果はメモリ21,31に
書込まれる。
When the binary number addition circuit 22 determines to start addition, the binary number addition circuit 22 performs addition, and the addition result is written in the memories 21 and 31.

また、2進数加算回路22で行われた加算結果が全て
「1」、すなわち、カウントアップすると、自動的に制
御ビットを含む全てのビットをクリヤし、カウントが中
止される。最下位ビットに加算中止情報が送出される
と、2進加算回路22が加算中止を判断し、加算結果が全
て「1」にならなくても、つまりカウントアップしなく
ても、制御ビットを含む全てのビットをクリヤし、カウ
ントが中止される。
Further, when all the addition results performed by the binary number addition circuit 22 are "1", that is, when the count-up is performed, all the bits including the control bits are automatically cleared and the counting is stopped. When the addition cancellation information is sent to the least significant bit, the binary addition circuit 22 judges that the addition is canceled and the control bits are included even if the addition results are not all "1", that is, not counted up. Clear all bits and stop counting.

以上の動作で使用しているバスライン60の最下位ビッ
トは、マイクロプロセッサ36によりメモリ31が直接制御
できる条件下で、バスライン40を介してメモリ31に書込
まれる。
The least significant bit of the bus line 60 used in the above operation is written in the memory 31 via the bus line 40 under the condition that the memory 31 can be directly controlled by the microprocessor 36.

以上の動作により任意の入力信号の変化点から次の変
化点までの経過時間は2進数の加算結果として読出すこ
とができる。すなわち、この2進数の加算結果に、アド
レス発生回路11で同一アドレスを出力する一定周期を乗
ずることにより経過時間を表わすことができる。
By the above operation, the elapsed time from the change point of an arbitrary input signal to the next change point can be read out as a result of addition of binary numbers. That is, the elapsed time can be represented by multiplying the result of addition of the binary numbers by a fixed period in which the same address is output by the address generation circuit 11.

このように、入力信号夫々にメモリ21,31内のアドレ
スを割当て、入力信号夫々の変化点から次の変化点まで
の経過時間を予め定められた一定時間毎に監視し、その
監視回数をその入力信号に割当てられたメモリ内のアド
レスに記憶させるようにすることによって、入力信号夫
々の変化点から次の変化点までの経過時間の監視に使用
するタイマ回路の数を減少させることができ、タイマ回
路の数を減少させた分タイマ回路の実装面積を縮小させ
ることができる。
As described above, the addresses in the memories 21 and 31 are assigned to the respective input signals, and the elapsed time from the change point of each input signal to the next change point is monitored at predetermined time intervals, and the number of times of monitoring is changed. By storing at the address in the memory assigned to the input signal, the number of timer circuits used for monitoring the elapsed time from the change point of each input signal to the next change point can be reduced, The mounting area of the timer circuit can be reduced by the number of the timer circuits.

発明の効果 以上説明したように本発明によれば、入力信号夫々に
メモリ内のアドレスを割当て、入力信号夫々の変化点か
ら次の変化点までの経過時間を予め定められた一定時間
毎に監視し、その監視回数をその入力信号夫々に割当て
られたメモリ内のアドレスに記憶させるようにすること
によって、入力信号夫々の変化点から次の変化点までの
経過時間の監視に使用するタイマ回路の数と実装面積と
を縮小させることができるという効果がある。
As described above, according to the present invention, an address in the memory is assigned to each input signal, and the elapsed time from the change point of each input signal to the next change point is monitored at every predetermined constant time. However, by storing the number of times of monitoring at the address in the memory assigned to each of the input signals, the timer circuit used for monitoring the elapsed time from the changing point of each input signal to the next changing point is stored. There is an effect that the number and the mounting area can be reduced.

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

第1図は本発明の一実施例を示すブロック図、第2図は
従来例を示すブロック図である。 主要部分の符号の説明 11……アドレス回路 21,31……メモリ 22……2進数加算回路 36……マイクロプロセッサ
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional example. Description of main part code 11 …… Address circuit 21,31 …… Memory 22 …… Binary number addition circuit 36 …… Microprocessor

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の入力信号夫々の変化点からの経過時
間を監視するマイクロプロセッサの時分割多重タイマ方
式であって、前記入力信号夫々に付与された個別のアド
レスを有する第1のメモリと、前記入力信号夫々の前記
変化点から次の変化点までの前記入力信号の変化を予め
定められた所定時間毎に監視し、前記変化点から前記次
の変化点までの監視回数を前記第1のメモリ内の当該入
力信号に対応するアドレスに記憶する手段と、前記第1
のメモリと同一のアドレスに同一のデータが記憶される
第2のメモリと、この第2のメモリの読み出し制御を行
う手段とを含むことを特徴とする時分割多重タイマ方
式。
1. A time division multiplex timer system of a microprocessor for monitoring an elapsed time from a change point of each of a plurality of input signals, comprising a first memory having an individual address given to each of the input signals. Changing the input signal from the change point of each of the input signals to the next change point at predetermined time intervals, and monitoring the number of times from the change point to the next change point by the first Means for storing at an address corresponding to the input signal in the memory of
Time-division multiplex timer system characterized by including a second memory in which the same data is stored at the same address as the above memory and a means for controlling the reading of the second memory.
JP61251187A 1986-10-22 1986-10-22 Time division multiple timer method Expired - Lifetime JP2550537B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61251187A JP2550537B2 (en) 1986-10-22 1986-10-22 Time division multiple timer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61251187A JP2550537B2 (en) 1986-10-22 1986-10-22 Time division multiple timer method

Publications (2)

Publication Number Publication Date
JPS63104152A JPS63104152A (en) 1988-05-09
JP2550537B2 true JP2550537B2 (en) 1996-11-06

Family

ID=17218975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61251187A Expired - Lifetime JP2550537B2 (en) 1986-10-22 1986-10-22 Time division multiple timer method

Country Status (1)

Country Link
JP (1) JP2550537B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5429537A (en) * 1977-08-10 1979-03-05 Nec Corp Timer circuit for information processing unit
JPS57120140A (en) * 1981-01-19 1982-07-27 Mitsubishi Electric Corp Multi-timer device
JPS60235251A (en) * 1984-05-09 1985-11-21 Fujitsu Ltd Timer mechanism

Also Published As

Publication number Publication date
JPS63104152A (en) 1988-05-09

Similar Documents

Publication Publication Date Title
US4835675A (en) Memory unit for data tracing
US4839856A (en) Memory access control circuit
JPH0760413B2 (en) Memory system
HU176777B (en) Device for reducing instruction execution time in computer of indirect addressed data memory
JP2550537B2 (en) Time division multiple timer method
EP0367426A2 (en) Computer memory addressing system
JP4494701B2 (en) Method for generating an instruction word when controlling a functional unit in a processor
US5497481A (en) Microcomputer computer system having plural programmable timers and preventing memory access operations from interfering with timer start requests
JPS62224842A (en) Action history storage system
WO1987006365A1 (en) Signal trace control system for pmc
JPH0731523B2 (en) Programmable controller device
JPS6020779B2 (en) Composite computer system
EP0243189A1 (en) Data storage and transfer apparatus
JPS63239521A (en) Data processing system for magnetic tape device
JPS62224841A (en) Operation history storage system
JPS605400Y2 (en) Multipoint data input/output device
JP2923869B2 (en) Event input circuit
KR0168973B1 (en) Rom accessing method and its apparatus
JPH082756Y2 (en) Image processing device
GB2084771A (en) Improvements in or relating to circuit arrangements for detecting malfunctioning in direct data controllers of microprocessor systems
JP2758745B2 (en) Memory circuit
JPH07123259B2 (en) Communication control device
JPH0528056A (en) Memory device
JPS6360426B2 (en)
JPS62224840A (en) Operation history storage system