JPH03105487A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH03105487A
JPH03105487A JP1243707A JP24370789A JPH03105487A JP H03105487 A JPH03105487 A JP H03105487A JP 1243707 A JP1243707 A JP 1243707A JP 24370789 A JP24370789 A JP 24370789A JP H03105487 A JPH03105487 A JP H03105487A
Authority
JP
Japan
Prior art keywords
data
comparison
signal
output
circuit
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
JP1243707A
Other languages
Japanese (ja)
Other versions
JPH0690728B2 (en
Inventor
Kenichi Suehiro
憲一 末廣
Hiroshi Mizuguchi
博 水口
Tadashi Kunihira
宰司 國平
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 JP1243707A priority Critical patent/JPH0690728B2/en
Publication of JPH03105487A publication Critical patent/JPH03105487A/en
Publication of JPH0690728B2 publication Critical patent/JPH0690728B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To decrease time-base errors by providing an output port which inputs one master latch part to a slave latch circuit in response to the coincidence signal between one comparison data register and the counted value of a free- running counter. CONSTITUTION:Data on the time difference up to a target point of time when an output signal having a series of signal patterns begins to be sent is sent out of the output port to a data bus 1200 and stored in the comparison data register 1111. Further, time difference data of output signals which are sent out successively corresponding to respective time intervals are stored in registers 1112 - 1114 through a bus 1200. Then data to be outputted at the set time stored in those registers are stored in master latches 1141 - 1144 through the bus 1200. Consequently, the output signal having a series of signal patterns with a small error is obtained from the output port 1100.

Description

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

従来の技術 近年、ノイマン方式のマイクロプロセッサはあらゆる方
面で多用されており、その構成としては、順次実行され
る命令群からなるプログラムを格納するプログラム格納
手段と、ディジタルデータの読み書きが可能なデータ格
納手段と、ディジタルデータの演算を実行する演算手段
と、前記データ格納手段の入出力端子と前記演算手段の
入出力端子を接続するデータパスと、前記プログラム格
納手段から送出される命令に基づいて前記データ格納手
段と前記演算手段の動作をコントロールするコントロー
ル手段と、命令の実行タイミング信号を発生するタイミ
ングジェネレー夕と、前記タイミングジェネレー夕の出
力に基づいて前記プログラム格納手段に格納された特定
の命令を選択する命令選択手段とを備えていることに特
徴づけられる。また、その代表的な構成が特公昭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. a calculation means for executing an operation on digital data; a data path connecting an input/output terminal of the data storage means to an input/output terminal of the calculation means; a 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 timing generator for generating a specific instruction stored in the program storage means based on the output of the timing generator. The method is characterized by comprising a command selection means for selecting the command. 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 and other methods have been used to solve problems like this, but even if there is an interrupt request, it is not possible to proceed to interrupt processing until the instruction being executed at that time has been processed. There is a problem in that a time base error occurs during the time period from when the processor accepts an interrupt to when the interrupt service routine actually starts.

本発明は上記従来の問題点を解決するもので、一連の信
号パターンをタイムベースエラーを少なくして出力する
ことができる出力ポートをもったマイクロプロセッサを
提供することを目的とする。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned conventional problems, and aims to provide a microprocessor having an output port 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 has a free-running counter that performs a cyclic counting operation based on a specific clock signal, and a comparison data store that stores at least two types of digital data. a storage means, a comparison data selection means for selecting one of the comparison data storage means, and a comparison data selection means for comparing the count data of the free running counter and the data of the comparison data storage means, and outputting a match signal when they match. a means of comparison to
A pointer that performs a cyclic counting operation based on the coincidence signal output from the comparison means, a master latch section that stores the same number of digital data as the comparison data storage means, and one of the master latch section is selected. The device includes a master latch selection means and an output port consisting of a slave latch section that takes in the data of the master latch section based on a coincidence signal output from the comparison means.

作用 本発明は上記した一成により、出力ポートを介して出力
される信号のタイムペースエラーが少ないマイクロプロ
セッサを得ることができる。
Effect of the Invention With the above-described configuration, the present invention can provide a microprocessor in which the time-pace 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図は、本発明6マイクロプロセッサの構成図を示す
ものである。
FIG. 1 shows a configuration diagram of the sixth microprocessor of the present invention.

第1図において、TMGR100は外部クロック入力端
子10に供給されるクロック信号をもとに命令の実行タ
イミング信号を発生するタイミングジェネレー夕であり
、その出力信号はPC200,ICR900及びFRC
IOOOに供給されている。PLA300はプログラマ
ブルロジックアレイであり、順次実行される命令群から
なるプログラムが格納されている。PC200はプログ
ラムカウンタであり、TMGRIOOの出力信号に基づ
いてPLA300に格納された特定の命令を選択する。
In FIG. 1, TMGR 100 is a timing generator that generates an instruction execution timing signal based on a clock signal supplied to an external clock input terminal 10, and its output signal is transmitted to PC 200, ICR 900 and FRC.
Supplied to IOOO. PLA 300 is a programmable logic array, and stores a program consisting of a group of instructions to be executed sequentially. PC200 is a program counter and selects a specific instruction stored in PLA300 based on the output signal of TMGRIOO.

FRCIOOOはフリーランニングカウンタであり、T
MGR100の出力信号をクロック信号として巡回カウ
ント動作を行う。FRctoooのカウントデータはロ
ーカルバス1400を介してICR900及び出力ポー
ト1100に供給される。ICR900はインプットキ
ャプチャレジスタ回路であり、外部信号入力端子20〜
27に印加される入力信号のエッジが到来したときに、
その時点のFRC1000のカウントデータをICR9
00内の特定のレジスタに格納する(同時に複数の入力
信号のエッジが到来したときには、複数のレジスタにF
RCIOOOのカウントデータが格納される。)ととも
に、図示されてはいない入力信号受け付けフラグをセッ
トする機能を有している。PLA300から送出される
命令はコントロールバス1300を介してALU 4 
0 0.  アドレスデコーダ600(図中ではアドレ
スデコーダAと示されている。),アドレスデコーダ8
00 (図中ではアドレスデコーダBと示されている。
FRCIOOO is a free running counter and T
A cyclic counting operation is performed using the output signal of the MGR 100 as a clock signal. FRctoo count data is supplied to ICR 900 and output port 1100 via local bus 1400. ICR900 is an input capture register circuit, and external signal input terminals 20~
When an edge of the input signal applied to 27 arrives,
ICR9 count data of FRC1000 at that time
Store it in a specific register in 00 (when edges of multiple input signals arrive at the same time, store F in multiple registers)
RCIOOO count data is stored. ) and has a function of setting an input signal acceptance flag (not shown). Instructions sent from the PLA 300 are sent to the ALU 4 via the control bus 1300.
0 0. Address decoder 600 (indicated as address decoder A in the figure), address decoder 8
00 (Indicated as address decoder B in the figure.

),ICR900及び出力ポート1100に供給される
。また、データバス1200はALU400,ROM5
00,RAM700.ICR900及び出力ポート11
00に接続されている。ALU400はディジタルデー
タの算術および論理演算を実行する演算器である。RO
M500はあらかじめ格納されているディジタルデータ
をデータバス1200に送出する読み出し専用メモリで
ある。RAM700はデータバス1200を介してディ
ジタルデータの読み書きを行うランダムアクセスメモリ
である。出力ポート1100はプログラムによって変え
られる一連の信号パターンを信号出力端子30〜37か
ら出力する。
), is supplied to the ICR 900 and the output port 1100. In addition, the data bus 1200 includes ALU400, ROM5
00, RAM700. ICR900 and output port 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 1200. RAM 700 is a random access memory that reads and writes digital data via data bus 1200. Output port 1100 outputs a series of signal patterns that can be changed by the program from signal output terminals 30-37.

アドレスデコーダ600はROM500の7}’レスを
選択し、アドレスデコーダ800はRAM700のアド
レスを選択する。
The address decoder 600 selects the address 7}' of the ROM 500, and the address decoder 800 selects the address of the RAM 700.

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

TMGR100は外部クロック入力端子lOに供給され
るクロック信号をもとに命令の実行タイミング信号を発
生し、この信号をPC200,ICR900及びFRC
IOOOに供給する。PC200はTMGR100の出
力信号に基づいてPLA300に格納された命令群の中
から特定の命令を選択し、PLA300はPC200に
よって選択された命令をコマンドバス1300に送出ス
る。ALU400はコマンドバス1300から送られて
くる命令にしたがって、データパス1200を介して送
られてくるディジタルデータの算術および論理演算を実
行し、その結果をデータバス1200に送出する。アド
レスデコーダ600はコマンドバス1300を介して送
られてくる命令に基づいて特定のアドレスを選択し、R
OM500はアドレスデコーダ600によって選択され
たアドレスに対応する格納手段に格納されたディジタル
データをデータバス1200に送出する。アドレスデコ
ーダ800はコマンドバス130(1介して送られてく
る命令に基づいて特定のアドレスを選択し、RAM70
0はアドレスデコーダ800によって選択されたアドレ
スに対応する格納手段に対し、データバス1200から
送られてくるディジタルデータを格納あるいは既に格納
されたディジタルデータをデータバス1200に送出す
る。
The TMGR100 generates an instruction execution timing signal based on the clock signal supplied to the external clock input terminal lO, and sends this signal to the PC200, ICR900 and FRC.
Supply to IOOO. The PC 200 selects a specific instruction from a group of instructions stored in the PLA 300 based on the output signal of the TMGR 100, and the PLA 300 sends the instruction selected by the PC 200 to the command bus 1300. ALU 400 performs arithmetic and logical operations on digital data sent via data path 1200 in accordance with instructions sent from command bus 1300, and sends the results to data bus 1200. Address decoder 600 selects a specific address based on instructions sent via command bus 1300, and
OM 500 sends the digital data stored in the storage means corresponding to the address selected by address decoder 600 to data bus 1200. The address decoder 800 selects a specific address based on a command sent via the command bus 130 (1), and selects a specific address from the RAM 70.
0 stores digital data sent from the data bus 1200 in the storage means corresponding to the address selected by the address decoder 800, or sends already stored digital data to the data bus 1200.

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

第2図で比較データレジスタ1111〜1114(図中
では比較データレジスタA−Dと示されている。)は第
1図のFRCIOOOのカウントデータと比較するディ
ジタルデータを格納するレジスタであり、比較データ選
択回路1120は比較データレジスタ1111.111
2,1113,1114のいずれか1つのレジスタを選
択し、選択したレジスタに格納されているディジタルデ
ータを比較回路1180に供給する。比較回路1130
は比較データ選択回路1120から供給されるディジタ
ルデータとローカルバスi4ooを介して第1図のFR
CIOOOから供給されるカウントデータとを比較し、
一致した場合に一致信号をスレーブラッチ回路1180
及び承インク回路1170に供給する。また、アドレス
デコーダ1110(図中ではアドレスデコーダCと示さ
れている。)はコマンドパスl300から送られてくる
命令にしたがい、データパス1200を介して比較デー
タレジスタ1111,1112,1113,1114に
ディジタルデータを格納する際にアドレスを選択する。
In FIG. 2, comparison data registers 1111 to 1114 (indicated as comparison data registers A to D in the figure) are registers that store digital data to be compared with the count data of FRCIOOO in FIG. The selection circuit 1120 is a comparison data register 1111.111
One of registers 2, 1113, and 1114 is selected, and the digital data stored in the selected register is supplied to comparison circuit 1180. Comparison circuit 1130
is the FR in FIG. 1 via the digital data supplied from the comparison data selection circuit 1120 and the local bus i4oo.
Compare with the count data supplied from CIOOO,
If there is a match, the match signal is sent to the slave latch circuit 1180.
and is supplied to the ink receiving circuit 1170. Further, the address decoder 1110 (indicated as address decoder C in the figure) inputs digital data to comparison data registers 1111, 1112, 1113, and 1114 via the data path 1200 in accordance with the command sent from the command path 1300. Select an address when storing data.

マスターラッチ1141,  1142,  1143
.1144(図中ではマスターラッチA,  B,  
C,Dと示されている。)は出力データを格納するラッ
チであり、マスターラッチ選択回路1150はマスター
ラッチIF41,  1142.  1143.114
4のいずれか1つのマスターラッチを選択し、選択した
マスターラッチに格納されているディジタルデータをス
レーブラッチ回路1160に供給する。また、アドレス
デコーダ1140(図中ではアドレスデコーダDと示さ
れている。)はコマンドバス1300から送られてくる
命令にしたがい、データパス1200を介してマスター
ラッチ1141.1142,1143,1144にディ
ジタルデータを格納する際にアドレスを選択する。ポイ
ンタ回路1170は比較回路1130の一致信号に基づ
いて巡回カウント動作を行い、カウントデータを比較デ
ータ選択回路1120及びマスターラッチ選択回路11
50に供給する。
Master latch 1141, 1142, 1143
.. 1144 (in the figure, master latches A, B,
They are shown as C and D. ) is a latch that stores output data, and the master latch selection circuit 1150 is a latch that stores the output data, and the master latch selection circuit 1150 includes master latch IF41, 1142 . 1143.114
4 is selected, and the digital data stored in the selected master latch is supplied to the slave latch circuit 1160. Further, the address decoder 1140 (indicated as address decoder D in the figure) sends digital data to the master latches 1141, 1142, 1143, and 1144 via the data path 1200 in accordance with the command sent from the command bus 1300. Select the address when storing. The pointer circuit 1170 performs a cyclic counting operation based on the coincidence signal of the comparison circuit 1130, and transfers the count data to the comparison data selection circuit 1120 and the master latch selection circuit 11.
Supply 50.

また、ポインタ回路1170はコマンドバス1300か
ら送られてくる初期化命令によってカウントデータを初
期化する。
Furthermore, pointer circuit 1170 initializes count data in response to an initialization command sent from command bus 1300.

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

比較データレジス・タ1111,1112,  111
3.1114にはプログラムにより任意のディジタルデ
ータが書き込まれる。例えば、プログラムにより比較デ
ータレジスタ1111に比較データが書き込まれる場合
には、まず、コマンドバス1300を介して送られてく
る命令にしたがって、アドレスデコーダ1110は比較
データレジスタ1111を選択し、選択された比較デー
タレジスタ11l1はデータバス1 200を介して送
られてくるディジタルデータを格納する。同様にして比
較データレジスタ1112,1113.1114には任
意のディジタルデータが書き込まれる。
Comparison data registers 1111, 1112, 111
3. Any digital data is written into 1114 by the program. For example, when comparison data is written to the comparison data register 1111 by a program, the address decoder 1110 first selects the comparison data register 1111 according to an instruction sent via the command bus 1300, and selects the selected comparison data register 1111. Data register 11l1 stores digital data sent via data bus 1200. Similarly, arbitrary digital data is written into comparison data registers 1112, 1113, and 1114.

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

比較データ選択回路1120及びマスターラッチ選択回
路l150はポインタ回路1170から供給されるカウ
ントデータに応じて比較データレジスタ1114〜1.
114とマスターラッチ1141〜1144をそれぞれ
選択する。
Comparison data selection circuit 1120 and master latch selection circuit 1150 select comparison data registers 1114 to 1 .
114 and master latches 1141 to 1144, respectively.

ポインタ回路1170のカウントデータI O 1′1
1 121131に対して、比較データ選択回路112
0は、比較データレジスタ1111,1112,111
3.1114を選択し、マスターラッチ選択回路115
0は、マスターラッチ1141,1142.1143.
1144をそれぞれ選択する。
Count data of pointer circuit 1170 I O 1'1
1 121131, the comparison data selection circuit 112
0 is comparison data register 1111, 1112, 111
3. Select 1114, master latch selection circuit 115
0 is the master latch 1141, 1142.1143.
1144 respectively.

次に、第3図を用いて一連の出力パターンを出力すると
きの動作について説明する。
Next, the operation when outputting a series of output patterns will be explained using FIG.

第3図において、aはFRCIOOOのカウントデータ
の時間的変化を示したものであり、bはポインタ回路1
170の出力データを示し、Cは比較データ選択回路1
120から比較回路1130に供給される比較データを
示し、dはマスターラッチ選択回路1150からスレー
ブラッチ回路1160に供給される出力データを示し、
eはスレーブラッチ回路1160から出力するデータを
示し、fは比較回路1130から出力される一致信号を
示している。
In FIG. 3, a shows the temporal change in the count data of FRCIOOO, and b shows the pointer circuit 1.
170, C is the comparison data selection circuit 1.
120 indicates comparison data supplied to the comparison circuit 1130, d indicates output data supplied from the master latch selection circuit 1150 to the slave latch circuit 1160,
e indicates data output from the slave latch circuit 1160, and f indicates a coincidence signal output from the comparison circuit 1130.

FRC1000がダウンカウンタであり、比較データレ
ジスタ1111,1112,1113.1114にはそ
れぞれ比較データNA,  NB,  NC,ND (
NA> NB> NC> ND)が格納されており、マ
スターラッチ1141,  1142,  1143.
  1144にはそれぞれ出力データDA,  DB,
  DC,  DDが格納されているとする。初期状態
ではポインタ回路1170のカウントデータは′O′で
あるので、比較データ選択手段1120は比較データレ
ジx夕ttttを選択し、このレジスタに格納されてい
るディジタルデータNAを比較回路1130に送出し、
マスターラッチ選択回路1150はマスターラッチ11
41を選択し、このラッチ番と格納されているディジタ
ルデータDAをスレーブラッチ回路1160に送出して
いる。
FRC1000 is a down counter, and comparison data registers 1111, 1112, 1113, and 1114 contain comparison data NA, NB, NC, and ND (
NA>NB>NC>ND) are stored in the master latches 1141, 1142, 1143.
1144 respectively have output data DA, DB,
Assume that DC and DD are stored. In the initial state, the count data of the pointer circuit 1170 is 'O', so the comparison data selection means 1120 selects the comparison data register xtttt and sends the digital data NA stored in this register to the comparison circuit 1130. ,
The master latch selection circuit 1150 is the master latch 11
41 and sends this latch number and the stored digital data DA to the slave latch circuit 1160.

比較回路1130は比較データ選択回路1120から供
給されているデイジタルデータNAとローカルバス1 
400を介して送られてくる第1図番こ示したFRCI
OOOのカウントデータを比較し、第3図の時刻t1で
FRCIOOOのカウントデータがNAに等しくなると
、第3図fに示される一致信号をスレーブラッチ回路1
160及びポインタ回路1170に送出する。スレーブ
ラッチ回路1160は第3図eに示されるように比較回
路1130から送出される一致信号の上がりエッジで前
記マスターラッチ1l41に格納されているディジタル
データDAをラッチし、また、第3図bに示されるよう
にポインタ回路1170は一致信号によりカウントデー
タをg 0 1から111にカウントアップする。ポイ
ンタ回路1170のカウントデータが11′になること
によって、第3図C,dに示すように比較回路1130
には比較データ選択回路1120から比較データNBが
供給され1スレーブラッチ回路1160にはマスターラ
ッチ選択回路1150から出力データDBが供給される
〇以後、同様にしてFRCIOOOのカウントデータと
比較データ選択回路1120が選択する比較データとの
比較が行われ、時刻t2,  t3.  t4ではFR
CIOOOのカウントデータと比較データとが一致する
ため、比較回路1130から一致信号が送出される。そ
して、比較回路1130から一致信号が送出されるたび
にスレーブラッチ回路1160はマスターラッチ選択回
路で選択されたマスターラッチに格納されたディジタル
データをラッチし、ポインタ回路1170はカウント動
作を行う。
The comparison circuit 1130 receives the digital data NA supplied from the comparison data selection circuit 1120 and the local bus 1.
FRCI shown in Figure 1 sent via 400
The count data of OOO is compared, and when the count data of FRCIOOO becomes equal to NA at time t1 in FIG. 3, a match signal shown in f of FIG.
160 and pointer circuit 1170. The slave latch circuit 1160 latches the digital data DA stored in the master latch 1141 at the rising edge of the match signal sent from the comparison circuit 1130, as shown in FIG. As shown, the pointer circuit 1170 counts up the count data from g 0 1 to 111 based on the coincidence signal. When the count data of the pointer circuit 1170 becomes 11', the comparator circuit 1130 as shown in FIG.
is supplied with comparison data NB from the comparison data selection circuit 1120, and output data DB is supplied from the master latch selection circuit 1150 with the 1 slave latch circuit 1160. After that, the count data of FRCIOOO and the comparison data selection circuit 1120 are supplied in the same manner. A comparison is made with the comparison data selected by , and at times t2, t3. At t4, FR
Since the count data of CIOOO and the comparison data match, a match signal is sent from the comparison circuit 1130. Then, each time a 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 a counting operation.

したがって、ある時刻でのFRCIOOOのカウントデ
ータに対し、任意のカウント後のデータを比較データレ
ジスタ1111.  1112.  1113,111
4に格納し、比較データレジスタ1111,1112,
1113.  1114に対応するマスターラッチ11
41.  1!42,1143,1144に任意のデー
タを格納することにより、一連の出力パターンを有する
信号をスレーブラッチ向路1160から出力することが
できる。
Therefore, the data after arbitrary counting is compared with the count data of FRCIOOO at a certain time in the data register 1111. 1112. 1113,111
4 and compare data registers 1111, 1112,
1113. Master latch 11 corresponding to 1114
41. By storing arbitrary data in 1!42, 1143, and 1144, a signal having a series of output patterns can be output from the slave latch path 1160.

次に、第4図を用いてスレーブラッチ回路1160から
出力する信号パターンの変更を行う場合の動作について
説明する。
Next, the operation when changing the signal pattern output from the slave latch circuit 1160 will be described using FIG. 4.

第4図において、aはFRCIOOOのカウントデータ
の時間的変化、bはポインタ回路1170の出力データ
、Cは比較データ選択回路1120から比較回路113
0に供給される比較データ、dはマスターラッチ選択回
路1150からスレーブラッチ回路1160に供給され
る出力データ、eはスレーブラッチ回路1160から出
力ナるデータ、fは比較回路1130から出力される一
致信号、gはコマンドバス1300を介して供給される
ポインタの初期化信号を示している。
In FIG. 4, a is the temporal change in count data of FRCIOOO, b is the output data of the pointer circuit 1170, and C is the output data from the comparison data selection circuit 1120 to the comparison circuit 113.
d is the output data supplied from the master latch selection circuit 1150 to the slave latch circuit 1160, e is the output data from the slave latch circuit 1160, and f is the match signal output from the comparison circuit 1130. , g indicate pointer initialization signals supplied via the command bus 1300.

ある信号パターンの出力途中で信号パターンの変更を行
う場合には、マスターラッチ1141〜1l44及び比
較データレジスタ1111〜1114のデータを書き換
えた後、ポインタ回路1170の初期化を行う。第4図
では、ポインタ回路1170のカウントデータが32′
のときに信号パターンの変更を行った場合の動作を示し
ている。
When changing a signal pattern while a certain signal pattern is being output, the pointer circuit 1170 is initialized after rewriting the data in the master latches 1141 to 1144 and the comparison data registers 1111 to 1114. In FIG. 4, the count data of pointer circuit 1170 is 32'.
This shows the operation when the signal pattern is changed when .

時刻t3でマスターラッチ114l〜1144のデータ
をDA’,  DB’,  DC″,  DD’に、比
較データレジスタ1l11〜1114のデータをNA’
  NB’,  NO’,  ND’  (NA’ >
NB’ >NO’>ND”)にそれぞれ書き換えが完了
し、時刻t4でコマンドバス1300を介して供給され
るポインタ回路初期化信号によりポインタ回路1170
の初期化が行われる。ポインタ回路1170の初期化に
よってN  Cl  dに示されるように比較データは
NA’  マスターラッチ選択回路1150からスレー
ブラッチに供給されるデータはDA’に変更される。以
後、変更した比較データ及び出力データに基づいて新た
な一連の出力パターンを有する信号をスレーブラッチ回
路1160から出力する。
At time t3, the data of the master latches 114l to 1144 are set to DA', DB', DC'', DD', and the data of the comparison data registers 1l11 to 1114 are set to NA'.
NB', NO', ND'(NA'>
NB'>NO'>ND"), and the pointer circuit 1170 is rewritten by the pointer circuit initialization signal supplied via the command bus 1300 at time t4.
is initialized. By initializing the pointer circuit 1170, the comparison data is changed to NA', and the data supplied from the master latch selection circuit 1150 to the slave latch is changed to DA', as indicated by NCld. Thereafter, a signal having a new series of output patterns is output from the slave latch circuit 1160 based on the changed comparison data and output data.

このように信号パターンの変更を行う場合にポインタ回
路1170の初期化を行うことによって、ポインタ回路
1170のカウント状態に関係なく新たな信号パターン
を正しい順序で出力することができる。なお、ポインタ
回路1170のカウント状態が“2′以外のいかなる状
態でも同様に出力信号のパターンを変更することができ
る。
By initializing the pointer circuit 1170 when changing the signal pattern in this manner, a new signal pattern can be output in the correct order regardless of the count state of the pointer circuit 1170. Note that the pattern of the output signal can be changed in the same way even when the count state of the pointer circuit 1170 is in any state other than "2'."

このように、マスターラッチ1141,1142,11
43,1144からスレーブラッチ回路1160へのデ
ータの転送が比較データレジスタcioooのカウント
データを比較する比較回路1130の一致検出信号によ
って自動的に行われるように構成することにより、非同
期で入力される外部信号のエッジを検出してから、あら
かじめ決められた時間後に出力ポート1100から任意
の信号パターンの信号を送出させる場合にはタイムベー
スエラーを最小限に押さえることができる。
In this way, master latches 1141, 1142, 11
43, 1144 to the slave latch circuit 1160 is automatically performed by the match detection signal of the comparison circuit 1130 that compares the count data of the comparison data register ciooo. When a signal with an arbitrary signal pattern is sent out from the output port 1100 after a predetermined time after detecting a signal edge, time base errors can be minimized.

すなわち、第1図に示した実施例において外部信号入力
端子20〜27のいずれかに印加される入力信号のエッ
ジが到来すると、その直後にICR900がその時点の
タイミング情報としてFRC1000のカウントデータ
をICR900内の特定のレジスタに格納するので、入
力信号の正確な到来時点はソフトウェアによって確認す
ることが可能であり、出力ポー}1100から一連の信
号パターンを有する出力信号を送出し始める目標時点ま
での時間差データをデータバス1200に送出して比較
データレジスタ1111に格納し、また、引き続き送出
する出力信号のそれぞれの時間間隔に対応した時間差デ
ータをデータバス1200を介して比較データレジスタ
1112〜1114に格納し、比較データレジスタに格
納した設定時間ごとに出力したいデータをデータパス1
200を介してマスターラッチ1141〜1144に格
納すれば、出力ポート1 100からはタイムベースエ
ラーの少ない一連の信号パターンを有する出力信号が得
られる。
That is, in the embodiment shown in FIG. 1, when an edge of the input signal applied to any of the external signal input terminals 20 to 27 arrives, immediately after that, the ICR 900 transfers the count data of the FRC 1000 to the ICR 900 as timing information at that point. Since the exact arrival time of the input signal can be verified by software, the time difference between the output port 1100 and the target time point at which it starts sending out an output signal with a series of signal patterns Data is sent to the data bus 1200 and stored in the comparison data register 1111, and time difference data corresponding to each time interval of output signals to be sent subsequently is stored in the comparison data registers 1112 to 1114 via the data bus 1200. , the data to be output at each set time stored in the comparison data register is sent to data path 1.
200 to the master latches 1141 to 1144, the output port 1 100 provides an output signal having a series of signal patterns with less time base error.

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

なお、実施例において出力ポートの比較データレジスタ
及びマスターラッチはそれぞれ4本ずつの構成になって
いるが、出力ボートから出力する信号のパターンの複雑
さに応じて2本以上いくつ′設けた場合でもまったく同
様な効果が得られる。
In the embodiment, the comparison data register and master latch of the output port each have a configuration of four, but depending on the complexity of the pattern of the signal output from the output port, the number of comparison data registers and master latches may be two or more. Exactly the same effect can be obtained.

発明の効果 以上のように本発明は、特定のクロック信号に基づいて
巡回カウント動作を行うフリーランニングカウンタ(F
RCIOOO)と、少なくとも2種類以上のディジタル
データを格納する比較データ格納手段(比較データレジ
スタ1111〜1114)と、前記比較データ格納手段
のいずれか1つを選択する比較データ選択手段(比較デ
ータ選択回路1120)と、前記フリーランニングカウ
ンタのカウントデータと前記比較データ格納手段のデー
タを比較し、一致した場合に一致信号を出力する比較手
段(比較回路1130)と、前記比較手段から出力され
る一致信号に基づいて巡回カウント動作を行うポインタ
(ポインタ回路1170) と、前記比較データ格納手
段と同数のディジタルデータを格納するマスターラッチ
部(マスターラッチ1141〜1144)と、前記マス
ターラッチ部のいずれか1つを選択するマスターラッチ
選択手段(マスターラッチ選択回路1150)と、前記
マスターラッチ部のデータを前記比較手段から出力され
る一致信号に基づいて取り込むスレープラッチ部(スレ
ーブラッチ回路1180)からなる出力ボート(出力ポ
ート1100)を設けることにより、タイムベースエラ
ーの少ない一連の信号パターンを出力することができる
マイクロプロセッサを得ることができ、その実用効果は
大きい。
Effects of the Invention As described above, the present invention provides a free running counter (F) that performs a cyclic counting operation based on a specific clock signal.
RCIOOO), comparison data storage means (comparison data registers 1111 to 1114) that stores at least two or more types of digital data, and comparison data selection means (comparison data selection circuit) that selects any one of the comparison data storage means. 1120), comparison means (comparison circuit 1130) that compares the count data of the free running counter and the data of the comparison data storage means and outputs a coincidence signal if they match, and a coincidence signal output from the comparison means. a pointer (pointer circuit 1170) that performs a cyclic counting operation based on the comparison data storage means, a master latch section (master latches 1141 to 1144) that stores the same number of digital data as the comparison data storage means, and any one of the master latch sections. an output port (output port) consisting of a master latch selection means (master latch selection circuit 1150) that selects the master latch, and a slave latch section (slave latch circuit 1180) that takes in the data of the master latch section based on the coincidence signal output from the comparison means. By providing the port 1100), it is possible to obtain a microprocessor that can output a series of signal patterns with few time base errors, which has a great practical effect.

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

第1図は本発明の一実施例におけるマイクロプロセッサ
の構成を示すブロック図、第2図は出力ポート部の具体
的な構成例を示すブロック図、第3図及び第4図は第2
図の主要部のタイミングチャートである。 100・・・タイミングジェネレー夕、  200・・
・プログラムカウンタ、  300・・・P L A,
400・・・ALU1  500・・・ROM,   
700・・・RAM1  900・・・ICR1  1
000・・・FRC11 100・・・出力ボート、 
 1111〜1114・・・比較データレジスタ、  
1130・・・比較回路、1141〜1144・・・マ
スターラッチ11160・・・スレーブラッチ、  1
 1 7 0 ゜゜゜ポインタ回路。
FIG. 1 is a block diagram showing the configuration of a microprocessor in an embodiment of the present invention, FIG. 2 is a block diagram showing a specific example of the configuration of the output port section, and FIGS.
2 is a timing chart of the main parts of the figure. 100...timing generator, 200...
・Program counter, 300...PLA,
400...ALU1 500...ROM,
700...RAM1 900...ICR1 1
000...FRC11 100...Output boat,
1111-1114... Comparison data register,
1130...Comparison circuit, 1141-1144...Master latch 11160...Slave latch, 1
1 7 0 ゜゜゜Pointer circuit.

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 comparison data storage means that stores at least two types of digital data, and a comparison that selects any one of the comparison data storage means. data selection means; comparison means for comparing the count data of the free running counter and the data of the comparison data storage means and outputting a coincidence signal when they match; a pointer that performs a cyclic counting operation; a master latch unit that stores the same number of digital data as the comparison data storage unit; a master latch selection unit that selects any one of the master latch units; and data of the master latch unit. and an output port consisting of a slave latch unit that takes in the matching signal based on the coincidence signal output from the comparing means.
(2)比較データ選択手段及びマスターラッチ選択手段
は、ポインタのカウントデータに基づいて選択を変更す
る請求項1記載のマイクロプロセッサ。
(2) The microprocessor according to claim 1, wherein the comparison data selection means and the master latch selection means change selection based on pointer count data.
(3)ポインタは、マイクロプロセッサの命令によって
カウント初期状態に設定される請求項1記載のマイクロ
プロセッサ。
(3) The microprocessor according to claim 1, wherein the pointer is set to an initial counting state by an instruction of the microprocessor.
JP1243707A 1989-09-19 1989-09-19 Microprocessor Expired - Fee Related JPH0690728B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1243707A JPH0690728B2 (en) 1989-09-19 1989-09-19 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1243707A JPH0690728B2 (en) 1989-09-19 1989-09-19 Microprocessor

Publications (2)

Publication Number Publication Date
JPH03105487A true JPH03105487A (en) 1991-05-02
JPH0690728B2 JPH0690728B2 (en) 1994-11-14

Family

ID=17107790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1243707A Expired - Fee Related JPH0690728B2 (en) 1989-09-19 1989-09-19 Microprocessor

Country Status (1)

Country Link
JP (1) JPH0690728B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03161883A (en) * 1989-11-20 1991-07-11 Matsushita Electric Ind Co Ltd Microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03161883A (en) * 1989-11-20 1991-07-11 Matsushita Electric Ind Co Ltd Microprocessor

Also Published As

Publication number Publication date
JPH0690728B2 (en) 1994-11-14

Similar Documents

Publication Publication Date Title
WO1992022030A1 (en) Interrupt driven, separately clocked, fault tolerant processor synchronization
JPH03105487A (en) Microprocessor
US5058050A (en) Timer unit and data processing apparatus including the same
JPH03161883A (en) Microprocessor
US4992937A (en) Microcomputer having a program mode setting circuit
JPH0690729B2 (en) Microprocessor and output port
JPH02287659A (en) Microprocessor
JPS61202244A (en) Program trouble detector
JP2901828B2 (en) Semiconductor integrated circuit
JPH0690730B2 (en) Microprocessor and output port
JPS59183434A (en) Prefetch control system of instruction
JP2534314B2 (en) Semiconductor integrated circuit
JP2536103B2 (en) Data processing device
JPH03134737A (en) Microprocessor
JPS6269352A (en) Microprocessor
SU1343421A1 (en) Processor module
JPS61165171A (en) Microcomputer
JPS6029128B2 (en) microprogram controller
JPH04232537A (en) Trace system
JPH04365112A (en) Time counting system for computer system
JPH023829A (en) Program execution time measurement device
JPH0772890B2 (en) Microprocessor with cap mechanism
JPH0831054B2 (en) History information storage method
JPS60232718A (en) Electronic type preset counter
JPS5840762B2 (en) Malfunction detection method for digital data distribution equipment

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071114

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081114

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees