JPH0436883A - Microprocessor and output port - Google Patents

Microprocessor and output port

Info

Publication number
JPH0436883A
JPH0436883A JP2143132A JP14313290A JPH0436883A JP H0436883 A JPH0436883 A JP H0436883A JP 2143132 A JP2143132 A JP 2143132A JP 14313290 A JP14313290 A JP 14313290A JP H0436883 A JPH0436883 A JP H0436883A
Authority
JP
Japan
Prior art keywords
data
output
signal
time
master latch
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.)
Granted
Application number
JP2143132A
Other languages
Japanese (ja)
Other versions
JPH0690729B2 (en
Inventor
Kenichi Suehiro
憲一 末廣
Hiroshi Mizuguchi
博 水口
Koji Kitamura
浩二 北村
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

Abstract

PURPOSE:To output a series of signal patterns of less time base error from an output port by storing time timing data based on an external input signal in a time data register and storing output data in a master latch at the same timing. CONSTITUTION:Data for an arbitrary counted value of FRC is stored in time data registers 1111 to 1114 based on the external signal inputted to an input terminal 40, and arbitrary output data is stored in master latches 1141 to 1144 corresponding to time data registers, thereby outputting a signal having a series of output patterns from a slave latch circuit 1160. Since data is automatically transferred from master latches to the slave latch when output data of an adder 1190 and count data of FRC coincide with each other as the result of comparison, the signal having an arbitrary pattern is sent from the output port to minimize the time base error.

Description

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

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

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

本発明は」二足従来の問題点を解決するもので、一連の
信号パターンをタイムベースエラーヲ少すく出力するこ
とができる出力ポート及びマイクロプロセッサを提供す
ることを目的とする。
SUMMARY OF THE INVENTION The present invention solves the problems of the prior art and provides an output port and a microprocessor that can output a series of signal patterns with less time base error.

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

また、本発明の出力ポートは特定のクロック信号に基づ
いて巡回カウント動作を行うフリーランニングカウンタ
と、前記フリーランニングカウンタのカウントデータと
あらかじめ用意された時間データの加算を行う加算器と
、前記フリーランニングカウンタのカウントデータと前
記加算器の出力データとを比較し、一致した場合に一致
信号を出力する比較手段と、前記比較手段から出力され
る一致信号に基づいて巡回カウント動作を行うポインタ
と、少なくとも2種類以上のディジタルデータを格納す
るマスターラッチ部と、前記ポインタの内容に応じて、
前記マスターラッチ部のいずれか1つを選択するマスタ
ーラッチ選択手段と、前記マスターラッチ部のデータを
前記比較手段から出力される一致信号に基づいて取り込
むスレーブラッチ部とを備えている。
Further, 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 count data of the free running counter and time data prepared in advance, and the free running counter that performs a cyclic counting operation based on a specific clock signal. a comparison means that compares the count data of the counter and the output data of the adder and outputs a coincidence signal when they match; a pointer that performs a cyclic counting operation based on the coincidence signal output from the comparison means; a master latch section that stores two or more types of digital data; and a master latch section that stores two or more types of digital data;
The device includes a master latch selection unit that selects one of the master latch units, and a slave latch unit that captures data from the master latch unit based on a coincidence signal output from the comparison unit.

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

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

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

第1図において、TMGRlooは外部クロック入力端
子10に供給されるクロック信号をもとに命令の実行タ
イミング信号を発生するタイミングジェネレータであり
、その出力信号はPC200、ICR900及びFRC
loooに供給されている。PLA300はプログラマ
ブルロジックアレイであり、順次実行される命令群から
なるプログラムが格納されている。PC200はプログ
ラムカウンタてあり、TMGRlooの出力信号に基づ
いてPLA300に格納された特定の命令を選択する。
In FIG. 1, TMGRloo 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 transmitted to the PC 200, ICR 900 and FRC.
It is supplied to looo. PLA 300 is a programmable logic array, and stores a program consisting of a group of instructions to be executed sequentially. The PC 200 has a program counter and selects a specific instruction stored in the PLA 300 based on the output signal of TMGRloo.

FRC1000はフリーランニングカウンタであり、T
MGRl、OOの出力信号をクロック信号として巡回カ
ウント動作を行う。FRCloooのカラン)・データ
はローカルバス1400を介してICR900及び出力
ポート1100に供給される。ICR900はインプッ
トキャプチャレジスタ回路であり、外部信号入力端子2
0〜27に印加される入力信号のエツジが到来したとき
に、その時点のFRClooOのカウントデータをIC
R900内の特定のレジスタに格納する(同時に複数の
入力信号のエツジが到来したときには、複数のレジスタ
にFRCloooのカウントデータが格納される。)と
ともに、図示されてはいない入力信号骨は付はフラグを
セットする機能を有している。PLA300から送出さ
れる命令はコマンドバス1300を介してALU400
、アドレスデコーダ600(図中ではアドレスデコーダ
Aと示されている。)I アドレスデコーダ800 (
図中ではアドレスデコーダBと示されている。)+  
ICR900及び出力ポート1100に供給される。ま
た、データバス1200はALU400.ROM500
.RAM700.  ICR900及び出カポ−)11
00に接続されている。ALU400はディジタルデー
タの算術および論理演算を実行する演算器である。RO
M500はあらかじめ格納されているディジタルデータ
をデータバス120oに送出する読み出し専用メモリで
ある。RAM700はデータバス1200を介してディ
ジタルデータの読み書きを行うランダムアクセスメモリ
である。出力ポート1100は信号入力端子40から入
力される外部信号を基準とし、プログラムによって変え
られる一連の信号パターンを信号山男端子30〜37か
ら出力する。アドレスデコーダ600はROM500の
アドレスを選択し、アドレスデコーダ800はRAM7
00のアドレスを選択する。
FRC1000 is a free running counter and T
A cyclic counting operation is performed using the output signals of MGR1 and OO as clock signals. FRCloo data is provided to ICR 900 and output port 1100 via local bus 1400. ICR900 is an input capture register circuit, and external signal input terminal 2
When the edge of the input signal applied to 0 to 27 arrives, the count data of FRClooO at that time is
It is stored in a specific register in the R900 (when the edges of multiple input signals arrive at the same time, the count data of FRCooo is stored in multiple registers), and the input signal bone (not shown) is a flag. It has a function to set. Instructions sent from the PLA 300 are sent to the ALU 400 via the command bus 1300.
, address decoder 600 (indicated as address decoder A in the figure) I address decoder 800 (
In the figure, it is indicated as address decoder B. )+
Supplied to ICR 900 and output port 1100. Further, the data bus 1200 is connected to the ALU 400. ROM500
.. RAM700. ICR900 and output capo) 11
Connected to 00. ALU 400 is a computing unit that performs arithmetic and logical operations on digital data. R.O.
M500 is a read-only memory that sends pre-stored digital data to data bus 120o. RAM 700 is a random access memory that reads and writes digital data via data bus 1200. The output port 1100 is based on the external signal inputted from the signal input terminal 40, and outputs a series of signal patterns that can be changed according to a program from the signal input terminals 30 to 37. The address decoder 600 selects the address of the ROM 500, and the address decoder 800 selects the address of the RAM 7.
Select address 00.

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

TMGR100は外部クロック入力端子10に供給され
るクロック信号をもとに命令の実行タイミング信号を発
生し、この信号をPC200,ICR900及びFRC
looOに供給する。PC200はTMGRlooの山
男信号に基づいてPL A 300に格納された命令群
の中から特定の命令を選択し、P L A、 300は
PC200によって選択された命令をコマンドバス13
00に送出する。A、 L U 400はコマンドバス
1300から送られてくる命令にしたがって、データバ
ス1200を介して送られてくるディジタルデータの算
術および論理演算を実行し、その結果をデータバス12
00に送出する。アドレスデコーダ600はコマンドバ
ス1300を介して送られてくる命令に基づいて特定の
アドレスを選択し、ROM500はアドレスデコーダ6
00によって選択されたアドレスに対応する格納手段に
格納されたディジタルデータをデータバス1200に送
出する。アドレスデコーダ800はコマンドバス130
0を介して送られてくる命令に基づいて特定のアドレス
を選択し、RAM700はアドレスデコーダ800によ
って選択されたアドレスに対応する格納手段に対し、デ
ータバス120oから送られてくるディジタルデータを
格納あるいは既に格納されたディジタルデータをデータ
バス1200に送出する。
The TMGR 100 generates an instruction execution timing signal based on the clock signal supplied to the external clock input terminal 10, and sends this signal to the PC 200, ICR 900, and FRC.
Supply to looO. The PC 200 selects a specific instruction from the instruction group stored in the PLA 300 based on the Yamao signal of TMGRloo, and the PLA 300 transfers the instruction selected by the PC 200 to the command bus 13.
Send to 00. A, LU 400 executes arithmetic and logical operations on digital data sent via data bus 1200 according to instructions sent from command bus 1300, and sends the results to data bus 12.
Send to 00. Address decoder 600 selects a specific address based on a command sent via command bus 1300, and ROM 500
The digital data stored in the storage means corresponding to the address selected by 00 is sent to the data bus 1200. Address decoder 800 is command bus 130
RAM 700 stores or stores digital data sent from data bus 120o in the storage means corresponding to the address selected by address decoder 800. The already stored digital data is sent to the data bus 1200.

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

第2図でFRCレジスタ1180は入力端子40から外
部信号が入力されると、そのときのFRC1,OOOの
カウントデータをラッチし、そのラッチデータを加算器
1190に供給する。時間データレジスタ1111〜1
114(図中では時間データレジスタA−Dと示されて
いる。)は出力ポートからデータを出力するタイミング
データを格納するレジスタであり、時間データ選択回路
1120は時間データレジスタ1111〜1114のい
ずれか1つのレジスタを選択し、選択したレジスタに格
納されているディジタルデータを加算器1190に供給
する。加算器1190はFRCレジスタ1180のデー
タと時間データ選択回路1120によって選択された時
間データレジスタのデータとの加算を行い、その結果を
比較回路1130に供給する。比較回路1130は加算
器1190から供給されるディジタルデータとローカル
バス1400を介して第1図のFRClooOから供給
されるカウントデータとを比較し、一致した場合に一致
信号をスレーブラッチ回路1160及びポインタ回路1
170に供給する。また、比較回路1130は入力端子
40から外部信号が供給されると比較動作を開始し、ポ
インタ回路1170からオーバーフロー信号が供給され
るまで比較動作を行う。アドレスデコーダ1110(図
中ではアドレスデコーダCと示されている。)はコマン
ドバス1300から送られてくる命令にしたがい、デー
タバス1200を介して時間データレジスタ1111〜
1114にディジタルデータを格納する際にアドレスを
選択する。マスターラッチ1141〜1144 (図中
ではマスターラッチA−Dと示されている。)は出力デ
ータを格納するラッチであり、マスターラッチ選択回路
1150はマスターラッチ1141〜1144のいずれ
か1つのマスターラッチを選択し、選択したマスターラ
ッチに格納されているディジタルデータをスレーブラッ
チ回路1160に供給する。また、アドレスデコーダ1
140(図中ではアドレスデコーダDと示されている。
In FIG. 2, when an external signal is input from the input terminal 40, the FRC register 1180 latches the count data of FRC1 and OOO at that time, and supplies the latched data to the adder 1190. Time data register 1111-1
114 (indicated as time data registers A-D in the figure) is a register that stores timing data for outputting data from the output port, and the time data selection circuit 1120 selects one of the time data registers 1111 to 1114. One register is selected and the digital data stored in the selected register is supplied to adder 1190. Adder 1190 adds the data in FRC register 1180 and the data in the time data register selected by time data selection circuit 1120, and supplies the result to comparison circuit 1130. Comparison circuit 1130 compares the digital data supplied from adder 1190 with the count data supplied from FRClooO in FIG. 1 via local bus 1400, and if they match, sends a match signal to slave latch circuit 1160 and pointer circuit 1
170. Further, the comparison circuit 1130 starts a comparison operation when an external signal is supplied from the input terminal 40, and continues the comparison operation until an overflow signal is supplied from the pointer circuit 1170. Address decoder 1110 (indicated as address decoder C in the figure) follows the command sent from command bus 1300 and sends time data registers 1111 to 1111 through data bus 1200.
An address is selected when storing digital data in 1114. Master latches 1141 to 1144 (indicated as master latches A to D in the figure) are latches that store output data, and the master latch selection circuit 1150 selects one of the master latches 1141 to 1144. The digital data stored in the selected master latch is supplied to the slave latch circuit 1160. Also, address decoder 1
140 (indicated as address decoder D in the figure).

)はコマンドバス1300から送られてくる命令にした
がい、データバス1200を介してマスターラッチ11
41〜1144にディジタルデータを格納する際にアド
レスを選択する。ポインタ回路1170は比較回路11
30の一致信号に基づいて巡回カウント動作を行い、カ
ウントデータを時間データ選択回路1120及びマスタ
ーラッチ選択回路1150に供給する。さらに、ポイン
タ回路1170はカウント動作か一巡した場合にはオー
バーフロー信号を比較回路1130に供給する。また、
ポインタ回路1170はコマンドバス1300から送ら
れてくる初期化命令によってカウントデータを初期化す
る。
) is connected to the master latch 11 via the data bus 1200 in accordance with the command sent from the command bus 1300.
Addresses are selected when storing digital data in 41 to 1144. The pointer circuit 1170 is the comparison circuit 11
A cyclic counting operation is performed based on the 30 coincidence signals, and count data is supplied 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. Also,
Pointer circuit 1170 initializes count data in response to an initialization command sent from command bus 1300.

以上のように構成された出カポ−1−1100について
、その動作について説明する。
The operation of the output capo-1-1100 configured as described above will be explained.

時間データレジスタ1111〜1114にはプログラム
により、任意のディジタルデータが廿1き込まれる。た
とえば、プログラムにより時間データレジスタ1111
に時間データが書き込まれる場合には、まずコマンドバ
ス1300を介して送られてくる命令にしたがって、ア
ドレスデコーダ1110は時間データレジスタ1111
を選択し、選択された時間データレジスタ1111はデ
ータバス1200を介して送られてくるディジタルデー
タを格納する。同様にして時間データレジスタ1112
〜1114に任意のディジタルデータが書き込まれる。
Arbitrary digital data is loaded into the time data registers 1111 to 1114 by a program. For example, the program may cause the time data register 1111 to
When time data is written to the time data register 1111, the address decoder 1110 first writes the time data register 1111 according to an instruction sent via the command bus 1300.
is selected, and the selected time data register 1111 stores the digital data sent via the data bus 1200. Similarly, time data register 1112
Arbitrary digital data is written in ~1114.

また、マスターラッチ1141〜1144も同様にプロ
グラムにより、任意のディジタルデータが書き込まれる
Similarly, arbitrary digital data is written into the master latches 1141 to 1144 by a program.

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

ポインタ回路1170のカウントデータ「0」。Count data of pointer circuit 1170 is “0”.

rlJ、  r2J、  r3Jに対して、時間データ
選択回路1120は時間データレジスタ1111゜11
12、 1113. 1114を選択し、マスターラッ
チ選択回路1150はマスターラッチ1141.114
2,1143. 1144をそれぞれ選択する。
For rlJ, r2J, and r3J, the time data selection circuit 1120 selects the time data register 1111゜11.
12, 1113. 1114, and the master latch selection circuit 1150 selects the master latch 1141.114.
2,1143. 1144 respectively.

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

FRClooOがアップカウンタであり、時間データレ
ジスタ1111〜1114にはそれぞれ時間データTA
、  TB、  TC,TDが格納されており、マスタ
ーラッチ1141〜1144にはそれぞれ出力データD
A、  DB、  DC,DDが格納されているとする
FRClooO is an up counter, and time data registers 1111 to 1114 each contain time data TA.
, TB, TC, and TD are stored, and output data D is stored in master latches 1141 to 1144, respectively.
Assume that A, DB, DC, and DD are stored.

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

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

以後、同様にしてFRCl、OOOのカウントデータと
加算器1190が送出するデータとの比較が行われ、時
刻t3.t4.  t5ではFRcloooのカウント
データと加算器119oの加算結果データとが一致する
ため、比較回路113oがら一致信号が送出される。そ
して、比較回路1」30から一致信号が送出されるたび
にスレーブラッチ回路1160はマスターラッチ選択回
路で選択すれたマスターラッチに格納されたディジタル
データをラッチし、ポインタ回路117oはカウント動
作を行う。
Thereafter, the count data of FRCl and OOO are compared with the data sent by the adder 1190 in the same manner, and at time t3. t4. At t5, the count data of FRcloooo and the addition result data of the adder 119o match, so a match signal is sent out from the comparison circuit 113o. Then, each time a match signal is sent from the comparison circuit 1'' 30, 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 117o performs a counting operation.

時刻t5ではポインタ回路117oはカウント値が「3
」からrOJになり一巡するので、オーバーフロー信号
を比較回路113oに送出する。
At time t5, the pointer circuit 117o has a count value of "3".
” becomes rOJ and completes the cycle, so an overflow signal is sent to the comparison circuit 113o.

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

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

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

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

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

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

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

また、実施例において出力ポートから出力する出力デー
タが4通りの場合について説明しているが、1〜4通り
のいずれの場合でも同様に動作し、さらに、出力ポート
の1侍間データレジスタ及びマスターラッチはそれぞれ
4木ずつの構成になっているが、出カポ−)・から出力
する信号のパターンの複雑さに応じて2本以上いくつ設
けた場合でも全く同様な効果が得られる。
In addition, in the embodiment, the case where there are four types of output data output from the output port is explained, but the operation is the same in any of the cases 1 to 4. Each latch has a configuration of four trees, but the same effect can be obtained even if two or more latches are provided depending on the complexity of the pattern of the signal output from the output capacitor.

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

次に、第4図は本発明の出力ポートのブロック図を示し
たものである。
Next, FIG. 4 shows 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はF R,C4000のカウントデータ
と加算器4100の加算結果データとの比較を行い、一
致した場合は一致信号をポインタ回路4400及びスレ
ーブラッチ4700に供給する。ポインタ回路440o
は比較回路4200の一致信号に基づいて巡回カウント
動作を行い、カウントデータをマスターラッチ選択回路
4600に供給する。マスターラッチ4500〜453
0 (図中ではマスターラッチA−D&示されている。
In FIG. 4, an FRC 4000 is a free-running counter that performs a cyclic counting operation using a signal supplied from a terminal 4020 as a clock, and count data of the FRC 4000 is supplied to an adder 4100 and a comparison circuit 4200. Furthermore, adder 4100 is supplied with time data from time data register 4300. and,
When the adder 4100 receives an external signal from the external input terminal 4030, it adds the count data of the FRC 4000 and the time data of the time data register 4300,
The addition result data is supplied to comparison circuit 4200. Comparison circuit 4200 compares the count data of FR,C 4000 and the addition result data of adder 4100, and if they match, supplies a match signal to pointer circuit 4400 and slave latch 4700. Pointer circuit 440o
performs a cyclic counting operation based on the match signal of comparison circuit 4200 and supplies count data to master latch selection circuit 4600. Master latch 4500~453
0 (Master latches A-D& are shown in the figure.

)は出力端子4010〜4o13から出力する出力デー
タを格納するレジスタである。マスターラッチ選択回路
4600はポインタ回路4400のカウントデータによ
って、マスターラッチ4500〜4530のいずれかを
選択し、選択したマスターラッチのデータをスレーブラ
ッチに供給する。スレーブラッチ4700は比較回路4
200の一致信号によって、マスターラッチ選択回路4
600から供給される出力データを取り込み、出力端子
4010〜4013から出力する。
) is a register that stores output data output from the output terminals 4010 to 4o13. The master latch selection circuit 4600 selects one of the master latches 4500 to 4530 based on the count data of the pointer circuit 4400, and supplies the data of the selected master latch to the slave latch. Slave latch 4700 is comparator circuit 4
200, the master latch selection circuit 4
It takes in output data supplied from 600 and outputs it from output terminals 4010 to 4013.

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

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

FRC4000がアップカウンタであり、時間データレ
ジスタ4300には時間データTが格納されており、マ
スターラッチ4500〜4530にはそれぞれ出力デー
タDA、  DB、  DC,DDが格納されていると
する。また、ポインタ回路4400のカラン)・データ
rOJ、  IN」、  r2」、  r3」に対して
、マスターラッチ選択回路4600はマスターラッチ4
500,4510,4,520゜4530をそれぞれ選
択する。
It is assumed that FRC 4000 is an up counter, time data register 4300 stores time data T, and master latches 4500 to 4530 store output data DA, DB, DC, and DD, respectively. In addition, the master latch selection circuit 4600 selects the master latch 4 for the data rOJ, IN'', r2'', r3'' of the pointer circuit 4400.
Select 500, 4510, 4, 520° and 4530, respectively.

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

時刻t1に入力端子4030に入力されている外部信号
のリーディングエツジが到来すると、加算器4100は
その時点でのF’ RC4,OOOのカウントデータN
1と時間データレジスタ4300に格納された時間デー
タTとの加算を行い、その加算結果データを比較回路4
200に供給する。
When the leading edge of the external signal input to the input terminal 4030 arrives at time t1, the adder 4100 adds the count data N of F' RC4, OOO at that time.
1 and the time data T stored in the time data register 4300, and the addition result data is sent to the comparison circuit 4.
Supply 200.

そして、加算器4100は入力端子4030に入力され
ている外部信号のリーディングエツジが新たに到来する
まで、時刻t1での加算結果データを比較回路4200
に供給しつづける。
Then, the adder 4100 transfers the addition result data at time t1 to the comparison circuit 4200 until the leading edge of the external signal input to the input terminal 4030 newly arrives.
We will continue to supply.

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

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

以後、同様にして時刻t3.  t5.t7で更新され
る加算器からの加算結果データに対し、それぞれ時刻t
4..t8.t8ではFRC4000のカウントデータ
が一致するため、第5図gに示されるように、比較回路
4200から一致信号が送出される。そして、比較回路
4200から一致信号が送出されるたびにスレーブラッ
チ回路4.700はマスターラッチ選択回路で選択され
たマスターラッチに格納されたディジタルデータをラッ
チし、ポインタ回路4−400はカウント動作を行う。
Thereafter, in the same manner, time t3. t5. For the addition result data from the adder updated at t7, each time t
4. .. t8. At t8, since the count data of the FRC 4000 match, a match signal is sent from the comparison circuit 4200, as shown in FIG. 5g. Then, each time a match signal is sent from the comparison circuit 4200, the slave latch circuit 4-700 latches the digital data stored in the master latch selected by the master latch selection circuit, and the pointer circuit 4-400 performs a counting operation. conduct.

したがって、あらかじめ時間データレジスタ4300に
時間データを格納し、マスターラッチ1141〜114
4に任意の出力データを格納することにより、入力端子
4030に入力されている外部信号を基準にして、一連
の出カバターンを仔する信号をスレーブラッチ回路47
00から出力することができる。
Therefore, time data is stored in the time data register 4300 in advance, and the master latches 1141 to 114
By storing arbitrary output data in the slave latch circuit 40, a signal that generates a series of output turns is generated based on the external signal input to the input terminal 4030.
It can be output from 00.

以」二のように本発明の出力ポートは、特定のり0ツク
信号に基づいて巡回カウント動作を行うフリーランニン
グカウンタ(FRC4000)と、フリーランニングカ
ウンタのカウントデータとあらかじめ用意された時間デ
ータとの加算を行う加算器(加算器4100)と、フリ
ーランニングカウンタのカウントデータと加算器の出力
データとを比較し、一致した場合に一致信号を出力する
比較手段(比較回路4200)と、比較手段から出力さ
れる一致信号に基づいて巡回カウント動作を行うポイン
タ(ポインタ回路4.4. OO)と、少なくとも2種
類以上のディジタルデータを格納するマスターラッチ部
(マスターラッチ4.500〜4530)と、ポインタ
の内容に応じてマスターラッチ部のいずれか1つを選択
するマスターラッチ選択手段(マスターラッチ選択回路
4600)と、マスターラッチ部のデータを比較手段か
ら出力される一致信号に基づいて取り込むスレーブラッ
チ部(スレーブラッチ回路4700)とで構成されてい
る。
As described in ``2'' below, the output port of the present invention includes a free running counter (FRC4000) that performs cyclic counting operation based on a specific zero clock signal, and a function that adds count data of the free running counter and time data prepared in advance. an adder (adder 4100) that compares the count data of the free running counter and the output data of the adder, and a comparison circuit (comparison circuit 4200) that outputs a match signal when they match; A pointer (pointer circuit 4.4.OO) that performs a cyclic counting operation based on the coincidence signal received, a master latch section (master latch 4.500 to 4530) that stores at least two types of digital data, and A master latch selection means (master latch selection circuit 4600) that selects one of the master latch sections depending on the content, and a slave latch section (that takes in the data of the master latch section based on the coincidence signal output from the comparison means). slave latch circuit 4700).

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

発明の効果 以上のように本発明は、外部入力信号を基準にして、出
力ポートから出力信号を送出する時間タイミングデータ
を時間データレジスタに格納し、時間データレジスタに
格納した時間タイミングで出力するデータをマスターラ
ッチに格納することによって、外部信号入力端子に印加
される入力信号のエツジが到来すると、その時点のフリ
ーランニングカウンタのカウントデータと時間データレ
ジスタの時間データから信号の出力タイミングの加算を
行い、加算結果の出力タイミングとフリーランニングカ
ウンタのカウントデータが一致すると、自動的に信号が
出力されるので、出力ポートからはタイムベースエラー
の少ない一連の信号パターンを出力することができ、そ
の効果は大きい。
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 this in the master latch, when the edge of the input signal applied to the external signal input terminal arrives, the signal output timing is added from the count data of the free running counter at that point and the time data of the time data register. , when the output timing of the addition result matches the count data of the free running counter, a signal is automatically output, so a series of signal patterns with less time base error can be output from the output port, and the effect is big.

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

第1図は本発明の一実施例におけるマイクロプロセッサ
のブロック図、第2図は同実施例における出力ポート部
の具体的な構成例を示すブロック図、第3図は第2図の
主要部のタイミングチャート、第4図は本発明の一実施
例における出力ポートのブロック図、第5図は第4図の
主要部のタイミングチャートである。 100・・・タイミングジェネレータ、  200・・
・プログラムカウンタ、  300・・・PLA、  
 4.00・・・ALU、   500・・・ROM1
 700・・・RAM1 900・・・ICR,100
0,4,000・・・FRC,1100・・・出カポ−
+−11i1i〜1114、.4300・・・時間デー
タレジスタ、  1130.4200・・・比較回路、
  1141〜1144、.4500〜4530・・・
マスターラッチ、1180、 4700・・・スレーブ
ラッチ、  1170.4.400・・・・・・ポイン
タ回路、  1180・・・FRCレジスタ、  11
90,41.00・・・加算器。
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 specific configuration example of an output port section in the same embodiment, and FIG. 3 is a block diagram of the main parts of FIG. 2. 4 is a block diagram of an output port in an embodiment of the present invention, and FIG. 5 is a timing chart of the main part of FIG. 4. 100...timing generator, 200...
・Program counter, 300...PLA,
4.00...ALU, 500...ROM1
700...RAM1 900...ICR, 100
0,4,000...FRC,1100...Dekapo-
+-11i1i~1114, . 4300...Time data register, 1130.4200...Comparison circuit,
1141-1144,. 4500-4530...
Master latch, 1180, 4700...Slave latch, 1170.4.400...Pointer circuit, 1180...FRC register, 11
90,41.00...adder.

Claims (3)

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

Similar Documents

Publication Publication Date Title
JPH0436883A (en) Microprocessor and output port
JPH06103225A (en) Chain type dma system and dma controller therefor
JPH03161883A (en) Microprocessor
JPH03105487A (en) Microprocessor
JPH0520350A (en) Vector processing device
JPH04162181A (en) Micro processor and output port
JPH04162138A (en) Microprocessor
JPS5947651A (en) Program controller
JPH02287659A (en) Microprocessor
JP3901340B2 (en) Data coincidence detection device
US20110246747A1 (en) Reconfigurable circuit using valid signals and method of operating reconfigurable circuit
JP2817267B2 (en) Break address detector
TW202139002A (en) Multi-core processor circuit
JP2643609B2 (en) Interrupt control device
JP2847729B2 (en) Information processing device
JP2709201B2 (en) Microcomputer
JP2020140290A (en) Central processing unit
JPH04365112A (en) Time counting system for computer system
JPH03175538A (en) Duplex processor
JPH0695304B2 (en) Data processing device
JPH03134737A (en) Microprocessor
JPS63823B2 (en)
JPH01265346A (en) Semiconductor integrated circuit
JPS63149733A (en) Instruction fetching system
JPH0477349B2 (en)

Legal Events

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