JP2008301017A - Digital pulse width modulation apparatus - Google Patents

Digital pulse width modulation apparatus Download PDF

Info

Publication number
JP2008301017A
JP2008301017A JP2007142974A JP2007142974A JP2008301017A JP 2008301017 A JP2008301017 A JP 2008301017A JP 2007142974 A JP2007142974 A JP 2007142974A JP 2007142974 A JP2007142974 A JP 2007142974A JP 2008301017 A JP2008301017 A JP 2008301017A
Authority
JP
Japan
Prior art keywords
clock
signal
value
control signal
edge control
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
Application number
JP2007142974A
Other languages
Japanese (ja)
Inventor
Hideo Azumai
秀夫 東井
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.)
Tritec Corp
Original Assignee
Tritec 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 Tritec Corp filed Critical Tritec Corp
Priority to JP2007142974A priority Critical patent/JP2008301017A/en
Publication of JP2008301017A publication Critical patent/JP2008301017A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a digital pulse width modulation apparatus capable of improving the resolution of pulse width modulation without using a clock of a high frequency. <P>SOLUTION: The pulse width modulation apparatus using two clocks, i.e. a clock A (100) having a frequency ä(N +1)× M} times as much as that of a sampling clock of a digital signal and a clock B (101) having a frequency äN × M} times as much as that of the sampling clock of the digital signal, specifies a pulse leading edge and a pulse trailing edge of a pulse width modulation signal by using a remainder value (113) and a quotient value (114) obtained by dividing the digital signal by N. Consequently, resolution N times as high as that of a conventional apparatus can be achieved and a highly efficient apparatus having the resolution N times as high as that of the conventional apparatus can be provided. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、半導体集積回路に搭載し、D/A変換器のひとつとして利用されるデジタル方式のパルス幅変調装置に関するものである。   The present invention relates to a digital pulse width modulation device mounted on a semiconductor integrated circuit and used as one of D / A converters.

従来、サンプリングクロックに同期してデジタル信号を受信し、デジタル信号の値に応じてパルス幅変調信号を生成する様々なデジタル方式パルス幅変調装置が知られている(例えば特許文献1参照)。   Conventionally, various digital pulse width modulation apparatuses that receive a digital signal in synchronization with a sampling clock and generate a pulse width modulation signal in accordance with the value of the digital signal are known (see, for example, Patent Document 1).

図2は、デジタル方式パルス幅変調装置の一例を示すものである。この装置は、所定の周波数のクロック(100)が供給され、クロック(100)によるカウント信号(105)を生成するカウンタ(2)と、該カウンタ信号(105)とデジタルデータ(107)を用いてパルスの前縁と後縁を決定してパルス幅変調信号(110)を生成するパルス幅変調信号生成部(4b)とが設けられている。   FIG. 2 shows an example of a digital pulse width modulation apparatus. This apparatus is supplied with a clock (100) having a predetermined frequency and generates a count signal (105) based on the clock (100), and uses the counter signal (105) and digital data (107). A pulse width modulation signal generation unit (4b) that determines a leading edge and a trailing edge of the pulse and generates a pulse width modulation signal (110) is provided.

例えば、周波数Nのクロック(100)が供給され、カウンタ(2)からは該クロック(100)によるカウント信号(105)を生成する。そして、パルス幅変調信号生成部(4b)は、例えばデジタルデータが16ビットで構成され、該デジタルデータの値が「1023」の場合にはパルス前縁をカウント信号「0」の立ち上がり時点とし、パルス後縁をカウント信号「1022」の立ち上がり時点として、デューティ100%のパルス幅変調信号を出力する。また、デジタルデータの値が「512」の場合にはパルス前縁をカウント信号「0」の立ち上がり時点とし、パルス後縁をカウント信号「511」の立ち上がり時点として、デューティ50%のパルス幅変調信号を出力する。もとより、これらパルス前縁及び後縁の特定は一定のルールに則って行われるものであり、ルールが異なればパルスの前縁および後縁の位置も当然変化し得るものである。   For example, a clock (100) having a frequency N is supplied, and the counter (2) generates a count signal (105) based on the clock (100). Then, the pulse width modulation signal generation unit (4b), for example, when the digital data is composed of 16 bits and the value of the digital data is “1023”, the leading edge of the pulse is set as the rising point of the count signal “0”, A pulse width modulation signal with a duty of 100% is output with the trailing edge of the pulse as the rising edge of the count signal “1022”. When the value of the digital data is “512”, the pulse leading edge is set to the rising point of the count signal “0” and the trailing edge of the pulse is set to the rising point of the count signal “511”. Is output. Of course, the specification of the leading and trailing edges of the pulse is performed according to a certain rule, and the positions of the leading and trailing edges of the pulse can naturally be changed if the rules are different.

特開2003−103837号公報JP 2003-103837 A

しかしながら、従来のデジタル方式パルス幅変調装置では、以下の問題がある。   However, the conventional digital pulse width modulation apparatus has the following problems.

第1に、サンプリング周波数が高くなると、サンプリング周期内におけるクロック数が少なくなり、それに伴ってカウンタのMAX値も低下する。その結果、制御できるパルス幅変調の階調数が低下する。   First, as the sampling frequency increases, the number of clocks in the sampling period decreases, and the MAX value of the counter decreases accordingly. As a result, the number of gradations of pulse width modulation that can be controlled decreases.

第2に、パルス幅変調の分解能は、使用するクロック周期までしか高められない。従って、パルス幅変調の分解能を高めるためには、使用するクロックの周波数を高くしなければならないが、カウンタと比較器が動作可能な上限周波数は、半導体の微細化プロセスの進展に依存する。この最新の微細化プロセスを利用するには、開発コストと開発期間の負担が重くなる。   Secondly, the resolution of pulse width modulation can only be increased up to the clock period used. Therefore, in order to increase the resolution of the pulse width modulation, the frequency of the clock to be used must be increased. However, the upper limit frequency at which the counter and the comparator can operate depends on the progress of the semiconductor miniaturization process. In order to use this latest miniaturization process, the burden of development cost and development period becomes heavy.

本発明は、上記問題に鑑みてなされたものであって、高い周波数のクロックを使用することなくパルス幅変調の分解能を高めることができるデジタル方式パルス幅変調装置の提供を課題とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a digital pulse width modulation apparatus capable of increasing the resolution of pulse width modulation without using a high frequency clock.

本発明は、上記課題を解決するために、デジタル信号のサンプリングクロックの{(N+1)×M}倍の周波数を有するクロックAと、デジタル信号のサンプリングクロックの{N×M}倍の周波数を有するクロックBの2つのクロックとを用いるパルス幅変調装置において、デジタル信号をNで除算した余りの値と商の値を利用してパルス幅変調信号のパルス前縁およびパルス後縁を特定するものである。   In order to solve the above problems, the present invention has a clock A having a frequency {(N + 1) × M} times the sampling clock of a digital signal and a frequency {N × M} times a sampling clock of the digital signal. In a pulse width modulation device using two clocks of clock B, a pulse leading edge and a trailing edge of a pulse width modulation signal are specified by using a remainder value and a quotient value obtained by dividing a digital signal by N. is there.

すなわち、本発明は、クロックを用いてデジタル信号(107)の値に応じたパルス幅変調信号(110)を生成するデジタル方式パルス幅変調装置であって、デジタル信号(107)のサンプリングクロックの{(N+1)×M}倍の周波数を有するクロックA(100)と、デジタル信号(107)のサンプリングクロックの{N×M}倍の周波数を有するクロックB(101)が供給され、前記クロックA(100)と前記クロックB(101)の同期タイミングを検出して2つの同期信号(103)(104)を発生する同期検出手段(1)と、前記同期信号(103)で初期化する機能を有し、クロックA(100)によるカウント信号(105)を生成する第1のカウンタ手段(2)と、前記同期信号(104)で初期化する機能を有し、クロックB(101)によるカウント信号(106)を生成する第2のカウンタ手段(3)と、前記デジタル信号(107)の値をNで除算して、商の値(113)と余りの値(114)に分離する除算回路手段(11)と、前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路手段(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス前縁の位置を特定するための前縁制御信号(108)を生成する前縁制御信号生成手段(4)と、前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路手段(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス後縁の位置を特定するための後縁制御信号(109)を生成する後縁制御信号生成手段(5)と、前記前縁制御信号生成手段(4)により生成された前縁制御信号(108)と、前記後縁制御信号生成手段(5)により生成された後縁制御信号(109)とを合成してパルス幅変調信号(110)を生成するパルス幅変調信号生成手段(6)とが設けられたことを特徴とする。   That is, the present invention is a digital pulse width modulation device that generates a pulse width modulation signal (110) corresponding to the value of the digital signal (107) using a clock, and the sampling clock of the digital signal (107) { A clock A (100) having a frequency (N + 1) × M} times and a clock B (101) having a frequency {N × M} times the sampling clock of the digital signal (107) are supplied, and the clock A ( 100) and a synchronization detection means (1) for detecting the synchronization timing of the clock B (101) and generating two synchronization signals (103) (104), and a function for initializing with the synchronization signal (103). The first counter means (2) for generating the count signal (105) by the clock A (100) and the function for initialization by the synchronization signal (104) And a second counter means (3) for generating a count signal (106) by the clock B (101), and dividing the value of the digital signal (107) by N to obtain a quotient value (113) Dividing circuit means (11) for separating the remainder value (114), the counting signal (105) by the clock A (100) or the counting signal (106) by the clock B (101), and the dividing circuit means (11 The leading edge control signal (108) for specifying the position of the leading edge of the pulse width modulation signal (110) using the quotient value (113) and / or the remainder value (114) obtained by Leading edge control signal generating means (4), the count signal (105) by the clock A (100) or the count signal (106) by the clock B (101), and the division Trailing edge control for specifying the position of the trailing edge of the pulse width modulation signal (110) using the quotient value (113) and / or the remainder value (114) obtained by the path means (11) A trailing edge control signal generating means (5) for generating a signal (109), a leading edge control signal (108) generated by the leading edge control signal generating means (4), and a trailing edge control signal generating means (5) And a trailing edge control signal (109) generated by (2), and a pulse width modulation signal generating means (6) for generating a pulse width modulation signal (110).

このように、クロックA(100)とクロックB(101)の周波数比が(N+1):Nであるため、両クロックA、Bの位相差はクロックA(100)の(N+1)周期で循環し、(クロックAの1周期)/Nを単位とするNステップの位相差が順に出現する。したがって、前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路手段(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス前縁およびパルス後縁の位置を特定することによって、(クロックAの1周期)/Nのパルス幅を単位とするパルス幅変調信号を生成することができる。このため、従来の装置に比べてN倍の分解能を実現することができ、従来と同じ周波数のクロックを用いてもN倍高い分解能を有する高性能な装置を提供できる。なお、N、Mの値は1以上の整数である。   Thus, since the frequency ratio of the clock A (100) and the clock B (101) is (N + 1): N, the phase difference between the clocks A and B circulates in the (N + 1) period of the clock A (100). , (One cycle of clock A) / N steps of phase difference in units of N appear in order. Therefore, the count signal (105) by the clock A (100) or the count signal (106) by the clock B (101), the quotient value (113) and / or the remainder obtained by the division circuit means (11) Of the pulse width modulation signal (110) is used to specify the position of the pulse leading edge and the trailing edge of the pulse width modulation signal (110). A width modulated signal can be generated. For this reason, it is possible to realize N times resolution as compared with the conventional device, and it is possible to provide a high-performance device having N times higher resolution even when using a clock having the same frequency as the conventional device. Note that the values of N and M are integers of 1 or more.

また、前記前縁制御信号生成手段(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値と、前記除算回路手段(11)により得られた余りの値(114)とを加算したあと、前記除算回路手段(11)により得られた商の値(113)を減算し、該減算値とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートし、前記後縁制御信号生成手段(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値と、前記除算回路手段(11)により得られた余りの値(114)を加算して、この加算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(106)の始点でアサートするものが挙げられる。なお、前記前縁制御信号生成手段(4)における最終の減算値はさらに1以上の整数値を減算するものも含まれる。   Further, the leading edge control signal generating means (4) includes a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock cycle of the digital signal (107), After the remainder value (114) obtained by the division circuit means (11) is added, the quotient value (113) obtained by the division circuit means (11) is subtracted, and the subtraction value and the count signal are subtracted. The leading edge control signal (108) of the leading edge of the pulse is asserted at the rising edge of the clock A (100) that coincides with (105), negated at the end point of the count signal (105), and the trailing edge control signal generating means (5 ) Is a count signal (1) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107). 6) and the remainder value (114) obtained by the divider circuit means (11) are added, and a pulse is generated at the rising edge of the clock B (101) where the added value matches the count signal (106). For example, the trailing edge control signal (109) of the trailing edge is negated and asserted at the start point of the count signal (106). The final subtraction value in the leading edge control signal generating means (4) further includes a subtraction of an integer value of 1 or more.

また、前縁制御信号生成手段(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値から前記除算回路手段(11)により得られた余りの値(114)を減算し、この減算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(106)の終点でネゲートし、前記後縁制御信号生成手段(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値から前記除算回路手段(11)により得られた余りの値(114)を減算したあと、前記除算回路手段(11)により得られた商の値(113)を加算し、この加算値とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(105)の始点でアサートするものが挙げられる。なお、前記前縁制御信号生成手段(5)における最終の加算値はさらに1以上の整数値を加算するものも含まれる。   Further, the leading edge control signal generating means (4) divides the value from the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107). The remainder value (114) obtained by the circuit means (11) is subtracted, and the leading edge control signal (108) of the leading edge of the pulse at the rising edge of the clock B (101) where the subtraction value and the count signal (106) coincide. ) Is asserted and negated at the end point of the count signal (106), and the trailing edge control signal generation means (5) generates the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107). The remainder value (114) obtained by the dividing circuit means (11) is subtracted from the value of the count signal (105) at a certain synchronization point. Then, the quotient value (113) obtained by the divider circuit means (11) is added, and the trailing edge of the pulse is detected at the rising edge of the clock A (100) where the added value and the count signal (105) coincide. The edge control signal (109) is negated and asserted at the start point of the count signal (105). Note that the final added value in the leading edge control signal generating means (5) further includes the addition of an integer value of 1 or more.

また、前記クロックA(100)とクロックB(101)におけるNの値が2又は10の累乗であるのが好ましい。
また、前記クロックA(100)とクロックB(101)におけるMの値が2以上の整数であるのが好ましい。
Further, it is preferable that the value of N in the clock A (100) and the clock B (101) is a power of 2 or 10.
Further, it is preferable that the value of M in the clock A (100) and the clock B (101) is an integer of 2 or more.

本発明によれば、(クロックAの1周期)/Nのパルス幅を単位とするパルス幅変調信号を生成することができる。このため、従来の装置に比べてN倍の分解能を実現することができ、従来と同じ周波数のクロックを用いてもN倍高い分解能を有する高性能な装置を提供できる。   According to the present invention, it is possible to generate a pulse width modulation signal whose unit is a pulse width of (one cycle of clock A) / N. For this reason, it is possible to realize N times resolution as compared with the conventional device, and it is possible to provide a high-performance device having N times higher resolution even when using a clock having the same frequency as the conventional device.

請求項2または請求項3に係る発明によれば、パルス幅変調信号のパルス前縁およびパルス後縁の位置を特定するための前縁制御信号および後縁制御信号をより一層簡単かつ確実に生成することができる。   According to the invention of claim 2 or claim 3, the leading edge control signal and the trailing edge control signal for specifying the positions of the pulse leading edge and the pulse trailing edge of the pulse width modulation signal are generated more easily and reliably. can do.

請求項4に係る発明によれば、設計しやすい装置を提供することができる。特にNを2の累乗にした場合、除算回路手段は上位ビットと下位ビットを分離するだけでよく、除算回路手段が極めて簡略化することができる。   According to the invention which concerns on Claim 4, the apparatus which is easy to design can be provided. Particularly when N is raised to a power of 2, the dividing circuit means only needs to separate the upper bits and the lower bits, and the dividing circuit means can be greatly simplified.

請求項5に係る発明によれば、デジタル信号のサンプリングクロック周期内において、(N+1)個のクロックAのクロック群とN個のクロックBのクロック群がそれぞれ2個以上できるので、パルス幅変調信号のパルス前縁およびパルス後縁を特定し得る範囲が広くなり、種々の幅のパルス幅変調信号をより一層簡単に生成することができる。   According to the fifth aspect of the present invention, since there are two or more (N + 1) clock A clock groups and N clock B clock groups within the sampling clock period of the digital signal, the pulse width modulation signal The range in which the pulse leading edge and the pulse trailing edge can be specified becomes wider, and pulse width modulation signals having various widths can be generated more easily.

(実施形態1)
次に本発明の一実施形態に係るデジタル方式パルス幅変調装置(以下、本装置という)について図1〜図7を参照しつつ説明する。
(Embodiment 1)
Next, a digital pulse width modulation apparatus (hereinafter referred to as this apparatus) according to an embodiment of the present invention will be described with reference to FIGS.

図1は、本装置の基本構成を示す機能ブロック図である。   FIG. 1 is a functional block diagram showing the basic configuration of this apparatus.

本装置は、デジタル信号(107)のサンプリングクロックの{(N+1)×M}倍の周波数を有するクロックA(100)と、デジタル信号(107)のサンプリングクロックの{N×M}倍の周波数を有するクロックB(101)の2つのクロックとを用いるパルス幅変調装置において、デジタル信号(107)をNで除算した商の値(113)と余りの値(114)を利用してパルス幅変調信号(110)のパルス前縁およびパルス後縁を特定するものである。   This apparatus has a clock A (100) having a frequency {(N + 1) × M} times the sampling clock of the digital signal (107) and a frequency {N × M} times the sampling clock of the digital signal (107). In a pulse width modulation device using two clocks of the clock B (101), the pulse width modulation signal is obtained by using a quotient value (113) obtained by dividing the digital signal (107) by N and a remainder value (114). The pulse leading edge and the pulse trailing edge of (110) are specified.

前記クロックA(100)は、図示略のクロック生成装置により生成され、デジタル信号(107)におけるサンプリングクロックの{(N+1)×M}倍の周波数のクロックとなされている。また、前記クロックB(101)は、図示略のクロック生成装置により生成され、デジタル信号(107)におけるサンプリングクロックの{N×M}倍の周波数のクロックとなされている。
なお、前記デジタル信号(107)は、例えば16ビットのデジタルデータである。また、前記クロックA(100)およびクロックB(101)におけるNの値は、1以上の整数であり、2または10の累乗であるのが好ましい。さらに、前記クロックA(100)とクロックB(101)におけるMの値が2以上の整数であるのが好ましい。
The clock A (100) is generated by a clock generator (not shown) and is a clock having a frequency {(N + 1) × M} times the sampling clock in the digital signal (107). The clock B (101) is generated by a clock generator (not shown) and is a clock having a frequency {N × M} times the sampling clock in the digital signal (107).
The digital signal (107) is, for example, 16-bit digital data. Further, the value of N in the clock A (100) and the clock B (101) is an integer of 1 or more, and is preferably a power of 2 or 10. Further, it is preferable that the value of M in the clock A (100) and the clock B (101) is an integer of 2 or more.

本装置には同期検出部(1)が設けられている。この同期検出部(1)は、クロックA(100)とクロックB(101)の同期タイミングを検出して2つの同期信号(103)(104)を発生するものである。すなわち、同期検出部(1)には動作イネーブル信号(102)が入力されるようになっており、該動作イネーブル信号(102)がアサートされていると、クロックA(100)とクロックB(101)の立ち上がりエッジの位置が前後に逆転したことを検出して、後述のカウンタ(2)用の同期信号(103)とカウンタ(3)用の同期信号(104)とを生成する。   This apparatus is provided with a synchronization detection unit (1). The synchronization detector (1) detects the synchronization timing of the clock A (100) and the clock B (101) and generates two synchronization signals (103) (104). That is, the operation enable signal (102) is input to the synchronization detector (1). When the operation enable signal (102) is asserted, the clock A (100) and the clock B (101) ) To detect that the position of the rising edge is reversed back and forth, and generates a synchronization signal (103) for counter (2), which will be described later, and a synchronization signal (104) for counter (3).

この同期検出部(1)の具体的構成の一例について図3および図4を用いて説明する。 動作イネーブル信号(102)がアサートされていると、クロック(100)をD入力、クロック(101)をクロック入力としたDEFが、それぞれのクロック(100)(101)の立ち上がりエッジ位置が前後に逆転したことを検出してQ出力(300)を0から1に変化させる。内部信号(300)をクロック(100)およびクロック(101)を用いてシフトレジスタに送り、安定した同じ段数のところで立ち上がりを検出して、カウンタ(2)用の同期信号(103)とカウンタ(3)用の同期信号(104)を生成する。   An example of a specific configuration of the synchronization detection unit (1) will be described with reference to FIGS. When the operation enable signal (102) is asserted, the DEF using the clock (100) as the D input and the clock (101) as the clock input reverses the rising edge position of each clock (100) (101) back and forth. The Q output (300) is changed from 0 to 1 by detecting this. The internal signal (300) is sent to the shift register using the clock (100) and the clock (101), the rising edge is detected at the same stable number of stages, and the synchronization signal (103) for the counter (2) and the counter (3 ) Synchronization signal (104) is generated.

なお、同期検出部(1)は、上記構成に限定されるものではなく、クロックA(100)とクロックB(101)の同期タイミングを検出して2つの同期信号(103)(104)を発生するものであれば、どのような回路構成のものであってもよい。   The synchronization detection unit (1) is not limited to the above configuration, and generates two synchronization signals (103) (104) by detecting the synchronization timing of the clock A (100) and the clock B (101). Any circuit configuration may be used as long as it does.

前記同期検出部(1)の出力側には第1のカウンタ(2)と第2のカウンタ(3)が並列して設けられている。カウンタ(2)は、同期信号(103)で初期化する機能を有し、クロックA(100)によるカウント信号(105)を生成するものであり、カウント値が0〜{(N+1)×M−1}の間で循環する。一方、カウンタ(3)は、同期信号(104)で初期化する機能を有し、クロックB(101)によるカウント信号(106)を生成するものであり、カウント値が0〜{N×M−1}の間で循環する。   A first counter (2) and a second counter (3) are provided in parallel on the output side of the synchronization detector (1). The counter (2) has a function of initializing with the synchronization signal (103) and generates a count signal (105) based on the clock A (100), and the count value is 0 to {(N + 1) × M−. 1}. On the other hand, the counter (3) has a function of initializing with the synchronization signal (104) and generates the count signal (106) by the clock B (101), and the count value is 0 to {N × M−. 1}.

図5は、クロック信号(100)(101)、同期信号(103)(104)およびカウント信号(105)(106)の関係を示す図である。   FIG. 5 is a diagram showing the relationship among the clock signals (100) (101), the synchronization signals (103) (104), and the count signals (105) (106).

前記クロックA(100)とクロックB(101)が供給されており、クロックA(100)とクロックB(101)に応じてカウンタ(2)(3)からカウント信号(105)(106)が生成されている。そして、クロック信号(100)とクロック信号(101)と立ち上がりエッジが前後に逆転した場合、同期検出部(1)により2つの同期信号(103)(104)が生成され、それら同期信号(103)(104)によりカウンタ(2)(3)が初期化される。そして、カウンタ(2)によってクロック信号A(100)によるカウント信号(105)が0〜{(N+1)×M−1}の間で循環しながら生成される。また、カウンタ(3)によってクロック信号B(101)によるカウント信号(106)が0〜{N×M−1}の間で循環しながら生成される。   The clock A (100) and the clock B (101) are supplied, and the count signals (105) and (106) are generated from the counters (2) and (3) according to the clock A (100) and the clock B (101). Has been. When the rising edge of the clock signal (100) and the clock signal (101) is reversed back and forth, the synchronization detector (1) generates two synchronization signals (103) and (104), and these synchronization signals (103) Counters (2) and (3) are initialized by (104). The counter (2) generates a count signal (105) based on the clock signal A (100) while circulating between 0 and {(N + 1) × M−1}. Further, the counter (3) generates a count signal (106) based on the clock signal B (101) while circulating between 0 and {N × M−1}.

このときクロックA(100)とクロックB(101)とは周波数比(N+1):Nであるため、クロックA(100)とクロックB(101)の位相差はクロックA(100)の(N+1)周期で循環し、(クロックAの1周期)/Nを単位とするNステップの位相差が順に出現する。例えば、始点Sでは両クロックA、Bの位相差は0/N、中央付近では両クロックA、Bの位相差は(N/2)/N、終点付近では両クロックA、Bの位相差は(N−1)/Nとなる。なお、カウンタ(2)とカウンタ(3)が同期化されているので、カウンタ(3)の値が特定されると、その値におけるクロックB(101)の立ち上がりエッジとその直前にあるクロックA(100)の立ち上がりエッジとの位相差が特定できる。   At this time, since the clock A (100) and the clock B (101) have a frequency ratio (N + 1): N, the phase difference between the clock A (100) and the clock B (101) is (N + 1) of the clock A (100). Circulating in a cycle, phase differences of N steps in units of (one cycle of clock A) / N appear in order. For example, the phase difference between both clocks A and B is 0 / N at the start point S, the phase difference between both clocks A and B is (N / 2) / N near the center, and the phase difference between both clocks A and B is near the end point. (N-1) / N. Since the counter (2) and the counter (3) are synchronized, when the value of the counter (3) is specified, the rising edge of the clock B (101) at that value and the clock A ( 100) rising edge can be identified.

また、本装置には除算回路部(11)が設けられている。この除算回路部(11)は、デジタル信号(107)が入力されるようになっており、前記デジタル信号(107)の値をNで除算して商の値(113)と余りの値(114)に分離し、それら商の値(113)と余りの値(114)を後述の前縁制御信号生成部(4)および後縁制御信号生成部(5)に出力する。   Further, the present apparatus is provided with a division circuit section (11). The division circuit unit (11) receives a digital signal (107), and divides the value of the digital signal (107) by N to obtain a quotient value (113) and a remainder value (114). And the quotient value (113) and the remainder value (114) are output to a leading edge control signal generation unit (4) and a trailing edge control signal generation unit (5) described later.

前記前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値と、前記除算回路手段(11)により得られた余りの値(114)を加算したあと、前記除算回路手段(11)により得られた商の値(113)を減算し、この減算値とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートする。   The leading edge control signal generation unit (4) includes the value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107), and the division After the remainder value (114) obtained by the circuit means (11) is added, the quotient value (113) obtained by the division circuit means (11) is subtracted, and this subtraction value and the count signal (105) The leading edge control signal (108) of the leading edge of the pulse is asserted at the rising edge of the clock A (100) that coincides with each other, and negated at the end point of the count signal (105).

前記後制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値と、前記除算回路手段(11)により得られた余りの値(114)を加算して、この加算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(106)の始点でアサートする。   The post-control signal generation unit (5) includes the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107), and the division The remainder value (114) obtained by the circuit means (11) is added, and the trailing edge control signal of the trailing edge of the pulse at the rising edge of the clock B (101) where the added value and the count signal (106) coincide. 109) is negated and asserted at the start of the count signal (106).

前記前縁制御信号生成部(4)および前記前縁制御信号生成部(5)によるパルス変調信号(110)のパルス前縁及び後縁の特定の具体例について図6を参照しつつ説明する。なお、本実施形態では、N=36、M=51としている。   A specific example of the pulse leading edge and trailing edge of the pulse modulation signal (110) by the leading edge control signal generation unit (4) and the leading edge control signal generation unit (5) will be described with reference to FIG. In this embodiment, N = 36 and M = 51.

<デジタル信号の値が「0」の場合>
例えば、デジタル信号(107)が「0」の場合、除算回路部(11)はデジタル信号(107)をN=36で除算し、商の値(113)=0と余りの値(114)=0とに分離する。
前記前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値=(37×50−1)と、前記除算回路手段(11)により得られた余りの値(114)=0を加算したあと、前記除算回路手段(11)により得られた商の値(113)=0を減算し、この減算値−1とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートする。このように生成された前縁制御信号(108)は図6に示すパルスZ1である。
<When the value of the digital signal is “0”>
For example, when the digital signal (107) is “0”, the division circuit unit (11) divides the digital signal (107) by N = 36, and the quotient value (113) = 0 and the remainder value (114) = Separated into zero.
The leading edge control signal generation unit (4) has a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = (37 × 50-1) and the remainder value (114) = 0 obtained by the divider circuit means (11) are added, and then the quotient value (113) = 0 obtained by the divider circuit means (11) is obtained. The leading edge control signal (108) of the leading edge of the pulse is asserted at the rising edge of the clock A (100) where the subtraction value −1 and the count signal (105) coincide with each other, and negated at the end point of the count signal (105). To do. The leading edge control signal (108) thus generated is a pulse Z1 shown in FIG.

一方、前記後制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値=(36×50−1)と、前記除算回路手段(11)により得られた余りの値(114)=0を加算して、この加算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(106)の始点でアサートする。このように生成された後縁制御信号(109)は図6に示すパルスK1である。   On the other hand, the post-control signal generation unit (5) has the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = ( 36 × 50-1) and the remainder value (114) = 0 obtained by the dividing circuit means (11) are added, and the added value and the count signal (106) of the clock B (101) in which the count signal (106) coincides. The trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge and asserted at the start point of the count signal (106). The trailing edge control signal (109) thus generated is a pulse K1 shown in FIG.

なお、前記前縁制御信号生成部(4)において最終の減算値にさらに1を減算するのは、デジタル信号(107)の最小値「0」の場合でも、一定以上のパルス幅を有するパルス幅変調信号(110)を生成するためである。もとより、最終の減算値から1を減算しないものとしてもよいし、あるいは最終の減算値から2以上の整数値を減算するものとしてもよい。
<デジタル信号の値が「1」の場合>
例えば、デジタル信号(107)が「1」の場合、除算回路部(11)はデジタル信号(107)をN=36で除算し、商の値(113)=0と余りの値(114)=1とに分離する。
前記前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値=(37×50−1)と、前記除算回路手段(11)により得られた余りの値(114)=1を加算したあと、前記除算回路手段(11)により得られた商の値(113)=0を減算し、この減算値−1とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートする。このように生成された前縁制御信号(108)は図6に示すパルスZ2である。
The leading edge control signal generation unit (4) further subtracts 1 from the final subtraction value even when the digital signal (107) has a minimum value “0” and a pulse width having a pulse width of a certain value or more. This is to generate the modulation signal (110). Of course, 1 may not be subtracted from the final subtraction value, or an integer value of 2 or more may be subtracted from the final subtraction value.
<When the digital signal value is “1”>
For example, when the digital signal (107) is “1”, the division circuit unit (11) divides the digital signal (107) by N = 36, and the quotient value (113) = 0 and the remainder value (114) = 1 and separated.
The leading edge control signal generation unit (4) has a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = (37 × 50-1) and the remainder value (114) = 1 obtained by the divider circuit means (11) are added, and then the quotient value (113) = 0 obtained by the divider circuit means (11) is obtained. The leading edge control signal (108) of the leading edge of the pulse is asserted at the rising edge of the clock A (100) where the subtraction value −1 and the count signal (105) coincide with each other, and negated at the end point of the count signal (105). To do. The leading edge control signal (108) thus generated is a pulse Z2 shown in FIG.

一方、前記後制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値=(36×50−1)と、前記除算回路手段(11)により得られた余りの値(114)=1を加算して、この加算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(106)の始点でアサートする。このように生成された後縁制御信号(109)は図6に示すパルスK2である。   On the other hand, the post-control signal generation unit (5) has the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = ( 36 × 50-1) and the remainder value (114) = 1 obtained by the divider circuit means (11) are added, and the sum of the added value and the count signal (106) of the clock B (101) that matches. The trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge and asserted at the start point of the count signal (106). The trailing edge control signal (109) thus generated is a pulse K2 shown in FIG.

<デジタル信号の値が「35」の場合>
例えば、デジタル信号(107)が「35」の場合、除算回路部(11)はデジタル信号(107)をN=36で除算し、商の値(113)=0と余りの値(114)=35とに分離する。
<When the value of the digital signal is "35">
For example, when the digital signal (107) is “35”, the division circuit (11) divides the digital signal (107) by N = 36, and the quotient value (113) = 0 and the remainder value (114) = 35.

前記前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値=(37×50−1)と、前記除算回路手段(11)により得られた余りの値(114)=35を加算したあと、前記除算回路手段(11)により得られた商の値(113)=0を減算し、この減算値−1とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートする。このように生成された前縁制御信号(108)は図6に示すパルスZ3である。   The leading edge control signal generation unit (4) has a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = (37 × 50-1) and the remainder value (114) = 35 obtained by the division circuit means (11) are added, and then the quotient value (113) = 0 obtained by the division circuit means (11) is obtained. The leading edge control signal (108) of the leading edge of the pulse is asserted at the rising edge of the clock A (100) where the subtraction value −1 and the count signal (105) coincide with each other, and negated at the end point of the count signal (105). To do. The leading edge control signal (108) thus generated is a pulse Z3 shown in FIG.

一方、前記後制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値=(36×50−1)と、前記除算回路手段(11)により得られた余りの値(114)=35を加算して、この加算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(106)の始点でアサートする。このように生成された後縁制御信号(109)は図6に示すパルスK3である。   On the other hand, the post-control signal generation unit (5) has the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = ( 36 × 50-1) and the remainder value (114) = 35 obtained by the dividing circuit means (11) are added, and the clock B (101) in which the added value matches the count signal (106) is added. The trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge and asserted at the start point of the count signal (106). The trailing edge control signal (109) thus generated is a pulse K3 shown in FIG.

なお、デジタル信号の値が「36」「65484」「65519」についても、上述と同様にして前縁制御信号(108)のパルスZ4、Z5、Z6と、後縁制御信号(109)のパルスK4、K5、K6とがそれぞれ生成される。   As for the values of the digital signals “36”, “65484” and “65519”, the pulses Z4, Z5 and Z6 of the leading edge control signal (108) and the pulse K4 of the trailing edge control signal (109) are the same as described above. , K5, and K6 are generated.

前記前縁制御信号生成部(4)と後縁制御信号生成部(5)の出力側には、パルス幅変調信号生成部(6)が設けられている。このパルス幅変調信号生成部(6)は、前縁制御信号生成部(4)により生成された前縁制御信号(108)と、後縁制御信号生成部(5)により生成された後縁制御信号(109)とをAND合成してパルス幅変調信号(110)を生成するものである。   On the output side of the leading edge control signal generator (4) and the trailing edge control signal generator (5), a pulse width modulation signal generator (6) is provided. The pulse width modulation signal generator (6) includes a leading edge control signal (108) generated by the leading edge control signal generator (4) and a trailing edge control generated by the trailing edge control signal generator (5). The signal (109) is AND-combined to generate a pulse width modulation signal (110).

例えば、図6に示すように、前縁制御信号(108)のパルスZ1と後縁制御信号(109)のK1をAND合成してパルス幅変調信号P1を生成する。また、前縁制御信号(108)のZ2と後縁制御信号(109)のK2をAND合成してパルス幅変調信号P2を生成する。また、前縁制御信号(108)のパルスZ3と後縁制御信号(109)のK3をAND合成してパルス幅変調信号P3を生成する。その他の前縁制御信号(108)のパルスZ4、Z5、Z6と後縁制御信号(109)のK4、K5、K6についても、それぞれAND合成してパルス幅変調信号P4、P5、P6を生成する。   For example, as shown in FIG. 6, the pulse width modulation signal P1 is generated by AND combining the pulse Z1 of the leading edge control signal (108) and the K1 of the trailing edge control signal (109). Also, the pulse width modulation signal P2 is generated by AND-combining Z2 of the leading edge control signal (108) and K2 of the trailing edge control signal (109). In addition, the pulse width modulation signal P3 is generated by AND-combining the pulse Z3 of the leading edge control signal (108) and K3 of the trailing edge control signal (109). Other pulses Z4, Z5, and Z6 of the leading edge control signal (108) and K4, K5, and K6 of the trailing edge control signal (109) are AND-combined to generate pulse width modulation signals P4, P5, and P6, respectively. .

このように、クロックA(100)とクロックB(101)の周波数比が(N+1):Nであるため、両クロックA、Bの位相差はクロックA(100)の(N+1)周期で循環し、(クロックAの1周期)/Nを単位とするNステップの位相差が順に出現する。したがって、前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路手段(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス前縁およびパルス後縁の位置を特定することによって、(クロックAの1周期)/Nのパルス幅を単位とするパルス幅変調信号を生成することができる。このため、従来の装置に比べてN倍の分解能を実現することができ、従来と同じ周波数のクロックを用いてもN倍高い分解能を有する高性能な装置を提供できる。   Thus, since the frequency ratio of the clock A (100) and the clock B (101) is (N + 1): N, the phase difference between the clocks A and B circulates in the (N + 1) period of the clock A (100). , (One cycle of clock A) / N steps of phase difference in units of N appear in order. Therefore, the count signal (105) by the clock A (100) or the count signal (106) by the clock B (101), the quotient value (113) and / or the remainder obtained by the division circuit means (11) Of the pulse width modulation signal (110) is used to specify the position of the pulse leading edge and the trailing edge of the pulse width modulation signal (110). A width modulated signal can be generated. For this reason, it is possible to realize N times resolution as compared with the conventional device, and it is possible to provide a high-performance device having N times higher resolution even when using a clock having the same frequency as the conventional device.

(実施形態2)
次に本発明の他の実施形態について図7および図8を参照しつつ説明する。
(Embodiment 2)
Next, another embodiment of the present invention will be described with reference to FIGS.

図7は、他の実施形態に係る本装置の基本構成を示す回路図である。   FIG. 7 is a circuit diagram showing a basic configuration of the present apparatus according to another embodiment.

図7において、前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値から前記除算回路部(11)により得られた余りの値(114)を減算し、この減算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(106)の終点でネゲートする。   In FIG. 7, the leading edge control signal generation unit (4) calculates the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock cycle of the digital signal (107). The remainder value (114) obtained by the division circuit section (11) is subtracted, and the leading edge control signal of the leading edge of the pulse at the rising edge of the clock B (101) where the subtraction value matches the count signal (106). (108) is asserted and negated at the end point of the count signal (106).

同じく図7において、後制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値から前記除算回路部(11)により得られた余りの値(114)を減算したあと、前記除算回路部(11)により得られた商の値(113)を加算し、この加算値とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(105)の始点でアサートする。
なお、同期検出部(1)、第1のカウンタ(2)、第2のカウンタ(3)、除算回路手段(11)などについては、図1に示すものと同一であるので、同一の符号を付してその説明を省略する。
Similarly, in FIG. 7, the post-control signal generation unit (5) has a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock cycle of the digital signal (107). The remainder value (114) obtained by the division circuit section (11) is subtracted from the quotient, and the quotient value (113) obtained by the division circuit section (11) is added. The trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge of the clock A (100) that coincides with (105), and asserted at the start point of the count signal (105).
The synchronization detector (1), the first counter (2), the second counter (3), the divider circuit means (11), etc. are the same as those shown in FIG. A description thereof will be omitted.

前記前縁制御信号生成部(4)および前記前縁制御信号生成部(5)によるパルス変調信号(110)のパルス前縁及び後縁の特定の具体例について図8を参照しつつ説明する。なお、本実施形態では、N=36、M=51としている。   A specific example of the pulse leading edge and trailing edge of the pulse modulation signal (110) by the leading edge control signal generator (4) and the leading edge control signal generator (5) will be described with reference to FIG. In this embodiment, N = 36 and M = 51.

<デジタル信号が「0」の場合>
例えば、デジタル信号(107)が「0」の場合、除算回路部(11)はデジタル信号(107)をN=36で除算し、商の値(113)=0と余りの値(114)=0とに分離する。
<When the digital signal is “0”>
For example, when the digital signal (107) is “0”, the division circuit unit (11) divides the digital signal (107) by N = 36, and the quotient value (113) = 0 and the remainder value (114) = Separated into zero.

前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値=35から前記除算回路部(11)により得られた余りの値(114)=0を減算し、この減算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(106)の終点でネゲートする。このように生成された前縁制御信号(108)は図8に示すパルスZ1である。   The leading edge control signal generation unit (4) divides the value from the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = 35. The remainder value (114) = 0 obtained by the circuit unit (11) is subtracted, and the leading edge control signal of the pulse leading edge at the rising edge of the clock B (101) where the subtraction value and the count signal (106) coincide. (108) is asserted and negated at the end point of the count signal (106). The leading edge control signal (108) thus generated is a pulse Z1 shown in FIG.

一方、後縁制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値=36から前記除算回路部(11)により得られた余りの値(114)=0を減算したあと、前記除算回路部(11)により得られた商の値(113)=0を加算し、この加算値+1=36とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(105)の始点でアサートする。このように生成された前縁制御信号(108)は図8に示すパルスK1である。   On the other hand, the trailing edge control signal generation unit (5) has a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = 36. The remainder value (114) = 0 obtained by the division circuit unit (11) is subtracted from the value, and the quotient value (113) = 0 obtained by the division circuit unit (11) is added. The trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge of the clock A (100) where the value + 1 = 36 matches the count signal (105), and asserted at the start point of the count signal (105). The leading edge control signal (108) thus generated is a pulse K1 shown in FIG.

なお、前記後縁制御信号生成部(5)において最終の加算値にさらに1を加算するのはデジタル信号(107)の最小値「0」の場合でも、一定以上のパルス幅を有するパルス幅変調信号(110)を生成するためである。もとより、最終の加算値から1を加算しないものとしてもよいし、あるいは最終の加算値から2以上の整数値を加算するものとしてもよい。   Note that the trailing edge control signal generator (5) further adds 1 to the final added value even when the digital signal (107) has a minimum value “0”. This is because the signal (110) is generated. Of course, 1 may not be added from the final added value, or an integer value of 2 or more may be added from the final added value.

<デジタル信号が「1」の場合>
例えば、デジタル信号(107)が「1」の場合、除算回路部(11)はデジタル信号(107)をN=36で除算し、商の値(113)=0と余りの値(114)=1とに分離する。
<When the digital signal is “1”>
For example, when the digital signal (107) is “1”, the division circuit unit (11) divides the digital signal (107) by N = 36, and the quotient value (113) = 0 and the remainder value (114) = 1 and separated.

前記前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値=35から前記除算回路部(11)により得られた余りの値(114)=1を減算し、この減算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートする。このように生成された前縁制御信号(108)は図8に示すパルスZ2である。   The leading edge control signal generation unit (4) calculates the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) from the value 35. The remainder value (114) = 1 obtained by the division circuit section (11) is subtracted, and the leading edge control of the pulse leading edge is performed at the rising edge of the clock B (101) where the subtraction value and the count signal (106) coincide. The signal (108) is asserted and negated at the end point of the count signal (105). The leading edge control signal (108) thus generated is a pulse Z2 shown in FIG.

一方、後縁制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値=36から前記除算回路部(11)により得られた余りの値(114)=1を減算したあと、前記除算回路部(11)により得られた商の値(113)=0を加算し、この加算値+1とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(105)の始点でアサートする。このように生成された前縁制御信号(108)は図8に示すパルスK2である。   On the other hand, the trailing edge control signal generation unit (5) has a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = 36. The remainder value (114) = 1 obtained by the division circuit unit (11) is subtracted from the value, and the quotient value (113) = 0 obtained by the division circuit unit (11) is added. The trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge of the clock A (100) where the value +1 matches the count signal (105), and asserted at the start point of the count signal (105). The leading edge control signal (108) thus generated is a pulse K2 shown in FIG.

<デジタル信号が「35」の場合>
例えば、デジタル信号(107)が「35」の場合、除算回路部(11)はデジタル信号(107)をN=36で除算し、商の値(113)=0と余りの値(114)=35とに分離する。
<When the digital signal is "35">
For example, when the digital signal (107) is “35”, the division circuit (11) divides the digital signal (107) by N = 36, and the quotient value (113) = 0 and the remainder value (114) = 35.

前記前縁制御信号生成部(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値=35から前記除算回路部(11)により得られた余りの値(114)=35を減算し、この減算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートする。このように生成された前縁制御信号(108)は図8に示すパルスZ3である。   The leading edge control signal generation unit (4) calculates the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) from the value 35. The remainder value (114) = 35 obtained by the division circuit unit (11) is subtracted, and the leading edge control of the pulse leading edge is performed at the rising edge of the clock B (101) where the subtraction value and the count signal (106) coincide. The signal (108) is asserted and negated at the end point of the count signal (105). The leading edge control signal (108) thus generated is a pulse Z3 shown in FIG.

一方、後縁制御信号生成部(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値=36から前記除算回路部(11)により得られた余りの値(114)=35を減算したあと、前記除算回路部(11)により得られた商の値(113)=0を加算し、この加算値+1とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(105)の始点でアサートする。このように生成された前縁制御信号(108)は図8に示すパルスK3である。   On the other hand, the trailing edge control signal generation unit (5) has a value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107) = 36. The remainder value (114) = 35 obtained by the division circuit unit (11) is subtracted from the value, and the quotient value (113) = 0 obtained by the division circuit unit (11) is added. The trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge of the clock A (100) where the value +1 matches the count signal (105), and asserted at the start point of the count signal (105). The leading edge control signal (108) thus generated is a pulse K3 shown in FIG.

なお、デジタル信号の値が「36」「65484」「65519」についても、上述と同様にして前縁制御信号(108)のパルスZ4、Z5、Z6と、後縁制御信号(109)のパルスK4、K5、K6とがそれぞれ生成される。   As for the values of the digital signals “36”, “65484” and “65519”, the pulses Z4, Z5 and Z6 of the leading edge control signal (108) and the pulse K4 of the trailing edge control signal (109) are the same as described above. , K5, and K6 are generated.

あとは実施形態と同様にして、パルス幅変調信号生成部(6)は、前縁制御信号生成部(4)により生成された前縁制御信号(108)Z1、Z2、・・・、Z6と、後縁制御信号生成部(5)により生成された後縁制御信号(109)K1、K2、・・・、K6とをAND合成してパルス幅変調信号(110)P1、P2、・・・、P6を生成する。   After that, in the same manner as in the embodiment, the pulse width modulation signal generation unit (6) includes the leading edge control signals (108) Z1, Z2, ..., Z6 generated by the leading edge control signal generation unit (4). The trailing edge control signals (109) K1, K2,..., K6 generated by the trailing edge control signal generator (5) are AND-combined to generate pulse width modulation signals (110) P1, P2,. , P6 is generated.

なお、前縁制御信号生成部(4)および前記後縁制御信号生成部(5)は上述のもの限定されるものではない。要は、前縁制御信号生成部(4)は前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路部(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス前縁の位置を特定するための前縁制御信号(108)を生成するものであればよい。また、前記後縁制御信号生成部(5)は前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路部(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス後縁の位置を特定するための後縁制御信号(109)を生成するものであればよい。   The leading edge control signal generator (4) and the trailing edge control signal generator (5) are not limited to those described above. In short, the leading edge control signal generation unit (4) is obtained by the count signal (105) based on the clock A (100) or the count signal (106) based on the clock B (101) and the division circuit unit (11). Generating a leading edge control signal (108) for specifying the position of the leading edge of the pulse width modulation signal (110) using the quotient value (113) and / or the remainder value (114) If it is. The trailing edge control signal generation unit (5) is obtained by the count signal (105) by the clock A (100) or the count signal (106) by the clock B (101) and the division circuit unit (11). A trailing edge control signal (109) for identifying the position of the trailing edge of the pulse width modulation signal (110) using the quotient value (113) and / or the remainder value (114) If it is.

本装置の基本構成を示す回路図である。It is a circuit diagram which shows the basic composition of this apparatus. 従来のパルス幅変調装置の機能ブロック図である。It is a functional block diagram of the conventional pulse width modulation apparatus. 同期検出部の回路構成の一例を示す図である。It is a figure which shows an example of the circuit structure of a synchronous detection part. 図3の回路の動作を示す図である。FIG. 4 is a diagram illustrating an operation of the circuit of FIG. 3. クロック信号、同期信号およびカウント信号の関係を示す図である。It is a figure which shows the relationship between a clock signal, a synchronizing signal, and a count signal. 図1の本装置の回路の動作を示す図である。It is a figure which shows operation | movement of the circuit of this apparatus of FIG. 他の実施形態に係る本装置の基本構成を示す回路図である。It is a circuit diagram which shows the basic composition of this apparatus which concerns on other embodiment. 図7の本装置の回路の動作を示す図である。It is a figure which shows operation | movement of the circuit of this apparatus of FIG.

符号の説明Explanation of symbols

1・・・同期検出部
2・・・第1のカウンタ
3・・・第2のカウンタ
4・・・前縁制御信号生成部
5・・・後縁制御信号生成部
6・・・パルス幅変調信号生成部
11・・・除算回路部
100・・・クロックA
101・・・クロックB
102・・・イネーブル信号
103、104・・・同期信号
105、106・・・カウント信号
107・・・デジタル信号
108・・・前縁制御信号
109・・・後縁制御信号
110・・・パルス幅変調信号
113・・・商の値
114・・・余りの値
DESCRIPTION OF SYMBOLS 1 ... Sync detection part 2 ... 1st counter 3 ... 2nd counter 4 ... Leading edge control signal generation part 5 ... Trailing edge control signal generation part 6 ... Pulse width modulation Signal generator 11... Divider circuit 100.
101 ... clock B
102 ... Enable signal 103, 104 ... Synchronization signal 105, 106 ... Count signal 107 ... Digital signal 108 ... Lead edge control signal 109 ... Rear edge control signal 110 ... Pulse width Modulation signal 113 ... quotient value 114 ... remainder value

Claims (5)

クロックを用いてデジタル信号(107)の値に応じたパルス幅変調信号(110)を生成するデジタル方式パルス幅変調装置であって、
デジタル信号(107)のサンプリングクロックの{(N+1)×M}倍の周波数を有するクロックA(100)と、デジタル信号(107)のサンプリングクロックの{N×M}倍の周波数を有するクロックB(101)が供給され、前記クロックA(100)と前記クロックB(101)の同期タイミングを検出して2つの同期信号(103)(104)を発生する同期検出手段(1)と、
前記同期信号(103)で初期化する機能を有し、クロックA(100)によるカウント信号(105)を生成する第1のカウンタ手段(2)と、
前記同期信号(104)で初期化する機能を有し、クロックB(101)によるカウント信号(106)を生成する第2のカウンタ手段(3)と、
前記デジタル信号(107)の値をNで除算して、商の値(113)と余りの値(114)に分離する除算回路手段(11)と、
前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路手段(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス前縁の位置を特定するための前縁制御信号(108)を生成する前縁制御信号生成手段(4)と、
前記クロックA(100)によるカウント信号(105)またはクロックB(101)による前記カウント信号(106)と、前記除算回路手段(11)により得られた商の値(113)および/または余りの値(114)とを用いて、パルス幅変調信号(110)のパルス後縁の位置を特定するための後縁制御信号(109)を生成する後縁制御信号生成手段(5)と、
前記前縁制御信号生成手段(4)により生成された前縁制御信号(108)と、前記後縁制御信号生成手段(5)により生成された後縁制御信号(109)とを合成してパルス幅変調信号(110)を生成するパルス幅変調信号生成手段(6)とが設けられたことを特徴とするデジタル方式パルス幅変調装置。
A digital pulse width modulation device that generates a pulse width modulation signal (110) according to a value of a digital signal (107) using a clock,
A clock A (100) having a frequency {(N + 1) × M} times the sampling clock of the digital signal (107) and a clock B ({N × M} times a frequency of the sampling clock of the digital signal (107)) 101), a synchronization detection means (1) for detecting the synchronization timing of the clock A (100) and the clock B (101) and generating two synchronization signals (103) (104);
First counter means (2) having a function of initializing with the synchronization signal (103) and generating a count signal (105) based on the clock A (100);
A second counter means (3) having a function of initializing with the synchronization signal (104) and generating a count signal (106) based on the clock B (101);
Dividing circuit means (11) for dividing the value of the digital signal (107) by N and separating it into a quotient value (113) and a remainder value (114);
The count signal (105) by the clock A (100) or the count signal (106) by the clock B (101), the quotient value (113) and / or the remainder value obtained by the division circuit means (11) (114) and a leading edge control signal generating means (4) for generating a leading edge control signal (108) for specifying the position of the leading edge of the pulse width modulated signal (110),
The count signal (105) by the clock A (100) or the count signal (106) by the clock B (101), the quotient value (113) and / or the remainder value obtained by the division circuit means (11) (114) and a trailing edge control signal generating means (5) for generating a trailing edge control signal (109) for specifying the position of the trailing edge of the pulse width modulated signal (110),
The leading edge control signal (108) generated by the leading edge control signal generation means (4) and the trailing edge control signal (109) generated by the trailing edge control signal generation means (5) are combined to generate a pulse. And a pulse width modulation signal generating means (6) for generating a width modulation signal (110).
前記前縁制御信号生成手段(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値と、前記除算回路手段(11)により得られた余りの値(114)とを加算したあと、前記除算回路手段(11)により得られた商の値(113)を減算し、該減算値とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(105)の終点でネゲートし、
前記後縁制御信号生成手段(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値と、前記除算回路手段(11)により得られた余りの値(114)を加算して、この加算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(106)の始点でアサートするものである請求項1に記載のパルス幅変調装置。
The leading edge control signal generating means (4) includes the value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107), and the division. After adding the remainder value (114) obtained by the circuit means (11), the quotient value (113) obtained by the division circuit means (11) is subtracted, and the subtraction value and the count signal (105 ) Assert the leading edge control signal (108) of the leading edge of the pulse at the rising edge of the clock A (100) matched, and negate it at the end of the count signal (105),
The trailing edge control signal generation means (5) includes a value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107), The remainder value (114) obtained by the divider circuit means (11) is added, and the trailing edge control signal of the trailing edge of the pulse at the rising edge of the clock B (101) where the added value and the count signal (106) coincide. The pulse width modulation device according to claim 1, wherein (109) is negated and asserted at the start point of the count signal (106).
前縁制御信号生成手段(4)は、デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(106)の値から前記除算回路手段(11)により得られた余りの値(114)を減算し、この減算値とカウント信号(106)の一致したクロックB(101)の立ち上がりエッジでパルス前縁の前縁制御信号(108)をアサートし、カウント信号(106)の終点でネゲートし、
前記後縁制御信号生成手段(5)は、前記デジタル信号(107)のサンプリングクロック周期内においてクロックA(100)とクロックB(101)のある同期時点のカウント信号(105)の値から前記除算回路手段(11)により得られた余りの値(114)を減算したあと、前記除算回路手段(11)により得られた商の値(113)を加算し、この加算値とカウント信号(105)の一致したクロックA(100)の立ち上がりエッジでパルス後縁の後縁制御信号(109)をネゲートし、カウント信号(105)の始点でアサートするものである請求項1に記載のパルス幅変調装置。
The leading edge control signal generating means (4) calculates the dividing circuit means from the value of the count signal (106) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107). The remainder value (114) obtained by (11) is subtracted, and the leading edge control signal (108) of the leading edge of the pulse is generated at the rising edge of the clock B (101) where the subtraction value matches the count signal (106). Assert, negate at the end of the count signal (106),
The trailing edge control signal generation means (5) performs the division from the value of the count signal (105) at a certain synchronization point of the clock A (100) and the clock B (101) within the sampling clock period of the digital signal (107). After the remainder value (114) obtained by the circuit means (11) is subtracted, the quotient value (113) obtained by the division circuit means (11) is added, and this added value and the count signal (105) The pulse width modulation device according to claim 1, wherein the trailing edge control signal (109) of the trailing edge of the pulse is negated at the rising edge of the clock A (100) that coincides with each other and asserted at the start point of the count signal (105). .
前記クロックA(100)とクロックB(101)におけるNの値が2又は10の累乗である請求項1ないし請求項3のいずれかに記載のデジタル方式パルス幅変調装置。   4. The digital pulse width modulation device according to claim 1, wherein a value of N in the clock A (100) and the clock B (101) is a power of 2 or 10. 前記クロックA(100)とクロックB(101)におけるMの値が2以上の整数である請求項1ないし請求項4のいずれかに記載のデジタル方式パルス幅変調装置。
5. The digital pulse width modulation device according to claim 1, wherein a value of M in the clock A (100) and the clock B (101) is an integer of 2 or more.
JP2007142974A 2007-05-30 2007-05-30 Digital pulse width modulation apparatus Pending JP2008301017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007142974A JP2008301017A (en) 2007-05-30 2007-05-30 Digital pulse width modulation apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007142974A JP2008301017A (en) 2007-05-30 2007-05-30 Digital pulse width modulation apparatus

Publications (1)

Publication Number Publication Date
JP2008301017A true JP2008301017A (en) 2008-12-11

Family

ID=40174140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007142974A Pending JP2008301017A (en) 2007-05-30 2007-05-30 Digital pulse width modulation apparatus

Country Status (1)

Country Link
JP (1) JP2008301017A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013187651A (en) * 2012-03-07 2013-09-19 Toyota Central R&D Labs Inc Pulse width modulation signal output device
CN103812476A (en) * 2012-11-12 2014-05-21 产晶积体电路股份有限公司 Sine wave pulse width modulation controller
JP2017215955A (en) * 2016-05-30 2017-12-07 ローム株式会社 Random number generation method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013187651A (en) * 2012-03-07 2013-09-19 Toyota Central R&D Labs Inc Pulse width modulation signal output device
CN103812476A (en) * 2012-11-12 2014-05-21 产晶积体电路股份有限公司 Sine wave pulse width modulation controller
CN103812476B (en) * 2012-11-12 2016-08-10 产晶积体电路股份有限公司 Sine wave pulse width adjusting controller
JP2017215955A (en) * 2016-05-30 2017-12-07 ローム株式会社 Random number generation method

Similar Documents

Publication Publication Date Title
US7924071B2 (en) Synchronization detection circuit, pulse width modulation circuit using the same, and synchronization detection method
JP2006319399A (en) Pulse width modulation circuit and polyphase clock generating circuit
JP5787849B2 (en) Frequency synthesizer
US8558589B2 (en) Fully digital method for generating sub clock division and clock waves
JP6417699B2 (en) Rotation detection device and rotation detection method
WO2006135058A1 (en) Time interval measuring apparatus and jitter measuring apparatus using the same
JP2006129452A (en) Frequency lock detector
JP2008301017A (en) Digital pulse width modulation apparatus
JP5001606B2 (en) Timing detection circuit
EP1174721A2 (en) Jitter detecting apparatus and phase locked loop using the detected jitter
US7375562B2 (en) Phase locked system for generating distributed clocks
JPH066212A (en) Phase comparator circuit and phase locked loop oscillation circuit with the same
JP3967370B1 (en) Digital pulse width modulator
JP2007202151A (en) Integrated circuit for asynchronous serial data transfer with bit length counter
JP2011151672A (en) Frequency division device and control circuit
JP2007010593A (en) Frequency measurement circuit, and vibration sensor type differential pressure/pressure transmitter using the same
US7468601B2 (en) Direct phase and frequency demodulation
JP3696207B2 (en) Demodulator with phase adjustment function
JP2005012363A (en) Clock phase adjusting circuit
JP2004023599A (en) Frequency divider circuit
JP2000022534A (en) Frequency synthesizer
JP3163244B2 (en) Circuit to convert pulse width to digital value using multi-phase interpolation
KR100621518B1 (en) Multi-phase clock divider
KR20220014991A (en) Digital loop filter in all-digital phase locked loop
JP2006087059A (en) Apparatus and method for generating equaly spaced pulse train