JPS60219817A - Digital-analog converter - Google Patents

Digital-analog converter

Info

Publication number
JPS60219817A
JPS60219817A JP7629484A JP7629484A JPS60219817A JP S60219817 A JPS60219817 A JP S60219817A JP 7629484 A JP7629484 A JP 7629484A JP 7629484 A JP7629484 A JP 7629484A JP S60219817 A JPS60219817 A JP S60219817A
Authority
JP
Japan
Prior art keywords
signal
counter
digital
counting
comparison
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7629484A
Other languages
Japanese (ja)
Inventor
Yoshihide Arai
良英 新居
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP7629484A priority Critical patent/JPS60219817A/en
Publication of JPS60219817A publication Critical patent/JPS60219817A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/66Digital/analogue converters
    • H03M1/82Digital/analogue converters with intermediate conversion to time interval

Abstract

PURPOSE:To simplify a D/A converter by inputting a digital signal to a preset counter and outputting a pulse width signal proportional to an output of the counter. CONSTITUTION:A digital signal DATA to be converted into an analog signal is inputted sequentially in parallel with the preset counter CNT1, the counter is converted sequentially at a prescribed period tf repetitively and after the counter value reaches a preset value, the time width tw up to the period tf is outputted sequentially to form the pulse width tw in response to the input digital signal into an analog signal. The constitution of the D/A converter is extremely simplified.

Description

【発明の詳細な説明】 ■発明の分野 本発明は、デジタル量をアナログ量に変換する装置に関
し、特にアナログ量をパルス幅として得る方式の変換装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an apparatus for converting a digital quantity into an analog quantity, and particularly relates to a converting apparatus of a type in which the analog quantity is obtained as a pulse width.

■従来の技術 デジタル信号をアナログ信号に変換する場合、デジタル
信号をパルス量として扱い、結果すなわちアナログ量を
パルス幅として出力すると精度の高い変換を行ないつる
。この種の変換装置としては、予めパルス密度変調(P
NM)又はパルスコード変調(PCM)されたデジタル
信号をパルス幅に変換する装置が各種提案されている。
(2) Prior Art When converting a digital signal into an analog signal, highly accurate conversion can be achieved by treating the digital signal as a pulse amount and outputting the result, that is, the analog amount as a pulse width. This type of conversion device uses pulse density modulation (P
Various devices have been proposed for converting a digital signal subjected to NM) or pulse code modulation (PCM) into a pulse width.

しかしながら、この種の装置を使用するためには、複雑
な処理を行なって、出力するデジタル信号をPNM又は
PCM信号に変換しなければならない。
However, in order to use this type of device, complex processing must be performed to convert the output digital signal into a PNM or PCM signal.

従って1例えばマイクロコンピュータでメモリの内容を
アナログ信号として出力したい場合、メモリの内容を読
んでその内容に応じて変調した信号を所定の出力ボート
に出力しなければならず、処理に時間がかかる。またこ
の処理をハードウェアで行なう場合には、ハードウェア
の構成が複雑になる。
Therefore, for example, when a microcomputer wants to output the contents of its memory as an analog signal, it must read the contents of the memory and output a signal modulated according to the contents to a predetermined output port, which takes time. Furthermore, if this processing is performed by hardware, the hardware configuration becomes complicated.

■発明の目的 本発明は、特別な変調処理を行なうことなく使用しうる
。構成の簡単なパルス幅変調方式のデジタル/アナログ
変換装置を提供することを目的とする。
(2) Purpose of the Invention The present invention can be used without special modulation processing. It is an object of the present invention to provide a pulse width modulation type digital/analog conversion device with a simple configuration.

■発明の構成 例えばデータをプリセットする機能を備えるカウンタに
おいては、データをプリセットした後で計数値が所定値
に達するまでの時間は、プリセットするデータの値に応
じて変化する。従って、このようなカウンタを用いれば
、入力される並列デジタルデータを、直接、パルス幅に
変換することができる。
(2) Structure of the Invention For example, in a counter having a function of presetting data, the time it takes for the count value to reach a predetermined value after presetting the data changes depending on the value of the data to be preset. Therefore, by using such a counter, input parallel digital data can be directly converted into pulse width.

また、例えばラッチ回路を用いて入力されるデジタルデ
ータを保持し、このデータとカウンタの計数値とを比較
するように構成すれば、カウンタの計数値と保持するデ
ータとが一致するまでの時間は、ラッチに印加するデー
タの値に対応する。従って、この種の回路要素を用いて
も、並列デジタルデータをパルス幅に変換することがで
きる。
Furthermore, if the input digital data is held using a latch circuit, and this data is compared with the counted value of a counter, the time required for the counted value of the counter to match the held data can be reduced. , corresponds to the value of the data applied to the latch. Therefore, even with this type of circuit element, parallel digital data can be converted into pulse width.

■実施例 以下、図面を参照して本発明の詳細な説明する。■Example Hereinafter, the present invention will be described in detail with reference to the drawings.

第1a図に1つのデジタル/アナログ変換器を示す。第
1a図を参照する。 CLOCにがクロックパルスの入
力端子、DAT^が変換すべきデジタルデータ(この例
では4ビツト)の入力端子、OEが信号出力許可制御入
力端子、OUTがアナログ信号(パルス幅変調パルス)
の出力端子である。
One digital/analog converter is shown in FIG. 1a. See Figure 1a. CLOC is the input terminal for the clock pulse, DAT^ is the input terminal for the digital data to be converted (4 bits in this example), OE is the signal output permission control input terminal, and OUT is the analog signal (pulse width modulation pulse).
This is the output terminal of

この例で用いているカウンタCNTlは、プリセット機
能を備えるアップカウンタである。CNT]に備わった
端子R8T、PREおよびCL、には、それぞれリセッ
ト(計数を禁止し計数値をクリアする機能)信号入力端
子、プリセット(DI、D2、D3.D4のデータをカ
ウンタの初期値としてセットする機能)信号入力端子、
および計数するクロックパルス信号の入力端子である。
The counter CNTl used in this example is an up counter with a preset function. Terminals R8T, PRE, and CL provided in [CNT] are respectively reset (function to inhibit counting and clear the counted value) signal input terminal, and preset (DI, D2, D3, and D4 data as the initial value of the counter). function to set) signal input terminal,
and an input terminal for a clock pulse signal to be counted.

簡単に主要構成要素の機能を説明すると1分周回路DV
Dは変換動作の各周期のタイミングを生成し、ナントゲ
ートNAIは予め定めた値にカウンタCNT1の計数値
が達したか否かを判定し、アンドゲートANIはカウン
タの計数機能を制御する。
A simple explanation of the functions of the main components is the divide-by-1 circuit DV.
D generates the timing of each cycle of the conversion operation, the Nant gate NAI determines whether the count value of the counter CNT1 has reached a predetermined value, and the AND gate ANI controls the counting function of the counter.

第1b図に、第1a図の回路の各部の信号タイミングを
示す。第1b図をも参照して動作を説明する。この回路
を使用する場合には、信号出力許可制御入力端子○Eは
高レベルHに設定し、定周期のクロックパルスを端子C
LOCKに印加する。分周回路DVDは、クロックパル
スを分周し、比較的周期の長い、定周期のタイミング信
号SGlを生成する。
FIG. 1b shows the signal timing of each part of the circuit of FIG. 1a. The operation will be explained with reference also to FIG. 1b. When using this circuit, the signal output permission control input terminal ○E should be set to high level H, and a fixed periodic clock pulse should be sent to the terminal C.
Apply to LOCK. The frequency divider circuit DVD divides the clock pulse to generate a fixed-cycle timing signal SGl having a relatively long cycle.

このタイミング信号SGIが高レベルHだと、カウンタ
CNT1のリセット端子R8Tにリセットレベルが印加
され、カウンタCNTlの計数値が0にクリアされる。
When this timing signal SGI is at a high level H, a reset level is applied to the reset terminal R8T of the counter CNT1, and the count value of the counter CNT1 is cleared to zero.

この後で信号SGIが低レベルLに変化すると、これが
インバータTNIを介してモノマルチMMに印加され、
これによってプリセットストローブ信号SG2が生成さ
れる。信号SG2が発生すると、カウンタCNTlのデ
ータ端子Do、DI、D2およびD3に印加される4ビ
ツト入カデータの値が計数値の初期値としてセントされ
る。
After this, when the signal SGI changes to low level L, this is applied to the monomulti MM via the inverter TNI,
This generates preset strobe signal SG2. When the signal SG2 is generated, the value of the 4-bit input data applied to the data terminals Do, DI, D2 and D3 of the counter CNTl is set as the initial value of the count value.

信号SGIが低レベルしに変化すると、カウンタCNT
lのリセットが解除されるので、カウンタCNTlは、
アンドゲートANIを介してクロック入力端子CLKに
印加されるパルスを計数開始する。この計数開始時点で
、カウンタCNT 1には既に計数値として4ピント入
力データと一致する値がセットされている。
When the signal SGI changes to low level, the counter CNT
Since the reset of l is released, the counter CNTl is
Counting of pulses applied to the clock input terminal CLK via the AND gate ANI is started. At the start of this counting, the counter CNT 1 has already been set to a value that matches the 4-pinto input data as a count value.

この例では、ナントゲートNAIは、カウンタCNTl
の計数値がrl、1.L、IJと一致するかどうかを常
時開べている。通常はナンドゲートNAIの出力レベル
が高レベルであるが、計数値がrl、1,1.IJにな
ると、NA1の出力レベルは低レベルLになる。これK
よって、アンドゲートAN1が閉じ、カウンタCNT1
にはクロックパルスが印加されなくなる。
In this example, the Nant gate NAI has a counter CNTl
The count value of rl, 1. I am constantly checking whether it matches L and IJ. Normally, the output level of NAND gate NAI is high level, but the count value rl, 1, 1 . At IJ, the output level of NA1 becomes low level L. This is K
Therefore, AND gate AN1 closes and counter CNT1
No clock pulses are applied to.

カウンタCNT1が計数を開始してから時間tfを経過
し、信号SGIが高レベルHに反転すると。
When the time tf has elapsed since the counter CNT1 started counting, the signal SGI is inverted to high level H.

再びカウンタCNT1にリセットがかかり計数値が0に
クリアされる。出力端子OUTのレベルは、ナントゲー
トNAIの出力端子が低レベルLの期間すなわちカウン
タCNT1の計数値が所定値に達してから次に信号SG
Iが高レベルに変化するまでの期間tvの間、高レベル
になり、それ以外の期間は低レベルである。
The counter CNT1 is reset again and the count value is cleared to 0. The level of the output terminal OUT is set during the period when the output terminal of the Nant gate NAI is at a low level L, that is, after the count value of the counter CNT1 reaches a predetermined value, the level of the output terminal OUT is changed to the next signal SG.
It is at a high level during the period tv until I changes to a high level, and is at a low level during the other periods.

つまり、出力端子OUTのレベルは信号SGIのタイミ
ングに同期して2tfの周期で変化し、各周期において
、出力端子OUTのレベルが高レベルHになる期間tv
は、カウンタCNT1にプリセットされるデータの値に
比例する。この例では、プリセットするデータが0の時
に、カウンタCNT■が計数を開始してからその計数値
がNAIの設定値に達するまでの時間がtfになるよう
に設定しである。従って、出力端子OUTに得られる信
号は、入力されるデジタルデータに対応するパルス幅を
有するパルス信号つまりアナログ量になる。
In other words, the level of the output terminal OUT changes at a cycle of 2tf in synchronization with the timing of the signal SGI, and in each cycle, the level of the output terminal OUT is at a high level H for a period tv.
is proportional to the value of data preset in the counter CNT1. In this example, when the preset data is 0, the setting is such that the time from when the counter CNT 2 starts counting until the counted value reaches the set value of NAI is set to be tf. Therefore, the signal obtained at the output terminal OUT becomes a pulse signal, that is, an analog quantity, having a pulse width corresponding to the input digital data.

なお、この実施例ではアナログ信号の出力許可制御機能
を備えているが、それを必要としない場合には、第1a
図に示すアンドゲートAN2は不要である。また、この
実施例ではタイミング信号S01の各周期でデータのプ
リセット、すなわちデジタル信号の読取りを行なってい
るが1例えばマイクロコンピュータにこの変換器を接続
する場合には、プリセット端子にマイクロコンピュータ
の出力ポートを接続して、デジタルデータを出力するタ
イミングでプリセットパルスを出力するように制御して
もよい。その場合、インバータINIおよびモノマルチ
MMは不要になる。また更に、マイクロコンピュータを
用いる場合には、分周回路DVDを省略することもでき
る。
Note that this embodiment has an analog signal output permission control function, but if this is not required,
The AND gate AN2 shown in the figure is unnecessary. In addition, in this embodiment, the data is preset, that is, the digital signal is read at each cycle of the timing signal S01.1 For example, when connecting this converter to a microcomputer, the preset terminal is connected to the output port of the microcomputer. may be connected to control the preset pulse to be output at the timing of outputting digital data. In that case, the inverter INI and mono-multi MM become unnecessary. Furthermore, when a microcomputer is used, the frequency divider circuit DVD can be omitted.

第2図に、もう1つの実施例を示す。第2図を参照する
と、この回路にはデジタル比較171&c:MPおよび
ラッチLAが備わっている。また、カウンタCNT2に
はプリセット機能は備わっていない。
FIG. 2 shows another embodiment. Referring to FIG. 2, this circuit includes a digital comparator 171&c:MP and a latch LA. Further, the counter CNT2 does not have a preset function.

ラッチLAが、この回路シこ入力されるデジタルデータ
を保持する。ラッチLAの端子SETは、データをラッ
チするためのストローブ信号入力端子である。
A latch LA holds the digital data input into this circuit. A terminal SET of latch LA is a strobe signal input terminal for latching data.

デジタル比較器CMPは、Aグループの入力端子AI、
A2.A3およびA4に印加されるデジタルデータとB
グループの入力端子Bl、B2.B3およびB4に印加
されるデジタルデータとを比較して、その結果を出力す
る。両者が一致すると、出力端子rA=BJが高レベル
Hになる。
The digital comparator CMP has an input terminal AI of the A group,
A2. Digital data applied to A3 and A4 and B
Group input terminals Bl, B2 . It compares the digital data applied to B3 and B4 and outputs the result. When the two match, the output terminal rA=BJ becomes a high level H.

従って、この実施例では、分周回路DVDで生成される
タイミング信号の各周期毎に、カウンタCNT2が0か
ら計数を開始する。カウンタCNT2の計数値が、ラッ
チLAに保持されるデジタルデータと一致すると、デジ
タル比較器CMPの出力端子が高レベルHになり、カウ
ンタCNT2の計数が禁止される。つまり、この実施例
ではプリセット値を変えるかわりに、計数値を判定する
設定値を変えている。従って、第1a図に示す回路と同
様の動作によって、入力デジタルデータに応じたパルス
幅のアナログ信号を出力する。
Therefore, in this embodiment, the counter CNT2 starts counting from 0 for each cycle of the timing signal generated by the frequency divider circuit DVD. When the count value of the counter CNT2 matches the digital data held in the latch LA, the output terminal of the digital comparator CMP becomes a high level H, and counting of the counter CNT2 is prohibited. That is, in this embodiment, instead of changing the preset value, the set value for determining the count value is changed. Therefore, by the same operation as the circuit shown in FIG. 1a, an analog signal having a pulse width corresponding to input digital data is output.

■発明の効果 以上のとおり本発明によれば、非常に簡単な構成の回路
でデジタル/アナログ変換を行なうことができ、しかも
使用に際して変調等の特別な信号処理を行なう必要がな
い。
(2) Effects of the Invention As described above, according to the present invention, digital/analog conversion can be performed using a circuit with a very simple configuration, and there is no need to perform special signal processing such as modulation during use.

【図面の簡単な説明】[Brief explanation of the drawing]

第1a図は本発明の1つの実施例を示す電気回路図、第
1b図は第1a図に示す回路の信号波形を示すタイミン
グチャートである。 第2図は、本発明のもう1つの実施例を示す電気回路図
である。 CNTl5カウンタ(計数手段子信号保持手段)CNT
2二カウンタ(計数手段) DVD :分周回路(タイミング手段)NAI:ナンド
ゲート(比較手段) CMP:デジタル比較Im(比較手段)LA二ラッチ(
信号保持手段) ANI、AN3:アンドゲート(計数禁止手段)メ1b
FIG. 1a is an electric circuit diagram showing one embodiment of the present invention, and FIG. 1b is a timing chart showing signal waveforms of the circuit shown in FIG. 1a. FIG. 2 is an electrical circuit diagram showing another embodiment of the invention. CNT15 counter (counting means child signal holding means) CNT
22 counter (counting means) DVD: Frequency divider circuit (timing means) NAI: NAND gate (comparison means) CMP: Digital comparison Im (comparison means) LA 2 latch (
Signal holding means) ANI, AN3: AND gate (counting inhibition means) Me1b
Country

Claims (3)

【特許請求の範囲】[Claims] (1)所定周期のクロックパルス信号を計数する計数手
段; 前記クロックパルスよりも周期が長い所定の周期で計数
手段の計数内容をクリアするタイミング手段; 入力されるデジタル信号を保持する信号保持手段; 計数手段の計数結果を所定値と比較する比較手段;およ
び 前記比較手段の比較結果が一致すると計数手段の計数を
禁止する計数禁止手段; を備えるデジタル/アナログ変換装置。
(1) Counting means for counting clock pulse signals of a predetermined period; Timing means for clearing the count contents of the counting means at a predetermined period longer than the clock pulse; Signal holding means for holding an input digital signal; A digital/analog conversion device comprising: a comparison means for comparing a count result of the counting means with a predetermined value; and a counting prohibition means for prohibiting counting by the counting means when the comparison results of the comparison means match.
(2)計数手段と信号保持手段がプリセラ1−カウンタ
であり、比較手段は該プリセットカウンタの出力信号を
予め定めた値と比較する論理ゲート回路である。前記特
許請求の範囲第(り項記載のデジタル/アナログ変換装
置。
(2) The counting means and the signal holding means are a preset counter, and the comparison means is a logic gate circuit that compares the output signal of the preset counter with a predetermined value. A digital/analog conversion device according to claim 1.
(3)比較手段は、計数手段の出力信号と信号保持手段
の出力信号とを比較するデジタル比較回路である。前記
特許請求の範囲第(1)項記載のデジタル/アナログ変
換装置。
(3) The comparison means is a digital comparison circuit that compares the output signal of the counting means and the output signal of the signal holding means. A digital/analog conversion device according to claim (1).
JP7629484A 1984-04-16 1984-04-16 Digital-analog converter Pending JPS60219817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7629484A JPS60219817A (en) 1984-04-16 1984-04-16 Digital-analog converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7629484A JPS60219817A (en) 1984-04-16 1984-04-16 Digital-analog converter

Publications (1)

Publication Number Publication Date
JPS60219817A true JPS60219817A (en) 1985-11-02

Family

ID=13601324

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7629484A Pending JPS60219817A (en) 1984-04-16 1984-04-16 Digital-analog converter

Country Status (1)

Country Link
JP (1) JPS60219817A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH042222A (en) * 1990-04-19 1992-01-07 Inter Nitsukusu Kk One-bit d/a converter
EP1244219A2 (en) * 2001-03-21 2002-09-25 Ricoh Company Method and apparatus for digital-to-analog conversion with an effective pulse width modulation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH042222A (en) * 1990-04-19 1992-01-07 Inter Nitsukusu Kk One-bit d/a converter
EP1244219A2 (en) * 2001-03-21 2002-09-25 Ricoh Company Method and apparatus for digital-to-analog conversion with an effective pulse width modulation
EP1244219A3 (en) * 2001-03-21 2003-08-06 Ricoh Company, Ltd. Method and apparatus for digital-to-analog conversion with an effective pulse width modulation

Similar Documents

Publication Publication Date Title
US4620179A (en) Method for successive approximation A/D conversion
US4404546A (en) Digital-to-analog converter
GB1598782A (en) Analogue-digital converter and conversion method
JPS60219817A (en) Digital-analog converter
US4811370A (en) Digital muting circuit
JPS5927347A (en) Interpolative function generator for determining root for transmitter
EP0632459B1 (en) Delay circuit using a digital memory
US4389637A (en) Digital to analog converter
US4901079A (en) Analog-digital converter
US5353025A (en) Methods and apparatus for digitally encoding repetitive analog waveforms
SU1233283A1 (en) Analog-to-digital converter of integral voltage characteristics
JPS6261175B2 (en)
US6052075A (en) Data processing device having a D/A function
RU2050688C1 (en) Digital generator of sine-shaped signals
SU1304170A1 (en) Device for recording information
SU1251323A1 (en) Voltage-to-digital converter
SU754330A1 (en) Device for monitoring digital-analogue converter parameters
SU1487167A1 (en) Digital pulse-width modulator
SU1182546A1 (en) Device for reproducing functions
RU1798901C (en) Single-pulse frequency multiplier
SU1367153A1 (en) Frequency divider with fractional countdown ratio
SU1314338A1 (en) Random process generator
SU1613987A1 (en) Receiver for high-frequency geoelectric prospecting
JP2668531B2 (en) Digital hysteresis circuit
SU1347112A1 (en) Device for controlling a.c.voltage regulator having increased frequency element