JPH0191534A - Pwm/nrz converting circuit - Google Patents
Pwm/nrz converting circuitInfo
- Publication number
- JPH0191534A JPH0191534A JP24826987A JP24826987A JPH0191534A JP H0191534 A JPH0191534 A JP H0191534A JP 24826987 A JP24826987 A JP 24826987A JP 24826987 A JP24826987 A JP 24826987A JP H0191534 A JPH0191534 A JP H0191534A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- output
- signal
- pwm
- pwm signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 29
- 238000003708 edge detection Methods 0.000 claims description 23
- 230000000737 periodic effect Effects 0.000 abstract 1
- 230000000630 rising effect Effects 0.000 description 14
- 230000002159 abnormal effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 206010003694 Atrophy Diseases 0.000 description 1
- 230000037444 atrophy Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Dc Digital Transmission (AREA)
Abstract
Description
【発明の詳細な説明】
(イ)産業上の利用分野
この発明はパルス幅変調された信号(PWM信号)を、
NRZ信号に変換するPWM/NRZ変換回路に関する
。DETAILED DESCRIPTION OF THE INVENTION (a) Industrial application field This invention uses a pulse width modulated signal (PWM signal) to
The present invention relates to a PWM/NRZ conversion circuit that converts into an NRZ signal.
(ロ)従来の技術
従来のPWM/NRZ変換回路には、PWM信号の1ビ
ツトのスタート時点(信号の立上がり、または立下がり
)よりカウンタを起動して、そのカウントアツプ出力よ
りPWM信号にラッチをかけ、NRZ信号に変換する回
路と、カウンタの代わりにモノステーブルバイブレーク
を用い、その出力信号でPWM信号をラッチしてNRZ
信号に変換するものがある。(B) Conventional technology Conventional PWM/NRZ conversion circuits start a counter at the start of one bit of the PWM signal (rising or falling of the signal), and latch the PWM signal from the count-up output. A circuit that converts the PWM signal into an NRZ signal, and a monostable bi-break instead of a counter, latches the PWM signal with its output signal and converts it to an NRZ signal.
There is something that converts it into a signal.
一般に、PWM信号は、第3図に示すように、所定のビ
ット期間T、に対し、例えば論理″0”は、ビットスタ
ート時より、1/2Tb以上に亘り、ハイレベルとし、
論理1パは、ビットスタート時から1/2T、より短い
期間に亘り、ハイレベルとされる(論理とレベルの対応
が、この逆の場合もある。)。Generally, as shown in FIG. 3, for a predetermined bit period T, a PWM signal, for example, a logic "0" is at a high level for 1/2 Tb or more from the bit start, and
The logic 1 pin is kept at a high level for a shorter period of 1/2T from the start of the bit (the correspondence between logic and level may be reversed).
上記した、従来のカウンタ使用の変換回路は、第6図に
示すように立上がり検出回路1に、PWM信号が入力さ
れ、また、このPWM信号がラッチ用のD型フリップフ
ロップ3のD端子に加えられている。立上がり検出回路
1の立上がり検出パルスがカウンタ2のリセット入力と
して加えられ、カウンタ2は、一定周期のクロック信号
をカウントし、カウントアツプ出力をD型フリップフロ
ップ3のCK端子に加えている。In the above-mentioned conventional conversion circuit using a counter, a PWM signal is input to the rising edge detection circuit 1 as shown in FIG. It is being The rising edge detection pulse of the rising edge detection circuit 1 is applied as a reset input to the counter 2, and the counter 2 counts the clock signal of a constant period and applies a count-up output to the CK terminal of the D-type flip-flop 3.
この変換回路では、入力されるPWM信号が立上がる毎
に立上がり検出パルスが立上がり検出回路1より出力さ
れ(第3図のb参照)、これによりカウンタ2がリセッ
トされ、その後カウンタ2がクロンクパルスをカウント
し、カウントアツプすると、そのカウントアツプ出力(
第3図のc参照)で、PWM信号のレベルがD型フリッ
プフロップ3にラッチされる。カウンタ2のカウントア
ツプ時点が予め1/2Tbに設定しているため、例えば
PWM信号が“0”であるビットでは、カウントアツプ
時にPWM信号がハイレベルであり、このハイレベルが
D型フリップフロップ3に記憶され、フリップフロップ
3の夏出力端より、ローレベル信号、つまりNRZ信号
の“′0“が出力される(第3図のd参照)。一方、P
WM信号が“1′′であるビットでは、カウントアツプ
時に、PWM信号がローレベルであり、このローレベル
がD型フリップフロップ3に記憶され、フリップフロッ
プ3の−q−出力端より、ハイレベル信号、っまりNR
Z信号の“1”が出力される(第3図のd参照)。In this conversion circuit, every time the input PWM signal rises, a rising detection pulse is output from the rising detection circuit 1 (see b in Figure 3), which resets the counter 2, and then the counter 2 outputs a clock pulse. When you count up and count up, the count up output (
(see c in FIG. 3), the level of the PWM signal is latched in the D-type flip-flop 3. Since the count-up point of the counter 2 is set in advance to 1/2Tb, for example, in a bit where the PWM signal is "0", the PWM signal is at a high level at the time of count-up, and this high level is the D-type flip-flop 3. The low level signal, that is, the NRZ signal "'0" is output from the summer output terminal of the flip-flop 3 (see d in FIG. 3). On the other hand, P
In the bit where the WM signal is "1", the PWM signal is at a low level at the time of count-up, this low level is stored in the D-type flip-flop 3, and the -q- output terminal of the flip-flop 3 outputs a high level. Signal, completely NR
The Z signal "1" is output (see d in FIG. 3).
このようにしてPWMからNRZへの信号変IQがなさ
れる。In this way, signal change IQ from PWM to NRZ is performed.
従来のモノステーブルマルチバイブレーク使用の変換回
路は第7図に示すとおり、第6図のカウンタ2に代えて
、モノステーブルマルチバイブレータ4を採用しており
、PWM信号の立上がり検出パルスで、モノステーブル
マルチバイブレーク4がトリガされ、その出力がローと
なるタイミングで、D型フリップフロップ3がPWM信
号を記憶するようにしている。モノステーブルマルチバ
イブレーク4のワンショット期間が予め1/2T、に定
められており、その他の動作は、第6図に示した回路と
ほぼ同様である。As shown in Figure 7, the conventional conversion circuit using a monostable multivibrator uses a monostable multivibrator 4 in place of the counter 2 shown in Figure 6, and converts the monostable multivibrator using the rising edge detection pulse of the PWM signal. The D-type flip-flop 3 stores the PWM signal at the timing when the break 4 is triggered and its output becomes low. The one-shot period of the monostable multi-by-break 4 is preset to 1/2T, and the other operations are almost the same as the circuit shown in FIG.
(ハ)発明が解決しようとする問題点
上記した従来のPWM/NRZ変換回路は、カウンタ使
用のものにしろ、モノステーブルマルチバイブレーク使
用のものにしろ、PWM信号をD型フリップフロップに
ラッチするタイミングは、カウント値あるいはワンショ
ット期間で決まるものであり、ビットスタート点から固
定である。そのため、例えば第4図のPWM信号のA、
で示すように、′0”と“1”を規定するデユーティ比
が明確に相違する場合は問題ないが、外乱等の影響で、
PWM信号の周期が変化した場合、例えば第4図のPW
M信号のD8で示すように周期が短くなった時、PWM
信号のデユーティ比が50%以上であるにもかかわらず
、論理“l 11に誤って変換したり(第4図のd参照
)、逆に第4図のPWM信号のDbで示すように周期が
長くなった時に、PWM信号のデユーティ比が50%内
であるにもかかわらず論理“0゛′に誤って変換しく第
4図のd参照)、変換精度を下げるという問題があった
。また、モノマルチ方式では、単安定時間を決める要素
は、アナログ回路によるため、PWM信号の周期が正常
でも温痩等の環境変化の影響で単安定時間が変動し、上
記と同種の誤変換が生じるという問題があった。(C) Problems to be Solved by the Invention In the conventional PWM/NRZ conversion circuits described above, whether they use a counter or a monostable multi-by-break, the timing of latching the PWM signal to the D-type flip-flop is is determined by the count value or one-shot period, and is fixed from the bit start point. Therefore, for example, A of the PWM signal in Fig. 4,
As shown in , there is no problem if the duty ratio that defines '0' and '1' is clearly different, but due to the influence of disturbance etc.
If the period of the PWM signal changes, for example, the PW in Fig. 4
When the period becomes short as shown by D8 of the M signal, the PWM
Even though the duty ratio of the signal is 50% or more, it may be incorrectly converted to logic "11" (see d in Figure 4), or conversely, the period may be changed as shown by Db of the PWM signal in Figure 4. When the length increases, there is a problem in that the PWM signal is erroneously converted to logic "0'' even though the duty ratio is within 50% (see d in FIG. 4), lowering the conversion accuracy. In addition, in the monomulti system, the element that determines the monostable time is an analog circuit, so even if the period of the PWM signal is normal, the monostable time fluctuates due to environmental changes such as temperature and atrophy, causing the same type of erroneous conversion as above. There was a problem that occurred.
この発明は、上記問題点に着目してなされたもので、P
WM信号のハイ時間とロー時間の時間差により、論理“
0”、“1”を判別し、PWM信号の周期変動等に影響
されることなく、正しく変換ができるPWM/NRZ変
換回路を堤供することを目的としている。This invention was made focusing on the above problems, and
Due to the time difference between the high time and low time of the WM signal, the logic “
The purpose of the present invention is to provide a PWM/NRZ conversion circuit that can distinguish between "0" and "1" and perform correct conversion without being affected by period fluctuations of PWM signals.
(ニ)問題点を解決するための手段及び作用この発明の
PWM/NRZ変換回路は、PWM信号を受け、PWM
信号の各ビットのスタートエツジを検出するエツジ検出
回路と、このエツジ検出回路のエツジ検出出力により、
リセットされ、前記PWM信号が第1のレベルの時にク
ロックパルスを受けてアップカウントし、第2のレベル
の時にクロックパルスを受けてダウンカウントするアッ
プダウンカウンタと、このアップダウンカウンタのカウ
ント出力値に応じて、論理出力する論理回路と、前記エ
ツジ検出出力に応答して前記論理回路の論理出力を記憶
する記憶回路とから構成されている。(d) Means and operation for solving the problem The PWM/NRZ conversion circuit of the present invention receives a PWM signal,
An edge detection circuit that detects the start edge of each bit of the signal and an edge detection output of this edge detection circuit,
an up-down counter that is reset and counts up in response to a clock pulse when the PWM signal is at a first level, and counts down in response to a clock pulse when the PWM signal is at a second level; and a count output value of this up-down counter. Accordingly, it is comprised of a logic circuit that outputs logic, and a storage circuit that stores the logic output of the logic circuit in response to the edge detection output.
このPWM/NRZ変換回路では、PWM信号がエツジ
検出回路に入力され、PWM信号の各ビットのスタート
エツジが検出される度に、エツジ検出パルスにより、ア
ップダウンカウンタがリセットされる。そして、アップ
ダウンカウンタは、次にリセットされるまで、クロック
パルスをカウントする。もっともPWM信号が第1のレ
ベル(例:ハイレベル)の時に、クロックパルスをアッ
プカウントし、PWM信号が第2のレベル(例:ローレ
ベル)時にクロックパルスをダウンカウントする。アッ
プダウンカウンタのリセット時に、カウント出力値に応
じて論理回路が論理出力する。In this PWM/NRZ conversion circuit, the PWM signal is input to the edge detection circuit, and each time the start edge of each bit of the PWM signal is detected, the up/down counter is reset by the edge detection pulse. The up/down counter then counts clock pulses until it is next reset. However, when the PWM signal is at the first level (eg, high level), the clock pulses are counted up, and when the PWM signal is at the second level (eg, low level), the clock pulses are counted down. When the up/down counter is reset, the logic circuit outputs a logic value according to the count output value.
例えば、カウント値が所定値以上であれば、第1の論理
出力、カウント値が所定値以下であれば、第2の論理出
力が出力される。この第1あるいは第2の論理出力が、
それぞれ記憶回路に記憶され、NRZ信号として出力さ
れる。アップダウンカウンタはPWM信号のレベル状態
に応じて、アップカウントあるいはダウンカウントする
ので、ハイレベルとローレベルの幅の差値がカウントさ
れることになり、PWM信号の周期が変動しても、アッ
プダウンカウンタのカウント値から“0゛、1゛′等の
論理状態が明確に区別される。For example, if the count value is greater than or equal to a predetermined value, a first logic output is output, and if the count value is less than or equal to a predetermined value, a second logic output is output. This first or second logical output is
Each is stored in a storage circuit and output as an NRZ signal. The up/down counter counts up or down depending on the level state of the PWM signal, so the difference between the widths of the high level and the low level is counted. Logic states such as "0", "1", etc. can be clearly distinguished from the count value of the down counter.
(ホ)実施例
以下、実施例により、この発明をさらに詳細に説明する
。(E) Examples The present invention will be explained in more detail with reference to Examples below.
第1図は、この発明の一実施例を示すPWM/NRZ変
換回路のブロック図である。同図において、PWM信号
が立上がり検出回路11に入力されている。また、PW
M信号がアップダウンカウンタのアップ/ダウン切替信
号として入力されている。立上がり検出回路11は、第
4図及び第5図の立上がり検出回路1と特に機能的に変
わるところがなく、PWM信号のビットスタート時の立
上がりを検出し、立上がり検出パルスを、アップダウン
カウンタ12のリセット端に入力し、また、D型フリッ
プフロップI3.14.15のCK端子に入力している
。FIG. 1 is a block diagram of a PWM/NRZ conversion circuit showing one embodiment of the present invention. In the figure, a PWM signal is input to a rising edge detection circuit 11. Also, PW
The M signal is input as an up/down switching signal for the up/down counter. The rising edge detection circuit 11 is functionally the same as the rising edge detection circuit 1 shown in FIGS. It is also input to the CK terminal of the D-type flip-flop I3.14.15.
アップダウンカウンタ12は、クロックパルスを受ける
と、これをカウントする。カウントの態様は、PWM信
号がハイの時に、アップカウントをPWM信号がローの
時にダウンカウントを行う。The up/down counter 12 counts clock pulses upon receiving them. The manner of counting is to count up when the PWM signal is high, and to count down when the PWM signal is low.
アンプダウンカウンタ12はQA、QB、、Qc、・・
・0、Q、の出力端を有し、出力端Q、、Qc、Qn、
QyがAND回路16及びNOR回路17の入力端に接
続され、また、出力端Q、はさらにD型フリップフロッ
プ14のD入力端に接続されるとともに、インバータ1
9を介して、AND回路20の入力端の一つに、インバ
ータ21を介してNOR回路22の入力端の一つにそれ
ぞ接続れている。さらに、出力端Q、、Q、 、Q、が
AND回路20及びNOR回路22の入力端にそれぞれ
接続されている。AND回路16の出力端とN。The amplifier down counter 12 has QA, QB, ,Qc,...
・Has output terminals 0, Q, and output terminals Q, , Qc, Qn,
Qy is connected to the input terminals of the AND circuit 16 and the NOR circuit 17, and the output terminal Q is further connected to the D input terminal of the D-type flip-flop 14, and the inverter 1
9 to one of the input terminals of the AND circuit 20 and via the inverter 21 to one of the input terminals of the NOR circuit 22. Further, output terminals Q, , Q, , Q, are connected to input terminals of an AND circuit 20 and a NOR circuit 22, respectively. the output terminal of the AND circuit 16 and N.
R回路17の出力端がOR回路18の入力端に接続され
、OR回路1日の出力端が、D型フリップフロップ13
のD入力端に接続されている。このAND回路16とN
OR回路17とOR回路18で、PWM信号のデユーテ
ィ、つまりハイとロー比率が1であり、ハイとローがほ
ぼイコールであることを検出するための論理回路24を
構成している。The output terminal of the R circuit 17 is connected to the input terminal of the OR circuit 18, and the output terminal of the OR circuit 1 is connected to the D-type flip-flop 13.
is connected to the D input terminal of This AND circuit 16 and N
The OR circuit 17 and the OR circuit 18 constitute a logic circuit 24 for detecting that the duty of the PWM signal, that is, the high-to-low ratio is 1, and that high and low are approximately equal.
AND回路20の出力端とNOR回路22の出力端はO
R回路23の入力端に接続され、OR回路23の出力端
がD型フリップフロップ15のD入力端に接続されてい
る。このAND回路20とNOR回路22とOR回路2
3、インバータ21で、PWM信号のデユーティ、つま
りハイとローの比率が極端であり、エラーであることを
検出するための論理回路25を構成している。なお、ア
ップダウンカウンク12の出力端QEに、変換されるN
RZ信号が“1°”であるか“0′であるかを示す論理
信号が出力される。The output terminal of the AND circuit 20 and the output terminal of the NOR circuit 22 are O.
It is connected to the input end of the R circuit 23, and the output end of the OR circuit 23 is connected to the D input end of the D-type flip-flop 15. This AND circuit 20, NOR circuit 22, and OR circuit 2
3. The inverter 21 constitutes a logic circuit 25 for detecting that the duty of the PWM signal, that is, the ratio of high and low levels is extreme, resulting in an error. Note that the converted N
A logic signal indicating whether the RZ signal is "1°" or "0" is output.
D型フリップフロップ13のQ出力端から、不コール信
号が、D型フリップフロップ14の頁出力端からNRZ
信号が、D型フリップフロップ15のQ出力端エラー信
号がそれぞれ出力されるようになっている。A non-call signal is output from the Q output terminal of the D-type flip-flop 13, and an NRZ signal is output from the page output terminal of the D-type flip-flop 14.
The Q output terminal error signal of the D-type flip-flop 15 is output as a signal.
次に、実施例PWM/NRZ変換回路の動作について説
明する。第4図のaに示す如きPWM信号が立上がり検
出回路11に加えられると、PWM信号の各ビットのス
タート点、つまり立上がり点に達する毎に、立上がり検
出回路11より、エツジ検出パルス信号が出力され(第
4図のb参照)、これにより、アップダウンカウンタ1
2がリセットされると同時に起動され、クロックパルス
のカウントを開始する。PWM信号の周期よりも十分に
短い周期のクロックパルスが加えられている。Next, the operation of the embodiment PWM/NRZ conversion circuit will be explained. When a PWM signal as shown in a in FIG. 4 is applied to the rising edge detection circuit 11, an edge detection pulse signal is output from the rising edge detection circuit 11 every time the PWM signal reaches the start point of each bit, that is, the rising point. (See b in Figure 4), this causes the up/down counter 1
2 is activated at the same time as it is reset and starts counting clock pulses. A clock pulse with a cycle sufficiently shorter than that of the PWM signal is applied.
精度の良い変換動作が要請されるシステム程、クロック
パルスの周期が短くされる。PWM信号がハイレベルの
間は、アップカウントするので、起動当初は時間の経過
とともに、アップダウンカウンタ12のカウント値が増
加していく。やがて、PWM信号がローレベルとなると
、アップダウンカウンタ12は、ダウンカウントに移り
、それまで、アップカウントしたカウント値から時間の
経過とともに、カウント値を減少させていく。やがて、
次のエツジ検出パルスが到来すると、アップダウンカウ
ンタ12はリセットされるが、同時に出力端Q、の出力
がD型フリップフロンプ14に、OR回路18の出力が
D型フリップフロップ】3に、OR回路23の出力がD
型フリップフロップ15にそれぞれラッチされる。The more accurate a conversion operation is required in a system, the shorter the period of the clock pulse is. Since the PWM signal counts up while the PWM signal is at a high level, the count value of the up/down counter 12 increases as time passes at the beginning of startup. Eventually, when the PWM signal becomes low level, the up/down counter 12 starts counting down, and decreases the count value as time passes from the count value that was counted up until then. Eventually,
When the next edge detection pulse arrives, the up/down counter 12 is reset, but at the same time, the output of the output terminal Q is sent to the D-type flip-flop 14, and the output of the OR circuit 18 is sent to the D-type flip-flop 3. The output of circuit 23 is D
They are latched by type flip-flops 15, respectively.
今、PWM信号のハイとローの期間が正常で、ハイの期
間〉ローの期間の場合(例えば第4図のaの期間A、)
には、アップダウンカウンタ12の各ビットのカウント
内容は、第5図のSで示すようになり、この場合、出力
端Q、は“0″なので、この“0”が、D型フリップフ
ロップ14に記憶され、次のリセット時まで、出力端Q
より、“O”のNRZ信号が出力される。Now, if the high and low periods of the PWM signal are normal, and the high period > the low period (for example, period A in Figure 4 a)
In this case, the count contents of each bit of the up/down counter 12 are as shown by S in FIG. is stored in the output terminal Q until the next reset.
As a result, an NRZ signal of "O" is output.
これに対し、ハイとローの期間が正常で、ハイの期間〈
ローの期間の場合(第4回のaの期間Ab)には、アッ
プダウンカウンタ12の各ビットのカウント内容は、第
5図の9で示すようになり、この場合、出力端Q、は、
“1”なので、このビがD型フリッププロップ14に記
憶され、次のリセット時まで、出力端Qより、°“1゛
′のNRZ信号が出力される(第4図のe参照)。In contrast, the high and low periods are normal, and the high period <
In the case of a low period (period Ab of the fourth a), the count contents of each bit of the up/down counter 12 become as shown by 9 in FIG. 5, and in this case, the output terminal Q,
Since it is "1", this bit is stored in the D-type flip-flop 14, and an NRZ signal of "1" is outputted from the output terminal Q until the next reset (see e in FIG. 4).
PWM信号のハイとローの期間が、はぼイコールに等し
い場合(第4図のaの期間C)には、各ビット出力は、
第5図のrに示すようになり、Q= 、Q−、Q−、Q
Eの全ビットが“1”あるいは“0”となるので、AN
D回路16の出力あるいはNOR回路17の出力がハイ
となるので、OR回路18の出力もハイとなり、次のエ
ツジ検出パルスで、OR回路18のハイがD型フリップ
フロップ13に記憶され、夏山力、つまり7了:■がロ
ーとなる(第4図のf参照)。イコールの場合、フリッ
プフロップ14の出力は、“0”か“1”となる(第4
図のe参照)がイコール出力が得られるため、正常な“
0″と“′1”に対して区別ができる。このPWM/N
RZ変換回路は、II OIIと“1″の論理の他に“
イコール”の論理識別が可能であり、このイコール領域
を積極的に利用することにより、3ステートの変更が可
能である。When the high and low periods of the PWM signal are equal to each other (period C in a of FIG. 4), each bit output is
As shown in r in Figure 5, Q= , Q-, Q-, Q
Since all bits of E are “1” or “0”, AN
Since the output of the D circuit 16 or the output of the NOR circuit 17 becomes high, the output of the OR circuit 18 also becomes high, and with the next edge detection pulse, the high of the OR circuit 18 is stored in the D-type flip-flop 13, and the output of the NOR circuit 17 becomes high. , that is, 7 completed: ■ becomes low (see f in Figure 4). In the case of equality, the output of the flip-flop 14 is “0” or “1” (the fourth
(see e in the figure) can obtain an equal output, so it is normal.
0" and "'1" can be distinguished. This PWM/N
In addition to II OII and “1” logic, the RZ conversion circuit has “
"Equal" logical discrimination is possible, and by actively utilizing this equal area, three states can be changed.
PWM信号のハイとローの期間比率が異常で、ハイの期
間くローの期間の場合(第4図の、aの期間B、)には
、アップダウンカウンタ12の各ビット内容は、第5図
のPで示すようになり、QFが“0”、Q、 、QG、
QHが“1”°となるので、AND回路20の出力がハ
イとなり、OR回路23の出力がハイとなり、このハイ
がD型フリップフロップ15に記憶され、夏山力、つま
りY了:出力がローとなり(第4図のg参照)、PWM
信号が異常であることを示す信号が出力される。If the ratio of the high and low periods of the PWM signal is abnormal, and the high period is less than the low period (period B of a in FIG. 4), the contents of each bit of the up/down counter 12 are as shown in FIG. , QF is “0”, Q, , QG,
Since QH becomes "1", the output of the AND circuit 20 becomes high, the output of the OR circuit 23 becomes high, this high is stored in the D-type flip-flop 15, and the output becomes low. Next (see g in Figure 4), PWM
A signal indicating that the signal is abnormal is output.
同様に、PWM信号のハイとローの期間比率が異常で、
ハイの期間)ロー期間の場合(第4図のaの期間Bb)
には、Q、ビットが°“1°゛で、Qv 、QGSQH
は“0”′なので、この場合、N0R回路22の出力が
ハイとなり、OR@にδ23の出力がハイとなり、D型
フリップフロップ15に、このハイが記憶されるエフ−
出力がローとなる。Similarly, the high and low period ratio of the PWM signal is abnormal,
High period) Low period (period Bb of a in Figure 4)
, Q, bit is °“1°”, Qv , QGSQH
is "0"', so in this case, the output of the N0R circuit 22 becomes high, the output of δ23 becomes high in OR@, and the D-type flip-flop 15 stores the high value.
Output goes low.
以上のように、このPWM/NRZ変換回路では、正常
なPWM信号と、ハイとローの幅に異常がある場合の信
号の区別を明確にできる。また、第4図のaの期間り、
のように周期が縮んだ場合、あるいは期間り、のように
、周期が延びた場合でも、NRZ信号の出力はアップダ
ウンカウンタ12の内容、つまりPWM信号の1周期の
ハイとローの幅差で求められることになるので、正確な
′“1゛、“0”等を得ることができる。As described above, in this PWM/NRZ conversion circuit, it is possible to clearly distinguish between a normal PWM signal and a signal in which the high and low widths are abnormal. Also, during the period a in Figure 4,
Even if the period is shortened as in , or extended as in , the output of the NRZ signal is based on the contents of the up/down counter 12, that is, the difference in width between high and low in one period of the PWM signal. Therefore, accurate ``1'', ``0'', etc. can be obtained.
なお、上記実施例では、11′、′0°゛の判別の他に
、イコールエラーの判別を行うために論理回路24.2
5、D型フリップフロップ13.15を設けているが、
システムにより、アップダウンカウンタのカランタイ直
が、イコール領域rや、エラー領域p、tに停止しない
ことが前提となるものでは、論理回路24.25、D型
フリップフロンブ13.15は設けなくてもよい。In addition, in the above embodiment, in addition to determining 11' and '0°'', the logic circuit 24.2 is used to determine an equal error.
5. A D-type flip-flop 13.15 is provided,
If the system is based on the assumption that the up/down counter does not stop in the equal area r or error areas p and t, the logic circuits 24 and 25 and the D-type flip-flops 13 and 15 may not be provided. Good too.
また、論理回路24.25を設ける場合でも、クロック
パルスの周期、P% q、r、sもの領域をどの程度の
範囲とするかにより、内部の論理パターン構成が相違す
るので、論理回路の内部構成は実施例に限定されるもの
ではない。Furthermore, even when a logic circuit 24 or 25 is provided, the internal logic pattern configuration differs depending on the period of the clock pulse and the extent of the P% q, r, and s regions. The configuration is not limited to the embodiment.
(へ)発明の効果
この発明によれば、アップダウンカウンタを設け、PW
M信号の1ビツトの周期において、第1のレベル(ロー
)状態では、クロックパルスをカウントアツプし、第2
のレベル(ハイ)状態ではクロックパルスをカウントダ
ウンし、ハイの期間とローの期間の差に応じたカウント
値により、NRZの“ビもしくは“0”等を得るもので
あるから、たとえPWM信号の周期が変動しても、差値
は、それほど大きく変動しないがら、確実に1″、40
″を判別し、変換を精度良く行うことができる。(f) Effects of the invention According to this invention, an up/down counter is provided and the PW
In the period of 1 bit of the M signal, in the first level (low) state, the clock pulse is counted up, and the clock pulse is counted up in the second level (low) state.
In the level (high) state, the clock pulse is counted down, and the count value corresponding to the difference between the high period and the low period is used to obtain the NRZ “bi” or “0”, so even if the period of the PWM signal Even if the value changes, the difference value will not change that much, but it will definitely be 1″, 40
” and perform conversion with high accuracy.
第1図は、この発明の一実施例を示すPWM/NRZ変
換回路のブロック図、第2図(A)、第2図(B)は、
同PWM/NRZ変換回路に使用されるエツジ検出回路
のブロック図、第3図は、従来及び上記実施例のPWM
/NRZ変換回路の一般的な動作を説明するためのタイ
ムチャート、第4図は、従来及び上記実施例のP WM
/N RZ変換回路の異常時の動作を説明するためのタ
イムチャート、第5図は、実施例P W M / N
RZ変換回路の動作を説明するため、アップダウンカウ
ンタの真理値表と、論理出力の関係を説明するための図
、第6図、第7図は従来のPWM/NRZ変換回路を示
すブロック図である。
11:立上がり検出回路、
12ニアツブダウンカウンタ、
13・14・15:D型フリップフロップ、24・25
:論理回路。
特許出願人 立石電機株式会社代理人 弁理
士 中 村 茂 信
第 2 図(A)
(MSBI QHQcQ、Q、QQQcQ9Q、 (L
SB)第5図
を
翫
翫
」FIG. 1 is a block diagram of a PWM/NRZ conversion circuit showing an embodiment of the present invention, and FIGS. 2(A) and 2(B) are
A block diagram of the edge detection circuit used in the PWM/NRZ conversion circuit, FIG. 3, shows the PWM of the conventional and the above embodiments.
FIG. 4 is a time chart for explaining the general operation of the /NRZ conversion circuit.
/N Figure 5 is a time chart for explaining the operation of the RZ conversion circuit during abnormal conditions.
In order to explain the operation of the RZ conversion circuit, a truth table of an up-down counter and a diagram to explain the relationship between logical outputs, and FIGS. 6 and 7 are block diagrams showing a conventional PWM/NRZ conversion circuit. be. 11: Rising detection circuit, 12 near-tube down counter, 13/14/15: D-type flip-flop, 24/25
:Logic circuit. Patent Applicant Tateishi Electric Co., Ltd. Agent Patent Attorney Shigeru Nakamura Figure 2 (A) (MSBI QHQcQ, Q, QQQcQ9Q, (L
SB) Take a look at Figure 5.
Claims (3)
ートエッジを検出するエッジ検出回路と、このエッジ検
出回路のエッジ検出出力により、リセットされ、前記P
WM信号が第1のレベルの時にクロックパルスを受けて
アップカウントし、第2のレベルの時にクロックパルス
を受けてダウンカウントするアップダウンカウンタと、
このアップダウンカウンタのカウント出力値に応じて、
論理出力する論理回路と、前記エッジ検出出力に応答し
て前記論理回路の論理出力を記憶する記憶回路とからな
るPWM/NRZ変換回路。(1) An edge detection circuit that receives the PWM signal and detects the start edge of each bit of the PWM signal, and is reset by the edge detection output of this edge detection circuit, and the
an up/down counter that receives a clock pulse when the WM signal is at a first level and counts up, and receives a clock pulse when the WM signal is at a second level and counts down;
Depending on the count output value of this up/down counter,
A PWM/NRZ conversion circuit comprising a logic circuit that outputs logic, and a storage circuit that stores the logic output of the logic circuit in response to the edge detection output.
ウント出力値が異なる第1、第2及び第3の所定領域内
であることに応答して異なる論理出力をなすものである
特許請求の範囲第1項記載のPWM/NRZ変換回路。(2) The logic circuit provides different logic outputs in response to count output values of the up-down counter being within different first, second, and third predetermined regions. PWM/NRZ conversion circuit according to item 1.
領域外であることに応答して論理出力部分を含み、この
論理出力をエラーとして記憶するエラー記憶回路を備え
るものである特許請求の範囲第2項記載のPWM/NR
Z変換回路。(3) The logic circuit includes an error storage circuit that includes a logic output portion in response to being outside the first, second, and third predetermined areas, and stores this logic output as an error. PWM/NR according to claim 2
Z conversion circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24826987A JPH0191534A (en) | 1987-10-01 | 1987-10-01 | Pwm/nrz converting circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24826987A JPH0191534A (en) | 1987-10-01 | 1987-10-01 | Pwm/nrz converting circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0191534A true JPH0191534A (en) | 1989-04-11 |
Family
ID=17175616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24826987A Pending JPH0191534A (en) | 1987-10-01 | 1987-10-01 | Pwm/nrz converting circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0191534A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7733947B2 (en) | 2001-04-09 | 2010-06-08 | Mitsubishi Denki Kabushiki Kaisha | Data transceiving method and data transceiving equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5532064A (en) * | 1978-08-29 | 1980-03-06 | Seiko Epson Corp | Liquid crystal color display device |
JPS5637815A (en) * | 1979-09-05 | 1981-04-11 | Hitachi Ltd | Demodulator for pulse-width-modulated signal |
-
1987
- 1987-10-01 JP JP24826987A patent/JPH0191534A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5532064A (en) * | 1978-08-29 | 1980-03-06 | Seiko Epson Corp | Liquid crystal color display device |
JPS5637815A (en) * | 1979-09-05 | 1981-04-11 | Hitachi Ltd | Demodulator for pulse-width-modulated signal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7733947B2 (en) | 2001-04-09 | 2010-06-08 | Mitsubishi Denki Kabushiki Kaisha | Data transceiving method and data transceiving equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0304791B1 (en) | Phase-locked loop having elongated time for charge and discharge | |
US4667338A (en) | Noise elimination circuit for eliminating noise signals from binary data | |
US4799024A (en) | Circuit arrangement to monitor the time spacing of signals | |
US6218868B1 (en) | Phase comparator | |
CA1176716A (en) | Duty cycle monitor circuit | |
US6229864B1 (en) | Phase locked loop lock condition detector | |
JPH0191534A (en) | Pwm/nrz converting circuit | |
US3541356A (en) | Rs,jk flip-flop building block for logical circuits | |
JPH06188872A (en) | Sync protection circuit | |
JPH0634684A (en) | Phase difference digital conversion circuit | |
JPH01194715A (en) | Digital pll circuit | |
JPH04101535A (en) | Interface circuit | |
JPH0474036A (en) | Clock reception circuit | |
JPS62160834A (en) | AIS signal receiving circuit | |
JP2591210B2 (en) | Signal detection circuit | |
JPS60151876A (en) | Information reproducer | |
JPS6113732A (en) | Error pulse generating circuit | |
JP2578990B2 (en) | Pulse width modulation circuit | |
SU1443171A1 (en) | Divider of pulse recurrence rate | |
JPS57133508A (en) | Muting controller | |
JPS62232016A (en) | Clock break detecting circuit | |
JPH01235417A (en) | N-notation counter | |
JPH02241111A (en) | Signal disconnection detection circuit | |
JPH01307313A (en) | Fault detection circuit for clock signal | |
JPS6248932B2 (en) |