JPH073952B2 - Digital / Analog converter - Google Patents

Digital / Analog converter

Info

Publication number
JPH073952B2
JPH073952B2 JP2016478A JP1647890A JPH073952B2 JP H073952 B2 JPH073952 B2 JP H073952B2 JP 2016478 A JP2016478 A JP 2016478A JP 1647890 A JP1647890 A JP 1647890A JP H073952 B2 JPH073952 B2 JP H073952B2
Authority
JP
Japan
Prior art keywords
pulse width
width modulation
modulation counter
bits
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.)
Expired - Fee Related
Application number
JP2016478A
Other languages
Japanese (ja)
Other versions
JPH03220919A (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.)
Shimadzu Corp
Original Assignee
Shimadzu 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 Shimadzu Corp filed Critical Shimadzu Corp
Priority to JP2016478A priority Critical patent/JPH073952B2/en
Publication of JPH03220919A publication Critical patent/JPH03220919A/en
Publication of JPH073952B2 publication Critical patent/JPH073952B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はデジタル信号をアナログ信号に変換するデジタ
ル・アナログ(DA)変換器に関するものである。
The present invention relates to a digital-analog (DA) converter for converting a digital signal into an analog signal.

DA変換器は計測、制御、通信、家電など種々の分野での
デジタル機器とアナログ機器の間のインターフェイスと
して利用されている。例えば、ガスクロマトグラフや液
体クロマトグラフなどのクロマトグラフィ機器におい
て、データ処理されたデータをレコーダに出力する場合
などに適する。
DA converters are used as interfaces between digital and analog devices in various fields such as measurement, control, communication, and home appliances. For example, it is suitable for outputting data processed data to a recorder in a chromatography device such as a gas chromatograph or a liquid chromatograph.

(従来の技術) 計測機器のDA変換器としては、はしご型抵抗回路網を用
いたR−2Rラダー方式のDA変換器が主に使用されてい
る。ラダー方式のDA変換器は、高分解能、高精度を得る
のが難しく、また高価となる。
(Prior Art) As a DA converter of a measuring instrument, an R-2R ladder type DA converter using a ladder resistance network is mainly used. It is difficult and expensive to obtain high resolution and high accuracy in a ladder DA converter.

他の方式のDA変換器としては、入力デジタル値をパルス
幅に変換し、そのパルス信号を低減ろ波回路に通すこと
によりアナログ信号とするパルス幅変調(PWM)方式のD
A変換器がある。
Other types of DA converters include a pulse width modulation (PWM) type D converter that converts an input digital value into a pulse width, and passes the pulse signal through a reduction filter circuit as an analog signal.
There is an A converter.

PWM方式のDA変換器では、出力パルス信号は、一定の繰
返し周期をもち、入力デジタル量に従ってそのパルス幅
が変調される。
In the PWM 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変換器に比べて安
価に構成できる利点をもっているが、入力デジタル信号
のビット数を多くして分解能を上げようとすると応答速
度が遅くなる問題がある。
(Problems to be solved by the invention) Although a PWM DA converter has an advantage that it can be constructed at a lower cost than a ladder DA converter, if an attempt is made to increase the resolution by increasing the number of bits of an input digital signal. There is a problem that the response speed becomes slow.

本発明は、安価に構成できるPWM方式のDA変換器の利点
を生かしながら、応答速度を遅くしないで分解能を上げ
ることを目的とするものである。
An object of the present invention is to increase the resolution without slowing the response speed while taking advantage of the PWM DA converter which can be configured at a low cost.

(課題を解決するための手段) 本発明は、与えられたデジタル値に対応した周期信号を
パルス幅変調カウンタの周期として出力する周期設定回
路と、パルス幅変調カウンタの分解能のビット数nより
大きいビット数mの入力データ値の上位nビットをパル
ス幅変調カウンタの入力デジタル値として供給するとと
もに、入力データ値に対応して周期設定回路に供給する
デジタル値を設定する制御部を備えている。
(Means for Solving the Problem) According to the present invention, a cycle setting circuit for outputting a cycle signal corresponding to a given digital value as a cycle of a pulse width modulation counter, and a bit number n of resolution of the pulse width modulation counter are larger than n. A control unit is provided which supplies the upper n bits of the input data value of the number of bits m as an input digital value of the pulse width modulation counter and sets the digital value to be supplied to the cycle setting circuit corresponding to the input data value.

好ましい態様においては、制御部は、mビットの入力デ
ータ値をXとし、パルス幅変調カウンタ2に供給される
nビット(m>n)のデジタル値をX′としたとき、パ
ルス幅変調カウンタ2の出力パルスの繰返し周期tが t=to・2(m-n)・X′/X (ただしtoは基準周期)となるように、周期設定回路へ
供給するデジタル値を設定する。
In a preferred mode, when the control unit sets the m-bit input data value to X and the n-bit (m> n) digital value supplied to the pulse width modulation counter 2 to X ′, the pulse width modulation counter 2 The digital value to be supplied to the cycle setting circuit is set so that the repetition cycle t of the output pulse of is t = to · 2 ( m n ) · X ′ / X (where to is the reference cycle).

(作用) 本発明では分解能を上げるために大きなビット数をもつ
入力データを用いる。入力データに従ってパルス幅を変
調するパルス幅変調カウンタとしては、入力データのビ
ット数よりも少ないビット数のものを使用し、入力デー
タの上位ビットをカウントし、下位ビットを捨てる。入
力データのビット数を少なくすることにより発生する誤
差を、出力パルス信号の繰返し周期を入力データに対応
して調整することにより修正する。
(Operation) In the present invention, input data having a large number of bits is used to increase the resolution. As the pulse width modulation counter that modulates the pulse width according to the input data, a counter having a bit number smaller than the bit number of the input data is used, the upper bits of the input data are counted, and the lower bits are discarded. The error generated by reducing the number of bits of the input data is corrected by adjusting the repetition period of the output pulse signal according to the input data.

(実施例) 第1図は一実施例を表わす。(Embodiment) FIG. 1 shows an embodiment.

2はパルス幅変調(PWM)カウンタであり、例えば分解
能が16ビットのものとする。8は制御部であり、制御部
8からパルス幅変調カウンタ2へは16ビットのデジタル
信号X′が供給され、パルス幅変調カウンタ2はそのデ
ジタル信号X′に対応したパルス幅x′の信号を作成し
て出力する。6はパルス幅変調周期設定レートジェネレ
ータであり、例えば16ビットの分解能をもつものとす
る。レートジェネレータ6は制御部8から与えられるデ
ジタル値Tに対応してパルス幅変調カウンタ2の出力パ
ルス信号の繰返し周期tを表わす信号を作成し、これを
パルス幅変調カウンタ2のリセット信号として供給す
る。制御部8は例えば21ビットのデジタル値の入力デー
タ値Xからその上位16ビットを用いてパルス幅変調カウ
ンタ2に供給するデジタル信号X′を作成し、また、そ
の入力データ値Xに対応してレートジェネレータ6に供
給するデジタル値Tを作成する。
A pulse width modulation (PWM) counter 2 has a resolution of 16 bits, for example. A control unit 8 supplies a 16-bit digital signal X ′ from the control unit 8 to the pulse width modulation counter 2, and the pulse width modulation counter 2 outputs a signal having a pulse width x ′ corresponding to the digital signal X ′. Create and output. A pulse width modulation period setting rate generator 6 has a resolution of 16 bits, for example. The rate generator 6 creates a signal representing the repetition period t of the output pulse signal of the pulse width modulation counter 2 corresponding to the digital value T given from the control unit 8 and supplies this as a reset signal of the pulse width modulation counter 2. . The control unit 8 creates a digital signal X ′ to be supplied to the pulse width modulation counter 2 from the input data value X of a 21-bit digital value, for example, using the upper 16 bits thereof, and also, corresponding to the input data value X, A digital value T to be supplied to the rate generator 6 is created.

パルス幅変調カウンタ2とレートジェネレータ6には共
通のクロック信号が供給される。
A common clock signal is supplied to the pulse width modulation counter 2 and the rate generator 6.

出力すべき信号、すなわち制御部8への入力データ値X
の分解能が21ビットであり、パルス幅変調カウンタ2の
分解能が16ビットであるので、パルツ幅変調カウンタ2
の出力が飽和しないように、制御部8ではまず21ビット
データXを5ビット右シフトして16ビットデータX′を
作成する。いま、Xの値が2進数で 「101010101010101010101」であったとすると、パルス
幅変調カウンタ2に供給されるデジタル値X′は「1010
101010101010」となり、下位の5ビットの情報が欠落す
る。このとき、出力は「101010101010101000000」/「1
01010101010101010101」=Yの割りで小さく出力され
る。
The signal to be output, that is, the input data value X to the control unit 8
The pulse width modulation counter 2 has a resolution of 21 bits and the pulse width modulation counter 2 has a resolution of 16 bits.
The control unit 8 first shifts the 21-bit data X to the right by 5 bits to generate 16-bit data X ′ so that the output of the above is not saturated. Now, assuming that the value of X is a binary number “101010101010101010101”, the digital value X ′ supplied to the pulse width modulation counter 2 is “1010
101010101010 ”, and the lower 5 bits of information are lost. At this time, the output is “101010101010101000000” / “1
01010101010101010101 ”= Smaller output for Y.

そこで、制御部8からレートジェネレータ6に与えられ
る繰返し周期tのデジタル値Tは、この小さくなった出
力を補正するために、パルス幅変調カウンタ2の出力パ
ルス信号の繰返し周期tを上記Yの比で小さくするよう
に算出される。
Therefore, the digital value T of the repetition period t given from the control unit 8 to the rate generator 6 is calculated by comparing the repetition period t of the output pulse signal of the pulse width modulation counter 2 with the above Y ratio in order to correct the reduced output. It is calculated so that

第1図(A)のDA変換器の動作を同図(B)により説明
する。
The operation of the DA converter shown in FIG. 1A will be described with reference to FIG.

レートジェネレータ6から周期tの信号がパルス幅変調
カウンタ2のリセット信号として入力されると、パルス
幅変調カウンタ2の出力パルス信号はリセット信号の入
力によりハイレベルとなり、デジタル値X′のクロック
をカウントする間(パルス幅x′)はハイレベルに維持
される。
When the signal of the cycle t is input as the reset signal of the pulse width modulation counter 2 from the rate generator 6, the output pulse signal of the pulse width modulation counter 2 becomes high level by the input of the reset signal, and the clock of the digital value X ′ is counted. During this period (pulse width x '), the high level is maintained.

制御部8では、第2図に示されるように入力データ値X
を2進数で5ビット右シフトさせてX′を作成する。
In the control unit 8, as shown in FIG. 2, the input data value X
X'is created by right-shifting by 5 bits in binary.

X′=X/32 である。X '= X / 32.

また、繰返し周期tとして、 t=(216−1)・32X′/X の式により作成する。(216−1)は基準周期toとして
のレートジェネレータ6のフルスケールであり、32X′/
Xは誤差補正値である。
Further, the repetition cycle t is created by the equation t = (2 16 −1) · 32X ′ / X. (2 16 -1) is the full scale of the rate generator 6 as the reference period to, 32X '/
X is an error correction value.

パルス幅変調カウンタ2から周期tでパルス幅x′(デ
ューティに対応する)をもつパルス信号が出力され、こ
の出力パルス信号が低減ろ波器4に通されることによ
り、入力データ値Xに相当するアナログ電圧Voとなる。
このアナログ出力電圧Voはレコーダなどに供給される。
The pulse width modulation counter 2 outputs a pulse signal having a pulse width x ′ (corresponding to the duty) at a cycle t, and the output pulse signal is passed through the reduction filter 4 to correspond to the input data value X. It becomes analog voltage Vo.
This analog output voltage Vo is supplied to a recorder or the like.

(発明の効果) 本発明では入力データ値のビット数が多くて分解能が高
くても、パルス幅変調カウンタのビット数を小さくする
ことにより応答速度を速くすることができる。一方、パ
ルス幅変調カウンタのビット数を小さくしたことによる
誤差を出力パルス信号の繰返し周期を入力データ値に対
応して調整することにより補正する。
(Effect of the Invention) In the present invention, even if the input data value has a large number of bits and high resolution, the response speed can be increased by reducing the number of bits of the pulse width modulation counter. On the other hand, an error caused by reducing the number of bits of the pulse width modulation counter is corrected by adjusting the repetition period of the output pulse signal according to the input data value.

このように、本発明では特殊な部品を使用せずに、安価
に高分解能のDA変換器を実現することができる。
As described above, according to the present invention, a high resolution DA converter can be realized at low cost without using special parts.

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

第1図(A)は一実施例を示すブロック図、(B)はパ
ルス幅変調カウンタの出力パルス信号を示す波形図、第
2図は同実施例における制御部の動作を示すフローチャ
ート図である。 2……パルス幅変調カウンタ、4……低減ろ波器、6…
…パルス幅変調周期設定レートジェネレータ、8……制
御部。
1A is a block diagram showing an embodiment, FIG. 1B is a waveform diagram showing an output pulse signal of a pulse width modulation counter, and FIG. 2 is a flow chart showing an operation of a control unit in the embodiment. . 2 ... Pulse width modulation counter, 4 ... Reduction filter, 6 ...
... Pulse width modulation period setting rate generator, 8 ... Control unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】nビットの入力デジタル値X′をパルス幅
に変換するパルス幅変調カウンタと、パルス幅変調カウ
ンタの出力をアナログ量に変換する変換回路とを備えた
パルス幅変調方式のデジタル・アナログ変換器におい
て、与えられたデジタル値Tに対応した周期信号を前記
パルス幅変調カウンタの周期として出力する周期設定回
路と、前記パルス幅変調カウンタの分解能のビット数n
より大きいビット数mの入力データ値Xの上位nビット
を前記パルス幅変調カウンタの入力デジタル値X′とし
て供給するとともに、前記パルス幅変調カウンタの出力
パルスの繰返し周期tが t=to・2(m-n)・X′/X (ただしtoは基準周期)となるように、周期設定回路へ
供給するデジタル値Tを設定する制御部とを備えたこと
を特徴とするデジタル・アナログ変換器。
1. A pulse width modulation type digital converter comprising a pulse width modulation counter for converting an n-bit input digital value X'to a pulse width and a conversion circuit for converting the output of the pulse width modulation counter into an analog quantity. In the analog converter, a period setting circuit that outputs a periodic signal corresponding to a given digital value T as a period of the pulse width modulation counter, and a bit number n of resolution of the pulse width modulation counter.
The higher n bits of the input data value X having a larger number of bits m are supplied as the input digital value X'of the pulse width modulation counter, and the repetition period t of the output pulse of the pulse width modulation counter is t = to.2 ( A digital-analog converter comprising: a control unit that sets a digital value T to be supplied to the period setting circuit so that m n ) · X ′ / X (where to is a reference period).
JP2016478A 1990-01-26 1990-01-26 Digital / Analog converter Expired - Fee Related JPH073952B2 (en)

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 JPH03220919A (en) 1991-09-30
JPH073952B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2918227A1 (en) * 2007-06-27 2009-01-02 Thomson Licensing Sas METHOD FOR GENERATING A VARIABLE ANALOG SIGNAL GENERATED BY A PWM SIGNAL AND SYSTEM GENERATING SUCH A SIGNAL

Family Cites Families (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
JPH03220919A (en) 1991-09-30

Similar Documents

Publication Publication Date Title
KR950001435B1 (en) Digital circuit
JPS6323687B2 (en)
US4233591A (en) Digital-to-analog converter of the pulse width modulation type
JPH0783267B2 (en) Device for converting a binary signal into a DC signal proportional thereto
GB1598782A (en) Analogue-digital converter and conversion method
US4210903A (en) Method for producing analog-to-digital conversions
JPH073952B2 (en) Digital / Analog converter
JPH057900B2 (en)
JP2925443B2 (en) Electronic measuring instrument
JPS60100830A (en) Digital/analog converter
JPS6022679Y2 (en) D/A converter
JPH0744460B2 (en) PWM DA converter circuit
JP3121854B2 (en) Absolute signal generation method
JPS6022681Y2 (en) Digital to analog converter
SU758218A1 (en) Shaft angular position-to-code converter
EP1223483B1 (en) A digital control circuit of the proportional integral type
US4110747A (en) Apparatus for producing analog-to-digital conversions
SU1005128A2 (en) Shaft angular position-to-code converter
JPS632488B2 (en)
SU566202A1 (en) Momentary phase shift to dc voltage converter
SU1332530A1 (en) Device for measuring the setting time of output voltage of the digital-to-analog converter
SU716145A1 (en) Pulse shaper
JPH0450512Y2 (en)
SU970419A1 (en) Shaft rotation angle to pulse train frequency converter
SU1659888A1 (en) Demodulator

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