JP5652873B2 - Digital-to-analog converter and control method thereof - Google Patents

Digital-to-analog converter and control method thereof Download PDF

Info

Publication number
JP5652873B2
JP5652873B2 JP2010280378A JP2010280378A JP5652873B2 JP 5652873 B2 JP5652873 B2 JP 5652873B2 JP 2010280378 A JP2010280378 A JP 2010280378A JP 2010280378 A JP2010280378 A JP 2010280378A JP 5652873 B2 JP5652873 B2 JP 5652873B2
Authority
JP
Japan
Prior art keywords
value
output
outputs
bit
converter
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.)
Active
Application number
JP2010280378A
Other languages
Japanese (ja)
Other versions
JP2012129849A (en
Inventor
茂木 敏信
敏信 茂木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Network and System Integration Corp
Original Assignee
NEC Network and System Integration Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Network and System Integration Corp filed Critical NEC Network and System Integration Corp
Priority to JP2010280378A priority Critical patent/JP5652873B2/en
Publication of JP2012129849A publication Critical patent/JP2012129849A/en
Application granted granted Critical
Publication of JP5652873B2 publication Critical patent/JP5652873B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Analogue/Digital Conversion (AREA)

Description

本発明は、デジタル信号をアナログ信号に変換するデジタルアナログ変換装置およびその制御方法に関する。   The present invention relates to a digital-analog conversion apparatus that converts a digital signal into an analog signal and a control method thereof.

デジタル信号をアナログ信号に変換するDA変換を行うデジタルアナログコンバータ(DAC)においては、DACがDA変換を行うデジタル信号のビット数が多いほど、アナログ信号の出力レベル数が増加するので、ダイナミックレンジが増加し、出力レベルの精度が高くなる。具体的には、DA変換を行うデジタル信号のビット数が1ビット増えると、出力レベル数が2倍に増加し、ダイナミックレンジは6dB増加する。以下では、N(N≧2)ビットのデジタル信号のDA変換を行う、いわゆるマルチビット式のDACをNビットDACと称する。   In a digital-analog converter (DAC) that performs DA conversion that converts a digital signal into an analog signal, the number of analog signal output levels increases as the number of bits of the digital signal that the DAC performs DA conversion increases. Increase the accuracy of the output level. Specifically, when the number of bits of a digital signal for DA conversion increases by one bit, the number of output levels increases twice and the dynamic range increases by 6 dB. Hereinafter, a so-called multi-bit type DAC that performs DA conversion of an N (N ≧ 2) bit digital signal is referred to as an N-bit DAC.

12ビットDACの場合、ダイナミックレンジは72dB(=12ビット×6dB)となる。この12ビットDACの最大出力レベルを0dBVとすると、出力レベルの範囲は、0dBV〜−72dBVとなる。ここで、必要な出力レベルの精度を実現するために、−90dBVの出力レベルが必要である場合には、12ビットDACよりもダイナミックレンジの大きいDACを使用する必要がある。   In the case of a 12-bit DAC, the dynamic range is 72 dB (= 12 bits × 6 dB). If the maximum output level of the 12-bit DAC is 0 dBV, the output level range is 0 dBV to -72 dBV. Here, in order to achieve the required output level accuracy, when an output level of −90 dBV is required, it is necessary to use a DAC having a larger dynamic range than a 12-bit DAC.

しかし、DACを使用する際には、ダイナミックレンジだけでなく、アナログ信号の出力レート(アナログ信号の出力レベルの更新周期)も考慮する必要がある。   However, when using the DAC, it is necessary to consider not only the dynamic range but also the output rate of the analog signal (the update cycle of the output level of the analog signal).

一般に、DACとしては、高出力レート(MHz、GHzオーダー)であって、低ダイナミックレンジ(8ビットDAC、12ビットDACなど)のもの、または、低出力レート(kHzオーダー)であって、高ダイナミックレンジ(16ビットDAC、24ビットDACなど)のものが多く市販されている。   Generally, a DAC has a high output rate (MHz, GHz order) and a low dynamic range (8-bit DAC, 12-bit DAC, etc.), or a low output rate (kHz order) and a high dynamic rate. Many of the ranges (16-bit DAC, 24-bit DAC, etc.) are commercially available.

図9(a)は、ダイナミックレンジと出力レートとに応じたDACの分布を示し、図9(b)は、出力レートでみた各領域に属するDACの種類数を示し、図9(c)は、ダイナミックレンジでみた各領域に属するDACの種類数を示す。図9に示すように、高出力レート、低ダイナミックレンジの領域(領域A)、および、低出力レート、高ダイナミックレンジの領域(領域C)に属するDACの種類が多く、中出力レート、中ダイナミックレンジの領域(領域B)に属するDACの種類が少ない。   FIG. 9A shows the distribution of DAC according to the dynamic range and output rate, FIG. 9B shows the number of types of DAC belonging to each region as seen from the output rate, and FIG. The number of types of DACs belonging to each region viewed from the dynamic range is shown. As shown in FIG. 9, there are many types of DACs belonging to the high output rate, low dynamic range region (region A), and the low output rate, high dynamic range region (region C). There are few types of DACs belonging to the range region (region B).

したがって、必要な出力レートおよびダイナミックレンジを同時に満たすDACが存在しない場合がある。   Therefore, there may be no DAC that simultaneously satisfies the required output rate and dynamic range.

そこで、特許文献1(特開2006−101049号公報)には、NビットDACを有し、M(M>N)ビットのデジタル信号が入力されるデジタルアナログ変換装置において、Mビットのデジタル信号から(M−N)ビット分を切り捨てたNビットのデジタル信号に示される値を出力値(出力レベル)とする信号をNビットDACに出力させるとともに、ビットの切り捨てにより信号の出力値では表現できなくなる値を、所定期間における信号のパルス幅により再現する技術が開示されている。   Therefore, Patent Document 1 (Japanese Patent Laid-Open No. 2006-101049) describes an M-bit digital signal in a digital-to-analog conversion device having an N-bit DAC and receiving an M (M> N) -bit digital signal. A signal whose output value (output level) is the value indicated by the N-bit digital signal with (M−N) bits truncated is output to the N-bit DAC and cannot be expressed by the output value of the signal due to the bit truncation. A technique for reproducing a value by a pulse width of a signal in a predetermined period is disclosed.

特許文献1に開示の技術によれば、ビットの切り捨てにより表現できなくなる値を信号のパルス幅により再現することで、NビットDACのアナログ信号の出力レベルの精度を、MビットDAC相当にまで拡張することができるので、DACが必要な出力レベルの精度となるダイナミックレンジを満たさない場合にも、そのDACの出力レベルの精度を拡張させて使用することができる。   According to the technology disclosed in Patent Document 1, the accuracy of the output level of an analog signal of an N-bit DAC is extended to the equivalent of an M-bit DAC by reproducing a value that cannot be expressed by truncating bits by the pulse width of the signal. Therefore, even when the DAC does not satisfy the dynamic range that provides the accuracy of the required output level, the accuracy of the output level of the DAC can be extended and used.

特開2006−101049号公報JP 2006-101049 A

しかしながら、特許文献1に開示の技術においては、信号のパルス幅を異ならせるために、特許文献1の図13に示されるように、デジタルアナログ変換装置にN個の加算器を設け、これらの加算器に並列処理を行わせる。複数の加算器に並列処理させると、出力レベルの精度を拡張するビット数が増えるにつれて、処理負荷が増大するという課題がある。   However, in the technique disclosed in Patent Document 1, in order to make the pulse width of a signal different, as shown in FIG. 13 of Patent Document 1, the digital-analog converter is provided with N adders, and these additions are performed. Causes the machine to perform parallel processing. When a plurality of adders are processed in parallel, there is a problem that the processing load increases as the number of bits for extending the accuracy of the output level increases.

本発明の目的は、上述した課題を解決し、Mビットのデジタル信号をNビット(M>N)のDACで変換する際に、処理負荷の増大を抑制しつつ、アナログ信号の出力レベルの精度を向上させることができるデジタルアナログ変換装置およびその制御方法を提供することにある。   The object of the present invention is to solve the above-mentioned problems, and when converting an M-bit digital signal by an N-bit (M> N) DAC, the accuracy of the output level of the analog signal is suppressed while suppressing an increase in processing load. Is to provide a digital-to-analog conversion apparatus and a control method thereof.

上記目的を達成するために本発明のデジタルアナログ変換装置は、
Nビットのデジタル信号をアナログ信号に変換して出力するDAコンバータを有し、所定のサンプリング周期でM(M>N)ビットのデジタル信号が入力されるデジタルアナログ変換装置であって、
前記Mビットのデジタル信号に示される第1の値を、Nビットのデジタル信号で示される範囲内の第2の値となるように所定比で縮小して出力するスケール変換部と、
前記第2の値をNビットのデジタル信号で示される第3の値に変換して出力するビット長変換部と、
前記第2の値と前記第3の値との誤差を示す第4の値を算出して出力する誤差算出部と、
前記所定のサンプリング周期内で、前記第4の値を入力値とする所定の演算を複数回行い、演算結果が0である場合には前記第3の値を前記DAコンバータに出力し、前記演算結果が正である場合には、前記第3の値から1を減算した第5の値を前記DAコンバータに出力し、前記演算結果が負である場合には、前記第3の値に1を加算した第6の値を前記DAコンバータに出力する出力値決定部と、を有し、
前記出力値決定部は、誤差積算部と、極性判定部と、出力値算出部と、を備え、
前記誤差積算部は、前記所定の演算として、前記第4の値と、前回の前記所定の演算の演算結果と、前回の極性判定部の出力値と、の加算を行い、演算結果を出力し、
前記極性判定部は、前記演算結果が0である場合には0を出力し、前記演算結果が正である場合には−1を出力し、前記演算結果が負である場合には+1を出力し、
前記出力値算出部は、前記第3の値に前記極性判定部の出力値を加算した値を前記DAコンバータに出力する。
In order to achieve the above object, the digital-analog converter of the present invention provides:
A digital-to-analog converter having a DA converter that converts an N-bit digital signal into an analog signal and outputs the analog signal, and an M (M> N) -bit digital signal is input at a predetermined sampling period,
A scale conversion unit that outputs a first value indicated by the M-bit digital signal after being reduced by a predetermined ratio so as to be a second value within a range indicated by the N-bit digital signal;
A bit length conversion unit that converts the second value into a third value indicated by an N-bit digital signal and outputs the third value;
An error calculator that calculates and outputs a fourth value indicating an error between the second value and the third value;
Within the predetermined sampling period, a predetermined calculation using the fourth value as an input value is performed a plurality of times, and when the calculation result is 0, the third value is output to the DA converter, and the calculation is performed. When the result is positive, a fifth value obtained by subtracting 1 from the third value is output to the DA converter, and when the calculation result is negative, 1 is added to the third value. a sixth value of the sum have a, and an output value determination unit for outputting to the DA converter,
The output value determining unit includes an error integrating unit, a polarity determining unit, and an output value calculating unit,
The error integrating unit adds the fourth value, the calculation result of the previous predetermined calculation, and the output value of the previous polarity determination unit as the predetermined calculation, and outputs the calculation result ,
The polarity determination unit outputs 0 when the calculation result is 0, outputs -1 when the calculation result is positive, and outputs +1 when the calculation result is negative. And
The output value calculation unit outputs a value obtained by adding the output value of the polarity determination unit to the third value to the DA converter .

上記目的を達成するために本発明のデジタルアナログ変換装置の制御方法は、
Nビットのデジタル信号をアナログ信号に変換して出力するDAコンバータを有し、所定のサンプリング周期でM(M>N)ビットのデジタル信号が入力されるデジタルアナログ変換装置の制御方法であって、
スケール変換部が、前記Mビットのデジタル信号に示される第1の値を、Nビットのデジタル信号で示される範囲内の第2の値となるように所定比で縮小して出力し、
ビット長変換部が、前記第2の値をNビットのデジタル信号で示される第3の値に変換して出力し、
誤差算出部が、前記第2の値と前記第3の値との誤差を示す第4の値を算出して出力し、
出力値決定部が、前記所定のサンプリング周期内で、前記第4の値を入力値とする所定の演算を複数回行い、演算結果が0である場合には前記第3の値を前記DAコンバータに出力し、前記演算結果が正である場合には、前記第3の値から1を減算した第5の値を前記DAコンバータに出力し、前記演算結果が負である場合には、前記第3の値に1を加算した第6の値を前記DAコンバータに出力し、
誤差積算部が、前記所定の演算として、前記第4の値と、前回の前記所定の演算の演算結果と、前回の極性判定部の出力値と、の加算を行い、演算結果を出力し、
極性判定部が、前記演算結果が0である場合には0を出力し、前記演算結果が正である場合には−1を出力し、前記演算結果が負である場合には+1を出力し、
出力値算出部が、前記第3の値に前記極性判定部の出力値を加算した値を前記DAコンバータに出力する。
In order to achieve the above object, a method for controlling a digital-analog converter according to the present invention includes:
A control method for a digital-to-analog converter having a DA converter that converts an N-bit digital signal into an analog signal and outputs an M (M> N) -bit digital signal at a predetermined sampling period,
The scale conversion unit reduces the first value indicated by the M-bit digital signal by a predetermined ratio so as to be a second value within the range indicated by the N-bit digital signal, and outputs the reduced value.
A bit length conversion unit converts the second value into a third value indicated by an N-bit digital signal and outputs the third value;
An error calculation unit that calculates and outputs a fourth value indicating an error between the second value and the third value;
The output value determining unit performs a predetermined calculation using the fourth value as an input value a plurality of times within the predetermined sampling period, and when the calculation result is 0, the third value is converted to the DA converter. When the calculation result is positive, a fifth value obtained by subtracting 1 from the third value is output to the DA converter, and when the calculation result is negative, the fifth value is output. A sixth value obtained by adding 1 to the value of 3 is output to the DA converter ;
The error integrating unit performs addition of the fourth value, the previous calculation result of the predetermined calculation, and the output value of the previous polarity determination unit as the predetermined calculation, and outputs the calculation result.
The polarity determination unit outputs 0 when the calculation result is 0, outputs -1 when the calculation result is positive, and outputs +1 when the calculation result is negative. ,
The output value calculation unit outputs a value obtained by adding the output value of the polarity determination unit to the third value to the DA converter .

本発明によれば、ビット長変換による誤差に応じて所定の演算を行い、その演算結果に応じてアナログ信号の出力レベルを決定するので、DACの出力レベルの精度を拡張するビット数が増加しても、処理負荷の増大を抑制しつつ、アナログ信号の出力レベルの精度を向上させることができる。   According to the present invention, a predetermined calculation is performed according to an error caused by bit length conversion, and the output level of the analog signal is determined according to the calculation result. Therefore, the number of bits for extending the accuracy of the DAC output level is increased. However, it is possible to improve the accuracy of the output level of the analog signal while suppressing an increase in processing load.

本発明の一実施形態のデジタルアナログ変換装置の構成を示すブロック図である。It is a block diagram which shows the structure of the digital analog converter of one Embodiment of this invention. 図1に示すDSPの構成を示すブロック図である。It is a block diagram which shows the structure of DSP shown in FIG. 関連する16ビットDACの出力波形を示す図である。It is a figure which shows the output waveform of related 16-bit DAC. 関連する18ビットDACの出力波形を示す図である。It is a figure which shows the output waveform of related 18 bit DAC. 図1に示すDACの出力波形を示す図である。It is a figure which shows the output waveform of DAC shown in FIG. 図1に示すDACが1ビットDACである場合の、デジタルアナログ変換装置の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of a digital-analog converter when the DAC illustrated in FIG. 1 is a 1-bit DAC. 図6に示すDSPの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of DSP shown in FIG. 図6に示すDSPの構成の他の一例を示すブロック図である。It is a block diagram which shows another example of a structure of DSP shown in FIG. 一般的なDACの性能による分布を示す図である。It is a figure which shows the distribution by the performance of general DAC.

以下に、本発明を実施するための形態について図面を参照して説明する。   EMBODIMENT OF THE INVENTION Below, the form for implementing this invention is demonstrated with reference to drawings.

図1は、本発明の一実施形態のデジタルアナログ変換装置の構成を示すブロック図である。   FIG. 1 is a block diagram showing the configuration of a digital-to-analog converter according to an embodiment of the present invention.

図1に示すデジタルアナログ変換装置100は、デジタルシグナルプロセッサ(DSP)110と、N(N≧2)ビットDACであるDAコンバータ(DAC)120と、ローパスフィルタ(LPF)130と、を有する。   A digital-analog converter 100 shown in FIG. 1 includes a digital signal processor (DSP) 110, a DA converter (DAC) 120 that is an N (N ≧ 2) bit DAC, and a low-pass filter (LPF) 130.

M(M>N)ビットのデジタル信号がDSP110に入力される。   An M (M> N) bit digital signal is input to the DSP 110.

DSP110は、Mビットのデジタル信号が入力されると、そのMビットのデジタル信号をNビットのデジタル信号にビット長変換し、DAC120に出力する。   When an M-bit digital signal is input, the DSP 110 converts the M-bit digital signal into an N-bit digital signal and outputs the converted signal to the DAC 120.

DAC120は、クロック信号が入力され、そのクロック信号により定まる出力レートで、DSP110から出力されたNビットのデジタル信号に示される値を出力値とするアナログ信号をLPF130に出力する。   The DAC 120 receives a clock signal and outputs an analog signal to the LPF 130 having an output value that is a value indicated by the N-bit digital signal output from the DSP 110 at an output rate determined by the clock signal.

LPF130は、DAC120から出力されたアナログ信号の低域成分を通過させる。DAC120から出力されたアナログ信号の波形は、階段状の波形であるが、LPF130を通過させることで、連続的な波形となる。   The LPF 130 passes the low frequency component of the analog signal output from the DAC 120. Although the waveform of the analog signal output from the DAC 120 is a stepped waveform, it passes through the LPF 130 and becomes a continuous waveform.

次に、DSP110の構成を説明する。なお、DAC120およびLPF130の構成は当業者にとってよく知られており、本発明と直接関係しないので、説明を省略する。   Next, the configuration of the DSP 110 will be described. Note that the configurations of the DAC 120 and the LPF 130 are well known to those skilled in the art and are not directly related to the present invention, and thus the description thereof is omitted.

図2は、DSP110の構成を示すブロック図である。   FIG. 2 is a block diagram showing the configuration of the DSP 110.

図2に示すDSP110は、スケール変換部111と、ビット長変換部112と、誤差算出部113と、出力値決定部114と、を有する。   The DSP 110 illustrated in FIG. 2 includes a scale conversion unit 111, a bit length conversion unit 112, an error calculation unit 113, and an output value determination unit 114.

また、出力値決定部114は、誤差積算部115と、極性判定部116と、出力値算出部117と、を有する。   The output value determination unit 114 includes an error integration unit 115, a polarity determination unit 116, and an output value calculation unit 117.

Mビットのデジタル信号がスケール変換部111に入力される。   An M-bit digital signal is input to the scale converter 111.

スケール変換部111は、下記の式(1)を用いて、Mビットのデジタル信号に示される値(以下、Mビットスケールの値と称する)Inを、Nビットのデジタル信号に示される値(以下、Nビットスケールの値と称する)の範囲内の値Out1に変換し、ビット長変換部112と誤差算出部113とに出力する。   The scale converter 111 uses the following equation (1) to change a value (hereinafter referred to as an M-bit scale value) In indicated in an M-bit digital signal to a value (hereinafter referred to as an M-bit digital signal). , Referred to as an N-bit scale value) and output to the bit length conversion unit 112 and the error calculation unit 113.

Figure 0005652873
Figure 0005652873

ビット長変換部112は、スケール変換部111から出力された値Out1を入力値In1とし、入力値In1の小数点以下を切り捨てた値Out2を、誤差算出部113と出力値算出部117とに出力する。   The bit length conversion unit 112 sets the value Out1 output from the scale conversion unit 111 as the input value In1, and outputs the value Out2 obtained by truncating the decimal point of the input value In1 to the error calculation unit 113 and the output value calculation unit 117. .

誤差算出部113は、ビット長変換部112から出力された値Out2を入力値In2とし、また、スケール変換部111から出力された値Out1を入力値In3とし、下記の式(2)を用いて、値Out3を算出し、誤差積算部115に出力する。   The error calculation unit 113 sets the value Out2 output from the bit length conversion unit 112 as the input value In2, and sets the value Out1 output from the scale conversion unit 111 as the input value In3, using the following equation (2): The value Out3 is calculated and output to the error integrating unit 115.

Figure 0005652873
Figure 0005652873

出力値決定部114は、DAC120から出力されるアナログ信号の出力値を決定し、決定した出力値を示すNビットのデジタル信号をDAC120に出力する。   The output value determination unit 114 determines the output value of the analog signal output from the DAC 120 and outputs an N-bit digital signal indicating the determined output value to the DAC 120.

誤差積算部115は、誤差算出部113から出力された値Out3を入力値In4とし、また、極性判定部116から出力された値Out5を入力値In5とし、下記の式(3)を用いて、値Out4を算出し、極性判定部116に出力する。   The error integration unit 115 sets the value Out3 output from the error calculation unit 113 as the input value In4, and sets the value Out5 output from the polarity determination unit 116 as the input value In5, using the following equation (3): The value Out4 is calculated and output to the polarity determination unit 116.

Figure 0005652873
Figure 0005652873

なお、式(3)において、値Out4’は前回出力された値Out4を示し、入力値In5’は極性判定部116から前回出力された値Out5を示す。   In Expression (3), the value Out 4 ′ indicates the value Out 4 output last time, and the input value In 5 ′ indicates the value Out 5 output last time from the polarity determination unit 116.

極性判定部116は、誤差積算部115から出力された値Out4を入力値In6とし、入力値In6の正負を判定し、入力値In6が、0より大きい場合には“−1”を、0より小さい場合には“+1”を、0である場合には“0”を、値Out5として、誤差積算部115と出力値算出部117とに出力する。   The polarity determination unit 116 sets the value Out4 output from the error integration unit 115 as the input value In6, determines whether the input value In6 is positive or negative, and sets “−1” from 0 when the input value In6 is greater than 0. When the value is small, “+1” is output to the error integrating unit 115 and the output value calculating unit 117 as “0” when the value is 0.

出力値算出部117は、ビット長変換部112から出力された値Out1を入力値In7とし、また、極性判定部116から出力された値Out5を入力値In8とし、下記の式(4)を用いて、値Out6を算出しDAC120に出力する。   The output value calculation unit 117 sets the value Out1 output from the bit length conversion unit 112 as the input value In7, sets the value Out5 output from the polarity determination unit 116 as the input value In8, and uses the following equation (4). The value Out6 is calculated and output to the DAC 120.

Figure 0005652873
Figure 0005652873

次に、DSP110の動作を説明する。   Next, the operation of the DSP 110 will be described.

なお、以下では、1MHzのレートで、2の補数形式の16ビットのデジタル信号がスケール変換部111に入力されるものとし、また、DAC120が、2の補数形式の12ビットのデジタル信号のDA変換を行う、12ビットDACである場合を例として説明する。この場合、DAC120には、出力レートが16MHz(=1MHz×2^4(=16−12))となるクロック信号が入力される。また、DSP110は、16ビットのデジタル信号の1回の入力に対して、DAC120に12ビットのデジタル信号を16回出力する。   In the following description, it is assumed that a 16-bit digital signal in 2's complement format is input to the scale converter 111 at a rate of 1 MHz, and the DAC 120 performs DA conversion of a 12-bit digital signal in 2's complement format. A case where a 12-bit DAC is performed will be described as an example. In this case, a clock signal with an output rate of 16 MHz (= 1 MHz × 2 ^ 4 (= 16-12)) is input to the DAC 120. Further, the DSP 110 outputs a 12-bit digital signal to the DAC 120 16 times in response to one input of a 16-bit digital signal.

なお、2の補数形式の16ビットスケールの値を10進数で示すと、“+32767〜−32768”の範囲となり、2の補数形式の12ビットスケールの値を10進数で示すと、“+2047〜−2048”の範囲となる。したがって、16ビットのデジタル信号を12ビットのデジタル信号に変換するには、16ビットスケールの値を12ビットスケールの値の範囲の値に縮小する必要がある。   When a 16-bit scale value in 2's complement format is represented by a decimal number, the range is "+32767 to -32768". When a 12-bit scale value in 2's complement format is represented by a decimal number, "+2047 to- The range is 2048 ″. Therefore, in order to convert a 16-bit digital signal into a 12-bit digital signal, it is necessary to reduce the 16-bit scale value to a value in the range of the 12-bit scale value.

ここで、16ビットスケールの値が“+32767”である場合には、12ビットスケールの値は“+2047”となればよい。すなわち、値Out1を算出するための計算式は、式(5)のようになる。   Here, when the value of the 16-bit scale is “+32767”, the value of the 12-bit scale may be “+2047”. That is, the calculation formula for calculating the value Out1 is as shown in Formula (5).

Figure 0005652873
Figure 0005652873

一方、16ビットスケールの値が“−32768”である場合には、12ビットスケールの値は“−2048”となればよい。すなわち、値Out1を算出するための計算式は、式(6)のようになる。   On the other hand, when the 16-bit scale value is “−32768”, the 12-bit scale value may be “−2048”. That is, the calculation formula for calculating the value Out1 is as shown in Formula (6).

Figure 0005652873
Figure 0005652873

16ビットスケールの値の正負に応じて、値Out1を算出するための式が異なると、値Out1が不適当となることがあるので、式(5)または式(6)のいずれかに統一する必要がある。ここで、式(6)に統一すると、16ビットスケールの値が“+32767”である場合には、値Out1が“2047.9375”となり、12ビットスケールの値の範囲を超えてしまう。そこで、値Out1の算出に用いられる式は、より縮小率の大きい式(5)となる。   If the expression for calculating the value Out1 differs depending on whether the value of the 16-bit scale is positive or negative, the value Out1 may be inappropriate. Therefore, the expression Out (5) or the expression (6) is unified. There is a need. Here, when unified in the equation (6), when the 16-bit scale value is “+32767”, the value Out1 is “2047.9375”, which exceeds the range of the 12-bit scale value. Therefore, the expression used to calculate the value Out1 is Expression (5) with a larger reduction ratio.

なお、式(5)における、“2047”は“2^11(=12ビット(DAC120がDA変換可能なビット数)−1)−1”に相当し、“32767”は“2^15(=16ビット(入力されるデジタル信号のビット数)−1)−1”に相当する。したがって、DAC120がDA変換可能なビット数をNとし、入力されるデジタル信号のビット数をMとすると、上述した式(1)が導かれる。   In Expression (5), “2047” corresponds to “2 ^ 11 (= 12 bits (the number of bits that the DAC 120 can perform DA conversion) −1) −1”, and “32767” corresponds to “2 ^ 15 (= This corresponds to 16 bits (the number of bits of the input digital signal) -1) -1 ". Therefore, if the number of bits that can be DA-converted by the DAC 120 is N and the number of bits of the input digital signal is M, the above equation (1) is derived.

スケール変換部111は、上述した式(5)を用いて、値Out1を算出する。   The scale conversion unit 111 calculates the value Out1 using the above equation (5).

ビット長変換部112は、値Out1の小数点以下を切り捨てて、値Out2とする。   The bit length conversion unit 112 rounds down the decimal point of the value Out1 to obtain the value Out2.

誤差算出部113は、値Out2を入力値In2とし、値Out1を入力値In3とし、式(2)を用いて、値Out3を算出する。   The error calculation unit 113 sets the value Out2 as the input value In2, sets the value Out1 as the input value In3, and calculates the value Out3 using Expression (2).

なお、入力値In2と入力値In3との差は、値Out1の小数点以下の値であり、ビット長変換により生じる誤差に相当する。   The difference between the input value In2 and the input value In3 is a value after the decimal point of the value Out1, and corresponds to an error caused by bit length conversion.

誤差積算部115は、値Out3を入力値In4とし、また、極性判定部116から出力された値Out5を入力値In5とし、式(3)を用いて、値Out4を算出する。   The error integrating unit 115 sets the value Out3 as the input value In4, sets the value Out5 output from the polarity determination unit 116 as the input value In5, and calculates the value Out4 using Expression (3).

極性判定部116は、値Out4を入力値In6とし、入力値In6が、0より大きい場合には“−1”を、0より小さい場合には“+1”を、0である場合には“0”を、値Out5として出力する。   The polarity determination unit 116 sets the value Out4 as the input value In6, “−1” when the input value In6 is greater than 0, “+1” when it is less than 0, and “0” when it is 0. "Is output as the value Out5.

出力値算出部117は、値Out1を入力値In7とし、値Out5を入力値In8とし、式(4)を用いて、値Out6を算出し、DAC120に出力する。   The output value calculation unit 117 sets the value Out1 as the input value In7, sets the value Out5 as the input value In8, calculates the value Out6 using Expression (4), and outputs it to the DAC 120.

上述したように、16ビットのデジタル信号の1回の入力に対して、DSP110は、12ビットのデジタル信号を16回出力する。したがって、誤差積算部115、極性判定部116、および、出力値算出部117は、1回の16ビットのデジタル信号の入力に対して、それぞれの動作を16回繰り返す。   As described above, for one input of a 16-bit digital signal, the DSP 110 outputs a 12-bit digital signal 16 times. Therefore, the error integrating unit 115, the polarity determining unit 116, and the output value calculating unit 117 repeat the respective operations 16 times with respect to one input of a 16-bit digital signal.

次に、DAC120の動作を説明する。   Next, the operation of the DAC 120 will be described.

なお、以下では、DAC120は、16ビットDACであるとする。また、18ビットのデジタル信号がDSP110に入力され、DSP110は、その18ビットのデジタル信号を16ビットのデジタル信号に変換してDAC120に出力するものとする。   In the following, it is assumed that the DAC 120 is a 16-bit DAC. Further, an 18-bit digital signal is input to the DSP 110, and the DSP 110 converts the 18-bit digital signal into a 16-bit digital signal and outputs the converted signal to the DAC 120.

まず、一般的な16ビットDACの出力波形を図3に示す。   First, an output waveform of a general 16-bit DAC is shown in FIG.

図3(a)は、一般的な16ビットDACから出力される正弦波の一例を示す図である。また、図3(b)は、図3(a)に示す点線で囲まれた部分を拡大した波形を示す図である。なお、図3(b)において、点線で示された波形は、所望の出力波形を示す。   FIG. 3A is a diagram illustrating an example of a sine wave output from a general 16-bit DAC. FIG. 3B is a diagram showing a waveform obtained by enlarging a portion surrounded by a dotted line shown in FIG. In FIG. 3B, a waveform indicated by a dotted line indicates a desired output waveform.

図3(b)に示すように、16ビットDACから所定のサンプリング周期で信号が出力され、その出力波形は階段状になっている。   As shown in FIG. 3B, a signal is output from the 16-bit DAC at a predetermined sampling period, and the output waveform is stepped.

なお、16ビットDACの分解能(出力レベルの精度)は、65535段(=2^16ビット−1)である。ここで、所望の出力値が、16ビットDACの分解能の1段1段の間に位置する場合、所望の出力値と16ビットDACの出力値との間に誤差が生じることになる。この誤差がDACの出力レベルの精度に影響する。   The resolution (output level accuracy) of the 16-bit DAC is 65535 stages (= 2 ^ 16 bits-1). Here, if the desired output value is located between one stage and one stage of 16-bit DAC resolution, an error occurs between the desired output value and the 16-bit DAC output value. This error affects the accuracy of the output level of the DAC.

次に、一般的な18ビットDACの出力波形を図4に示す。   Next, an output waveform of a general 18-bit DAC is shown in FIG.

図4(a)は、一般的な18ビットDACから出力される正弦波の一例を示す図である。また、図4(b)は、図4(a)に示す点線で囲まれた部分を拡大した波形を示す図である。なお、図4(b)において、点線で示された波形は、所望の出力波形を示す。   FIG. 4A is a diagram illustrating an example of a sine wave output from a general 18-bit DAC. FIG. 4B is a diagram showing a waveform obtained by enlarging a portion surrounded by a dotted line shown in FIG. In FIG. 4B, a waveform indicated by a dotted line indicates a desired output waveform.

18ビットDACの分解能は、262143段(=2^18ビット−1)であり、出力レベル数が多いので、図4(b)に示すように、16ビットDACよりも所望の出力値との誤差を小さくすることができる。   Since the resolution of the 18-bit DAC is 262143 stages (= 2 ^ 18 bits-1) and the number of output levels is large, as shown in FIG. 4B, the error from the desired output value is higher than that of the 16-bit DAC. Can be reduced.

次に、本実施形態におけるDAC120の出力波形を図5に示す。   Next, the output waveform of the DAC 120 in this embodiment is shown in FIG.

図5(a)は、DAC120から出力される正弦波の一例を示す図である。また、図5(b)は、図5(a)に示す点線で囲まれた部分を拡大した波形を示す図である。なお、図5(b)において、点線で示された波形は、所望の出力波形を示す。   FIG. 5A is a diagram illustrating an example of a sine wave output from the DAC 120. FIG. 5B is a diagram showing a waveform obtained by enlarging a portion surrounded by a dotted line shown in FIG. In FIG. 5B, a waveform indicated by a dotted line indicates a desired output waveform.

DAC120は、Mビットのデジタル信号の入力レートの4(=2^(18−16))倍の出力レートとなるクロック信号が入力され、そのクロック信号により規定されるサンプリング周期で信号を出力する。   The DAC 120 receives a clock signal having an output rate 4 (= 2 ^ (18-16)) times the input rate of the M-bit digital signal, and outputs a signal at a sampling period defined by the clock signal.

以下では、18ビットスケールの値が“1310001”であるとする。   In the following, it is assumed that the value of the 18-bit scale is “1310001”.

DSP110は、18ビットスケールの値を16ビットスケールの値に変換し、サンプリング周期Aにおいては値“327501(327500+1LSB)”を、サンプリング周期Bにおいては値“327499(327500−1LSB)”を、サンプリング周期Cにおいては値“327501(327500+1LSB)”を、サンプリング周期Dにおいては値“327500(0LSB)”を示す16ビットのデジタル信号を出力する。   The DSP 110 converts the value of the 18-bit scale into the value of the 16-bit scale, the value “327501 (327500 + 1LSB)” in the sampling period A, the value “327499 (327500-1LSB)” in the sampling period B, and the sampling period A 16-bit digital signal indicating the value “327501 (327500 + 1LSB)” is output in C, and the value “327500 (0LSB)” is output in the sampling period D.

なお、「327500+1LSB」とは、“327500”に“1”を加算することを示し、「327500−1LSB」とは、“327500”から“1”を減算することを示し、「327500(0LSB)」とは、加算も減算も行わないことを示す。   “327500 + 1LSB” indicates that “1” is added to “327500”, and “327500-1LSB” indicates that “1” is subtracted from “327500”, and “327500 (0LSB)”. Indicates that neither addition nor subtraction is performed.

DAC120は、DSP110から出力された16ビットのデジタル信号に応じて、サンプリング周期Aにおいては出力値“327501”の、サンプリング周期Bにおいては出力値“327499”の、サンプリング周期Cにおいては出力値“327501”の、サンプリング周期Dにおいては出力値“327500”の信号を出力する。   The DAC 120 outputs the output value “327501” in the sampling period A, the output value “327499” in the sampling period B, and the output value “327501” in the sampling period C according to the 16-bit digital signal output from the DSP 110. In the sampling period D, a signal having an output value “327500” is output.

すなわち、サンプリング周期A〜Dにおいて、出力値“327501”の信号が2回、出力値“327500”および出力値“327499”の信号が1回、出力される。   That is, in the sampling periods A to D, the signal having the output value “327501” is output twice, and the signals having the output value “327500” and the output value “327499” are output once.

ここで、16ビットスケールの値“327501”は18ビットスケールの値“1310004”に、16ビットスケールの値“327499”は18ビットスケールの値“1309996”に、16ビットスケールの値“327500”は18ビットスケールの値“1310000”に相当する。   Here, the 16-bit scale value “327501” is the 18-bit scale value “1310004”, the 16-bit scale value “327499” is the 18-bit scale value “1309996”, and the 16-bit scale value “327500” is This corresponds to the value “1310000” of the 18-bit scale.

つまり、サンプリング周期A〜Dにおいて、値“1310004”に相当する信号が2回、値“1310000”および値“1309996”に相当する信号が1回、出力されたことになる。   That is, in the sampling periods A to D, a signal corresponding to the value “1310004” is output twice, and a signal corresponding to the value “1310000” and the value “1309996” is output once.

したがって、サンプリング周期A〜Dで平均すると、18ビットスケールの値“1310001”に相当する出力値の信号が出力されたことになるので、16ビットDACであるDAC120の出力レベルの精度が、18ビットDAC相当にまで、2ビット分拡張されたことになる。   Therefore, when averaged over the sampling periods A to D, a signal having an output value corresponding to the value “1310001” on the 18-bit scale is output. Therefore, the accuracy of the output level of the DAC 120 which is a 16-bit DAC is 18 bits. That is, it is extended by 2 bits to the DAC equivalent.

なお、16ビットスケールにビット長変換された値に、“1”を加算した値、“1”を減算した値、または、加算も減算も行わない値を出力値とする信号が、所定期間内において出力される回数に応じて、DAC120から出力される信号の、18ビットスケールで相当する値を表1のように調整することができる。表1において、「+1」は、ビット長変換された値に、“+1”を加算した値を示し、「−1」は“1”を減算した値を示し、「0」は加算も減算も行われていない値を示す。   A signal whose output value is a value obtained by adding “1”, a value obtained by subtracting “1”, or a value that is not added or subtracted to a value that has been bit-length converted to a 16-bit scale is output within a predetermined period. The value corresponding to the 18-bit scale of the signal output from the DAC 120 can be adjusted as shown in Table 1 in accordance with the number of times of output in FIG. In Table 1, “+1” indicates a value obtained by adding “+1” to the bit length converted value, “−1” indicates a value obtained by subtracting “1”, and “0” indicates addition or subtraction. Indicates a value that has not been performed.

Figure 0005652873
Figure 0005652873

このように、本実施形態においては、スケール変換部111およびビット長変換部112の出力値の誤差に応じて、所定期間におけるDAC120の出力値を増減させることで、ビット長変換により表現できなくなる値を再現する、パルス密度変調を行っている。   As described above, in this embodiment, a value that cannot be expressed by bit length conversion by increasing or decreasing the output value of the DAC 120 in a predetermined period according to the error in the output values of the scale conversion unit 111 and the bit length conversion unit 112. To reproduce the pulse density modulation.

したがって、本実施形態においては、特許文献1に開示の技術のように、ビットの切り捨てにより表現できなくなる値に応じてパルス幅を異ならせる、パルス幅変調を行うための複数の加算器による並列処理が不要となり、拡張するビット数が増加しても処理負荷の増大を抑制することができる。   Accordingly, in the present embodiment, as in the technique disclosed in Patent Document 1, parallel processing by a plurality of adders for performing pulse width modulation, in which the pulse width is changed according to a value that cannot be expressed by truncating bits. Therefore, even if the number of bits to be expanded increases, an increase in processing load can be suppressed.

なお、「+1」、「−1」、「0」の出力回数は、表1に示した例に限られるものではない。   The number of outputs of “+1”, “−1”, and “0” is not limited to the example shown in Table 1.

また、上述したように、DAC120の出力波形は階段状であるため、出力されるアナログ信号には高周波ノイズが混在する。通常、LPF130を通過させることで、この高周波ノイズを減衰させているが、頻繁にDAC120の出力値を変化させると、高周波ノイズがさらに高域にシフトする。ノイズが高域にシフトすると、LPF130による高周波ノイズを減衰が容易となり、ノイズの除去性能が上がる。したがって、「+1」、「−1」、「0」の出力順序は、極力、同じ値が連続しないようにするのが望ましい。   As described above, since the output waveform of the DAC 120 is stepped, high frequency noise is mixed in the output analog signal. Normally, the high-frequency noise is attenuated by passing through the LPF 130. However, if the output value of the DAC 120 is frequently changed, the high-frequency noise is further shifted to a higher frequency. When the noise shifts to a high frequency, the high frequency noise by the LPF 130 is easily attenuated, and the noise removal performance is improved. Therefore, it is desirable that the output order of “+1”, “−1”, and “0” should be such that the same value does not continue as much as possible.

このように本実施形態によれば、デジタルアナログ変換装置100は、Mビットのデジタル信号をNビットのデジタル信号にビット長変換し、ビット長変換により生じた誤差に応じて、所定期間におけるDAC120から出力される信号の出力値を“1”だけ増減させ、その所定期間におけるDAC120から出力される信号の出力値が、Mビットのデジタル信号に示される値に相当する値となるようにする。   As described above, according to the present embodiment, the digital-to-analog converter 100 converts the M-bit digital signal into an N-bit digital signal and converts the bit length from the DAC 120 in a predetermined period according to an error caused by the bit-length conversion. The output value of the output signal is increased or decreased by “1” so that the output value of the signal output from the DAC 120 during the predetermined period becomes a value corresponding to the value indicated in the M-bit digital signal.

したがって、処理負荷の増大を抑制しつつ、NビットDACであるDAC120のアナログ信号の出力レベルの精度を、MビットDAC相当まで拡張することができる。   Therefore, the accuracy of the output level of the analog signal of the DAC 120, which is an N-bit DAC, can be extended to the equivalent of an M-bit DAC while suppressing an increase in processing load.

なお、本実施形態においては、DAC120が、マルチビット式のDACである場合を例として説明したが、本発明はこれに限られるものではなく、1ビットDAC、すなわち、バッファである場合にも適用することができる。   In the present embodiment, the case where the DAC 120 is a multi-bit type DAC has been described as an example. However, the present invention is not limited to this, and the present invention is also applicable to a case of a 1-bit DAC, that is, a buffer. can do.

図6は、1ビットDACであるバッファを有するデジタルアナログ変換装置200の構成を示す図である。   FIG. 6 is a diagram showing a configuration of a digital-to-analog converter 200 having a buffer that is a 1-bit DAC.

図6に示すデジタルアナログ変換装置200は、DSP210と、バッファ220と、帯域通過フィルタ(BPF)230と、を有する。   The digital-analog converter 200 shown in FIG. 6 includes a DSP 210, a buffer 220, and a band pass filter (BPF) 230.

Mビットのデジタル信号が、DSP210に入力される。   An M-bit digital signal is input to the DSP 210.

DSP210は、Mビットのデジタル信号が入力されると、1ビットのデジタル信号にビット長変換を行い、バッファ220に出力する。   When an M-bit digital signal is input, the DSP 210 converts the bit length into a 1-bit digital signal and outputs the converted signal to the buffer 220.

バッファ220は、DSP210から出力された1ビットのデジタル信号に応じた出力値の信号を、アナログ信号としてBPF230に出力する。   The buffer 220 outputs a signal having an output value corresponding to the 1-bit digital signal output from the DSP 210 to the BPF 230 as an analog signal.

BPF230は、バッファ220から出力されたアナログ信号の所定の帯域成分を通過させる。ここで、バッファ220は1ビットDACであるので、バッファ220から出力されるアナログ信号には、直流成分が残留する。この直流成分を除去するために、LPF130からBPF230に変更される。なお、アナログ信号に直流成分が残留してもよい場合には、LPF130を用いてもよい。   The BPF 230 passes a predetermined band component of the analog signal output from the buffer 220. Here, since the buffer 220 is a 1-bit DAC, a DC component remains in the analog signal output from the buffer 220. In order to remove this DC component, the LPF 130 is changed to the BPF 230. Note that the LPF 130 may be used when a DC component may remain in the analog signal.

次に、DSP210の構成を説明する。なお、バッファ220およびBPF230の構成は当業者にとってよく知られており、本発明と直接関係しないので、説明を省略する。   Next, the configuration of the DSP 210 will be described. Note that the configurations of the buffer 220 and the BPF 230 are well known to those skilled in the art and are not directly related to the present invention, and thus the description thereof is omitted.

図7は、DSP210の構成を示す図である。なお、図7において、図2と同様の構成については同じ符号を付し、説明を省略する。   FIG. 7 is a diagram illustrating the configuration of the DSP 210. In FIG. 7, the same components as those in FIG.

図7に示すDSP210は、図2に示すDSP110と比較して、スケール変換部111をスケール変換部211に変更した点と、誤差算出部113を誤差算出部213に変更した点と、誤差積算部115を誤差積算部215に変更した点と、極性判定部116を極性判定部216に変更した点と、が異なる。   The DSP 210 shown in FIG. 7 is different from the DSP 110 shown in FIG. 2 in that the scale converter 111 is changed to a scale converter 211, the error calculator 113 is changed to an error calculator 213, and an error integrator. The difference is that 115 is changed to the error integration unit 215 and the polarity determination unit 116 is changed to the polarity determination unit 216.

スケール変換部211は、Mビットのデジタル信号が入力されると、下記の式(7)を用いて、値Out1を算出し、ビット長変換部112と誤差算出部213とに出力する。   When an M-bit digital signal is input, the scale converter 211 calculates a value Out1 using the following equation (7) and outputs the value Out1 to the bit length converter 112 and the error calculator 213.

Figure 0005652873
Figure 0005652873

なお、16ビットスケールの値を10進数で示すと、“0〜+65535”の範囲となる。また、1ビットスケールの値を10進数で示すと、“0〜+1”の範囲となる。したがって、16ビットのデジタル信号を1ビットのデジタル信号に変換するには、その16ビットスケールの値を1ビットのデジタル信号で示される範囲内の値に縮小する必要がある。   When the 16-bit scale value is represented by a decimal number, it is in the range of “0 to +65535”. Further, when the value of the 1-bit scale is represented by a decimal number, the range is “0 to +1”. Therefore, in order to convert a 16-bit digital signal into a 1-bit digital signal, it is necessary to reduce the 16-bit scale value to a value within the range indicated by the 1-bit digital signal.

ここで、16ビットスケールの値が“+65535”である場合には、1ビットスケールの値が“+1”となればよい。すなわち、値Out1を算出するための計算式は、式(8)のようになる。   Here, when the value of the 16-bit scale is “+65535”, the value of the 1-bit scale may be “+1”. That is, the calculation formula for calculating the value Out1 is as shown in the formula (8).

Figure 0005652873
Figure 0005652873

なお、式(8)における、“1”は、“2^1(=1ビット(バッファ220がDA変換可能なビット数))−1”に相当し、“65535”は“2^16(=16ビット(入力されるデジタル信号のビット数))−1”に相当する。   In Expression (8), “1” corresponds to “2 ^ 1 (= 1 bit (the number of bits that the buffer 220 can perform DA conversion)) − 1”, and “65535” corresponds to “2 ^ 16 (= This corresponds to 16 bits (the number of bits of the input digital signal) -1 ".

ここで、式(8)においては、16ビットスケールの値を縮小するのが目的であるため、 “65535”を増加させてもよい。したがって、 “65535”を、1だけ増加させた“65536=2^16”に置き換えると、上述した式(7)が導かれる。   Here, in Expression (8), since the purpose is to reduce the value of the 16-bit scale, “65535” may be increased. Accordingly, when “65535” is replaced with “65536 = 2 ^ 16” increased by 1, the above-described equation (7) is derived.

誤差算出部213は、ビット長変換部112から出力された値Out2を入力値In2とし、また、スケール変換部211から出力された値Out1を入力値In3とし、下記の式(9)を用いて値Out3を算出し、誤差積算部215に出力する。   The error calculation unit 213 sets the value Out2 output from the bit length conversion unit 112 as the input value In2, and sets the value Out1 output from the scale conversion unit 211 as the input value In3, using the following equation (9): The value Out3 is calculated and output to the error integrating unit 215.

Figure 0005652873
Figure 0005652873

誤差積算部215は、誤差算出部213から出力された値Out3を入力値In4とし、また、極性判定部216から出力された値Out5を入力値In5とし、下記の式(10)を用いて値Out4を算出し、極性判定部216に出力する。   The error integrating unit 215 sets the value Out3 output from the error calculating unit 213 as the input value In4, sets the value Out5 output from the polarity determining unit 216 as the input value In5, and uses the following equation (10) to obtain a value. Out4 is calculated and output to the polarity determination unit 216.

Figure 0005652873
Figure 0005652873

極性判定部216は、誤差積算部215から出力された値Out4を入力値In6とし、入力値In6が、0以上の場合には“0”を、0未満の場合には“+1”を、値Out5として、誤差積算部215と出力値算出部117とに出力する。   The polarity determination unit 216 sets the value Out4 output from the error integration unit 215 as the input value In6. When the input value In6 is 0 or more, “0” is set, and when the input value In6 is less than 0, “+1” is set. The output is output to the error integrating unit 215 and the output value calculating unit 117 as Out5.

なお、上述したように、例えば、入力値Inとして、16ビットスケールの値が入力される場合、その最大値は“65535”となる。   As described above, for example, when a 16-bit scale value is input as the input value In, the maximum value is “65535”.

また、式(7)においては、入力値Inを“2^16(=65536)”で除算する。したがって、スケール変換部211から出力される値Out1は常に、“1”未満になる。なお、16ビットスケールの値が入力される場合を例としてが、他のビットスケールの値が入力される場合にも同様に、値Out1は“1”未満となる。   In the equation (7), the input value In is divided by “2 ^ 16 (= 65536)”. Therefore, the value Out1 output from the scale conversion unit 211 is always less than “1”. Note that, when a 16-bit scale value is input as an example, the value Out1 is also less than “1” when another bit scale value is input.

値Out1が常に“1”未満であれば、ビット長変換部112から出力される値Out2は、常に0となり、式(9)は、式(11)のようになる。   If the value Out1 is always less than “1”, the value Out2 output from the bit length conversion unit 112 is always 0, and Equation (9) becomes Equation (11).

Figure 0005652873
Figure 0005652873

つまり、誤差算出部213は、スケール変換部211から出力された値Out1に、“2^M”を乗算して反転した値を値Out3として出力することになる。   That is, the error calculation unit 213 outputs a value Out3 obtained by multiplying the value Out1 output from the scale conversion unit 211 by “2 ^ M” and inverting it.

ここで、スケール変換部211では、入力値Inを“2^M”で除算した値を値Out1として出力し、誤差算出部213は、その値Out1に“2^M”を乗算している。したがって、スケール変換部211による“2^M”での除算と誤差算出部213による“2^M”の乗算とは相殺されることから不要となり、入力値Inの極性を反転して誤差積算部215に入力すればよいということが分かる。   Here, the scale conversion unit 211 outputs a value obtained by dividing the input value In by “2 ^ M” as a value Out1, and the error calculation unit 213 multiplies the value Out1 by “2 ^ M”. Therefore, the division by “2 ^ M” by the scale conversion unit 211 and the multiplication by “2 ^ M” by the error calculation unit 213 are canceled out and become unnecessary, and the polarity of the input value In is inverted to be an error integration unit. It can be seen that the input to 215 is sufficient.

入力値Inを反転した値を入力値In4として入力すると、値Out4の算出に用いられる式は、式(12)のようになる。   When a value obtained by inverting the input value In is input as the input value In4, the equation used to calculate the value Out4 is as shown in Equation (12).

Figure 0005652873
Figure 0005652873

また、値Out2が常に0であるので、極性判定部216から出力された値Out5がそのまま、値Out6となる。したがって、式(4)を用いた演算は不要となる。   Further, since the value Out2 is always 0, the value Out5 output from the polarity determination unit 216 becomes the value Out6 as it is. Therefore, the calculation using Expression (4) is not necessary.

上述した不要な処理を省くと、DSP210の構成を、より簡略化できる。   If the unnecessary processing described above is omitted, the configuration of the DSP 210 can be further simplified.

図8は、DSP210の他の構成を示すブロック図である。なお、図8において、図7と同様の構成については同じ符号を付し、説明を省略する。   FIG. 8 is a block diagram showing another configuration of the DSP 210. In FIG. 8, the same components as those in FIG. 7 are denoted by the same reference numerals and description thereof is omitted.

図8示すDSP210は、図7に示すDSP210と比較して、誤差積算部215を誤差積算部225に変更した点と、極性判定部216を極性判定部226に変更した点と、スケール変換部211、ビット長変換部112、誤差算出部213、および、出力値算出部117を削除した点と、が異なる。   The DSP 210 shown in FIG. 8 is different from the DSP 210 shown in FIG. 7 in that the error integration unit 215 is changed to the error integration unit 225, the polarity determination unit 216 is changed to the polarity determination unit 226, and the scale conversion unit 211. The bit length conversion unit 112, the error calculation unit 213, and the output value calculation unit 117 are deleted.

誤差積算部225は、入力されたデジタル信号に示される値を入力値In4とし、式(12)を用いて値Out4を算出し、極性判定部226に出力する。   The error integrating unit 225 uses the value indicated by the input digital signal as the input value In4, calculates the value Out4 using Expression (12), and outputs the value Out4 to the polarity determining unit 226.

極性判定部226は、値Out5と入力値In6とし、入力値In6が、0以上の場合には“0”を、0未満の場合には“+1”を、値Out5として誤差積算部225とDAC210とに出力する。   The polarity determination unit 226 sets the value Out5 and the input value In6 as "0" when the input value In6 is 0 or more, "+1" when the input value is less than 0, and sets the value Out5 as the error integration unit 225 and the DAC 210. And output.

このように、デジタルアナログ変換装置200によれば、DACが1ビットDACである場合にも、処理負荷の増大を抑制しつつ、アナログ信号の出力レベルの精度を拡張することができる。   Thus, according to the digital-analog converter 200, even when the DAC is a 1-bit DAC, the accuracy of the output level of the analog signal can be expanded while suppressing an increase in processing load.

100,200 デジタルアナログ変換装置
110,210 デジタルシグナルプロセッサ(DSP)
111,211 スケール変換部
112 ビット長変換部
113,213 誤差算出部
114 出力値決定部
115,215,225 誤差積算部
116,216,226 極性判定部
117 出力値算出部
120 デジタルアナログコンバータ(DAC)
130 ローパスフィルタ(LPF)
220 バッファ
230 バンドパスフィルタ(BPF)
100,200 Digital-to-analog converter 110,210 Digital signal processor (DSP)
111, 211 Scale conversion unit 112 Bit length conversion unit 113, 213 Error calculation unit 114 Output value determination unit 115, 215, 225 Error integration unit 116, 216, 226 Polarity determination unit 117 Output value calculation unit 120 Digital analog converter (DAC)
130 Low-pass filter (LPF)
220 Buffer 230 Band pass filter (BPF)

Claims (3)

Nビットのデジタル信号をアナログ信号に変換して出力するDAコンバータを有し、所定のサンプリング周期でM(M>N)ビットのデジタル信号が入力されるデジタルアナログ変換装置であって、
前記Mビットのデジタル信号に示される第1の値を、Nビットのデジタル信号で示される範囲内の第2の値となるように所定比で縮小して出力するスケール変換部と、
前記第2の値をNビットのデジタル信号で示される第3の値に変換して出力するビット長変換部と、
前記第2の値と前記第3の値との誤差を示す第4の値を算出して出力する誤差算出部と、
前記所定のサンプリング周期内で、前記第4の値を入力値とする所定の演算を複数回行い、演算結果が0である場合には前記第3の値を前記DAコンバータに出力し、前記演算結果が正である場合には、前記第3の値から1を減算した第5の値を前記DAコンバータに出力し、前記演算結果が負である場合には、前記第3の値に1を加算した第6の値を前記DAコンバータに出力する出力値決定部と、を有し、
前記出力値決定部は、誤差積算部と、極性判定部と、出力値算出部と、を備え、
前記誤差積算部は、前記所定の演算として、前記第4の値と、前回の前記所定の演算の演算結果と、前回の極性判定部の出力値と、の加算を行い、演算結果を出力し、
前記極性判定部は、前記演算結果が0である場合には0を出力し、前記演算結果が正である場合には−1を出力し、前記演算結果が負である場合には+1を出力し、
前記出力値算出部は、前記第3の値に前記極性判定部の出力値を加算した値を前記DAコンバータに出力することを特徴とするデジタルアナログ変換装置。
A digital-to-analog converter having a DA converter that converts an N-bit digital signal into an analog signal and outputs the analog signal, and an M (M> N) -bit digital signal is input at a predetermined sampling period,
A scale conversion unit that outputs a first value indicated by the M-bit digital signal after being reduced by a predetermined ratio so as to be a second value within a range indicated by the N-bit digital signal;
A bit length conversion unit that converts the second value into a third value indicated by an N-bit digital signal and outputs the third value;
An error calculator that calculates and outputs a fourth value indicating an error between the second value and the third value;
Within the predetermined sampling period, a predetermined calculation using the fourth value as an input value is performed a plurality of times, and when the calculation result is 0, the third value is output to the DA converter, and the calculation is performed. When the result is positive, a fifth value obtained by subtracting 1 from the third value is output to the DA converter, and when the calculation result is negative, 1 is added to the third value. a sixth value of the sum have a, and an output value determination unit for outputting to the DA converter,
The output value determining unit includes an error integrating unit, a polarity determining unit, and an output value calculating unit,
The error integrating unit adds the fourth value, the calculation result of the previous predetermined calculation, and the output value of the previous polarity determination unit as the predetermined calculation, and outputs the calculation result ,
The polarity determination unit outputs 0 when the calculation result is 0, outputs -1 when the calculation result is positive, and outputs +1 when the calculation result is negative. And
The output value calculation unit outputs a value obtained by adding the output value of the polarity determination unit to the third value to the DA converter .
請求項1記載のデジタルアナログ変換装置において、
前記DAコンバータから出力されたアナログ信号の所定の帯域成分を通過させるフィルタをさらに有することを特徴とするデジタルアナログ変換装置。
In a digital-to-analog converter according to claim 1 Symbol placement,
The digital-analog conversion apparatus further comprising a filter that allows a predetermined band component of the analog signal output from the DA converter to pass therethrough.
Nビットのデジタル信号をアナログ信号に変換して出力するDAコンバータを有し、所定のサンプリング周期でM(M>N)ビットのデジタル信号が入力されるデジタルアナログ変換装置の制御方法であって、
スケール変換部が、前記Mビットのデジタル信号に示される第1の値を、Nビットのデジタル信号で示される範囲内の第2の値となるように所定比で縮小して出力し、
ビット長変換部が、前記第2の値をNビットのデジタル信号で示される第3の値に変換して出力し、
誤差算出部が、前記第2の値と前記第3の値との誤差を示す第4の値を算出して出力し、
出力値決定部が、前記所定のサンプリング周期内で、前記第4の値を入力値とする所定の演算を複数回行い、演算結果が0である場合には前記第3の値を前記DAコンバータに出力し、前記演算結果が正である場合には、前記第3の値から1を減算した第5の値を前記DAコンバータに出力し、前記演算結果が負である場合には、前記第3の値に1を加算した第6の値を前記DAコンバータに出力し、
誤差積算部が、前記所定の演算として、前記第4の値と、前回の前記所定の演算の演算結果と、前回の極性判定部の出力値と、の加算を行い、演算結果を出力し、
極性判定部が、前記演算結果が0である場合には0を出力し、前記演算結果が正である場合には−1を出力し、前記演算結果が負である場合には+1を出力し、
出力値算出部が、前記第3の値に前記極性判定部の出力値を加算した値を前記DAコンバータに出力することを特徴とするデジタルアナログ変換装置の制御方法。
A control method for a digital-to-analog converter having a DA converter that converts an N-bit digital signal into an analog signal and outputs an M (M> N) -bit digital signal at a predetermined sampling period,
The scale conversion unit reduces the first value indicated by the M-bit digital signal by a predetermined ratio so as to be a second value within the range indicated by the N-bit digital signal, and outputs the reduced value.
A bit length conversion unit converts the second value into a third value indicated by an N-bit digital signal and outputs the third value;
An error calculation unit that calculates and outputs a fourth value indicating an error between the second value and the third value;
The output value determining unit performs a predetermined calculation using the fourth value as an input value a plurality of times within the predetermined sampling period, and when the calculation result is 0, the third value is converted to the DA converter. When the calculation result is positive, a fifth value obtained by subtracting 1 from the third value is output to the DA converter, and when the calculation result is negative, the fifth value is output. A sixth value obtained by adding 1 to the value of 3 is output to the DA converter ;
The error integrating unit performs addition of the fourth value, the previous calculation result of the predetermined calculation, and the output value of the previous polarity determination unit as the predetermined calculation, and outputs the calculation result.
The polarity determination unit outputs 0 when the calculation result is 0, outputs -1 when the calculation result is positive, and outputs +1 when the calculation result is negative. ,
An output value calculation unit outputs a value obtained by adding the output value of the polarity determination unit to the third value to the DA converter .
JP2010280378A 2010-12-16 2010-12-16 Digital-to-analog converter and control method thereof Active JP5652873B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010280378A JP5652873B2 (en) 2010-12-16 2010-12-16 Digital-to-analog converter and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010280378A JP5652873B2 (en) 2010-12-16 2010-12-16 Digital-to-analog converter and control method thereof

Publications (2)

Publication Number Publication Date
JP2012129849A JP2012129849A (en) 2012-07-05
JP5652873B2 true JP5652873B2 (en) 2015-01-14

Family

ID=46646386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010280378A Active JP5652873B2 (en) 2010-12-16 2010-12-16 Digital-to-analog converter and control method thereof

Country Status (1)

Country Link
JP (1) JP5652873B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021089157A (en) * 2019-12-02 2021-06-10 アズビル株式会社 Signal processor, measuring device, method for processing signal, and signal processing program
CN112945454A (en) * 2019-12-11 2021-06-11 安普泰科电子韩国有限公司 Pressure sensing device and processing method thereof
CN113806024A (en) * 2020-06-11 2021-12-17 卓品智能科技无锡有限公司 Method for coordinating signal values among different scheduling period modules

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5101204A (en) * 1990-03-26 1992-03-31 Burr-Brown Corporation Interpolation DAC and method
JPH0410812A (en) * 1990-04-27 1992-01-16 Sharp Corp Digital/analog conversion circuit
JPH0669804A (en) * 1992-08-24 1994-03-11 Nippondenso Co Ltd D/a converter
JP3142033B2 (en) * 1993-09-06 2001-03-07 富士電機株式会社 D / A conversion circuit
JPH1084281A (en) * 1996-09-06 1998-03-31 Nec Corp Da converter
JP2001008043A (en) * 1999-06-21 2001-01-12 Hitachi Ltd Signal processor and signal processing method
JP2003298424A (en) * 2002-04-05 2003-10-17 Matsushita Electric Ind Co Ltd Signal processor and d/a converter
JP2007281844A (en) * 2006-04-06 2007-10-25 Texas Instr Japan Ltd Method and apparatus for generating weight level

Also Published As

Publication number Publication date
JP2012129849A (en) 2012-07-05

Similar Documents

Publication Publication Date Title
WO2006012493A1 (en) High-order delta-sigma noise shaping in direct digital frequency synthesis
US20090326692A1 (en) Digital-to-analog converter for reducing pop noise and harmonic tone and related converting method
JP5652873B2 (en) Digital-to-analog converter and control method thereof
JP7139588B2 (en) CONVERTER, ELECTRONIC INSTRUMENT, INFORMATION PROCESSING DEVICE, CONVERSION METHOD AND PROGRAM
JP2000049538A (en) Digital signal generation device
JP5935824B2 (en) D / A converter
JP6217736B2 (en) Pulse width modulator and program thereof
TW201424276A (en) System and method of digital-to-analog converter
JP2778566B2 (en) D / A converter
US20080036632A1 (en) Signal-to-noise ratio when using fewer bits than the number of output bits of an analog to digital converter
JP5463485B2 (en) Audio device for 1-bit signal
JP2002064384A (en) Δς modulator, digital signal processor and method for processing digital signal
GB2444986A (en) Digital to analogue converter
JP3949560B2 (en) High-speed oversampling modulation circuit
US20100259425A1 (en) Digital signal processing device
JP3611359B2 (en) EFM modulator
JP4063723B2 (en) Bit length extension device, data processing device, bit length extension method, control program, and readable recording medium
JP2006050202A (en) Dem processing apparatus, d/a converter, and dem processing method
JP3071607B2 (en) Multiplication circuit
US11733970B2 (en) Arithmetic operation circuit
JP4259110B2 (en) Waveform data encoding apparatus and waveform data encoding method
KR100618315B1 (en) Apparatus and method for processing multiple trigonometric approximation of sine waveform, and apparatus and method for synthesizing direct digital frequency using the same
JP2019016002A (en) Data interpolation apparatus and data interpolation method
JP3355977B2 (en) A / D converter circuit
JPH1131976A (en) Parallel-serial converting circuit and digital signal processing circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131112

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140520

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140530

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140610

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140724

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20141021

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141113

R150 Certificate of patent or registration of utility model

Ref document number: 5652873

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150