JPH02127787A - External ready circuit - Google Patents

External ready circuit

Info

Publication number
JPH02127787A
JPH02127787A JP63280963A JP28096388A JPH02127787A JP H02127787 A JPH02127787 A JP H02127787A JP 63280963 A JP63280963 A JP 63280963A JP 28096388 A JP28096388 A JP 28096388A JP H02127787 A JPH02127787 A JP H02127787A
Authority
JP
Japan
Prior art keywords
counter
clock
ready
clock pulse
cpu
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
JP63280963A
Other languages
Japanese (ja)
Other versions
JPH0632049B2 (en
Inventor
Kenji Hara
憲二 原
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Manufacturing 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 Yaskawa Electric Manufacturing Co Ltd filed Critical Yaskawa Electric Manufacturing Co Ltd
Priority to JP63280963A priority Critical patent/JPH0632049B2/en
Publication of JPH02127787A publication Critical patent/JPH02127787A/en
Publication of JPH0632049B2 publication Critical patent/JPH0632049B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To control a machine cycle by dividing a clock pulse with a counter, defining the divided clock pulse as a system clock and stopping the counter. CONSTITUTION:The invert of WAIT signal line is connected to enable terminals P and T of a counter 2 and a clock pulse CP (24MHz, for example) is added to a clock terminal CP. Then, pulse width is double divided and the system clock of 12MHz is outputted from an output QA and given to a CPU 1. When the inverse of WAIT signal goes to be 'L', the system clock of 12MHz is stopped and when the inverse of WAIT signal goes to be 'H', the system clock is operated. Accordingly, this operation goes to be the same as ready control. Thus, the ready control of the CPU (DSP) 1 can be executed by a simple external circuit.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、例えばマクロコンピータ・シスチムニおいて
、メモリや入・出力(110)回路のアクセス拳タイム
の不足や、マルチにされたCPU(中央処理回路)によ
る同時アクセス等でCPUに時間待ち(WA I T)
をかける必要が度々化じるが、これらのことを考慮され
ていないCPUもあるので、そのようなCPUへのクロ
ックパルス(CP)を適切に処理するCPUの外部に設
けるレディ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is applicable to a macro computer system, for example, where there is a lack of access time for memory and input/output (110) circuits, and when multiple CPUs (central Waiting time (WAIT) for the CPU due to simultaneous access by processing circuits)
Although the need to apply multiple CPUs frequently changes, some CPUs do not take these matters into consideration. Therefore, the present invention relates to a ready circuit provided outside the CPU that appropriately processes the clock pulse (CP) to such a CPU.

〔従来の技術〕[Conventional technology]

従来、この種の装置として例えば80C51[インテル
社製8051のC−M2S版・・・商品名・・・]やT
MS320C25[テキサス・インスッルメント社製・
・・商品名・・・これは1チツプDSP(ディジタル信
号処理用プロセッサ)で演算速度が一段と向上するとと
もに内臓メモリ容量が増大している]がある。
Conventionally, as this type of device, for example, 80C51 [C-M2S version of Intel's 8051...product name...] and T
MS320C25 [manufactured by Texas Instruments Co., Ltd.]
...Product name: This is a 1-chip DSP (digital signal processing processor) with further improved calculation speed and increased built-in memory capacity.

前者の80C51においては、読出しサイクルまたは書
込みサイクルでメモリまたは周辺チップがデータの送出
または受信の準備ができているか否かを判別するレディ
信号を導入するレディ端子が無い。、 この第1の従来例の回路構成を表す第5図において、ク
ロックパルスCPはナンド・ゲート51を介してCPU
Iの入力端子XTALIへ与えられ、さらにインバータ
3を経て反転したクロックパルスCPが入力端子XTA
L2に加えられる。
The former 80C51 does not have a ready terminal that introduces a ready signal to determine whether the memory or peripheral chip is ready to send or receive data during a read or write cycle. , In FIG. 5 showing the circuit configuration of this first conventional example, the clock pulse CP is transmitted to the CPU via a NAND gate 51.
The clock pulse CP that is applied to the input terminal XTALI of I and further inverted via the inverter 3 is applied to the input terminal XTALI.
Added to L2.

そして図示しないWA I T信号との演算が行われメ
モリや入・出力(I 10)回路によるデータの転送が
なされる。
Then, calculations are performed with the WAIT signal (not shown), and data is transferred by the memory and the input/output (I10) circuit.

また、後者の7MS320C25[第2の従来例]にお
いては、一応、レディ端子を備えている。
Furthermore, the latter 7MS320C25 [second conventional example] is provided with a ready terminal.

さらに、第3の従来例として特開昭63−121916
号がみられる。
Furthermore, as a third conventional example, Japanese Patent Application Laid-Open No. 63-121916
You can see the number.

これは、基本クロック及び該基本クロックを分周して得
られる1又は複数種類の分周クロックを持ち、前記全て
の種類のクロックを停止せしめるための該クロックとは
同期しない非同期停止信号を持つクロックシステムにお
いて、 前記非同期停止信号を入力とする複数段のフリップフロ
ップより成る同期化回路と、 該同期化回路の出力である停止タイミング信号および前
記分周クロックによって作られる1又は複数のタイミン
グ信号を入力とし、前記同期化回路の出力および全ての
タイミング信号の条件がそろった時のみ停止信号を発生
させる停止信号発生回路と から構成されることを特徴とするクロック制御方式であ
る。つまり、この第3の従来例は原発振を停止させ後に
分周している。
This clock has a basic clock and one or more types of divided clocks obtained by dividing the basic clock, and has an asynchronous stop signal that is not synchronized with the clock to stop all the types of clocks. In the system, a synchronization circuit consisting of a plurality of stages of flip-flops receives the asynchronous stop signal as an input, and a stop timing signal output from the synchronization circuit and one or more timing signals generated by the divided clock are input. This clock control method is characterized in that it is comprised of a stop signal generation circuit that generates a stop signal only when the conditions of the output of the synchronization circuit and all the timing signals are met. In other words, in this third conventional example, the original oscillation is stopped and then the frequency is divided.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、第1の従来例では、第6図にその動作を
示すタイミングチャートから明らかなように、システム
のクロックパルスをゲートを用いてコントロールしよう
とすると、異常に短い異常パルス61が発生するおそれ
があり、知るかぎりでは実用化されていない。
However, in the first conventional example, as is clear from the timing chart showing its operation in FIG. 6, when attempting to control the system clock pulse using a gate, there is a risk that an abnormally short abnormal pulse 61 may be generated. Yes, but as far as I know, it has not been put into practical use.

また、第2の従来例においては、マシンサイクルを1サ
イクルもう1回繰返すので、異常に速度が低下すると言
う問題点があり、メモリのアクセスタイムが不足の時は
、システムクロックを下げて対応していた。
In addition, in the second conventional example, since the machine cycle is repeated one more time, there is a problem that the speed decreases abnormally, and when the memory access time is insufficient, the system clock is lowered to cope with it. was.

さらに、第3の従来例は、非同期停止信号を入力とする
複数段のフリップフロップより成る同期化回路と同期化
回路の出力および全てのタイミング信号の条件がそろっ
た時のみ停止信号を発生させる停止信号発生回路とを必
要とする甚だ複雑な回路構成であり、コスト的にも不具
合である。
Furthermore, the third conventional example is a synchronization circuit consisting of multiple stages of flip-flops that receives an asynchronous stop signal as input, and a stop signal that generates a stop signal only when the conditions of the output of the synchronization circuit and all timing signals are met. This is an extremely complicated circuit configuration that requires a signal generation circuit, and is also problematic in terms of cost.

ここにおいて、本発明は、これら従来例の難点を克服し
、単なるゲート回路のみでなくクロックパルスをカウン
タで分周してシステム舎クロックとするとともに、その
カウンタを停止させることでマシンサイクルをコントロ
ールできるCPUの外部に設けたレディ回路を、提供す
ることをその目的とする。
Here, the present invention overcomes the difficulties of these conventional examples and can control the machine cycle by not only using a simple gate circuit but also by dividing the clock pulse by a counter and using it as a system clock. The purpose is to provide a ready circuit provided outside the CPU.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、 読出しサイクルまたは書込みサイクルでメモリまたは周
辺チップがデータの送出または受信の準備ができている
か否かを判別するレディ信号を導入するレディ端子の無
いCPU、もしくはマシンサイクルが異常に長くなりす
ぎるディジタル信号処理用プロセッサにおいて、 システム・クロックパルスの数倍のクロックパルスをカ
ウンタに入力し、 このカウンタの分周出力をシステム・クロックパルスと
し、 そのカウンタのカウントを停止させることで、マシンサ
イクルをコントロールする外部レディ回路である。
The present invention eliminates the need for a CPU or machine cycle that is abnormally long without a ready terminal that introduces a ready signal to determine whether a memory or peripheral chip is ready to send or receive data during a read or write cycle. In many digital signal processing processors, a machine cycle can be started by inputting a clock pulse several times the system clock pulse into a counter, using the divided output of this counter as the system clock pulse, and stopping the counter from counting. This is an external ready circuit for control.

〔作 用〕[For production]

上記のように構成されているので、CPU前段に設けた
カウンタに入力するクロックパルスを整数倍のクロック
パルス幅に分周し、システム・クロックに適合するよう
にクロックパルス幅をギヤランティし、かつ先のカウン
タのカウントを停止させることでマシンサイクルが自由
にコントロールされる。すなわち、本発明はカウンタで
分周期の起動、停止を自在に行わせる。
With the above configuration, the clock pulse input to the counter provided in the front stage of the CPU is divided into clock pulse widths that are integral multiples, the clock pulse width is geared to match the system clock, and the clock pulse width is The machine cycle can be freely controlled by stopping the counter. That is, the present invention allows the counter to freely start and stop the division period.

〔実施例〕〔Example〕

本発明における一実施例の回路構成を表すブロック図を
第1図に示す。
A block diagram showing the circuit configuration of an embodiment of the present invention is shown in FIG.

すべての図面において、同一符号は同一部材を表す。The same reference numerals represent the same parts in all drawings.

CPUIの前段に設けたカウンタ2にF161[商品名
で、テキサスインスツルメント社製TTLインターフェ
イス・タイプ番号5N74161と同一である]を配設
している。その5N74161の機能的ブロック図を第
2図に示す。ここで図示されている各エレメントは普遍
的な図形シンボルにして描かれているので、説明は省略
する。
F161 [product name, same as TTL interface type number 5N74161 manufactured by Texas Instruments] is installed in the counter 2 provided in the front stage of the CPUI. A functional block diagram of the 5N74161 is shown in FIG. Each element illustrated here is depicted as a universal graphic symbol, so a description thereof will be omitted.

第1図において、カウンタ2のエネブル(ENABLE
)端子P、 TにWA I T信号ラインが接続され、
発信器O8CからのクロックパルスCP[例えば24メ
ガ・ヘルツ]がクロック端子CPに加えられており、ロ
ード端子C3[チップ・セレクト端子]と直流電圧端子
CCはオンの状態にされていて、第1段のJ−にフリッ
プ・フロップの出力QAからはパルス幅が2倍に分周さ
れて12メガφヘルツのシステムΦクロックが出力する
In FIG. 1, the ENABLE of counter 2 is
) The WAIT signal line is connected to terminals P and T,
A clock pulse CP [for example, 24 MHz] from the oscillator O8C is applied to the clock terminal CP, and the load terminal C3 [chip select terminal] and the DC voltage terminal CC are turned on, and the first The output QA of the flip-flop at the J- stage outputs a system Φ clock of 12 mega Φ hertz with the pulse width divided by twice.

この12メガ・ヘルツのシステム・クロックはCPUI
の入力端子XTALIに与えられるとともに、その反転
信号がインバータ3を介してCPUIの入力端子XTA
L2に加えられる。
This 12 MHz system clock is CPU
is applied to the input terminal XTALI of the CPU, and its inverted signal is applied to the input terminal XTALI of the CPU via the inverter 3.
Added to L2.

そして、12メガ・ヘルツのシステム・クロックのオン
・オフは、WAIT信号で自在にコントロールされて、
第1段のJ−にフリップψフロップの出力QAからの出
力として得られるので、正しい12メガ番ヘルツのパル
ス波形となり、第1の従来例で発生した異常パルスは生
起することがない。
The on/off of the 12 MHz system clock is freely controlled by the WAIT signal.
Since it is obtained as the output from the output QA of the flip ?

すなわち、この一実施例の回路構成(第1図)は、80
C51(CPUI)用のWA I 7回路であり、WA
ITが“L″になるとクロックが停止し、′H“になる
とクロックが動作する。これによりレディーコントロー
ルと同一となる。
That is, the circuit configuration (Fig. 1) of this embodiment is 80
WA I 7 circuit for C51 (CPUI), WA
When IT becomes "L", the clock stops, and when it becomes 'H', the clock starts operating. This makes it the same as ready control.

第3図は、本発明の他の実施例の回路構成図である。FIG. 3 is a circuit diagram of another embodiment of the present invention.

この他の実施例は、2個のカウンタを備えたCPUのT
MS320G25月3WAIT回路を構成している。
This other embodiment is a CPU with two counters.
It constitutes the MS320G 25/3 WAIT circuit.

その動作を表すタイムチャートを第4図に示す。A time chart showing this operation is shown in FIG.

第3図において、4は2と同じカウンタ、5はインバー
タ、6はオア回路である。
In FIG. 3, 4 is the same counter as 2, 5 is an inverter, and 6 is an OR circuit.

カウンタ2のデータ入力端子A、 B、 C,Dは一括
して接地し、直流電圧端子CCはオンの状態にされ、ロ
ード端子C5[チップ・セレクト端子]はチップ・セレ
クト信号C8を伝送するラインからインバータ3を介し
てチップ・セレクト信号C3が導入するようにしてあり
、クロック端子CPには図示しない発信器からの80メ
ガ・ヘルプのクロックパルスが与えられる。
The data input terminals A, B, C, and D of counter 2 are all grounded, the DC voltage terminal CC is turned on, and the load terminal C5 [chip select terminal] is connected to the line that transmits the chip select signal C8. A chip select signal C3 is introduced from the inverter 3 through the inverter 3, and a clock pulse of 80 megabytes from an oscillator (not shown) is applied to the clock terminal CP.

このリップル・キャリ端子[第2図の RIPPLE  CARRY  0UTPUT(15)
IRCはオア回路6の一入力端子に接続され、またリッ
プル・キャリ端子RCはインバータ5を経て、エネブル
(ENABLE)端子P。
This ripple carry terminal [RIPPLE CARRY 0UTPUT (15) in Figure 2]
IRC is connected to one input terminal of OR circuit 6, and ripple carry terminal RC is connected to enable terminal P via inverter 5.

Tにもそれぞれ接続される。They are also connected to T respectively.

また、チップ・セレクト信号C5を伝送するラインはオ
ア回路6の他の入力端子に接続され、オア回路6の出力
端子はもう−っのカウンタ4のエネブル(ENABLE
)端子P、 Tに接続し、このカウンタ4の端子接続は
第1図に準じる。
Further, the line transmitting the chip select signal C5 is connected to the other input terminal of the OR circuit 6, and the output terminal of the OR circuit 6 is connected to the enable (ENABLE) terminal of the counter 4.
) are connected to terminals P and T, and the terminal connections of this counter 4 are as shown in FIG.

このように構成すると、チップ・セレクト信号C8が“
Hmの間は80メガ・ヘルツのクロックパルスが40メ
ガ・ヘルプのクロックとしてCPUIのTMS320C
25へ与えられている。
With this configuration, the chip select signal C8 becomes “
During Hm, the 80 MHz clock pulse is used as the 40 MHz help clock for the CPUI's TMS320C.
It is given to 25.

このときカウンタ2は働いていない。そうして、チップ
・セレクト信号C8が“Llになるとカウンタ2はカウ
ントを始め、リップル・キャリ端子RCからのリップル
・キャリ出力が“H”になり、カウンタ2はその働きを
停止し、カウンタ4は始動し80メガ・ヘルツのクロッ
クパルスの1サイクル遅れてカウンタ4の出力端子QA
からの出力が導出される。つまり、チップ・セレクト信
号C8が“L゛にされてから、80メガ・ヘルツのクロ
ック・パルスの3サイクル遅れてCPUの7MS320
C25へレディ信号が与えられる。
At this time, counter 2 is not working. Then, when the chip select signal C8 becomes "Ll", the counter 2 starts counting, the ripple carry output from the ripple carry terminal RC becomes "H", the counter 2 stops its operation, and the counter 4 starts counting. starts, and after one cycle of the 80 MHz clock pulse, output terminal QA of counter 4
The output from is derived. In other words, after the chip select signal C8 goes low, the CPU's 7MS320
A ready signal is given to C25.

そのように、37.5ナノ・秒の遅延を作成している。As such, a delay of 37.5 nanoseconds is created.

これにより、メモリ◆アクセスのタイミングのみクロッ
クφパルスをのばすことが可能となる。
This makes it possible to extend the clock φ pulse only at the memory ◆ access timing.

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

上記のごとく、本発明によれば、簡単な外部回路により
CPU (DSP)のレディ・コントロールを行なうこ
とが可能となり、この種の汎用CPUのリードまたはラ
イト・サイクルにおけるメモリまたは周辺チップへのデ
ータの送出または受入の準備が支障なく円滑になされる
ようになり、CPU (DSP)の演算速度と信頼性の
向上に資するところ図りしれないという格段の効果を奏
することができる。
As described above, according to the present invention, it is possible to perform ready control of a CPU (DSP) with a simple external circuit, and to control data transfer to memory or peripheral chips during read or write cycles of this type of general-purpose CPU. Preparations for sending or receiving can be made smoothly without any trouble, and it is possible to bring about a remarkable effect that contributes to improving the calculation speed and reliability of the CPU (DSP).

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

第1図は本発明の一実施例の回路構成を表すブロック図
、第2図はそのカウンタ内部の機能的ブロック図、第3
図は本発明の他の実施例の回路構成図、第4図はその動
作を表すタイムチャート、第5図、第6図は第1の従来
例の説明図である。 1・・・CPU (中央処理装置) 2.4・・・カウンタ 3.5・・・インバータ 6・・・オア回路 51・・・ナンド・ゲート 61・・・異常パルス。
FIG. 1 is a block diagram showing the circuit configuration of an embodiment of the present invention, FIG. 2 is a functional block diagram inside the counter, and FIG.
FIG. 4 is a circuit configuration diagram of another embodiment of the present invention, FIG. 4 is a time chart showing its operation, and FIGS. 5 and 6 are explanatory diagrams of the first conventional example. 1...CPU (central processing unit) 2.4...Counter 3.5...Inverter 6...OR circuit 51...NAND gate 61...Abnormal pulse.

Claims (1)

【特許請求の範囲】 1、読出しサイクルまたは書込みサイクルでメモリまた
は周辺チップがデータの送出または受信の準備ができて
いるか否かを判別するレディ信号を導入するレディ端子
の無いCPU、もしくはマシンサイクルが異常に長くな
りすぎるディジタル信号処理用プロセッサにおいて、 システム・クロックパルスの数倍のクロックパルスをカ
ウンタに入力し、 このカウンタの分周出力をシステム・クロックパルスと
し、 そのカウンタのカウントを停止させることで、マシンサ
イクルをコントロールする ことを特徴とする外部レディ回路。
[Claims] 1. A CPU or machine cycle without a ready terminal that introduces a ready signal to determine whether a memory or peripheral chip is ready to send or receive data during a read or write cycle. In a digital signal processing processor that is abnormally long, it is possible to input a clock pulse several times the system clock pulse into a counter, use the divided output of this counter as the system clock pulse, and stop the counter from counting. , an external ready circuit characterized by controlling the machine cycle.
JP63280963A 1988-11-07 1988-11-07 Microcomputer equipment Expired - Lifetime JPH0632049B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63280963A JPH0632049B2 (en) 1988-11-07 1988-11-07 Microcomputer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63280963A JPH0632049B2 (en) 1988-11-07 1988-11-07 Microcomputer equipment

Publications (2)

Publication Number Publication Date
JPH02127787A true JPH02127787A (en) 1990-05-16
JPH0632049B2 JPH0632049B2 (en) 1994-04-27

Family

ID=17632327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63280963A Expired - Lifetime JPH0632049B2 (en) 1988-11-07 1988-11-07 Microcomputer equipment

Country Status (1)

Country Link
JP (1) JPH0632049B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5299514A (en) * 1991-04-12 1994-04-05 Brother Kogyo Kabushiki Kaisha Process and apparatus for producing underlying stitch sewing data
US5802954A (en) * 1995-03-22 1998-09-08 Kabushiki Kaisha Toyoda Jidoshokki Seisakusho Reciprocating piston compressor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60218152A (en) * 1984-04-13 1985-10-31 Hitachi Ltd Microprocessor
JPS62221061A (en) * 1986-03-20 1987-09-29 Nec Corp Microcomputer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60218152A (en) * 1984-04-13 1985-10-31 Hitachi Ltd Microprocessor
JPS62221061A (en) * 1986-03-20 1987-09-29 Nec Corp Microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5299514A (en) * 1991-04-12 1994-04-05 Brother Kogyo Kabushiki Kaisha Process and apparatus for producing underlying stitch sewing data
US5802954A (en) * 1995-03-22 1998-09-08 Kabushiki Kaisha Toyoda Jidoshokki Seisakusho Reciprocating piston compressor

Also Published As

Publication number Publication date
JPH0632049B2 (en) 1994-04-27

Similar Documents

Publication Publication Date Title
JPH07306827A (en) Method and apparatus for execution of synchronous data transmission between digital devices operated at frequency provided with p/q integer ratio relationship
JP3160631B2 (en) Variable latency method and apparatus for floating point coprocessor
US5115503A (en) System for adapting its clock frequency to that of an associated bus only when it requires usage thereof
US5197126A (en) Clock switching circuit for asynchronous clocks of graphics generation apparatus
KR900002438B1 (en) Inter-processor connecting system
JPH02183855A (en) Synchronization of non-synchronous signal
JPS6114203Y2 (en)
JPH02127787A (en) External ready circuit
JP2684806B2 (en) Integrated circuit
JPH03122707A (en) Clock generator for synchronous pulse
US4941157A (en) Slow peripheral handshake interface circuit
KR19990029006A (en) Extended chip select reset device and method
JPH1185304A (en) Clock input control circuit
JPS5952331A (en) Device address setting device
SU898437A1 (en) Device for interfacing processor with storage
KR930009798B1 (en) Reset-ready counter of numeric co-processor
JPS61501661A (en) Parallel synchronous operation
KR930005748Y1 (en) Interrupt control circuit
JP2668215B2 (en) Micro computer
JP2645462B2 (en) Data processing system
KR200298423Y1 (en) Coordination logic for accessing peripherals from multiple processors
JPH0624908Y2 (en) Data transfer control device
JPS63142437A (en) Clock control circuit for cmos large scale integrated circuit device
JPH0345039A (en) Semiconductor device
JPH0756645B2 (en) Data processing device