Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0531775B2 - - Google Patents
[go: Go Back, main page]

JPH0531775B2 - - Google Patents

Info

Publication number
JPH0531775B2
JPH0531775B2 JP61111410A JP11141086A JPH0531775B2 JP H0531775 B2 JPH0531775 B2 JP H0531775B2 JP 61111410 A JP61111410 A JP 61111410A JP 11141086 A JP11141086 A JP 11141086A JP H0531775 B2 JPH0531775 B2 JP H0531775B2
Authority
JP
Japan
Prior art keywords
processing
counter
program
central processing
processing 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
JP61111410A
Other languages
Japanese (ja)
Other versions
JPS62266624A (en
Inventor
Toshinori Tamura
Mitsue Abe
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
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 JP11141086A priority Critical patent/JPS62266624A/en
Publication of JPS62266624A publication Critical patent/JPS62266624A/en
Publication of JPH0531775B2 publication Critical patent/JPH0531775B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4831Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority
    • G06F9/4837Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority time dependent

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、所定のカウントクロツクを計数し、
かつ処理要求を発生するハードウエアカウンタ
と、プログラムおよび各種データを記憶するメモ
リ部と、前記処理要求に基づく処理と前記プログ
ラムによる処理とを選択的に実行する中央処理装
置を備えた計数装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a method for counting a predetermined count clock,
The present invention also relates to a counting device including a hardware counter that generates a processing request, a memory unit that stores programs and various data, and a central processing unit that selectively executes processing based on the processing request and processing according to the program.

〔従来の技術〕[Conventional technology]

第3図はこの種の計数装置の従来例のブロツク
図、第4図はそのタイムチヤートである。
FIG. 3 is a block diagram of a conventional counting device of this type, and FIG. 4 is a time chart thereof.

マイクロコンピユータ100は、実行部10
1、プログラムメモリ102、データメモリ10
3、割込み制御部104およびカウントクロツク
105−1をカウントする上位mビツト、下位n
ビツトで、周期T0のハードウエアカウンタ10
5を有し、これらは内部バス106を介して相互
に接続されている。現在実行中の命令が格納され
ているアドレスを記憶するプログラムカウンタ
(以下、PCと記す)101−1、実行部101の
動作状態を示すプログラム・ステータス・ワード
(以下PSWと記す)101−2および汎用レジス
タセツト101−3を有する実行部101はプロ
グラムメモリ102から逐次命令コードを読出し
て実行し、処理データはデータメモリ103上に
格納される。
The microcomputer 100 includes an execution unit 10
1. Program memory 102, data memory 10
3. Upper m bits and lower n bits for counting interrupt control unit 104 and count clock 105-1
Hardware counter 10 with period T 0 in bits
5, which are interconnected via an internal bus 106. A program counter (hereinafter referred to as PC) 101-1 that stores the address where the currently executed instruction is stored, a program status word (hereinafter referred to as PSW) 101-2 that indicates the operating state of the execution unit 101, and An execution unit 101 having a general-purpose register set 101-3 sequentially reads instruction codes from a program memory 102 and executes them, and processing data is stored on a data memory 103.

次にハードウエアカウンタ105の動作につい
て以下に述べる。ハードウエアカウンタ105は
カウントクロツク105−1が入力されるたびに
カウントアツプ動作を行う。カウント動作を開始
してから下位nビツトからキユリーが発生するま
での時間T1は T1=T0×2n となり、この時間T1が上位mビツトのインクリ
メント周期になる。すなわち上位mビツトがイン
クリメントされる周期は下位nビツトからキヤリ
ーが発生するT0×2nに一度ということになる。
ハードウエアカウンタ105がカウンタ動作を開
始してからT0×2(m+n)の時間が経過するとハード
ウエアカウンタ105はオーバフローを発生し、
割込み要求信号線105−2をアクテイブにす
る。割込み要求信号線105−2がアクテイブに
なつたことを検知して割込み制御部104は実行
部101へ割込み処理実行要求線104−1をア
クテイブにする。実行部101は現在実行してい
るプログラムを中断し、PC101−1、PSW1
01−2および汎用レジスタセツト101−3を
退避した後にプログラムメモリ102内に記憶さ
れている処理を実行する。
Next, the operation of the hardware counter 105 will be described below. The hardware counter 105 performs a count-up operation every time the count clock 105-1 is input. The time T 1 from the start of the counting operation to the generation of curies from the lower n bits is T 1 =T 0 ×2 n , and this time T 1 becomes the increment period of the upper m bits. That is, the cycle in which the upper m bits are incremented is once every T 0 ×2 n when a carry occurs from the lower n bits.
When the time T 0 ×2 (m+n) has elapsed since the hardware counter 105 started its counter operation, the hardware counter 105 generates an overflow.
Activate the interrupt request signal line 105-2. Upon detecting that the interrupt request signal line 105-2 has become active, the interrupt control unit 104 activates the interrupt processing execution request line 104-1 to the execution unit 101. The execution unit 101 interrupts the currently running program, and
01-2 and the general-purpose register set 101-3, the processing stored in the program memory 102 is executed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の計数処理装置では、カウンタの
ビツト数が測定しようとする周期、すなわちカウ
ンタがオーバフローを起こすまでの時間とカウン
トロツク周波数によつて決定され、カウンタの分
解能を良くしようと思えば、カウントするクロツ
クの周波数を大きくする必要があるためにカウン
ト数が多くなり、また長周期の測定を行おうとす
ると、同様にカウント数が多くなるためにカウン
タのビツト数を多くしなくてはならなくなり、そ
の結果回路規模が増大しコスト面から考えても好
ましくないという欠点がある。ところが、先に述
べたようにカウンタの上位側のビツトがインクリ
メントされる周期は下位側のビツトにくらべて非
常に長く、からなずしも有効に利用されていると
は言いがたく、ハードウエアの負担が大きい割に
は有効に活用されていない。
In the conventional counting processing device described above, the number of bits in the counter is determined by the cycle to be measured, that is, the time until the counter overflows, and the count lock frequency. The number of counts increases because it is necessary to increase the frequency of the clock used to perform the measurement, and if you try to measure a long period, the number of counts also increases and the number of bits in the counter must be increased. As a result, the circuit scale increases, which is undesirable from a cost standpoint. However, as mentioned earlier, the cycle in which the upper bits of the counter are incremented is much longer than that of the lower bits, and it is difficult to say that the increments are being used effectively. It is not being used effectively given the heavy burden it places on people.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の計数装置は、クロツクをカウントしか
つオーバフロー信号を出力するハードウエアカウ
ンタと、所定のカウント数を格納するカウント数
格納領域を有するメモリ部と、プログラムメモリ
内のプログラムを実行する中央処理装置と、前記
中央処理装置に対して出された特殊割り込み要求
に対する処理または周辺装置からの通常割り込み
要求に対する処理を制御するカウンタ処理制御部
とを含んで構成され、前記カウンタ処理制御部は
特殊割り込み信号として前記オーバフロー信号を
受け取つた際に前記中央処理装置を構成するプロ
グラムカウンタ、プログラムステータスワードお
よび汎用レジスタの状態をそのまま保持して前記
プログラムによる前記中央演算装置の処理を中断
しかつ前記カウント数格納領域の内容を読み出し
前記中央演算装置内でインクリメントした後に前
記カウント数格納領域に再び書き込んだ後に前記
プログラムによる前記中央演算装置の処理を再開
し、前記周辺装置からの割り込み要求を受け取つ
た際には通常割り込み処理を行うことを特徴とす
る。
The counting device of the present invention includes a hardware counter that counts clocks and outputs an overflow signal, a memory section that has a count storage area that stores a predetermined count, and a central processing unit that executes a program in a program memory. and a counter processing control unit that controls processing for a special interrupt request issued to the central processing unit or processing for a normal interrupt request from a peripheral device, and the counter processing control unit controls processing for a special interrupt request issued to the central processing unit, and the counter processing control unit When the overflow signal is received, the states of the program counter, program status word, and general-purpose registers constituting the central processing unit are maintained as they are, and the processing of the central processing unit by the program is interrupted, and the count number storage area is After reading out the contents of and incrementing them in the central processing unit and writing them again to the count storage area, the program restarts the processing of the central processing unit, and when receiving an interrupt request from the peripheral device, It is characterized by performing interrupt processing.

マクロサービスは、ハードウエアカウンタから
のI/O要求が発生するとそれまでの処理を中断
し、実行部中のプログラムカウンタ、PSW、汎
用レジスタセツト等を保持したままインクリメン
トおよび転送処理を行ない、マクロサービスが終
了すると中断していたプログラムの実行を再開す
るため、マクロサービスは特別なハードウエアを
付加することなく、また一連の処理は実行制御部
により全て自動的に行われるためマクロサービス
のための処理用のソフトウエアを作成する必要も
ない。
When an I/O request from a hardware counter occurs, the macro service interrupts the processing up to that point, performs increment and transfer processing while retaining the program counter, PSW, general-purpose register set, etc. in the execution section, and then resumes the macro service. Since the macro service resumes execution of the interrupted program when the program is finished, there is no need to add any special hardware, and the series of processes are all automatically performed by the execution control unit, so the processing for the macro service is There is no need to create any software.

従来の割込み機能だけでハードウエアカウンタ
のビツト数を減らそうとすると、ハードウエアカ
ウンタでオーバフローが発生するたびに従来のソ
フトウエア割込み処理を実行するために、PC、
PSW、汎用レジスタセツトの退避・復帰処理、
割込みプログラムへの分岐処理、および命令の読
出し(以下、前記処理をオーバヘツドと記す)を
行わなければならない。その結果、カウントデー
タの値のインクリメントおよび転送処理という本
来の処理よりもオーバヘツドのためにCPUは多
くの時間をさくことになり、ビツト数が削減され
ればされるほどI/O要求の発生が多くなり
CPUの効率は低下する。ところが、本発明では
ハードウエアカウンタのビツト数を削減してもデ
ータメモリ中の領域を上位側カウンタのカウント
値格納領域として利用し、あわせてマクロサービ
スの機能を有することにより、オーバヘツドを必
要とせずにカウントデータの値のインクリメント
および転送処理が行え、CPUの処理能力の低下
を極力抑えることができる。また、複数本のカウ
ンタを備えた情報処理装置においてこれら複数本
のカウンタに対して本実施例で述べたマクロサー
ビスを適用すると、削減することができるハード
ウエアの量はカウンタの本数が多くなればなるほ
ど多くなりハードウエアの負担をかなり減らすこ
とができ、実用的効果はさらに大きくなる。
If you try to reduce the number of bits in the hardware counter using only the conventional interrupt function, the PC,
PSW, general-purpose register set save/restore processing,
It is necessary to perform branch processing to the interrupt program and read instructions (hereinafter, the above processing will be referred to as overhead). As a result, the CPU spends more time due to overhead than the original processing of incrementing and transferring the count data value, and the more the number of bits is reduced, the less I/O requests occur. become more
CPU efficiency decreases. However, in the present invention, even if the number of bits of the hardware counter is reduced, the area in the data memory is used as the count value storage area of the upper side counter, and by having a macro service function, no overhead is required. It is possible to increment and transfer the value of count data, minimizing the decrease in CPU processing performance. Furthermore, if the macro service described in this embodiment is applied to an information processing device equipped with multiple counters, the amount of hardware that can be reduced will decrease as the number of counters increases. As the number increases, the burden on the hardware can be significantly reduced, and the practical effects will be even greater.

〔実施例〕〔Example〕

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

第1図は本発明の計数装置の一実施例を示すブ
ロツク図である。
FIG. 1 is a block diagram showing one embodiment of the counting device of the present invention.

本実施例では従来からを割込み処理要求を広く
解釈し、周辺装置あるいは内部回路からの処理要
求(以下、前記割込み要求をI/O要求と記す)
としてとらえる。
In this embodiment, the conventional interrupt processing request is broadly interpreted as a processing request from a peripheral device or an internal circuit (hereinafter, the interrupt request is referred to as an I/O request).
Take it as

ビツト数nのハードウエアカウンタ105はカ
ウントクロツク105−1をカウントし、オーバ
フローが発生するとオーバフロー信号105−2
を出力する。オーバフロー発生により行なわれる
処理を制御するカウンタ処理制御部500は、
I/O要求を制御するI/O要求制御部205、
中央処理装置に対して処理を要求するI/O処理
実行要求線205−1、I/O処理形態を指定す
るI/O処理実行形態指定線205−2および
I/O処理実行要求線205−1とI/O処理実
行形態指定線205−2を受けて中央処理装置
(以下、CPUと記す)510の動作を制御する
I/O要求受付け部206有する。CPU510
は、次に実行するプログラムメモリ102のアド
レスを指すPC101−1、CPU510全体の動
作状態を示すPSW101−2、処理中のデータ
を保持する汎用レジスタセツト101−3、算術
論理演算機能を持つ算術論理演算ユニツト(以
下、ALUと記す)201、実行すべき命令を保
持する命令レジスタ202、命令レジスタ202
の内容を解読し、各種制御信号を発生する命令コ
ーダ203、命令デコーダ203の出力により
CPU510全体の動作を制御する実行制御部2
04を有する。また、データメモリ部103はソ
フトウエアカウンタとしてmビツトのカウントデ
ータを格納するカウントデータ格納領域103−
1を有する。上記各部はすべて内部バス106に
接続されている。
A hardware counter 105 with the number of bits n counts the count clock 105-1, and when an overflow occurs, an overflow signal 105-2 is sent.
Output. A counter processing control unit 500 that controls processing performed due to the occurrence of an overflow,
an I/O request control unit 205 that controls I/O requests;
An I/O processing execution request line 205-1 that requests processing to the central processing unit, an I/O processing execution form specification line 205-2 that specifies an I/O processing form, and an I/O processing execution request line 205-. 1 and an I/O processing execution mode designation line 205-2, the I/O request receiving unit 206 controls the operation of a central processing unit (hereinafter referred to as CPU) 510. CPU510
is a PC 101-1 that indicates the address of the program memory 102 to be executed next, a PSW 101-2 that indicates the operating status of the entire CPU 510, a general-purpose register set 101-3 that holds data being processed, and an arithmetic logic register that has an arithmetic logic operation function. Arithmetic unit (hereinafter referred to as ALU) 201, instruction register 202 that holds instructions to be executed, instruction register 202
By the output of the instruction coder 203 and instruction decoder 203, which decode the contents and generate various control signals,
Execution control unit 2 that controls the overall operation of the CPU 510
It has 04. The data memory section 103 also has a count data storage area 103-- which stores m-bit count data as a software counter.
1. All of the above sections are connected to an internal bus 106.

次に、カウンタ処理における動作について述べ
る。
Next, the operation in counter processing will be described.

nビツトのハードウエアカウンタ105はカウ
ントクロツク105−1をカウントし、その結果
オーバフローが発生すると、オーバフロー信号1
05−2を出力する。I/O要求制御部205は
オーバフロー信号105−2を受けてI/O要求
受付け部206に対するI/O処理実行要求線2
05−1をアクテイブレベルとし、同時にI/O
処理実行形態指定線205−2をハイレベルにす
る。I/O要求受付け部206はI/O処理実行
要求線205−1がアクテイブとなつたときに
I/O処理実行形態指定線205−2がハイレベ
ルであることを検出し、マクロサービスによる処
理を行うことを検知する。このI/O要求をマク
ロサービスで処理するため、I/O要求受付け部
206は実行制御部204を制御してPC101
−1のインクリメントを禁止し、PC101−1、
PSW101−2、汎用レジスタセツト101−
3の値を保持したまま、以下に示す処理を開始す
る。
The n-bit hardware counter 105 counts the count clock 105-1, and when an overflow occurs as a result, an overflow signal 1 is generated.
Outputs 05-2. The I/O request control unit 205 receives the overflow signal 105-2 and sends an I/O processing execution request line 2 to the I/O request reception unit 206.
05-1 is the active level, and at the same time I/O
The process execution mode designation line 205-2 is set to high level. When the I/O processing execution request line 205-1 becomes active, the I/O request receiving unit 206 detects that the I/O processing execution mode specification line 205-2 is at a high level, and executes the processing by the macro service. Detects that the In order to process this I/O request using the macro service, the I/O request receiving unit 206 controls the execution control unit 204 to
-1 increment is prohibited, PC101-1,
PSW101-2, general-purpose register set 101-
While maintaining the value of 3, start the process shown below.

まず、I/O要求制御部205は、ソフトウエ
アカウンタ103−1のデータを読出し、次に読
出したデータをインクリメントし、再びソフトウ
エアカウンタ103−1に格納する。以上一連の
処理で1回のマクロサービスにおけるソフトウエ
アカウンタデータのインクリメントおよび転送処
理が終了する。そしてハードウエアカウンタ10
5がオーバフローを発生するたびに上記マクロサ
ービスを繰り返し、その結果ソフトウエアカウン
タ103−1からオーバフローが発生したことを
検知すると実行制御部204は以下に述べる従来
の割込み処理を行なう。実行制御部204からの
ソフトウエアカウンタのオーバフロー信号204
−1がアクテイブになると、I/O要求制御部2
05はI/O処理実行要求線205−1を再びア
クテイブにするとともに従来の割込み要求を発生
するためにI/O処理実行形態指定線205−2
をロウレベルとする。すると、I/O要求受付け
部206は割込処理プログラムを起動し、従来の
(n+m)ビツトカウンターのオーバフロー発生
時と同様のソフトウエアによる割込処理を実行す
る。
First, the I/O request control unit 205 reads the data in the software counter 103-1, then increments the read data and stores it in the software counter 103-1 again. The above series of processes completes the software counter data increment and transfer process in one macro service. and hardware counter 10
The above-mentioned macro service is repeated every time an overflow occurs in the software counter 103-1, and when the execution control unit 204 detects that an overflow has occurred from the software counter 103-1, the execution control unit 204 performs the conventional interrupt processing described below. Software counter overflow signal 204 from execution control unit 204
-1 becomes active, the I/O request control unit 2
05 activates the I/O processing execution request line 205-1 again and also connects the I/O processing execution mode specification line 205-2 to generate a conventional interrupt request.
is the low level. Then, the I/O request accepting unit 206 starts the interrupt processing program and executes the interrupt processing by software similar to that when an overflow occurs in the conventional (n+m) bit counter.

第2図は、カウントクロツク105−1、ハー
ドウエアカウンタ105のビツトn、ハードウエ
アカウンタ105のオーバフロー信号105−
2、ソフトウエアカウンタ103−1のビツト
m、ソフトウエアカウンタ103−1のオーバフ
ロー信号のタイミングチヤートである。カウント
クロツク105−1の周期をT0とする。ハード
ウエアカウンタ105の最上位桁ビツトnは時間
T0×2n-1に1回インクリメントされ、時間T0×
2n間隔でハードウエアカウンタ105のオーバフ
ロー信号105−2が発生し、マクロサービスが
実行される。マクロサービスによつてソフトウエ
アカウンタ103−1がインクリメントされつづ
けると、ソフトウエアカウンタ103−1の最上
位桁ビツトmは時間T0×2n+m-1に1回インクリメ
ントされ、その結果時間T0×2n+m間隔でソフト
ウエアカウンタ103−1のオーバフロー信号が
発生する。
FIG. 2 shows the count clock 105-1, bit n of the hardware counter 105, and the overflow signal 105-1 of the hardware counter 105.
2. This is a timing chart of bit m of the software counter 103-1 and the overflow signal of the software counter 103-1. Let the period of count clock 105-1 be T0 . The most significant bit n of the hardware counter 105 is the time.
Incremented once to T 0 ×2 n-1 , time T 0 ×
An overflow signal 105-2 of the hardware counter 105 is generated at intervals of 2n , and the macro service is executed. As the software counter 103-1 continues to be incremented by the macro service, the most significant bit m of the software counter 103-1 is incremented once every time T 0 ×2 n+m-1 , and as a result, the time T An overflow signal of the software counter 103-1 is generated at intervals of 0 ×2 n+m .

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

以上説明したように本発明は、ハードウエアカ
ウンタから発生するI/O要求により実行部が自
動的にデータメモリ中の上位カウンタとして利用
しているカウントデータ格納領域中のカウント値
をアクセスしてそのカウント値を再びもとのカウ
ントデータ格納領域へ格納することより、ハード
ウエアカウンタのビツト数を削減しても、オーバ
ヘツドを必要とせずにカウントデータの値のイン
クリメントおよび転送処理が行え、CPUの処理
能力の低下を極力抑えることができる効果があ
る。
As explained above, in accordance with the present invention, the execution unit automatically accesses the count value in the count data storage area used as the upper counter in the data memory in response to an I/O request generated from the hardware counter. By storing the count value back into the original count data storage area, even if the number of bits in the hardware counter is reduced, the count data value can be incremented and transferred without any overhead, reducing CPU processing. It has the effect of suppressing the decline in ability as much as possible.

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

第1図は本発明の計数装置の一実施例を示すブ
ロツク図、第2図はそのタイムチヤート、第3図
は従来例のブロツク図、第4図は従来例のタイム
チヤートである。 100……マイクロコンピユータ、101……
実行部、101−1……プログラムカウンタ
(PC)、101−2……プログラム・ステータ
ス・ワード(PSW)、101−3……汎用レジス
タセツト、102……プログラムメモリ、103
……データメモリ、103−1……ソフトウエア
カウンタ、104……割込み制御部、104−1
……割込み要求線、105……ハードウエアカウ
ンタ、106……内部バス、201……算術論理
演算ユニツト(ALU)、202……命令レジス
タ、203……命令レコーダ、204……実行制
御部、204−1……ソフトウエアカウンタ10
3−1のオーバフロー信号、205……I/O要
求制御部、205−1……I/O処理実行要求
線、205−2……I/O処理実行形態指定線、
206……I/O要求受付け部、500……カウ
ントデータ処理制御部、510……中央処理装置
(CPU)。
FIG. 1 is a block diagram showing one embodiment of the counting device of the present invention, FIG. 2 is a time chart thereof, FIG. 3 is a block diagram of a conventional example, and FIG. 4 is a time chart of a conventional example. 100...Microcomputer, 101...
Execution unit, 101-1...Program counter (PC), 101-2...Program status word (PSW), 101-3...General-purpose register set, 102...Program memory, 103
...Data memory, 103-1...Software counter, 104...Interrupt control unit, 104-1
...Interrupt request line, 105...Hardware counter, 106...Internal bus, 201...Arithmetic logic unit (ALU), 202...Instruction register, 203...Instruction recorder, 204...Execution control section, 204 -1...Software counter 10
3-1 overflow signal, 205... I/O request control unit, 205-1... I/O processing execution request line, 205-2... I/O processing execution mode specification line,
206...I/O request reception unit, 500...Count data processing control unit, 510...Central processing unit (CPU).

Claims (1)

【特許請求の範囲】[Claims] 1 クロツクをカウントしかつオーバフロー信号
を出力するハードウエアカウンタと、所定のカウ
ント数を格納するカウント数格納領域を有するメ
モリ部と、プログラムメモリ内のプログラムを実
行する中央処理装置と、前記中央処理装置に対し
て出された特殊割り込み要求に対する処理または
周辺装置からの通常割り込み要求に対する処理を
制御するカウンタ処理制御部とを含んで構成さ
れ、前記カウンタ処理制御部は特殊割り込み信号
として前記オーバフロー信号を受け取つた際に前
記中央処理装置を構成するプログラムカウンタ、
プログラムステータスワードおよび汎用レジスタ
の状態をそのまま保持して前記プログラムによる
前記中央演算装置の処理を中断しかつ前記カウン
ト数格納領域の内容を読み出し前記中央演算装置
内でインクリメントした後に前記カウント数格納
領域に再び書き込んだ後に前記プログラムによる
前記中央演算装置の処理を再開し、前記周辺装置
からの割り込み要求を受け取つた際には通常割り
込み処理を行うことを特徴とする計数装置。
1. A hardware counter that counts clocks and outputs an overflow signal, a memory unit having a count storage area that stores a predetermined count, a central processing unit that executes a program in a program memory, and the central processing unit. and a counter processing control section that controls processing for a special interrupt request issued to the computer or processing for a normal interrupt request from a peripheral device, and the counter processing control section receives the overflow signal as a special interrupt signal. a program counter that constitutes the central processing unit when
The state of the program status word and general-purpose registers is maintained as is, the processing of the central processing unit by the program is interrupted, and the contents of the count number storage area are read out and incremented in the central processing unit, and then stored in the count number storage area. A counting device characterized in that after rewriting, the processing of the central processing unit by the program is resumed, and when an interrupt request from the peripheral device is received, normal interrupt processing is performed.
JP11141086A 1986-05-14 1986-05-14 Counter device Granted JPS62266624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11141086A JPS62266624A (en) 1986-05-14 1986-05-14 Counter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11141086A JPS62266624A (en) 1986-05-14 1986-05-14 Counter device

Publications (2)

Publication Number Publication Date
JPS62266624A JPS62266624A (en) 1987-11-19
JPH0531775B2 true JPH0531775B2 (en) 1993-05-13

Family

ID=14560454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11141086A Granted JPS62266624A (en) 1986-05-14 1986-05-14 Counter device

Country Status (1)

Country Link
JP (1) JPS62266624A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03134737A (en) * 1989-10-19 1991-06-07 Matsushita Electric Ind Co Ltd Microprocessor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6024968B2 (en) * 1978-03-22 1985-06-15 富士通株式会社 timer device
JPS60183639A (en) * 1984-03-02 1985-09-19 Nec Corp Data processing unit

Also Published As

Publication number Publication date
JPS62266624A (en) 1987-11-19

Similar Documents

Publication Publication Date Title
US4250546A (en) Fast interrupt method
KR100588790B1 (en) Method and apparatus for acting on subsequent command processing in data processor
US5696989A (en) Microcomputer equipped with DMA controller allowed to continue to perform data transfer operations even after completion of a current data transfer operation
US4200912A (en) Processor interrupt system
JP2661222B2 (en) Pulse output device
JPH0527971A (en) Information processor
US4124892A (en) Data processing systems
JPH0531775B2 (en)
Drótos et al. Interrupt driven parallel processing
JPH0634241B2 (en) Information processing equipment
JP2725419B2 (en) Counting circuit
JPH0632051B2 (en) Information processing equipment
JPH0574154A (en) Microcomputer
KR100256230B1 (en) Timer unit with system watchdog function
JPS62166463A (en) Data transfer system
JPS633328B2 (en)
JPS61121136A (en) Arithmetic processing unit
SU1061144A1 (en) Device for control of program interruptions
JP2715524B2 (en) Timer circuit
JPS621027A (en) Cassette type magnetic tape reading controller
JPH0695304B2 (en) Data processing device
JPH05265882A (en) Microprocessor with cycle time-out detector
JPH05120155A (en) Microprogram controller
JPS6267603A (en) Pulse measuring instrument
JPH0285951A (en) Input/output bus cycle control system

Legal Events

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