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
JPH0690729B2 - Microprocessor and output port - Google Patents
[go: Go Back, main page]

JPH0690729B2 - Microprocessor and output port - Google Patents

Microprocessor and output port

Info

Publication number
JPH0690729B2
JPH0690729B2 JP2143132A JP14313290A JPH0690729B2 JP H0690729 B2 JPH0690729 B2 JP H0690729B2 JP 2143132 A JP2143132 A JP 2143132A JP 14313290 A JP14313290 A JP 14313290A JP H0690729 B2 JPH0690729 B2 JP H0690729B2
Authority
JP
Japan
Prior art keywords
data
master latch
count
output
signal
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
JP2143132A
Other languages
Japanese (ja)
Other versions
JPH0436883A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2143132A priority Critical patent/JPH0690729B2/en
Publication of JPH0436883A publication Critical patent/JPH0436883A/en
Publication of JPH0690729B2 publication Critical patent/JPH0690729B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロプロセッサと出力ポートの構成に関
し、出力ポートを介して出力される信号のタイムベース
エラーの少ないマイクロプロセッサ及び出力ポートを提
供するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor and an output port configuration, and provides a microprocessor and an output port with less time base error of a signal output through the output port. .

従来の技術 近年、ノイマン方式のマイクロプロセッサはあらゆる方
面で多用されており、その構成としては、順次実行され
る命令群からなるプログラムを格納するプログラム格納
手段と、ディジタルデータの読み書きが可能なデータ格
納手段と、ディジタルデータの演算を実行する演算手段
と、前記データ格納手段の入出力端子と前記演算手段の
入出力端子を接続するデータバスと、前記プログラム格
納手段から送出される命令に基づいて前記データ格納手
段と前記演算手段の動作をコントロールするコントロー
ル手段と、命令の実行タイミング信号を発生するタイミ
ングジェネレータと、前記タイミングジェネレータの出
力に基づいて前記プログラム格納手段に格納された特定
の命令を選択する命令選択手段とを備えていることに特
徴づけられる。また、その代表的な構成が特公昭58−33
584号公報(以下、文献1と略記する。)に示されてい
る。
2. Description of the Related Art In recent years, Neumann microprocessors have been widely used in all fields, and their configurations include a program storage means for storing a program consisting of a series of instructions to be sequentially executed and a data storage for reading / writing digital data. Means, an arithmetic means for executing arithmetic operation of digital data, a data bus connecting the input / output terminal of the data storage means and the input / output terminal of the arithmetic means, and the above-mentioned means based on an instruction sent from the program storage means. Control means for controlling the operations of the data storage means and the arithmetic means, a timing generator for generating an instruction execution timing signal, and a specific instruction stored in the program storage means based on the output of the timing generator. Characterized by having instruction selection means To be In addition, the typical structure is Japanese Patent Publication Sho 58-33.
No. 584 (hereinafter referred to as Document 1).

発明が解決しようとする課題 しかしながら、文献1に示されるようなノイマン方式の
マイクロプロセッサはあらかじめ定められた順序にした
がってデータの処理を実行していくために、プログラム
が膨大になるにつれて非同期で入力される外部データの
取り込みやそれに基づくデータの処理のサイクルが長く
なり、その結果、事象が発生してからマイクロプロセッ
サから出力信号が送出されるまでの時間のばらつき、す
なわち、タイムベースエラーがかなり大きくなるという
問題を有している。このような問題に対して、従来は割
り込みという手段が用いられてきたが、割り込み要求が
あってもその時点で実行している命令を処理してしまわ
ないと割り込み処理に移行できないため、マイクロプロ
セッサが割り込みを受け付けてから、実際に割り込みサ
ービスルーチンを開始するまでの時間そのものにタイム
ベースエラーが発生してしまうという問題点を有してい
た。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention However, since the Neumann type microprocessor as described in Document 1 executes data processing in a predetermined order, it is asynchronously input as the program becomes huge. The cycle of capturing external data and processing of data based on it becomes long, and as a result, the time variation from the occurrence of an event to the output signal from the microprocessor, that is, the time base error is considerably large. I have a problem. Conventionally, a means called an interrupt has been used to deal with such a problem. However, even if an interrupt request is made, it cannot move to the interrupt process unless the instruction being executed at that time is processed. There is a problem that a timebase error occurs in the time itself from when an interrupt is accepted until the interrupt service routine is actually started.

本発明は上記従来の問題点を解決するもので、一連の信
号パターンをタイムベースエラーを少なく出力すること
ができる出力ポート及びマイクロプロセッサを提供する
ことを目的とする。
The present invention solves the above-mentioned conventional problems, and an object of the present invention is to provide an output port and a microprocessor capable of outputting a series of signal patterns with a small time base error.

課題を解決するための手段 この目的を達成するために本発明のマイクロプロセッサ
は、特定のクロック信号に基づいて巡回カウント動作を
行うフリーランニングカウンタと、少なくとも2種類以
上のディジタルデータを格納する時間データ格納手段
と、前記時間データ格納手段のいずれか1つを選択する
時間データ選択手段と、外部入力信号に同期して前記フ
リーランニングカウンタのカウントデータを格納するカ
ウントデータ格納手段と、前記カウントデータ格納手段
のデータと前記時間データ格納手段のデータの加算を行
う加算器と、前記フリーランニングカウンタのカウント
データと前記加算器の加算データとを比較し、一致した
場合に一致信号を出力する比較手段と、前記比較手段か
ら出力される一致信号に基づいて巡回カウント動作を行
うポインタと、前記時間データ格納手段と同数のディジ
タルデータを格納するマスターラッチ部と、前記マスタ
ーラッチ部のいずれか1つを選択するマスターラッチ選
択手段と、前記マスターラッチ部のデータを前記比較手
段から出力される一致信号に基づいて取り込むスレーブ
ラッチ部とからなる出力ポートを備えている。
Means for Solving the Problems To achieve this object, a microprocessor of the present invention includes a free-running counter that performs a cyclic counting operation based on a specific clock signal, and time data that stores at least two or more types of digital data. Storage means, time data selection means for selecting any one of the time data storage means, count data storage means for storing count data of the free running counter in synchronization with an external input signal, and count data storage An adder for adding the data of the means and the data of the time data storage means, a comparison means for comparing the count data of the free running counter and the addition data of the adder, and for outputting a coincidence signal when they coincide. , A cyclic counting operation based on the coincidence signal output from the comparison means. And a master latch section for storing any one of the master latch sections, a master latch section for storing the same number of digital data as the time data storage section, and data for the master latch section. It has an output port including a slave latch unit for taking in a match signal output from the comparing means.

また、本発明の出力ポートは特定のクロック信号に基づ
いて巡回カウント動作を行うフリーランニングカウンタ
と、前記フリーランニングカウンタのカウントデータと
あらかじめ用意された時間データとの加算を行う加算器
と、前記フリーランニングカウンタのカウントデータと
前記加算器の出力データとを比較し、一致した場合に一
致信号を出力する比較手段と、前記比較手段から出力さ
れる一致信号に基づいて巡回カウント動作を行うポイン
タと、少なくとも2種類以上のディジタルデータを格納
するマスターラッチ部と、前記ポインタの内容に応じ
て、前記マスターラッチ部のいずれか1つを選択するマ
スターラッチ選択手段と、前記マスターラッチ部のデー
タを前記比較手段から出力される一致信号に基づいて取
り込むスレーブラッチ部とを備えている。
The output port of the present invention includes a free-running counter that performs a cyclic counting operation based on a specific clock signal, an adder that adds the count data of the free-running counter and time data prepared in advance, and the free-running counter. Comparing the count data of the running counter with the output data of the adder, comparing means for outputting a coincidence signal when they coincide, a pointer for performing a cyclic counting operation based on the coincidence signal output from the comparing means, The master latch unit for storing at least two kinds of digital data, the master latch selecting unit for selecting one of the master latch units according to the content of the pointer, and the data for the master latch unit are compared. The slave latch that is acquired based on the coincidence signal output from And a part.

作用 本発明は上記した構成により、出力ポートを介して出力
される信号のタイムベースエラーが少ないマイクロプロ
セッサ及び出力ポートを得ることができる。
Effect of the Invention The present invention can obtain a microprocessor and an output port having a time base error of a signal output through the output port with the above-described configuration.

実施例 以下、本発明の一実施例について、図面を参照しながら
説明する。
Embodiment One embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明のマイクロプロセッサの構成図を示す
ものである。
FIG. 1 shows a block diagram of the microprocessor of the present invention.

第1図において、TMGR100は外部クロック入力端子10に
供給されるクロック信号をもとに命令の実行タイミング
信号を発生するタイミングジェネレータであり、その出
力信号はPC200,ICR900及びFRC1000に供給されている。P
LA300はプログラマブルロジックアレイであり、順次実
施される命令群からなるプログラムが格納されている。
PC200はプログラムカウンタであり、TMGR100の出力信号
に基づいてPLA300に格納された特定の命令を選択する。
FRC1000はフリーランニングカウンタであり、TMGR100の
出力信号をクロック信号として巡回カウント動作を行
う。FRC1000のカウントデータはローカルバス1400を介
してICR900及び出力ポート1100に供給される。ICR900は
インプットキャップチャレジスタ回路であり、外部信号
入力端子20〜27に印加される入力信号のエッジが到来し
たときに、その時点のFRC1000のカウントデータをICR90
0内の特定のレジスタに格納する(同時に複数の入力信
号のエッジが到来したときには、複数のレジスタにFRC1
000のカウントデータが格納される。)とともに、図示
されてはいない入力信号受け付けフラグをセットする機
能を有している。PLA300から送出される命令はコマンド
バス1300を介してALU400,アドレスデコーダ600(図中で
はアドレスデコーダAと示されている。),アドレスデ
コーダ800(図中ではアドレスデコーダBと示されてい
る。),ICR900及び出力ポート1100に供給される。ま
た、データバス1200はALU400,ROM500,RAM700,ICR900及
び出力ポート1100に接続されている。ALU400はディジタ
ルデータの算術および論理演算を実行する演算器であ
る。ROM500はあらかじめ格納されているディジタルデー
タをデータバス1200に送出する読み出し専用メモリであ
る。RAM700はデータバス1200を介してディジタルデータ
の読み書きを行うランダムアクセスメモリである。出力
ポート1100は信号入出力端子40から入力される外部信号
を基準とし、プログラムによって変えられる一連の信号
パターンを信号出力端子30〜37から出力する。アドレス
デコーダ600はROM500のアドレスを選択し、アドレスデ
コーダ800はRAM700のアドレスを選択する。
In FIG. 1, TMGR100 is a timing generator that generates an instruction execution timing signal based on the clock signal supplied to the external clock input terminal 10, and its output signal is supplied to the PC200, ICR900 and FRC1000. P
The LA300 is a programmable logic array, and stores a program including a group of instructions that are sequentially executed.
PC200 is a program counter, and selects a specific instruction stored in PLA300 based on the output signal of TMGR100.
FRC1000 is a free-running counter, which performs a cyclic counting operation using the output signal of TMGR100 as a clock signal. The count data of FRC1000 is supplied to ICR900 and output port 1100 via local bus 1400. The ICR900 is an input capture register circuit, and when the edge of the input signal applied to the external signal input terminals 20 to 27 arrives, the count data of the FRC1000 at that time is ICR90.
Stored in a specific register within 0 (When multiple input signal edges arrive at the same time, FRC1
The count data of 000 is stored. ), And has a function of setting an input signal reception flag (not shown). The command transmitted from the PLA 300 is ALU 400, address decoder 600 (shown as address decoder A in the drawing), address decoder 800 (shown as address decoder B in the drawing) via command bus 1300. , ICR900 and output port 1100. Further, the data bus 1200 is connected to the ALU 400, ROM 500, RAM 700, ICR 900 and output port 1100. ALU400 is an arithmetic unit that executes arithmetic and logical operations on digital data. The ROM 500 is a read-only memory that sends digital data stored in advance to the data bus 1200. The RAM 700 is a random access memory that reads and writes digital data via the data bus 1200. The output port 1100 outputs a series of signal patterns that can be changed by a program from the signal output terminals 30 to 37 with reference to an external signal input from the signal input / output terminal 40. The address decoder 600 selects the address of the ROM 500, and the address decoder 800 selects the address of the RAM 700.

以上のように構成された本実施例のマイクロプロセッサ
について、以下その動作について第1図〜第3図を用い
て説明する。
The operation of the microprocessor of the present embodiment configured as described above will be described below with reference to FIGS. 1 to 3.

TMGR100は外部クロック入力端子10に供給されるクロッ
ク信号をもとに命令の実行タイミング信号を発生し、こ
の信号をPC200,ICR900及びFRC1000に供給する。PC200は
TMGR100の出力信号に基づいてPLA300に格納された命令
群の中から特定の命令を選択し、PLA300はPC200によっ
て選択された命令をコマンドバス1300に送出する。ALU4
00はコマンドバス1300から送られてくる命令にしたがっ
て、データバス1200を介して送られてくるディジタルデ
ータの算術および論理演算を実行し、その結果をデータ
バス1200に送出する。アドレスデコーダ600はコマンド
バス1300を介して送られてくる命令に基づいて特定のア
ドレスを選択し、ROM500はアドレスデコーダ600によっ
て選択されたアドレスに対応する格納手段に格納された
ディジタルデータをデータバス1200に送出する。アドレ
スデコーダ800はコマンドバス1300を介して送られてく
る命令に基づいて特定のアドレスを選択し、RAM700はア
ドレスデータ800によって選択されたアドレスに対応す
る格納手段に対し、データバス1200から送られてくるデ
ィジタルデータを格納あるいは既に格納されたディジタ
ルデータをデータバス1200に送出する。
The TMGR100 generates an instruction execution timing signal based on the clock signal supplied to the external clock input terminal 10, and supplies this signal to the PC200, ICR900 and FRC1000. PC200
Based on the output signal of TMGR100, a specific instruction is selected from the instruction group stored in PLA300, and PLA300 sends the instruction selected by PC200 to command bus 1300. ALU4
00 executes arithmetic and logical operations of the digital data sent via the data bus 1200 according to the command sent from the command bus 1300, and sends the result to the data bus 1200. The address decoder 600 selects a specific address based on an instruction sent via the command bus 1300, and the ROM 500 transfers the digital data stored in the storage means corresponding to the address selected by the address decoder 600 to the data bus 1200. Send to. The address decoder 800 selects a specific address based on an instruction sent via the command bus 1300, and the RAM 700 sends data from the data bus 1200 to the storage means corresponding to the address selected by the address data 800. It stores the incoming digital data or sends the already stored digital data to the data bus 1200.

次に、第2図及び第3図を用いて出力ポート1100につい
て説明する。第2図は第1図の出力ポート1100の内部構
造を示す構成図であり、第3図は主要部のタイミングチ
ャートである。
Next, the output port 1100 will be described with reference to FIGS. 2 and 3. FIG. 2 is a block diagram showing the internal structure of the output port 1100 of FIG. 1, and FIG. 3 is a timing chart of the main part.

第2図でFRCレジスタ1180は入力端子40から外部信号が
入力されると、そのときのFRC1000のカウントデータを
ラッチし、そのラッチデータを加算器1190に供給する。
時間データレジスタ1111〜1114(図中では時間データレ
ジスタA〜Dと示されている。)は出力ポートからデー
タを出力するタイミングデータを格納するレジスタであ
り、時間データ選択回路1200は時間データレジスタ1111
〜1114のいずれか1つのレジスタを選択し、選択したレ
ジスタに格納されているディジタルデータを加算器1190
に供給する。加算器1190はFRCレジスタ1180のデータと
時間データ選択回路1120によって選択された時間データ
レジスタのデータとの加算を行い、その結果を比較回路
1130に供給する。比較回路1130は加算器1190から供給さ
れるディジタルデータとローカルバス1400を介して第1
図のFRC1000から供給されるカウントデータとを比較
し、一致した場合に一致信号をスレーブラッチ回路1160
及びポインタ回路1170に供給する。また、比較端子1130
は入力端子40から外部信号が供給されると比較動作を開
始し、ポインタ回路1170からオーバーフロー信号が供給
されるまで比較動作を行う。アドレスデコーダ1110(図
中ではアドレスデコーダCと示されている。)はコマン
ドバス1300から送られてくる命令にしたがい、データバ
ス1200を介して時間データレジスタ1111〜1114にディジ
タルデータを格納する際にアドレスを選択する。マスタ
ーラッチ1141〜1144(図中ではマスターラッチA〜Dと
示されている。)は出力データを格納するラッチであ
り、マスターラッチ選択回路1150はマスターラッチ1141
〜1144のいずれか1つのマスターラッチを選択し、選択
したマスターラッチに格納されているディジタルデータ
をスレーブラッチ回路1160に供給する。また、アドレス
データ1140(図中ではアドレスデコーダDと示されてい
る。)はコマンドバス1300から送られてくる命令にした
がい、データバス1200を介してマスターラッチ1141〜11
44にディジタルデータを格納する際にアドレスを選択す
る。ポインタ回路1170は比較回路1130の一致信号に基づ
いて巡回カウント動作を行い、カウントデータを時間デ
ータ選択回路1120及びマスターラッチ選択回路1150に供
給する。さらに、ポインタ回路1170はカウント動作が一
巡した場合にはオーバーフロー信号を比較回路1130に供
給する。また、ポインタ回路1170はコマンドバス1300か
ら送られてくる初期化命令によってカウントデータを初
期化する。
In FIG. 2, when an external signal is input from the input terminal 40, the FRC register 1180 latches the count data of the FRC1000 at that time and supplies the latched data to the adder 1190.
The time data registers 1111 to 1114 (indicated as time data registers A to D in the figure) are registers for storing timing data for outputting data from the output port, and the time data selection circuit 1200 includes the time data register 1111.
Select one of the registers from 1 to 1114 and add the digital data stored in the selected register to the adder 1190
Supply to. The adder 1190 adds the data in the FRC register 1180 and the data in the time data register selected by the time data selection circuit 1120, and compares the result with the comparison circuit.
Supply to 1130. The comparator circuit 1130 receives the digital data supplied from the adder 1190 and a first bus via the local bus 1400.
The count data supplied from the FRC1000 in the figure is compared, and if they match, a match signal is output to the slave latch circuit 1160.
And to the pointer circuit 1170. Also, the comparison terminal 1130
Starts the comparison operation when an external signal is supplied from the input terminal 40, and performs the comparison operation until the pointer circuit 1170 supplies the overflow signal. The address decoder 1110 (indicated as an address decoder C in the drawing) stores the digital data in the time data registers 1111-1114 via the data bus 1200 according to the instruction sent from the command bus 1300. Select an address. Master latches 1141 to 1144 (indicated as master latches A to D in the figure) are latches for storing output data, and the master latch selection circuit 1150 is a master latch 1141.
~ 1144 is selected, and the digital data stored in the selected master latch is supplied to the slave latch circuit 1160. Further, the address data 1140 (indicated as an address decoder D in the figure) is transmitted via the command bus 1300 according to an instruction transmitted from the command bus 1300, and the master latches 1141 to 1141 are transmitted via the data bus 1200.
Select an address when storing digital data in 44. The pointer circuit 1170 performs a cyclic count operation based on the match signal of the comparison circuit 1130, and supplies the count data to the time data selection circuit 1120 and the master latch selection circuit 1150. Further, the pointer circuit 1170 supplies an overflow signal to the comparison circuit 1130 when the counting operation has completed one cycle. Further, the pointer circuit 1170 initializes the count data by the initialization instruction sent from the command bus 1300.

以上のように構成された出力ポート1100について、その
動作について説明する。
The operation of the output port 1100 configured as above will be described.

時間データレジスタ1111〜1114にはプログラムにより、
任意のディジタルデータが書き込まれる。たとえば、プ
ログラムにより時間データレジスタ1111に時間データが
書き込まれる場合には、まず、コマンドバス1300を介し
て送られてくる命令にしたがって、アドレスデコーダ11
10は時間データレジスタ1111を選択し、選択された時間
データレジスタ1111はデータバス1200を介して送られて
くるディジタルデータを格納する。同様にして時間デー
タレジスタ1112〜1114に任意のディジタルデータが書き
込まれる。また、マスターラッチ1141〜1144も同様にプ
ログラムにより、任意のディジタルデータが書き込まれ
る。
The time data registers 1111-1114 are programmed to
Arbitrary digital data is written. For example, when time data is written to the time data register 1111 by a program, first, the address decoder 11 is executed according to the instruction sent via the command bus 1300.
10 selects the time data register 1111, and the selected time data register 1111 stores the digital data sent via the data bus 1200. Similarly, arbitrary digital data is written in the time data registers 1112-1114. Further, the master latches 1141 to 1144 are similarly programmed with arbitrary digital data written by the program.

時間データ選択回路1120及びマスターラッチ選択回路11
50はポインタ回路1170から供給されるカウントデータに
応じて、時間データレジスタとマスターラッチをそれぞ
れ選択する。
Time data selection circuit 1120 and master latch selection circuit 11
Reference numeral 50 selects the time data register and the master latch, respectively, according to the count data supplied from the pointer circuit 1170.

ポインタ回路1170のカウントデータ「0」,「1」,
「2」,「3」に対して、時間データ選択回路1120は時
間データレジスタ1111,1112,1113,1114を選択し、マス
ターラッチ選択回路1150はマスターラッチ1141,1142,11
43,1144をそれぞれ選択する。
Count data “0”, “1” of the pointer circuit 1170,
For “2” and “3”, the time data selection circuit 1120 selects the time data registers 1111, 1112, 1113, 1114, and the master latch selection circuit 1150 selects the master latches 1141, 1142, 11
Select 43 and 1144 respectively.

次に、第3図を用いて一連の出力パターンを出力すると
きの動作について説明する。第3図でaはFRC1000がア
ップカウンタの場合のカウントデータの時間的変化を示
したものであり、bは入力端子40から入力される外部信
号を示し、cはFRCレジスタ1180のラッチデータを示
し、dはポインタ回路1170の出力データを示し、eは時
間データ選択回路1120から加算器1190に供給される時間
データを示し、fは加算器1190から比較回路1130に供給
される加算結果データを示し、gはマスターラッチ選択
回路1150からスレーブラッチ回路1160に供給される出力
データを示し、hはスレーブラッチ回路1160から出力す
るデータを示し、iは比較回路1130から出力される一致
信号を示している。
Next, the operation of outputting a series of output patterns will be described with reference to FIG. In FIG. 3, a shows the change over time of the count data when the FRC1000 is an up counter, b shows the external signal input from the input terminal 40, and c shows the latch data of the FRC register 1180. , D represents output data of the pointer circuit 1170, e represents time data supplied from the time data selection circuit 1120 to the adder 1190, and f represents addition result data supplied from the adder 1190 to the comparison circuit 1130. , G represents output data supplied from the master latch selection circuit 1150 to the slave latch circuit 1160, h represents data output from the slave latch circuit 1160, and i represents a match signal output from the comparison circuit 1130. .

FRC1000がアップカウンタであり、時間データレジスタ1
111〜1114にはそれぞれ時間データTA,TB,TC,TDが格納さ
れており、マスターラッチ1141〜1144にはそれぞれ出力
データDA,DB,DC,DDが格納されているとする。
FRC1000 is up counter and time data register 1
It is assumed that 111 to 1114 store time data TA, TB, TC, TD, respectively, and master latches 1141 to 1144 store output data DA, DB, DC, DD, respectively.

初期状態ではポインタ回路1170のカウントデータは
「0」であるので、時間データ選択手段1120は時間デー
タレジスタ1111を選択し、このレジスタに格納されてい
るディジタルデータTAを加算器1190に送出し、マスター
ラッチ選択回路1150はマスターラッチ1141を選択し、こ
のラッチに格納されているディジタルデータDAをスレー
ブラッチ回路1160に送出している。
In the initial state, since the count data of the pointer circuit 1170 is "0", the time data selecting means 1120 selects the time data register 1111 and sends the digital data TA stored in this register to the adder 1190 to be the master. The latch selection circuit 1150 selects the master latch 1141 and sends the digital data DA stored in this latch to the slave latch circuit 1160.

時刻t1に入力端子40に入力されている外部信号のリーデ
ィングエッジが到来すると、FRCレジスタ1180にはその
時点でのFRC1000のカウントデータN1がラッチされ、比
較回路1130の比較動作が開始される。加算器1190はFRC
レジスタ1180のラッチデータN1と時間データレジスタ11
11の時間データTAとの加算を行い、その加算結果データ
N2(=N1+TA)を比較回路1130に供給する。比較回路11
30は加算器1190から供給されているディジタルデータN2
とローカルバス1400を介して送られてくる第1図に示し
たFRC1000のカウントデータを比較し、第3図の時刻t2
でFRC1000のカウントデータがN2に等しくなると、第3
図iに示される一致信号をスレーブラッチ回路1160及び
ポインタ回路1170に送出する。スレーブラッチ回路1160
は第3図hに示されるように、比較回路1130から送出さ
れる一致信号のリーディングエッジでマスターラッチ11
41に格納されているディジタルデータDAをラッチし、ま
た第3図dに示されるようにポインタ回路1170は一致信
号によりカウントデータを「0」から「1」にカウント
アップする。ポインタのカウントデータが「1」になる
ことによって第3図e,gに示すように加算器1190には時
間データ選択回路1120から時間データTBが供給され、ス
レーブラッチ回路1160にはマスターラッチ選択回路1150
から出力データDBが供給される。
When the leading edge of the external signal input to the input terminal 40 arrives at time t1, the FRC register 1180 latches the count data N1 of the FRC1000 at that time, and the comparison operation of the comparison circuit 1130 is started. Adder 1190 is FRC
Latch data N1 of register 1180 and time data register 11
Addition with 11 time data TA and the addition result data
N2 (= N1 + TA) is supplied to the comparison circuit 1130. Comparison circuit 11
30 is the digital data N2 supplied from the adder 1190
And the count data of the FRC1000 shown in FIG. 1 sent via the local bus 1400 are compared, and the time t2 in FIG. 3 is compared.
When the count data of FRC1000 becomes equal to N2,
The match signal shown in FIG. I is sent to the slave latch circuit 1160 and the pointer circuit 1170. Slave latch circuit 1160
As shown in FIG. 3h, the master latch 11 is generated at the leading edge of the match signal sent from the comparison circuit 1130.
The digital data DA stored in 41 is latched, and as shown in FIG. 3d, the pointer circuit 1170 counts up the count data from "0" to "1" by the coincidence signal. When the count data of the pointer becomes "1", the time data TB is supplied from the time data selection circuit 1120 to the adder 1190 and the slave latch circuit 1160 is supplied to the master latch selection circuit as shown in FIGS. 1150
Output data DB is supplied from.

以後、同様にしてFRC1000のカウントデータと加算器119
0が送出するデータとの比較が行われ、時刻t3,t4,t5で
はFRC1000のカウントデータと加算器1190の加算結果デ
ータとが一致するため、比較回路1130から一致信号が送
出される。そして、比較回路1130から一致信号が送出さ
れるたびにスレーブラッチ回路1160はマスターラッチ選
択回路で選択されたマスターラッチに格納されたディジ
タルデータをラッチし、ポインタ回路1170はカウント動
作を行う。
After that, similarly, count data of FRC1000 and adder 119
The data transmitted by 0 is compared with each other. At times t3, t4, and t5, since the count data of the FRC 1000 and the addition result data of the adder 1190 match, a match signal is sent from the comparison circuit 1130. Then, each time the match signal is sent from the comparison circuit 1130, the slave latch circuit 1160 latches the digital data stored in the master latch selected by the master latch selection circuit, and the pointer circuit 1170 performs the counting operation.

時刻t5ではポインタ回路1170はカウント値が「3」から
「0」になり一巡するので、オーバーフロー信号を比較
回路1130に送出する。
At time t5, the pointer circuit 1170 makes a round from the count value of “3” to “0”, and therefore sends an overflow signal to the comparison circuit 1130.

比較回路1130はこのオーバーフロー信号によって比較動
作を停止し、入力端子40に入力されている外部信号のリ
ーディングエッジが到来するまで一致信号を送出しな
い。
The comparison circuit 1130 stops the comparison operation due to this overflow signal, and does not send the coincidence signal until the leading edge of the external signal input to the input terminal 40 arrives.

時刻t6で入力端子40に入力されている外部信号のリーデ
ィングエッジが到来すると、FRCレジスタ1180はその時
点でのFRC1000のカウントデータN6がラッチされ、比較
回路1130の比較動作が開始され、以後時刻t1〜t5の場合
と同様の動作が繰り返される。
When the leading edge of the external signal input to the input terminal 40 arrives at the time t6, the FRC register 1180 latches the count data N6 of the FRC1000 at that time, the comparison operation of the comparison circuit 1130 is started, and then the time t1. The same operation as in the case of ~ t5 is repeated.

したがって、入力端子40に入力されている外部信号を基
準にして、FRC1000の任意のカウント後のデータを時間
データレジスタ1111〜1114に格納し、時間データレジス
タ1111〜1114に対応するマスターラッチ1141〜1144に任
意の出力データを格納することにより、一連の出力パタ
ーンを有する信号をスレーブラッチ回路1160から出力す
ることができる。
Therefore, with reference to the external signal input to the input terminal 40, the FRC1000 stores the counted data in the time data registers 1111-1114, and the master latches 1141-1144 corresponding to the time data registers 1111-1114. By storing arbitrary output data in the slave latch circuit 1160, a signal having a series of output patterns can be output.

このように、マスターラッチ1141〜1144からスレーブラ
ッチ回路1160へのデータの転送が、加算器1190の出力デ
ータとFRC1000のカウントデータとを比較する比較回路1
130の一致検出信号によって自動的に行われるように構
成することにより、入力端子40から非同期で入力される
外部信号のリーディングエッジを検出してから、あらか
じめ決められた時間後に出力ポート1100より任意の信号
パターンの信号を送出させる場合にはタイムベースエラ
ーを最小限に押さえることができる。
In this way, the transfer of data from the master latches 1141 to 1144 to the slave latch circuit 1160 is performed by the comparison circuit 1 that compares the output data of the adder 1190 and the count data of the FRC1000.
By being configured to be automatically performed by the match detection signal of 130, after detecting the leading edge of the external signal that is asynchronously input from the input terminal 40, after a predetermined time, the output port 1100 outputs any When the signal of the signal pattern is transmitted, the time base error can be suppressed to the minimum.

以上のように本発明のマイクロプロセッサは、特定のク
ロック信号に基づいて巡回カウント動作を行うフリーラ
ンニングカウンタ(FRC1000)と、少なくとも2種類以
上のディジタルデータを格納する時間データ格納手段
(時間データレジスタ1111〜1114)と、時間データ格納
手段のいずれか1つを選択する時間データ選択手段(時
間データ選択回路1120)と、外部入力信号に同期してフ
リーランニングカウンタのカウントデータを格納するカ
ウントデータ格納手段(FRCレジスタ1180)と、カウン
トデータ格納手段のデータと時間データ格納手段のデー
タとの加算を行う加算器(加算器1190)と、フリーラン
ニングカウンタのカウントデータと加算器の加算データ
とを比較し、一致した場合に一致信号を出力する比較手
段(比較回路1130)と、比較手段から出力される一致信
号に基づいて巡回カウント動作を行うポインタ(ポイン
タ回路1170)と、時間データ格納手段と同数のディジタ
ルデータを格納するマスターラッチ部(マスターラッチ
1141〜1144)と、マスターラッチ部のいずれか1つを選
択するマスターラッチ選択手段(マスターラッチ選択回
路1150)と、マスターラッチ部のデータを比較手段から
出力される一致信号に基づいて取り込むスレーブラッチ
部(スレーブラッチ回路1160)とからなる出力ポート
(出力ポート1100)を設けたものである。
As described above, the microprocessor of the present invention includes a free running counter (FRC1000) that performs a cyclic counting operation based on a specific clock signal, and time data storage means (time data register 1111) that stores at least two types of digital data. 1114), time data selecting means (time data selecting circuit 1120) for selecting any one of the time data storing means, and count data storing means for storing count data of the free running counter in synchronization with an external input signal. (FRC register 1180), an adder (adder 1190) for adding the data of the count data storage means and the data of the time data storage means, and the count data of the free running counter and the addition data of the adder are compared. , A comparison means (comparison circuit 1130) that outputs a coincidence signal when they match A pointer (pointer circuit 1170) that performs a cyclic count operation based on a match signal output from the master latch unit (master latch unit that stores the same number of digital data as the time data storage unit).
1141 to 1144), a master latch selection unit (master latch selection circuit 1150) for selecting one of the master latch units, and a slave latch for fetching the data of the master latch unit based on the coincidence signal output from the comparison unit. And an output port (output port 1100) composed of a unit (slave latch circuit 1160).

したがって、第1図および第2図に示したマイクロプロ
セッサではタイムベースエラーの少ない一連の信号パタ
ーン出力を容易に得ることができる。
Therefore, the microprocessor shown in FIGS. 1 and 2 can easily obtain a series of signal pattern outputs with less time base error.

なお、実施例において外部信号のリーディングエッジを
基準に出力タイミングを決定しているが、外部信号のト
レイリングエッジあるいは両方のエッジを基準にしても
全く同様な効果が得られる。
Although the output timing is determined with reference to the leading edge of the external signal in the embodiment, the same effect can be obtained by using the trailing edge of the external signal or both edges as the reference.

また、実施例において出力ポートから出力する出力デー
タが4通りの場合について説明しているが、1〜4通り
のいずれの場合でも同様に動作し、さらに、出力ポート
の時間データレジスタ及びマスターラッチはそれぞれ4
本ずつの構成になっているが、出力ポートから出力する
信号のパターンの複雑さに応じて2本以上いくつ設けた
場合でも全く同様な効果が得られる。
Further, in the embodiment, the case where there are four types of output data output from the output port has been described, but the same operation is performed in any of the cases of 1 to 4 types, and further, the time data register and the master latch of the output port are 4 each
Although the configuration is such that two or more lines are provided depending on the complexity of the pattern of the signal output from the output port, the same effect can be obtained.

また、実施例においてフリーランニングカウンタはアッ
プカウンタとしたが、ダウンカウンタの場合はFRCレジ
スタのデータの符号を負にして加算することによって、
全く同様の効果が得られる。
In the embodiment, the free running counter is the up counter, but in the case of the down counter, the sign of the data in the FRC register is made negative and the
The same effect can be obtained.

次に、第4図は本発明の出力ポートのブロック図を示し
たものである。
Next, FIG. 4 is a block diagram of the output port of the present invention.

第4図において、FRC4000はフリーランニングカウンタ
であり、端子4020から供給される信号をクロックとして
巡回カウント動作を行い、FRC4000のカウントデータは
加算器4100,比較回路4200に供給される。さらに、加算
器4100には時間データレジスタ4300から時間データが供
給される。そして、加算器4100は外部入力端子4030から
外部信号が入力されると、FRC4000のカウントデータと
時間データレジスタ4300の時間データとの加算を行い、
その加算結果データを比較回路4200に供給する。比較回
路4200はFRC4000のカウントデータと加算器4100の加算
結果データとの比較を行い、一致した場合は一致信号を
ポインタ回路4400及びスレーブラッチ4700に供給する。
ポインタ回路4400は比較回路4200の一致信号に基づいて
巡回カウント動作を行い、カウントデータをマスターラ
ッチ選択回路4600に供給する。マスターラッチ4500〜45
30(図中ではマスターラッチA〜Dと示されている。)
は出力端子4010〜4013から出力する出力データを格納す
るレジスタである。マスターラッチ選択回路4600はポイ
ンタ回路4400のカウントデータによって、マスターラッ
チ4500〜4530のいずれかを選択し、選択したマスターラ
ッチのデータをスレーブラッチに供給する。スレーブラ
ッチ4700は比較回路4200の一致信号によって、マスター
ラッチ選択回路4600から供給される出力データを取り込
み、出力端子4010〜4013から出力する。
In FIG. 4, the FRC4000 is a free-running counter, which performs a cyclic count operation using a signal supplied from the terminal 4020 as a clock, and the count data of the FRC4000 is supplied to the adder 4100 and the comparison circuit 4200. Further, the time data is supplied from the time data register 4300 to the adder 4100. When the external signal is input from the external input terminal 4030, the adder 4100 adds the count data of the FRC4000 and the time data of the time data register 4300,
The addition result data is supplied to the comparison circuit 4200. The comparison circuit 4200 compares the count data of the FRC 4000 with the addition result data of the adder 4100, and if they match, supplies a match signal to the pointer circuit 4400 and the slave latch 4700.
The pointer circuit 4400 performs a cyclic count operation based on the match signal from the comparison circuit 4200, and supplies the count data to the master latch selection circuit 4600. Master latch 4500-45
30 (indicated as master latches A to D in the figure)
Is a register for storing output data output from the output terminals 4010 to 4013. The master latch selection circuit 4600 selects one of the master latches 4500 to 4530 according to the count data of the pointer circuit 4400 and supplies the data of the selected master latch to the slave latch. The slave latch 4700 takes in the output data supplied from the master latch selection circuit 4600 in response to the match signal from the comparison circuit 4200, and outputs it from the output terminals 4010 to 4013.

以上のように構成された出力ポートについて、第4図の
ブロック図と第5図のタイミングチャートを用いて、そ
の動作を説明する。
The operation of the output port configured as above will be described with reference to the block diagram of FIG. 4 and the timing chart of FIG.

第5図でaはFRC4000がアップカウンタの場合のカウン
トデータの時間的変化を示したものであり、bは入力端
子4030から入力される外部信号を示し、cは加算器4100
から比較回路4200に供給される加算結果データを示し、
dはポインタ回路4400の出力データを示し、eはマスタ
ーラッチ選択回路4600からスレーブラッチ回路4700に供
給される出力データを示し、fはスレーブラッチ回路47
00から出力するデータを示し、gは比較回路4200から出
力される一致信号を示している。
In FIG. 5, “a” shows a time change of the count data when the FRC4000 is an up counter, “b” shows an external signal input from the input terminal 4030, and “c” shows an adder 4100.
Shows the addition result data supplied to the comparison circuit 4200 from
d indicates the output data of the pointer circuit 4400, e indicates the output data supplied from the master latch selection circuit 4600 to the slave latch circuit 4700, and f indicates the slave latch circuit 47.
00 indicates data output from 00, and g indicates a coincidence signal output from the comparison circuit 4200.

FRC4000がアップカウンタであり、時間データレジスタ4
300には時間データTが格納されており、マスターラッ
チ4500〜4530にはそれぞれ出力データDA,DB,DC,DDが格
納されているとする。また、ポインタ回路4400のカウン
トデータ「0」,「1」,「2」,「3」に対して、マ
スターラッチ選択回路4600はマスターラッチ4500,4510,
4520,4530をそれぞれ選択する。
FRC4000 is an up counter and time data register 4
It is assumed that 300 stores time data T, and master latches 4500 to 4530 store output data DA, DB, DC, and DD, respectively. Further, for the count data “0”, “1”, “2”, and “3” of the pointer circuit 4400, the master latch selection circuit 4600 has the master latches 4500, 4510,
Select 4520 and 4530 respectively.

初期状態ではポインタ回路4400のカウントデータは
「0」であるので、マスターラッチ選択回路4600はマス
ターラッチ4500を選択し、このラッチに格納されている
ディジタルデータDAをスレーブラッチ回路4700に送出し
ている。
Since the count data of the pointer circuit 4400 is “0” in the initial state, the master latch selection circuit 4600 selects the master latch 4500 and sends the digital data DA stored in this latch to the slave latch circuit 4700. .

時刻t1に入力端子4030に入力されている外部信号のリー
ディングエッジが到来すると、加算器4100はその時点で
のFRC4000のカウントデータN1と時間データレジスタ430
0に格納された時間データTとの加算を行い、その加算
結果データを比較回路4200に供給する。そして、加算器
4100は入力端子4030に入力されている外部信号のリーデ
ィングエッジが新たに到来するまで、時刻t1での加算結
果データを比較回路4200に供給しつづける。
When the leading edge of the external signal input to the input terminal 4030 arrives at time t1, the adder 4100 causes the count data N1 of the FRC4000 at that time and the time data register 430
The time data T stored in 0 is added, and the addition result data is supplied to the comparison circuit 4200. And adder
The 4100 continues to supply the addition result data at the time t1 to the comparison circuit 4200 until the leading edge of the external signal input to the input terminal 4030 newly arrives.

比較回路4200は加算器4100から供給されているディジタ
ルデータN1+TとFRC4000のカウントデータとを比較
し、第5図の時刻t2でFRC4000のカウントデータがN1+
Tに等しくなると第5図gに示される一致信号をスレー
ブラッチ回路4700及びポインタ回路4400に送出する。
The comparator circuit 4200 compares the digital data N1 + T supplied from the adder 4100 with the count data of the FRC4000, and the count data of the FRC4000 becomes N1 + at time t2 in FIG.
When it becomes equal to T, the coincidence signal shown in FIG. 5g is sent to the slave latch circuit 4700 and the pointer circuit 4400.

スレーブラッチ回路4700は第5図fに示されるように、
比較回路4200から送出される一致信号のリーディングエ
ッジでマスターラッチ4500に格納されているディジタル
データDAをラッチし、また第5図dに示されるようにポ
インタ回路4400は一致信号によりカウントデータを
「0」から「1」にカウントアップする。
The slave latch circuit 4700, as shown in FIG.
At the leading edge of the match signal sent from the comparison circuit 4200, the digital data DA stored in the master latch 4500 is latched, and as shown in FIG. 5d, the pointer circuit 4400 sets the count data to "0" by the match signal. From "" to "1".

以後、同様にして時刻t3,t5,t7で更新される加算器から
の加算結果データに対し、それぞれ時刻t4,t6,t8ではFR
C4000のカウントデータが一致するため、第5図gに示
されるように、比較回路4200から一致信号が送出され
る。そして、比較回路4200から一致信号が送出されるた
びにスレーブラッチ回路4700はマスターラッチ選択回路
で選択されたマスターラッチに格納されたディジタルデ
ータをラッチし、ポインタ回路4400はカウント動作を行
う。
After that, similarly to the addition result data from the adder updated at times t3, t5, and t7, FR is added at times t4, t6, and t8, respectively.
Since the count data of C4000 match, as shown in FIG. 5g, a match signal is sent from the comparison circuit 4200. Then, each time the match signal is sent from the comparison circuit 4200, the slave latch circuit 4700 latches the digital data stored in the master latch selected by the master latch selection circuit, and the pointer circuit 4400 performs the counting operation.

したがって、あらかじめ時間データレジスタ4300に時間
データを格納し、マスターラッチ1141〜1144に任意の出
力データを格納することにより、入力端子4030に入力さ
れている外部信号を基準にして、一連の出力パターンを
有する信号をスレーブラッチ回路4700から出力すること
ができる。
Therefore, by storing the time data in the time data register 4300 in advance and storing any output data in the master latches 1141 to 1144, a series of output patterns can be set based on the external signal input to the input terminal 4030. The signal that the slave latch circuit 4700 has can be output.

以上のように本発明の出力ポートは、特定のクロック信
号に基づいて巡回カウント動作を行うフリーランニング
カウンタ(FRC4000)と、フリーランニングカウンタの
カウントデータとあらかじめ用意された時間データとの
加算を行う加算器(加算器4100)と、フリーランニング
カウンタのカウントデータと加算器の出力データとを比
較し、一致した場合に一致信号を出力する比較手段(比
較回路4200)と、比較手段から出力される一致信号に基
づいて巡回カウント動作を行うポインタ(ポインタ回路
4400)と、少なくとも2種類以上のディジタルデータを
格納するマスターラッチ部(マスターラッチ4500〜453
0)と、ポインタの内容に応じてマスターラッチ部のい
ずれか1つを選択するマスターラッチ選択手段(マスタ
ーラッチ選択回路4600)と、マスターラッチ部のデータ
を比較手段から出力される一致信号に基づいて取り込む
スレーブラッチ部(スレーブラッチ回路4700)とで構成
されている。
As described above, the output port of the present invention is a free running counter (FRC4000) that performs a cyclic count operation based on a specific clock signal, and an adder that adds the count data of the free running counter and time data prepared in advance. Unit (adder 4100) compares the count data of the free-running counter with the output data of the adder, and outputs a match signal when they match, a match circuit (comparison circuit 4200) and a match output from the compare unit. A pointer (pointer circuit that performs a cyclic count operation based on a signal
4400) and a master latch unit (master latches 4500 to 453) that stores at least two types of digital data.
0), master latch selection means (master latch selection circuit 4600) for selecting any one of the master latch portions according to the content of the pointer, and data of the master latch portion based on the coincidence signal output from the comparison means. It is composed of a slave latch unit (slave latch circuit 4700) which is taken in by the device.

なお、実施例では出力ポートの出力端子は4つとした
が、マスターラッチ及びスレーブラッチのデータ長を増
減させることで出力端子が幾つの場合でも全く同様に実
現できる。
Although the number of output terminals of the output port is four in the embodiment, it can be realized in the same manner even if the number of output terminals is increased by increasing or decreasing the data length of the master latch and the slave latch.

発明の効果 以上のように本発明は、外部入力信号を基準にして、出
力ポートから出力信号を送出する時間タイミングデータ
を時間データレジスタに格納し、時間データレジスタに
格納した時間タイミングで出力するデータをマスターラ
ッチに格納することによって、外部信号入力端子に印加
される入力信号のエッジが到来すると、その時点のフリ
ーランニングカウンタのカウントデータと時間データレ
ジスタの時間データから信号の出力タイミングの加算を
行い、加算結果の出力タイミングとフリーランニングカ
ウンタのカウントデータが一致すると、自動的に信号が
出力されるので、出力ポートからはタイムベースエラー
の少ない一連の信号パターンを出力することができ、そ
の効果は大きい。
EFFECTS OF THE INVENTION As described above, the present invention stores time timing data for sending an output signal from an output port in a time data register based on an external input signal, and outputs data at the time timing stored in the time data register. By storing in the master latch, when the edge of the input signal applied to the external signal input terminal arrives, the output timing of the signal is added from the count data of the free running counter at that time and the time data of the time data register. , When the output timing of the addition result and the count data of the free-running counter match, a signal is automatically output, so a series of signal patterns with less time base error can be output from the output port. large.

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

第1図は本発明の一実施例におけるマイクロプロセッサ
のブロック図、第2図は同実施例における出力ポート部
の具体的な構成例を示すブロック図、第3図は第2図の
主要部のタイミングチャート、第4図は本発明の一実施
例における出力ポートのブロック図、第5図は第4図の
主要部のタイミングチャートである。 100…タイミングジェネレータ、200…プログラムカウン
タ、300…PLA、400…ALU、500…ROM、700…RAM、900…I
CR、1000,4000…FRC、1100…出力ポート、1111〜1114,4
300…時間データレジスタ、1130,4200…比較回路、1141
〜1144,4500〜4530…マスターラッチ、1160,4700…スレ
ーブラッチ、1170,4400…ポインタ回路、1180…FRCレジ
スタ、1190,4100…加算器。
FIG. 1 is a block diagram of a microprocessor according to an embodiment of the present invention, FIG. 2 is a block diagram showing a concrete configuration example of an output port unit in the embodiment, and FIG. 3 is a main part of FIG. 4 is a timing chart, FIG. 4 is a block diagram of the output port in one embodiment of the present invention, and FIG. 5 is a timing chart of the main part of FIG. 100 ... Timing generator, 200 ... Program counter, 300 ... PLA, 400 ... ALU, 500 ... ROM, 700 ... RAM, 900 ... I
CR, 1000, 4000 ... FRC, 1100 ... Output port, 1111-1114,4
300 ... Time data register, 1130, 4200 ... Comparison circuit, 1141
~ 1144, 4500 ~ 4530 ... Master latch, 1160, 4700 ... Slave latch, 1170, 4400 ... Pointer circuit, 1180 ... FRC register, 1190, 4100 ... Adder.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】特定のクロック信号に基づいて巡回カウン
ト動作を行うフリーランニングカウンタと、 少なくとも2種類以上のディジタルデータを格納する時
間データ格納手段と、 前記時間データ格納手段のいずれか1つを選択する時間
データ選択手段と、 外部入力信号に同期して前記フリーランニングカウンタ
のカウントデータを格納するカウントデータ格納手段
と、 前記カウントデータ格納手段のデータと前記時間データ
格納手段のデータの加算を行う加算器と、 前記フリーランニングカウンタのカウントデータと前記
加算器の加算データとを比較し、一致した場合に一致信
号を出力する比較手段と、 前記比較手段から出力される一致信号に基づいて巡回カ
ウント動作を行うポインタと、 前記時間データ格納手段と同数のディジタルデータを格
納するマスターラッチ部と、 前記マスターラッチ部のいずれか1つを選択するマスタ
ーラッチ選択手段と、 前記マスターラッチ部のデータを前記比較手段から出力
される一致信号に基づいて取り込むスレーブラッチ部と
からなる出力ポートを備えたマイクロプロセッサ。
1. A free running counter for performing a cyclic counting operation based on a specific clock signal, time data storage means for storing at least two kinds of digital data, and one of the time data storage means is selected. Time data selection means, count data storage means for storing count data of the free running counter in synchronization with an external input signal, and addition for performing addition of the data of the count data storage means and the data of the time data storage means And a comparing unit that compares the count data of the free running counter with the addition data of the adder and outputs a match signal when they match, and a cyclic counting operation based on the match signal output from the comparing unit. And the same number of digital devices as the time data storage means. Master latch section for storing data, master latch selection means for selecting any one of the master latch sections, and slave latch for taking in data of the master latch section based on a coincidence signal output from the comparison means. A microprocessor with an output port consisting of
【請求項2】時間データ選択手段及びマスターラッチ選
択手段は、ポインタのカウントデータに基づいて選択を
変更する請求項1記載のマイクロプロセッサ。
2. The microprocessor according to claim 1, wherein the time data selecting means and the master latch selecting means change the selection based on the count data of the pointer.
【請求項3】特定のクロック信号に基づいて巡回カウン
ト動作を行うフリーランニングカウンタと、 前記フリーランニングカウンタのカウントデータとあら
かじめ用意された時間データとの加算を行う加算器と、 前記フリーランニングカウンタのカウントデータと前記
加算器の出力データとを比較し、一致した場合に一致信
号を出力する比較手段と、 前記比較手段から出力される一致信号に基づいて巡回カ
ウント動作を行うポインタと、 少なくとも2種類以上のディジタルデータを格納するマ
スターラッチ部と、 前記ポインタの内容に応じて前記マスターラッチ部のい
ずれか1つを選択するマスターラッチ選択手段と、 前記マスターラッチ部のデータを前記比較手段から出力
される一致信号に基づいて取り込むスレーブラッチ部と
を備えた出力ポート。
3. A free running counter for performing a cyclic counting operation based on a specific clock signal, an adder for adding the count data of the free running counter and time data prepared in advance, and a free running counter for the free running counter. At least two types: a comparison unit that compares the count data with the output data of the adder and outputs a match signal when they match, a pointer that performs a cyclic count operation based on the match signal output from the comparison unit; A master latch unit that stores the digital data described above, a master latch selection unit that selects one of the master latch units according to the contents of the pointer, and data of the master latch unit is output from the comparison unit. Equipped with a slave latch unit that captures data based on a match signal Output port.
JP2143132A 1990-05-31 1990-05-31 Microprocessor and output port Expired - Fee Related JPH0690729B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2143132A JPH0690729B2 (en) 1990-05-31 1990-05-31 Microprocessor and output port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2143132A JPH0690729B2 (en) 1990-05-31 1990-05-31 Microprocessor and output port

Publications (2)

Publication Number Publication Date
JPH0436883A JPH0436883A (en) 1992-02-06
JPH0690729B2 true JPH0690729B2 (en) 1994-11-14

Family

ID=15331663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2143132A Expired - Fee Related JPH0690729B2 (en) 1990-05-31 1990-05-31 Microprocessor and output port

Country Status (1)

Country Link
JP (1) JPH0690729B2 (en)

Also Published As

Publication number Publication date
JPH0436883A (en) 1992-02-06

Similar Documents

Publication Publication Date Title
US4591979A (en) Data-flow-type digital processing apparatus
JPH07282576A (en) FIFO module
US5872961A (en) Microcomputer allowing external monitoring of internal resources
JPH0690729B2 (en) Microprocessor and output port
US5931942A (en) Pipeline data processing apparatus of reduced circuit scale
JPH03161883A (en) microprocessor
JPH0690730B2 (en) Microprocessor and output port
JPH0690728B2 (en) Microprocessor
JP2512119B2 (en) Microprocessor
JPH02287659A (en) Microprocessor
JPH04162138A (en) microprocessor
CN113515063B (en) Multi-core processor circuit
US3905021A (en) Circuit arrangement for interpreting the content of a register as an instruction
US5598552A (en) Error free data transfers
JP2870812B2 (en) Parallel processor
JP2709201B2 (en) Microcomputer
JPH07111683B2 (en) Processor with task switching function
JPH0695304B2 (en) Data processing device
JP2845768B2 (en) Time information synchronization device
JP3366235B2 (en) Data read control device
US20050074035A1 (en) Data transfer control device and data-driven processor with the data transfer control device
JPS5875250A (en) Digital information processor
JPS63823B2 (en)
JPH02287629A (en) Microprocessor
JPH04211832A (en) Information processor

Legal Events

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