JPS62130015A - Pulse width modulation output device - Google Patents

Pulse width modulation output device

Info

Publication number
JPS62130015A
JPS62130015A JP60270533A JP27053385A JPS62130015A JP S62130015 A JPS62130015 A JP S62130015A JP 60270533 A JP60270533 A JP 60270533A JP 27053385 A JP27053385 A JP 27053385A JP S62130015 A JPS62130015 A JP S62130015A
Authority
JP
Japan
Prior art keywords
cam
signal line
pwm
active
pulse width
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
JP60270533A
Other languages
Japanese (ja)
Other versions
JPH0476532B2 (en
Inventor
Hideo Abe
安部 秀夫
Yukio Maehashi
幸男 前橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60270533A priority Critical patent/JPS62130015A/en
Publication of JPS62130015A publication Critical patent/JPS62130015A/en
Publication of JPH0476532B2 publication Critical patent/JPH0476532B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Inverter Devices (AREA)

Abstract

PURPOSE:To realize the titled device with small-size constitution by holding pulse width information and generating a pulse output signal in response to a detection signal from the 2nd storage means and an overflow signal from a free running counter. CONSTITUTION:When a coincidence signal line 211 of a CAM 201 is active at a point of time t4, an RS FF 501 is set and when the coincidence signal line 211 of the CAM 201 is inactive and an overflow signal line 401 of an FRC 400 is active the RS FF 501 is reset. For example, when a data O1H is set to the CAM 201, the RS FF 501 detects the active level of the signal line 401 of the FRC 400 and becomes a set state. Then the FF 501 is reset by detecting the active level of the coincidence signal line 211 of the CAM 201 at the next point of time. Through the operation above, the information data setting the length of a pulse output high level width by the controller to be connected is set to RAMs 101-104, then the width taking the high level of the pulse output is easily changed.

Description

【発明の詳細な説明】[Detailed description of the invention]

産業上の利用分野 本発明は、パルス幅変調出力装置に関するものである。 従来の技術 近年、マイクロコンピュータはLSI技術の進歩により
高集積化が進み、DMA、タイマ/カウンタ、シリアル
インターフェース、ボート、A/D変換器などの周辺ハ
ードウェアがワンチップに搭載されるようになった。そ
の中でも、パルス人出力装置を備えたものは、VTR,
ビデオディスク、CD等の民生分野およびプリンタ、プ
ロッタ、フロッピーディスクなどのOA分野の双方にお
いて、モータなどを制御する為のものとして不可欠なも
のである。特にパルス出力装置は、モータ等の外部機器
の制御を行なう上で非常に重要であり、多くの外部機器
を同時に制御する場合には、パルス出力を多チャネル備
える必要性も生じてくる。 一般に、このようなパルス出力装置としては、パルス幅
を制御するためのレジスタ(Pulse I!Iidt
hModulaLion レジスタ、以下”PWMレジ
スク″と略ず)およびダウンカウンタから構成されるパ
ルス幅変調出力装置(以下“PWM出力装置′”と略す
)が用いられている。 第5図は従来のPWM出力装置を示す。図において、P
WM出力装置20は、PWM邪21を基本構成とし、該
PWM部21と同様な構成のものを3個有することで、
4種類の独立したPWM出力機能を有する。 このPWM出力装置20に含まれる4つの第1PWMレ
ジスタ701〜704は、出力パルスのハイレベル期間
を指定するものである。また、他の4つの第2PWMレ
ジスタ711〜714は出力パルスのロウレベル期間を
指定するためのものである。 4つのダウンカウンタ801〜804は、これらPWM
レジスタ701〜704および711〜714の値をプ
リセット後に、クロック811〜814に応じて減算計
数する。これら4つのカウンタ801〜804のボロー
線851〜8511は4つのTフリップフロップ511
〜554に接続されている。 クロフク560に応動するTフリップフロップ551〜
554の出力端にはPWM出力端子601〜604が接
続されている。 pWMレジスタ701〜704および711〜7111
は周辺バス900を介して他の制御装置(図示せず)に
接続されている。 このように構成されたPWM出力装置20のうち1つの
P W M部21の動作を以下に説明するが、他の3つ
のPWM部も同様な動作をする。 先ず、ダウンカウンタ801は、他の制御装置から周辺
ハスを介して第1PWMレジスタ701と第2PWMレ
ジスタ711にセットされた値を交互に減算計数する。 すなわち、ダウンカウンタ801は、i2PWMレジス
タ711の値を減算計数してアンダーフローが発生する
と、第1PWMレジスタ701の値をプリセットし、ボ
ロー線851をアクティブ(活性)とし、Tフリップフ
ロップ551をセットする。 次にダウンカウンタ8旧が第1PWMレジスタ701の
値を減算計数し、アンダーフローが発生すると、ボロー
線851がアクティブとなってTフリップフロップ55
1をリセットする。それと共に、ダウンカウンタ8旧は
第2PWMレジスク711の値をプリセットして減算計
数する。 このような動作によって、ダウンカウンタ801が第1
PWMレジスタ701の値と第2PWMレジスタ711
の値とを交互に減算計数することで、P W M21は
PWM出力端子601から連続的なパルス信号を出力す
る。この出力されるパルス信号の繰り返し周期は、第1
 PWMレジスタ7旧の値と第2PWMレジスタ711
の値との和で決まる。また、パルス信号のハイレベル期
間1[I P W Mレジスタ701の値で決まる。 PWM部21から出力されるパルス信号の周期に対する
ハイレベル期間の割り合い(デユーティレシオ)を変え
る場合には、他の制御装置から周辺ハス900を介して
第1および第2 PWMレジスク701および711の
セット値を変更する。この変更された両レジスタ701
および711の値をダウンカウンタ801にプリセット
するタイミングに応じて、デユーティレシオが変化する
こととなる。 従って、4つのPWM出力端子601〜604のそれぞ
れからパルス幅変調されたパルス信号が出力されること
となる。 発明が解決しようとする問題点 しかしながら、このような従来のPWM出力装置にあっ
ては、1つのPWM出力端子に対して1つのダウンカウ
ンタおよび2つのPWMレジスタを必要としている。そ
れに因り、装置構成が大きくなり、特に多数のPWM出
力端子を有する場合には装置構成が極めて大型化すると
共に高価なものとなってしまうといった問題点があった
。 本発明は、このような点に鑑みて為されたものであり、
簡易な構成によるパルス幅制御出力装置を提供すること
を目的としている。 問題点を解決するだめの手段 本発明によるパルス幅制御出力装置は、クロックを計数
するフリーランニングカウンタと、パルス幅変調情報を
保持する第1記1.α手段と、タイミング制御部と、第
1記憶手段から転送されるパルス幅変調情報を保持する
と共に、フリーランニングカウンタの計数状態情報と比
較する第2記憶手段と、フリーランニングカウンタから
のオーバーフロー信号および第2記憶手段から発生され
る検知信号に応じてパルス出力信号を発生する出力制御
部とを具備している。 作用 以上の構成のパルス幅制御出力装置においては、フリー
ランニングカウンタを所定のカウントクロックを計数し
て、その計数状態を表わす情報を出力すると共に、オー
バーフローした場合にはオーバーフロー信号を発生する
。 第1記憶手段から第2記1;α手段へのパルス幅変調情
報の転送は、タイミング制御部によって制御される。 フリーランニングカウンタからの計数状態11′、・報
とパルス幅変調情報とが第2記・1意手段によって比
FIELD OF THE INVENTION The present invention relates to a pulse width modulation output device. Conventional technology In recent years, microcomputers have become highly integrated due to advances in LSI technology, and peripheral hardware such as DMA, timer/counter, serial interface, board, and A/D converter has come to be mounted on a single chip. Ta. Among them, those equipped with pulse output devices are VTR,
It is indispensable for controlling motors, etc., both in the consumer field such as video disks and CDs, and in the OA field such as printers, plotters, and floppy disks. In particular, pulse output devices are very important in controlling external devices such as motors, and when controlling many external devices at the same time, it becomes necessary to provide multiple channels of pulse output. Generally, such a pulse output device includes a register (Pulse I! Iidt) for controlling the pulse width.
A pulse width modulation output device (hereinafter abbreviated as "PWM output device'") consisting of an hModulaLion register (hereinafter abbreviated as "PWM register") and a down counter is used. FIG. 5 shows a conventional PWM output device. In the figure, P
The WM output device 20 has a PWM unit 21 as its basic configuration, and has three units having the same configuration as the PWM section 21.
It has four types of independent PWM output functions. The four first PWM registers 701 to 704 included in this PWM output device 20 specify the high level period of the output pulse. Further, the other four second PWM registers 711 to 714 are for specifying the low level period of the output pulse. The four down counters 801 to 804 are
After presetting the values of registers 701 to 704 and 711 to 714, subtraction is counted according to clocks 811 to 814. The borrow lines 851 to 8511 of these four counters 801 to 804 correspond to the four T flip-flops 511.
~554. T flip-flop 551 that responds to Kurofuku 560 ~
PWM output terminals 601 to 604 are connected to the output terminal of 554. pWM registers 701-704 and 711-7111
is connected to other control devices (not shown) via a peripheral bus 900. The operation of one PWM section 21 of the PWM output device 20 configured in this way will be described below, but the other three PWM sections also operate in a similar manner. First, the down counter 801 alternately subtracts and counts the values set in the first PWM register 701 and the second PWM register 711 from another control device via the peripheral lotus. That is, when the down counter 801 subtracts the value of the i2PWM register 711 and an underflow occurs, the down counter 801 presets the value of the first PWM register 701, activates the borrow line 851, and sets the T flip-flop 551. . Next, the down counter 8 old subtracts the value of the first PWM register 701, and when an underflow occurs, the borrow line 851 becomes active and the T flip-flop 55
Reset 1. At the same time, the down counter 8 old presets the value of the second PWM register 711 and performs subtraction counting. Due to this operation, the down counter 801 reaches the first
Value of PWM register 701 and second PWM register 711
By alternately subtracting and counting the value of , the PWM output terminal 601 outputs a continuous pulse signal. The repetition period of this output pulse signal is the first
Old value of PWM register 7 and second PWM register 711
It is determined by the sum of the values of Further, the high level period 1 of the pulse signal is determined by the value of the I PWM register 701. When changing the ratio of the high level period to the period of the pulse signal output from the PWM section 21 (duty ratio), the first and second PWM registers 701 and 711 are sent from another control device via the peripheral lotus 900. Change the set value of. These changed registers 701
The duty ratio changes depending on the timing at which the values of 711 and 711 are preset in the down counter 801. Therefore, a pulse width modulated pulse signal is output from each of the four PWM output terminals 601 to 604. Problems to be Solved by the Invention However, such a conventional PWM output device requires one down counter and two PWM registers for one PWM output terminal. As a result, the device configuration becomes large, and especially when a large number of PWM output terminals are provided, the device configuration becomes extremely large and expensive. The present invention has been made in view of these points,
It is an object of the present invention to provide a pulse width control output device with a simple configuration. Means for Solving the Problems The pulse width control output device according to the present invention includes a free running counter that counts clocks, and a free running counter that stores pulse width modulation information. α means, a timing control section, a second storage means for holding the pulse width modulation information transferred from the first storage means and comparing it with counting state information of the free running counter, an overflow signal from the free running counter and and an output control section that generates a pulse output signal in response to the detection signal generated from the second storage means. In the pulse width control output device configured as described above, the free running counter counts a predetermined count clock, outputs information representing the counting state, and generates an overflow signal when an overflow occurs. Transfer of the pulse width modulation information from the first storage means to the second 1;α means is controlled by a timing control section. The counting state 11' from the free running counter and the pulse width modulation information are compared by the second and first means.


咬され、画情報で一定の関係が成立すれば検知信号か発
生される。 この検知信号およびオーバーフロー信号に応じて、出力
制御部はパルス幅を制御してパルス出力信号を発生する
ようになっている。 実施例 以下図面を参照して本発明実施例を詳述する。 第1図に本発明の一実施例を示す。ここでは、8ビツト
のパルス幅変調出力装置とする。 ■−1,全体構成 第1図において、RAM邪100は、他の制御装置(図
示せず)力ぐらパルス幅のデータを受は取る為に周辺バ
ス900に接続されている。更に、RAM部100は、
そのバス900を介して送られて記(、きしているデー
タと後述するカウントとの一致を検出できる連想メモリ
(以下、“CAM”と記す)部200ヘデータを転送す
るためにPWMバス270によって接続されている。 所定のカウントクロック402をカウントするフリーラ
ンニングカウンタ(以下FRCと称する)1100の計
数値を保持するラッチ410は、比較データバス280
を介してCAM部200に接続されている。 CAM部200を形成する4つのCAM201〜204
のそれぞれは、4つの一致信号線211〜214によっ
て、R−Sフリラフフロップ(以下R−3−F Fと記
す)部500の4つのR−3−F F501〜504の
それぞれに接続されている。 タイミング制御部450からの4つのタイミング制御信
号線は、RAM100を形成する4つのRAM101〜
104のそれぞれおよびCAM部200の4つのCAM
201〜204のそれぞれに共通に接続されている。 また、FRC400のオーバーフロー信号線401は、
タイミング制御部450およびR−Sフリップフロップ
部500の4つのフリップ70ツブ501〜504にそ
れぞれ共通に接続されている。 4つのR−3−FF501〜504の出力端は4つのP
WM出力端子601〜604に接続されている。 ■−2,構成各構成機能 第1図に示す各部における機能を説明しておく。 (i)RAM部110 0RA部100は、CAM200に書き込むデータを一
時的に保持しておくためのメモリであり、4つのRAM
101〜104で成っている。これらに接続された4つ
のタイミング信号線411〜414がアクティブとなる
と、RAMl01〜104の保持データを PWMバス
270を介して出力する。 (ii)CAM部200 CAM部200は、2つのデータを比較するためのもの
であり、4つのCAM201〜204で成っている。P
WMバス270を介して供給されるRAM100の保持
データと、比較データバス280を介して供給されるラ
ッチ41()の保持データとを比較し、一致したときに
4つの一致(3帰線211〜2111をアクティブにす
る。 また、4つのタイミング信号線411〜414がアクテ
ィブとなると、PWMハス270上のデータをCAM2
01〜2f)4に取り込んで保持する。 (山)FRC400 FRC400は、所定のカウントクロック402を計数
するものであり、オーバーフローするとオーバーフロー
信号線401をアクティブとする。 (1v)ラッチ410 ラッチ410は、所定のタイミングでFRC400の計
数値を保持するものであり、その保持データを常に比較
データバス280に出力している。 (V)タイミンク制御部450゜ タイミング制御部450は、オーバーフロー信号線40
1がアクティブとなると、4つのタイミング信号511
11〜L114に制御信号を出力して、RΔM1旧〜1
04の保持値を逐次CAM201〜2011へ転送する
。 (vi)R−37リツプフロツプ部500R−Sフリッ
プフロップ部は、4つのリセット優先型のR−S −F
 F501〜504で成っている。各R−3−FFは、
4つのCA M2O1〜204の一致信号線211〜2
14のそれぞれが所定のタイミングでアクティブであれ
ばリセットされる。また、該一致信号線211〜214
のそれぞれが所定のタイミングで“インアクティブであ
り、FRC400からのオーバーフロー信号線401が
アクティブであればセットされるようになっている。 第2図は、4つのCAM201〜204の1ビット分の
CAMセル210であり、ここで、データ保持部220
、比較部230、書き込みゲート260、一致信号線2
11.データライン2711比較ライン2811書き込
み信号線261、サンプル信号線251を有しており、
一致信号線211は、プリチャージゲート240および
プリチャージ信号線241を有する。 (a)  データライン271および比較ライン281
データライン271は、正論理のデータライン(以下”
Qライン”と記す)272と負論理のデータライン(以
下“Qラインと記す)273から成る。 また、比較ライン281も同様に、正論理の比較ライン
(以下“’CQライン”と記す)282と負論理の比較
ライン(以下“CQライン”と記す)283から成る。 (b)  データ保持部220 データ保持部220は、書き込み信号線261がアクテ
ィブになると、書き込みゲー) 260を開いてQライ
ン272上のデータおよびQライン273上のデータを
内部に取り込み保持する。 (C)  比較部230 比較部230は、4つの比較ゲート231〜234およ
びサンプルゲート250で成る。データ保持部220と
比較ライン281との一致を検出するには、先ずプリチ
ャージ信号線241をアクティブとしてプリチャージゲ
ート240を開くことにより一致信号線211をプリチ
ャージする。しかる後、サンプルゲート250を開く。 CQライン282と負論理保持ライン223とが共に1
″か、あるいはCQライン283と正論理保持ライン2
22とが共に“1”のときは、つまり比較ライン281
とデータ保持部220との値が一致しないときには、一
致信号線211の信号レベルが“0”となる。 また、比較ライン281とデータ保持部220の値が一
致しているときにサンプルゲート250を開くと、一致
信号線211の信号レベルは“1”のまま保持される。 このようにしてプリチャージ動作およびサンプリング動
作を行うことにより、CAMセル210と比較データバ
ス280の一致を検出することができる。 このようなCAMセル210を一致信号線211に8個
並列接続することでCΔM2O1を形成すると、これら
8個のCAMセル全てが比較データバス280と一致し
たときにプリチャージおよびサンプルすると、一致信号
線211がアクティブとなる。更に、データライン27
1および比較ライン281に、同様の構成のものを4個
並列に接続して、4つのCAM 201〜204を構成
する。 ■、全体動作 次に、上述した構成の全体動作を説明する。ここで、P
WM出力装置10の基本タイミングはカウントクロック
402のレベル遷移毎の時点に基づいている。1クロツ
タ期間でなる期間T1〜T、の繰り返し動作を行うよう
になっている。 ll−1,RAM部100からCAM部200への転送
FRC400は、第3図(イ)に示すカウントクロック
402に基づいて、同図に示す時点tl に同期してイ
ンクリメント動作を行う(第3図(ロ)参照)。また、
ラッチ410は、時点t2に同期してF RC4QOの
計数値をラッチする(第3図(ハ)参照)。F RC4
00が計数を行い、オーバーフローすると、オーバーフ
ロー信号線1I01をアクティブとする(第3図(ニ)
参照)。このアクティブ状態は時点1+から次の周期の
時点t1まて続き、その間の時点t1〜t8を時点t6
〜thと定義する。 この時点ta に同期してタイミング制御部450が、
タイミング制御信号線411を期間T1に亘ってアクテ
ィブとする(第3図くべ)参照)。このようにしてタイ
ミング制御信号線411がアクティブとなることにより
、RAM部100のRAM101はその保持データをP
WMバス270に出力する(第3図(ホ)参照)。 次いで時点tbに同期して、CAM部200のCAM2
01はPWMバス270上のRAMl0IO値を取り込
んで保持する(第3図(ト)参照)。 以下同様にして、タイミング制御部450は、他のタイ
ミング制御信号線412.413および414を順次期
間T2、T3およびT、にそれぞれアクティブとして(
第3図(す)、(ヲ)および(ヨ)参照)、RAM10
2.103および104の保持値をPWMバース270
上に出力する(第3図(ホ)参照)。また、時点td、
trおよびthのタイミングに同期して、RAM102
.103右よび104の保持値がCAM202.203
および204に書き込まれて保持される(第3図(ヌ)
、(ワ)および(夕)参照)。 このような動作によって、CAM201〜204に出力
パルスのハイレベル幅の情報が設定される。 ■−2,データの比較 次に、CAM201〜204とラッチ410との両デー
タの比較動作を説明する。 CAM201は時点t2に同期して一致信号線211を
プリチャージする(第3図(チ)参照)。続く時点t3
に同期してサンプル動作を行うことにより、CAM 2
旧の全CAMセルとラッチ410の全ビットとが一致し
たときに、一致信号線211がビとなる。これによって
、CAM201とラッチ410との一致が検出される。 以下同様にして、時点し、でプリチャージし、時点t5
でサンプルすることによりCAM202の一致検出がな
される(第3図(ル)参照)。また、時点t6、t、で
CAMセル全の一致検出、時点t8、tlでCAMセル
全の一致検出が行われる(第3図(力)、(し)参照)
。 ■−3.パルス幅変化動作 次ぎに、出力パルス幅の可変動作を説明する。 R−3−F F 501は、時点t、においてCA M
2O1の一致信号線211がアクティブであるとセット
され、また、時点t4でCAM2旧の一致信号線211
がインアクティブであり且つF RC400のオーバー
フロー信号線401がアクティブなときにリセットされ
る。 例えばCAMセル全にデータCILHを設定したとき、
時点t4でF RC400のオーバーフロー信号線40
1のアクティブレベルをR−3−F F2O3は検出し
てセット状態となる。そして、次の時点t4でCAM 
201の一′f!if憂−)線21+のアクティフレベ
ルを検知してリセット状態となる(:rS31J(ン)
参照)。 このような動作によって、他に接続された制御装置がパ
ルス出力ハイレベル幅の長さを設定する情報データをR
AMl01〜104に設定するのみで、パルス出力のハ
イレベルをとる幅を用意に変えることができる。 上述した実施例にあっては、タイミング制御部11.5
0がオーバーフロー信号401によって、RAM101
〜104の保持データをCA M2O1〜204へ転送
するタイミングを制御するものとした。これに対し、タ
イミング制御部450がCAM 201〜204の一致
信号線211〜214のアクティブによって、RAM1
01〜104からCAM201〜204へのデータ転送
を制御するようにしてもよい。その場合のタイミンクを
第4図に示して、以下第1図および第4図を参照して説
明する。 タイミング制御部450はCAM201の一致信号線2
11がアクティブであることを検知すると、期間T1 
に亘ってタイミング信号線111】をアクティブとする
(第4図(へ)および(ト)参照)。 このようにタイミンク信号線1111がアクティブとな
る期間、RAMl0Iはその保持データをPWMバス2
70に出力する(第4図(ニ)参照)。CA M2O1
はタイミング信号線411がアクティブな期間中の時点
tbに同期して、PWMバス270上のRAMl0Iの
保持値を取り込んで保持する(第4図(ホ)参照)。 同様にして、他のCAM2O2,203および204の
一致信号線212.213および214がアクティブと
なると、タイミング制御部450が期間T2、T3およ
びT4のそれぞれに亘ってタイミング信号線412.4
13および414をアクティブとする(第4図(ヌ)(
ワ)および(り)参照)。これらタイミング信号線41
2.413および414がアクティブな期間RAM10
2.103および104はその保持値をPWMバス27
0へ出力する。そして、CAM 202.203および
204がタイミング信号線412.413および414
がアクティブな期間中の時点td、  tfおよびth
に同期して、RAM102.103および104の保持
値を取り込んで保持する。 なお、CAM部200へのデータ転送動作以外は前述し
た場合の動作と同様である。 このように、PWMをRAM5CΔMおよびFRCで構
成し、当該FRCのオーバーフローを利用することによ
り、RAMおよびCAMを増設するだけでPWM出力端
子を増設できる。 RAMおよびCAMはアレイ構造を採るため、データカ
ウンタに比して極めて小さいハードウェアとなる。また
、CAMはデータバスの他に比較専用のハスを有してい
るため、データを比較するタイミングの自由度が大きい
。従って、多チャネルのPWMハードウェアが実現容易
である。 発明の効果 以上詳述した如き本発明によれば、装置構成を大規模と
することなく多チャネルのパルス幅変調出力装置を実現
することができ、実用に供して極めて効果が大きい。
[
If a person is bitten and a certain relationship is established in the image information, a detection signal is generated. According to the detection signal and the overflow signal, the output control section controls the pulse width and generates a pulse output signal. EXAMPLES Hereinafter, examples of the present invention will be described in detail with reference to the drawings. FIG. 1 shows an embodiment of the present invention. Here, an 8-bit pulse width modulation output device is assumed. (1) Overall Structure In FIG. 1, a RAM 100 is connected to a peripheral bus 900 for receiving and receiving data on the pulse width of another control device (not shown). Furthermore, the RAM section 100
A PWM bus 270 is used to transfer the data to a content addressable memory (hereinafter referred to as "CAM") unit 200 that can detect a match between data being sent via the bus 900 and a count described below. A latch 410 that holds the count value of a free running counter (hereinafter referred to as FRC) 1100 that counts a predetermined count clock 402 is connected to a comparison data bus 280.
It is connected to the CAM section 200 via. Four CAMs 201 to 204 forming the CAM section 200
are connected to each of the four R-3-F Fs 501 to 504 of the R-S frill-luff flop (hereinafter referred to as R-3-F F) section 500 by four match signal lines 211 to 214. There is. The four timing control signal lines from the timing control section 450 are connected to the four RAMs 101 to 40 that form the RAM 100.
104 and four CAMs in the CAM section 200
It is commonly connected to each of 201-204. In addition, the overflow signal line 401 of the FRC400 is
It is commonly connected to the timing control section 450 and the four flip 70 tubes 501 to 504 of the R-S flip-flop section 500, respectively. The output terminals of the four R-3-FF501 to 504 are the four P
It is connected to WM output terminals 601-604. (1-2) Configuration Each component function The functions of each component shown in FIG. 1 will be explained. (i) RAM unit 110 The 0RA unit 100 is a memory for temporarily holding data to be written to the CAM 200, and has four RAMs.
It consists of 101 to 104. When the four timing signal lines 411 to 414 connected to these become active, the data held in the RAMs 101 to 104 are outputted via the PWM bus 270. (ii) CAM unit 200 The CAM unit 200 is for comparing two pieces of data, and consists of four CAMs 201 to 204. P
The data held in the RAM 100 supplied via the WM bus 270 and the data held in the latch 41 ( ) supplied via the comparison data bus 280 are compared, and when they match, four matches (3 retrace lines 211 to 2111 becomes active. Also, when the four timing signal lines 411 to 414 become active, the data on the PWM lotus 270 is transferred to CAM2.
01-2f) Import and hold in 4. (Mountain) FRC 400 The FRC 400 counts a predetermined count clock 402, and when it overflows, it activates the overflow signal line 401. (1v) Latch 410 The latch 410 holds the count value of the FRC 400 at a predetermined timing, and always outputs the held data to the comparison data bus 280. (V) Timing control unit 450° The timing control unit 450 controls the overflow signal line 40
1 becomes active, four timing signals 511
11 to L114, RΔM1 old to 1
The held value of 04 is sequentially transferred to the CAMs 201 to 2011. (vi) R-37 flip-flop unit 500R-S flip-flop unit has four reset priority type R-S-F
It consists of F501 to F504. Each R-3-FF is
Match signal lines 211-2 of four CA M2O1-204
If each of 14 is active at a predetermined timing, it is reset. In addition, the coincidence signal lines 211 to 214
are inactive at a predetermined timing, and are set if the overflow signal line 401 from the FRC 400 is active. A cell 210, where a data holding unit 220
, comparison section 230, write gate 260, match signal line 2
11. It has a data line 2711, a comparison line 2811, a write signal line 261, and a sample signal line 251.
Match signal line 211 has a precharge gate 240 and a precharge signal line 241. (a) Data line 271 and comparison line 281
The data line 271 is a positive logic data line (hereinafter referred to as "
It consists of a negative logic data line (hereinafter referred to as "Q line") 272 and a negative logic data line (hereinafter referred to as "Q line") 272. Similarly, the comparison line 281 is composed of a positive logic comparison line (hereinafter referred to as "CQ line") 282 and a negative logic comparison line (hereinafter referred to as "CQ line") 283. (b) Data Holding Unit 220 When the write signal line 261 becomes active, the data holding unit 220 opens the write gate 260 and takes in and holds the data on the Q line 272 and the data on the Q line 273. (C) Comparison section 230 The comparison section 230 includes four comparison gates 231 to 234 and a sample gate 250. To detect a match between the data holding section 220 and the comparison line 281, first, the match signal line 211 is precharged by making the precharge signal line 241 active and opening the precharge gate 240. Thereafter, sample gate 250 is opened. CQ line 282 and negative logic holding line 223 are both 1
'' or CQ line 283 and positive logic holding line 2
22 are both "1", that is, the comparison line 281
When the values of the data holding unit 220 and the data holding unit 220 do not match, the signal level of the match signal line 211 becomes “0”. Further, if the sample gate 250 is opened when the values of the comparison line 281 and the data holding section 220 match, the signal level of the match signal line 211 is held as "1". By performing the precharge operation and the sampling operation in this manner, it is possible to detect coincidence between the CAM cell 210 and the comparison data bus 280. If CΔM2O1 is formed by connecting eight such CAM cells 210 in parallel to the match signal line 211, if all eight CAM cells are precharged and sampled when they match the comparison data bus 280, the match signal line 211 becomes active. Furthermore, data line 27
1 and the comparison line 281, four CAMs having the same configuration are connected in parallel to form four CAMs 201 to 204. (2) Overall operation Next, the overall operation of the above-mentioned configuration will be explained. Here, P
The basic timing of the WM output device 10 is based on the timing of each level transition of the count clock 402. Repeated operations are performed during periods T1 to T, which are one crotter period. ll-1, Transfer from RAM section 100 to CAM section 200 The FRC 400 performs an increment operation based on the count clock 402 shown in FIG. (See (b)). Also,
The latch 410 latches the count value of FRC4QO in synchronization with time t2 (see FIG. 3(c)). FRC4
00 performs counting, and when it overflows, the overflow signal line 1I01 is activated (Fig. 3 (D)).
reference). This active state continues from time 1+ to time t1 of the next cycle, and from time t1 to t8 in the meantime, to time t6.
~th. In synchronization with this time point ta, the timing control section 450
The timing control signal line 411 is made active for a period T1 (see FIG. 3). By thus making the timing control signal line 411 active, the RAM 101 of the RAM section 100 transfers its held data to P
It is output to the WM bus 270 (see FIG. 3 (e)). Then, in synchronization with time tb, CAM2 of the CAM unit 200
01 takes in and holds the RAM10IO value on the PWM bus 270 (see FIG. 3(G)). Similarly, the timing control unit 450 sequentially activates the other timing control signal lines 412, 413, and 414 during periods T2, T3, and T, respectively (
(See Figure 3 (S), (W) and (Y)), RAM10
2. Set the holding values of 103 and 104 to PWM verse 270
(See Figure 3 (E)). Also, time td,
In synchronization with the timing of tr and th, the RAM 102
.. The holding value of 103 right and 104 is CAM202.203
and is written to and held in 204 (Figure 3 (N)).
, (wa) and (yu)). By such an operation, information on the high level width of the output pulse is set in the CAMs 201 to 204. (2)-2. Comparison of data Next, the operation of comparing data between the CAMs 201 to 204 and the latch 410 will be explained. The CAM 201 precharges the match signal line 211 in synchronization with time t2 (see FIG. 3 (h)). Subsequent time point t3
By performing sample operation in synchronization with CAM 2
When all the old CAM cells and all the bits of the latch 410 match, the match signal line 211 becomes BI. As a result, a match between the CAM 201 and the latch 410 is detected. In the same manner, precharge is performed at time t5, and time t5 is precharged.
By sampling the CAM 202, a coincidence is detected in the CAM 202 (see FIG. 3). Furthermore, coincidence detection is performed for all CAM cells at time t6, t, and coincidence detection for all CAM cells is performed at time t8, tl (see Figure 3 (see) and (shi)).
. ■-3. Pulse Width Varying Operation Next, the output pulse width varying operation will be explained. R-3-FF 501 is CA M at time t,
The match signal line 211 of CAM2O1 is set active, and the match signal line 211 of CAM2 old is set to active at time t4.
is inactive and the overflow signal line 401 of the FRC 400 is active. For example, when setting data CILH to all CAM cells,
At time t4, the overflow signal line 40 of FRC400
R-3-F2O3 detects the active level of 1 and enters the set state. Then, at the next time t4, CAM
201'f! If it detects the active level of line 21+, it enters the reset state (:rS31J(n)
reference). Through such an operation, the control device connected to another R
By simply setting AM101 to AM104, the width at which the pulse output takes a high level can be easily changed. In the embodiment described above, the timing control section 11.5
0 in the RAM 101 by the overflow signal 401.
The timing of transferring the held data of ~104 to CAM2O1~204 is controlled. In response, the timing control unit 450 activates the coincidence signal lines 211 to 214 of the CAMs 201 to 204, thereby causing the RAM1
Data transfer from CAMs 01 to 104 to CAMs 201 to 204 may be controlled. The timing in that case is shown in FIG. 4, and will be explained below with reference to FIGS. 1 and 4. The timing control unit 450 controls the coincidence signal line 2 of the CAM 201.
11 is active, the period T1
The timing signal line 111 is made active throughout (see FIGS. 4(f) and (g)). In this way, during the period when the timing signal line 1111 is active, the RAM 10I transfers its held data to the PWM bus 2.
70 (see FIG. 4(d)). CA M2O1
captures and holds the value held in RAMl0I on the PWM bus 270 in synchronization with time tb during the period when the timing signal line 411 is active (see FIG. 4(E)). Similarly, when the coincidence signal lines 212, 213 and 214 of the other CAM2O2, 203 and 204 become active, the timing control unit 450 controls the timing signal line 412.4 over the periods T2, T3 and T4, respectively.
13 and 414 are activated (Fig. 4 (N))
(see w) and (ri)). These timing signal lines 41
2. Period during which 413 and 414 are active RAM10
2.103 and 104 send their held values to the PWM bus 27
Output to 0. And CAM 202.203 and 204 connect timing signal lines 412.413 and 414
At times td, tf and th during the period when is active
In synchronization with , the values held in RAMs 102, 103 and 104 are fetched and held. Note that the operations other than the data transfer operation to the CAM section 200 are the same as those in the case described above. In this way, by configuring PWM with RAM5CΔM and FRC and utilizing the overflow of the FRC, the number of PWM output terminals can be increased simply by adding RAM and CAM. Since RAM and CAM have an array structure, they are extremely small hardware compared to a data counter. Furthermore, since the CAM has a bus dedicated for comparison in addition to the data bus, there is a high degree of freedom in the timing of data comparison. Therefore, multi-channel PWM hardware is easy to implement. Effects of the Invention According to the present invention as described in detail above, a multi-channel pulse width modulation output device can be realized without increasing the device configuration, and is extremely effective in practical use.

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

第1図は、本発明の一実施例によりパルス幅変調出力装
置の構成を示すブロック図である。 第2図は、第1図に示すCAMの単位ビットセルの回路
構成を示す接続図である。 第3図(イ)〜(ソ)および第4図(イ)〜(夕)は、
それぞれ本発明実施例における動作を説明するためのタ
イミング図である。 第5図は、従来例を示す構成ブロック図である。 (主な参照番号) 10.20・・パルス幅変調出力製置、lOO・・RA
M部、 200・・CAM部、 210・・CAMセル、 211〜214  ・・CAMの一致信号線、220・
・データ保持部、 230・・比較部、 270・・PWMバース、 280・・比較データバス、 400・・フリーランニングカウンタ(FRC)、1l
O1・・オーバーフロー信号線、 1111〜1114  ・・タイミング信号線、500
・・R−Sフリップフロップ部、701〜704.71
1〜714  ・・PWMレジスク、801〜804 
 ・・ダウンカウンタ、900・・周辺バス
FIG. 1 is a block diagram showing the configuration of a pulse width modulation output device according to an embodiment of the present invention. FIG. 2 is a connection diagram showing the circuit configuration of a unit bit cell of the CAM shown in FIG. 1. Figures 3 (A) to (S) and Figures 4 (A) to (Evening) are
FIG. 6 is a timing chart for explaining the operation in each embodiment of the present invention. FIG. 5 is a configuration block diagram showing a conventional example. (Main reference number) 10.20...Pulse width modulation output setting, lOO...RA
M part, 200... CAM part, 210... CAM cell, 211-214... CAM coincidence signal line, 220...
・Data holding section, 230.. Comparison section, 270.. PWM bus, 280.. Comparison data bus, 400.. Free running counter (FRC), 1l
O1...Overflow signal line, 1111-1114...Timing signal line, 500
・・R-S flip-flop section, 701 to 704.71
1~714...PWM Regisc, 801~804
・・Down counter, 900・・Surrounding bus

Claims (1)

【特許請求の範囲】 所定のカウントクロックを計数するフリーランニングカ
ウンタと、 パルス幅変調情報を保持する第1記憶手段と、タイミン
グ制御部と、 該タイミング制御部の制御によって、前記第1記憶手段
から転送される前記パルス幅変調情報を保持し、前記フ
リーランニングカウンタの計数状態情報を受信して、当
該両情報間に所定の関係が成立するときに検知信号を発
生する第2記憶手段と、 前記フリーランニングカウンタのオーバーフロー信号お
よび前記第2記憶手段によって発生される検知信号によ
って、パルス幅を制御してパルス出力信号を発生する出
力制御部と、 を有するように構成されたことを特徴とするパルス幅変
調出力装置。
[Scope of Claims] A free-running counter that counts a predetermined count clock; a first storage unit that retains pulse width modulation information; a timing control unit; a second storage means that holds the transferred pulse width modulation information, receives counting state information of the free running counter, and generates a detection signal when a predetermined relationship is established between the two pieces of information; an output control unit that controls a pulse width and generates a pulse output signal based on an overflow signal of a free running counter and a detection signal generated by the second storage means; Width modulation output device.
JP60270533A 1985-11-30 1985-11-30 Pulse width modulation output device Granted JPS62130015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60270533A JPS62130015A (en) 1985-11-30 1985-11-30 Pulse width modulation output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60270533A JPS62130015A (en) 1985-11-30 1985-11-30 Pulse width modulation output device

Publications (2)

Publication Number Publication Date
JPS62130015A true JPS62130015A (en) 1987-06-12
JPH0476532B2 JPH0476532B2 (en) 1992-12-03

Family

ID=17487536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60270533A Granted JPS62130015A (en) 1985-11-30 1985-11-30 Pulse width modulation output device

Country Status (1)

Country Link
JP (1) JPS62130015A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09308249A (en) * 1996-05-09 1997-11-28 Toshiba Corp Power converter

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5115959A (en) * 1974-07-31 1976-02-07 Metsupu Kk
JPS58182924A (en) * 1982-04-21 1983-10-26 Hitachi Ltd Signal generating circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5115959A (en) * 1974-07-31 1976-02-07 Metsupu Kk
JPS58182924A (en) * 1982-04-21 1983-10-26 Hitachi Ltd Signal generating circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09308249A (en) * 1996-05-09 1997-11-28 Toshiba Corp Power converter

Also Published As

Publication number Publication date
JPH0476532B2 (en) 1992-12-03

Similar Documents

Publication Publication Date Title
JPS62140072A (en) Digital phase meter circuit
JPS6162963A (en) Method and apparatus for transferring data word from small register to large register
JPS5923647A (en) Method of converting serial data signal and converting circuit
JPS62130015A (en) Pulse width modulation output device
US5111488A (en) Doubling/dividing device for a series bit flow
US6366527B2 (en) Circuit configuration for generating an output clock signal with optimized signal generation time
KR960032217A (en) Serial Data Output Method of Dual Port Memory Device and Dual Port Memory Device
GB2403858A (en) Analog-to-digital interfacing device
JPS6316711A (en) Timing device
US6744833B1 (en) Data resynchronization between modules sharing a common clock
KR20010006850A (en) Improved skew pointer generation
SU1128246A1 (en) Interface
RU2011217C1 (en) Device for mating computer with communication channel
RU2022345C1 (en) Interfaces matching device
JPS61243527A (en) Bit buffer circuit
US5023870A (en) Interface circuit for data transmission between a microprocessor system and a time-division-multiplexed system
SU1282143A1 (en) Information input device
SU1536366A1 (en) Device for information input/output device
SU1241221A1 (en) Information output device
SU807492A1 (en) Terniary reversible n-digit pulse counter
JPS5541037A (en) Data sampling system of video display unit
SU1238088A1 (en) Interface for linking computer with using equipment
SU1013940A1 (en) Device for interfacing measuring instrument to digital computer
SU1716534A1 (en) For simulation of queueing system
SU1481901A1 (en) Serializer-deserializer