JPH03220919A - Digital/analog converter - Google Patents
Digital/analog converterInfo
- Publication number
- JPH03220919A JPH03220919A JP1647890A JP1647890A JPH03220919A JP H03220919 A JPH03220919 A JP H03220919A JP 1647890 A JP1647890 A JP 1647890A JP 1647890 A JP1647890 A JP 1647890A JP H03220919 A JPH03220919 A JP H03220919A
- Authority
- JP
- Japan
- Prior art keywords
- pulse width
- width modulation
- digital value
- modulation counter
- digital
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明はデジタル信号をアナログ信号に変換するデジタ
ル・アナログ(DA)変換器に関するものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a digital-to-analog (DA) converter that converts a digital signal into an analog signal.
DA変換器は計測、制御、通信、家電など種々の分野で
のデジタル機器とアナログ機器の間のインターフェイス
として利用されている。例えば。DA converters are used as interfaces between digital devices and analog devices in various fields such as measurement, control, communication, and home appliances. for example.
ガスクロマトグラフや液体クロマトグラフなどのクロマ
トグラフィ機器において、データ処理されたデータをレ
コーダに出力する場合などに適する。Suitable for outputting processed data to a recorder in chromatography equipment such as gas chromatographs and liquid chromatographs.
(従来の技術)
計測機器のDA変換器としては、はしご型抵抗回路網を
用いたR−2Rラダ一方式のDA変換器が主に使用され
ている。ラダ一方式のDA変換器は、高分解能、高精度
を得るのが難しく、また高価となる。(Prior Art) As a DA converter for a measuring instrument, an R-2R ladder type DA converter using a ladder resistor network is mainly used. It is difficult to obtain high resolution and high accuracy with a ladder-type DA converter, and it is also expensive.
他の方式のDA変換器としては、入力デジタル値をパル
ス幅に変換し、そのパルス信号を低域ろ波回路に通すこ
とによりアナログ信号とするパルス幅変調(PWM)方
式のDA変換器がある。Another type of DA converter is a pulse width modulation (PWM) type DA converter that converts an input digital value into a pulse width and passes the pulse signal through a low-pass filter circuit to create an analog signal. .
PWM方式のDA変換器では、出力パルス信号は、一定
の繰返し周期をもち、入力デジタル量に従ってそのパル
ス幅が変調される。In a PWM type DA converter, the output pulse signal has a constant repetition period, and its pulse width is modulated according to the input digital amount.
(発明が解決しようとする課題)
PWM方式のDA変換器はラダ一方式のDA変換器に比
べて安価に構成できる利点をもっているが、入力デジタ
ル信号のビット数を多くして分解能を上げようとすると
応答速度が遅くなる問題がある。(Problem to be solved by the invention) A PWM type DA converter has the advantage of being cheaper to construct than a ladder type DA converter, but it is difficult to increase the resolution by increasing the number of bits of the input digital signal. Then, there is a problem that the response speed becomes slow.
本発明は、安価に構成できるPWM方式のDA変換器の
利点を生かしながら、応答速度を遅くしないで分解能を
上げることを目的とするものである。An object of the present invention is to take advantage of the advantages of a PWM type DA converter that can be constructed at low cost, while increasing the resolution without slowing down the response speed.
(課題を解決するための手段)
本発明は、与えられたデジタル値に対応した周期信号を
パルス幅変調カウンタの周期として出力する周期設定回
路と、パルス幅変調カウンタの分解能のビット数nより
大きいビット数mの入力データ値の上位nビットをパル
ス幅変調カウンタの入力デジタル値として供給するとと
もに、入力データ値に対応して周期設定回路に供給する
デジタル値を設定する制御部を備えている。(Means for Solving the Problems) The present invention provides a period setting circuit that outputs a periodic signal corresponding to a given digital value as the period of a pulse width modulation counter, and a period setting circuit that outputs a periodic signal corresponding to a given digital value as the period of a pulse width modulation counter, and a resolution of the pulse width modulation counter whose resolution is larger than n. The control section supplies the upper n bits of an input data value having m bits as an input digital value to a pulse width modulation counter, and also sets a digital value to be supplied to a period setting circuit in accordance with the input data value.
好ましい態様においては、制御部は1mビットの入力デ
ータ値をXとし、パルス幅変調カウンタ2に供給される
nビット(m>n)のデジタル値をX′としたとき、パ
ルス幅変調カウンタ2の出力パルスの繰返し周期tが
t=to・2(ト)−″)・X′/X
(ただしtoは基準同期)となるように、周期設定回路
へ供給するデジタル値を設定する。In a preferred embodiment, the control section calculates the value of the pulse width modulation counter 2, where X is a 1m-bit input data value and X' is an n-bit (m>n) digital value supplied to the pulse width modulation counter 2. The digital value supplied to the period setting circuit is set so that the repetition period t of the output pulse becomes t=to.2(t)-'').X'/X (where to is reference synchronization).
(作用)
本発明では分解能を上げるために大きなビット数をもつ
入力データを用いる。入力データに従ってパルス幅を変
調するパルス幅変調カウンタとしては、入力データのビ
ット数よりも少ないビット数のものを使用し、入力デー
タの上位ビットをカウントし、下位ビットを捨てる。入
力データのビット数を少なくすることにより発生する誤
差を、出力パルス信号の繰返し周期を入力データに対応
してyA整することにより修正する。(Operation) In the present invention, input data having a large number of bits is used to increase resolution. As a pulse width modulation counter that modulates the pulse width according to input data, a counter with a bit number smaller than the number of bits of the input data is used, and the upper bits of the input data are counted and the lower bits are discarded. Errors caused by reducing the number of bits of input data are corrected by adjusting the repetition period of the output pulse signal by yA in accordance with the input data.
(実施例) 第1図は一実施例を表わす。(Example) FIG. 1 represents one embodiment.
2はパルス幅変調(PWM)カウンタであり、例えば分
解能が↓6ビツトのものとする。8は制御部であり、制
御部8からパルス幅変調カウンタ2へは16ビツトのデ
ジタル信号X′が供給され。2 is a pulse width modulation (PWM) counter, which has a resolution of, for example, ↓6 bits. 8 is a control section, and a 16-bit digital signal X' is supplied from the control section 8 to the pulse width modulation counter 2.
パルス幅変調カウンタ2はそのデジタル信号X′に対応
したパルス幅X′の信号を作成して出力する。6はパル
ス幅変調周期設定レートジェネレータであり、例えば1
6ビツトの分解能をもつものとする。レートジェネレー
タ6は制御部8から与えられるデジタル値下に対応して
パルス幅変調カウンタ2の出力パルス信号の繰返し周期
tを表わす信号を作成し、これをパルス幅変調カウンタ
2のリセット信号として供給する。制御部8は例えば2
1ビツトのデジタル値の入力データ値Xからその上位1
6ビツトを用いてパルス幅変調カウンタ2に供給するデ
ジタル信号X′を作成し、また、その入力データ値Xに
対応してレートジェネレータ6に供給するデジタル値T
を作成する。The pulse width modulation counter 2 creates and outputs a signal having a pulse width X' corresponding to the digital signal X'. 6 is a pulse width modulation period setting rate generator, for example 1
It is assumed that the resolution is 6 bits. The rate generator 6 creates a signal representing the repetition period t of the output pulse signal of the pulse width modulation counter 2 in response to the digital value given from the control unit 8, and supplies this as a reset signal for the pulse width modulation counter 2. . The control unit 8 is, for example, 2
From the input data value of 1-bit digital value X, its upper 1
A digital signal X' to be supplied to the pulse width modulation counter 2 is created using 6 bits, and a digital value T is supplied to the rate generator 6 corresponding to the input data value X.
Create.
パルス幅変調カウンタ2とレートジェネレータ6には共
通のクロック信号が供給される。A common clock signal is supplied to the pulse width modulation counter 2 and the rate generator 6.
出力すべき信号、すなわち制御部8への入力データ値X
の分解能が2エビツトであり、パルス幅変調カウンタ2
の分解能が16ビツトであるので、パルス幅変調カウン
タ2の出力が飽和しないように、制御部8ではまず21
ビツトデータXを5ビツト右シフトして16ビツトデー
タX′を作成する。いま、Xの値が2進数で
r 101010101010101010101 J
であったとすると。The signal to be output, that is, the input data value X to the control unit 8
The resolution is 2 bits, and the pulse width modulation counter 2
Since the resolution of pulse width modulation counter 2 is 16 bits, in order to prevent the output of pulse width modulation counter 2 from being saturated, control section 8 first sets 21
Bit data X is shifted to the right by 5 bits to create 16-bit data X'. Now, the value of X is a binary number r 101010101010101010101 J
Suppose it was.
パルス幅変調カウンタ2に供給されるデジタル値X′は
r l0IOIOIOIOIOIOIOJとなり、下位
の5ビツトの情報が欠落する。このとき、出力はrlO
lololololololooooooJ / rl
OlolololololololololJ =Yの
割りで小さく出力される。The digital value X' supplied to the pulse width modulation counter 2 becomes r10IOIOIOIOIOIOIOIOJ, and the lower 5 bits of information are missing. At this time, the output is rlO
lololololololololooooooJ/rl
OlololololololololololJ = Output smaller by Y.
そこで、制御部8からレートジェネレータ6に与えられ
る繰返し周期tのデジタル値Tは、この小さくなった出
力を補正するために、パルス幅変調カウンタ2の出力パ
ルス信号の繰返し周期tを上記Yの比で小さくするよう
に算出される。Therefore, in order to correct this reduced output, the digital value T of the repetition period t given from the control unit 8 to the rate generator 6 is calculated by increasing the repetition period t of the output pulse signal of the pulse width modulation counter 2 by the ratio of the above Y. It is calculated to make it smaller.
第1図(A)のDA変換器の動作を同図(B)により説
明する。The operation of the DA converter shown in FIG. 1(A) will be explained with reference to FIG. 1(B).
レートジェネレータ6から周期tの信号がパルス幅変調
カウンタ2のリセット信号として入力されると、パルス
幅変調カウンタ2の出力パルス信号はリセット信号の入
力によりハイレベルとなり、デジタル値X′のクロック
をカウントする間(パルス幅x’)はハイレベルに維持
される。When a signal with period t is input from the rate generator 6 as a reset signal to the pulse width modulation counter 2, the output pulse signal of the pulse width modulation counter 2 becomes high level due to the input of the reset signal, and the clock of the digital value X' is counted. (pulse width x') is maintained at a high level.
制御部8では、第2図に示されるように入力データ値X
を2進数で5ビツト右シフトさせてX′を作成する。The control unit 8 inputs the input data value X as shown in FIG.
Create X' by right-shifting by 5 bits in binary.
X’=X/32 である。X’=X/32 It is.
また、繰返し周期tとして。Also, as the repetition period t.
t=(2(m−1)・32X′/X
の式により作成する。(2(m−1)は基準周期toと
してのレートジェネレータ6のフルスケールであり、3
2X′/Xは誤差補正値である。It is created using the formula t=(2(m-1)・32X'/X.(2(m-1) is the full scale of the rate generator 6 as the reference period to, and 3
2X'/X is an error correction value.
パルス幅変調カウンタ2から周期tでパルス幅x’(デ
ユーティに対応する)をもつパルス信号が出力され、こ
の出力パルス信号が低域ろ波器4に通されることにより
、入力データ値Xに相当するアナログ電圧■0となる。The pulse width modulation counter 2 outputs a pulse signal having a pulse width x' (corresponding to the duty) with a period t, and this output pulse signal is passed through the low-pass filter 4, so that the input data value The corresponding analog voltage becomes 0.
このアナログ出力電圧■0はレコーダなどに供給される
。This analog output voltage 0 is supplied to a recorder or the like.
(発明の効果)
本発明では入力データ値のビット数が多くて分解能が高
くても、パルス幅変調カウンタのビット数を小さくする
ことにより応答速度を速くすることができる。一方、パ
ルス幅変調カウンタのビット数を小さくしたことによる
誤差を出力パルス信号の繰返し周期を入力データ値に対
応して調整することにより補正する。(Effects of the Invention) According to the present invention, even if the input data value has a large number of bits and a high resolution, the response speed can be increased by reducing the number of bits of the pulse width modulation counter. On the other hand, errors caused by reducing the number of bits of the pulse width modulation counter are corrected by adjusting the repetition period of the output pulse signal in accordance with the input data value.
このように、本発明では特殊な部品を使用せずに、安価
に高分解能のDA変換器を実現することができる。Thus, according to the present invention, a high-resolution DA converter can be realized at low cost without using special parts.
第1図(A)は一実施例を示すブロック図。
(B)はパルス幅変調カウンタの出力パルス信号を示す
波形図、第2図は同実施例における制御部の動作を示す
フローチャート図である。
2・・・・・・パルス幅変調カウンタ、4・・・・低域
ろ波器、6 ・・・・パルス幅変調周期設定レートジェ
ネレータ、8・・・・・制御部。FIG. 1(A) is a block diagram showing one embodiment. (B) is a waveform diagram showing the output pulse signal of the pulse width modulation counter, and FIG. 2 is a flowchart showing the operation of the control section in the same embodiment. 2...Pulse width modulation counter, 4...Low pass filter, 6...Pulse width modulation cycle setting rate generator, 8...Control unit.
Claims (2)
調カウンタと、パルス幅変調カウンタの出力をアナログ
量に変換する変換回路とを備えたパルス幅変調方式のデ
ジタル・アナログ変換器において、与えられたデジタル
値に対応した周期信号を前記パルス幅変調カウンタの周
期として出力する周期設定回路と、前記パルス幅変調カ
ウンタの分解能のビット数nより大きいビット数mの入
力データ値の上位nビットを前記パルス幅変調カウンタ
の入力デジタル値として供給するとともに、入力データ
値に対応して前記周期設定回路に供給するデジタル値を
設定する制御部とを備えたことを特徴とするデジタル・
アナログ変換器。(1) In a pulse width modulation type digital-to-analog converter equipped with a pulse width modulation counter that converts an input digital value into a pulse width and a conversion circuit that converts the output of the pulse width modulation counter into an analog quantity, a period setting circuit that outputs a periodic signal corresponding to a digital value as the period of the pulse width modulation counter; A control section configured to supply a digital value as an input digital value to a pulse width modulation counter and to set a digital value supplied to the period setting circuit in accordance with an input data value.
analog converter.
とし、パルス幅変調カウンタに供給されるnビット(m
>n)のデジタル値をX′としたとき、パルス幅変調カ
ウンタの出力パルスの繰返し周期tが t=to・2^(^m^−^n^)・X′/X(ただし
toは基準同期)となるように、周期設定回路へ供給す
るデジタル値を設定する請求項1に記載のデジタル・ア
ナログ変換器。(2) In the control unit, the m-bit input data value is
and n bits (m
>n) is the digital value of 2. The digital-to-analog converter according to claim 1, wherein the digital value supplied to the period setting circuit is set so as to be synchronous.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016478A JPH073952B2 (en) | 1990-01-26 | 1990-01-26 | Digital / Analog converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2016478A JPH073952B2 (en) | 1990-01-26 | 1990-01-26 | Digital / Analog converter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03220919A true JPH03220919A (en) | 1991-09-30 |
| JPH073952B2 JPH073952B2 (en) | 1995-01-18 |
Family
ID=11917391
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2016478A Expired - Fee Related JPH073952B2 (en) | 1990-01-26 | 1990-01-26 | Digital / Analog converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH073952B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009010949A (en) * | 2007-06-27 | 2009-01-15 | Thomson Licensing | Method for generating variable analog signal generated by PWM signal and system for generating the signal |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5887916A (en) * | 1981-11-20 | 1983-05-25 | Hitachi Ltd | Digital-to-analog converter |
| JPH01169831U (en) * | 1988-05-19 | 1989-11-30 |
-
1990
- 1990-01-26 JP JP2016478A patent/JPH073952B2/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5887916A (en) * | 1981-11-20 | 1983-05-25 | Hitachi Ltd | Digital-to-analog converter |
| JPH01169831U (en) * | 1988-05-19 | 1989-11-30 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009010949A (en) * | 2007-06-27 | 2009-01-15 | Thomson Licensing | Method for generating variable analog signal generated by PWM signal and system for generating the signal |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH073952B2 (en) | 1995-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4233591A (en) | Digital-to-analog converter of the pulse width modulation type | |
| US20100302085A1 (en) | Field Device Having an Analog Output | |
| US5148373A (en) | Method and an arrangement for accurate digital determination of the time or phase position of a signal pulse train | |
| JPH0783267B2 (en) | Device for converting a binary signal into a DC signal proportional thereto | |
| GB1598783A (en) | Analogue-digital converter and conversion method | |
| JP2003174355A (en) | Pulse width modulation (pwm) converter programmable by digital system | |
| JPH03220919A (en) | Digital/analog converter | |
| US3995267A (en) | Digital to analog converter with system gain insensitivity | |
| JPS6159486A (en) | Display signal generator | |
| JPH09116438A (en) | Digital / analog converter | |
| RU2107390C1 (en) | Method for measuring shaft rotation angle | |
| JPH0376311A (en) | Pulse width modulation circuit | |
| JP3121854B2 (en) | Absolute signal generation method | |
| JPS6022681Y2 (en) | Digital to analog converter | |
| JPH057900B2 (en) | ||
| SU758218A1 (en) | CONVERTER ANGLE OF TURNING SHAFT INTO CODE 1 | |
| JPS61186026A (en) | Digital-analog converting circuit | |
| JP2517764Y2 (en) | D / A converter | |
| SU1224725A1 (en) | Meter of linear displacement speed | |
| SU566202A1 (en) | Momentary phase shift to dc voltage converter | |
| SU790099A1 (en) | Digital pulse repetition frequency multiplier | |
| JPH0361368B2 (en) | ||
| SU1594692A1 (en) | Method and apparatus for a-d conversion | |
| SU1029410A1 (en) | Device for converting voltage to resiual class system code | |
| SU1005128A2 (en) | Shaft angular position-to-code converter |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080118 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090118 Year of fee payment: 14 |
|
| LAPS | Cancellation because of no payment of annual fees |