JPH05265658A - Analog output device - Google Patents

Analog output device

Info

Publication number
JPH05265658A
JPH05265658A JP6546292A JP6546292A JPH05265658A JP H05265658 A JPH05265658 A JP H05265658A JP 6546292 A JP6546292 A JP 6546292A JP 6546292 A JP6546292 A JP 6546292A JP H05265658 A JPH05265658 A JP H05265658A
Authority
JP
Japan
Prior art keywords
digital
analog
identification flag
output
memory
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
JP6546292A
Other languages
Japanese (ja)
Inventor
Haruo Mita
治男 三田
Nobuhisa Watanabe
伸寿 渡辺
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.)
Fuji Facom Corp
Original Assignee
Fuji Facom 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 Fuji Facom Corp filed Critical Fuji Facom Corp
Priority to JP6546292A priority Critical patent/JPH05265658A/en
Publication of JPH05265658A publication Critical patent/JPH05265658A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To change an output waveform at real time and to output the changed waveform synchronously with an external signal. CONSTITUTION:An analog output device for successively writing digital signals sampled and stored in a memory 24 in a digital/analog conversion part 20, converting the written digital signal into analog voltages by using an external signal as a reference and outputting the analog voltages is provided with a synchronism control means 21 for inputting an external signal into the conversion part 20, converting and outputting the written digital signals and then turning on an identification flag 22 and a writing means 23 for monitoring the identification flag 22, reading out the succeeding digital signal from the memory 24 when the identification flag is ON, writing the read signal in the conversion part 20 and then turning off the identification flag 22.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はアナログ出力装置の改良
に関する。ディジタル変換された波形データ(以下ディ
ジタル信号と称する)をアナログ変換して出力するアナ
ログ出力装置は、コンピュータを利用した研究開発分
野,製造業分野等でよく利用されている。
FIELD OF THE INVENTION The present invention relates to improvements in analog output devices. BACKGROUND ART An analog output device for analog-converting digital-converted waveform data (hereinafter referred to as a digital signal) and outputting the same is often used in research and development fields, manufacturing fields, and the like using computers.

【0002】このアナログ出力装置において、外部から
与えられる基準クロックに同期してデータを出力する場
合、メモリからディジタル信号を読み出してDAC(デ
ィジタルアナログ変換部)に書き込むタイミングと、書
き込まれたディジタル信号をアナログ変換して出力する
タイミングとを同期させることが必要であり、また、波
形を変更する際、即時に変更できるリアルタイム性が必
要とされる。
In this analog output device, when data is output in synchronization with a reference clock given from the outside, the timing at which a digital signal is read from a memory and written in a DAC (digital-analog converter), and the written digital signal is written. It is necessary to synchronize with the timing of analog conversion and output, and when changing the waveform, real-time property that can be changed immediately is required.

【0003】[0003]

【従来の技術】図5は従来例の構成図である。図5は、
プロセッサCPU1,メモリ2を備えたデータ処理装置
にアナログ出力ユニット(AOユニット)3を付加した
構成例を示したもので、ディジタル変換された波形デー
タA,波形データB(図では波形A,波形B)はメモリ
2に格納されている。ここで、図示省略したキーボード
等より波形Aが指定されて出力指令がなされると、CP
U1は、AOユニット3のDMA制御部6に、波形Aの
先頭データのアドレス,データ長等をセットしてAOユ
ニット3を起動する。これにより、DMA制御部6は、
それぞれ基準クロックをトリガとしてメモリ2より波形
データAを1データづつ読出して先入れ先出しメモリF
IFO4に格納する。一方、このDMA転送に応じてF
IFO4から出力されるデータは、基準クロックをトリ
ガーとして図示省略したDAC5内部に設けられている
レジスタに順次書き込まれるとともに、DA変換されて
出力される。なお、DMA制御部6はメモリ2に格納さ
れている一周期のデータを繰り返し読み出すように構成
されており、基準クロックに応じた繰り返し周波数で波
形Aが出力される。
2. Description of the Related Art FIG. 5 is a block diagram of a conventional example. Figure 5
A configuration example in which an analog output unit (AO unit) 3 is added to a data processing device having a processor CPU1 and a memory 2 is shown. Digitally converted waveform data A and waveform data B (waveforms A and B in the figure). ) Is stored in the memory 2. When the waveform A is designated and an output command is issued from a keyboard (not shown), CP
U1 sets the address, data length, etc. of the head data of the waveform A in the DMA controller 6 of the AO unit 3 and activates the AO unit 3. As a result, the DMA control unit 6
The waveform data A is read one by one from the memory 2 by using the reference clock as a trigger, and the first-in first-out memory F is read.
Store in IFO4. On the other hand, in response to this DMA transfer, F
The data output from the IFO 4 is sequentially written into a register provided inside the DAC 5 (not shown) using the reference clock as a trigger, and is DA converted and output. The DMA control unit 6 is configured to repeatedly read one cycle of data stored in the memory 2, and the waveform A is output at a repetition frequency according to the reference clock.

【0004】この状態で、例えばオペレータが波形Bを
指定すると、CPU1は波形データAのDMA転送を終
結し、波形データBのDMA転送をDMA制御部6に指
示し、DMA制御部6はメモリ2より波形データBを読
み出してFIFO4に転送する。これにより、DAC5
の出力は波形Aから波形Bに変更される。
In this state, for example, when the operator designates the waveform B, the CPU 1 terminates the DMA transfer of the waveform data A, instructs the DMA controller 6 to transfer the waveform data B, and the DMA controller 6 causes the memory 2 to operate. The waveform data B is read out and transferred to the FIFO 4. This allows the DAC5
Output is changed from waveform A to waveform B.

【0005】[0005]

【発明が解決しようとする課題】基準クロックをトリガ
ーとしてDMA転送でAOユニットに1データづつ転送
し、且つDA変換する上記従来の方式では、出力波形を
変更する場合、DMA転送を一旦終結し、次の波形出力
のためのDMA転送の手続きを行わねばならない。この
ため、図5に示すように、DMA転送が中断しFIFO
4の出力が一定となるアイドル時間が生じる。このアイ
ドル時間は、特に高速出力の場合無視できず、波形変更
の遅れ等のリアルタイム性が失われることになる。
In the above-mentioned conventional method of transferring one data by one data to the AO unit by DMA transfer using the reference clock as a trigger and DA conversion, when the output waveform is changed, the DMA transfer is temporarily terminated, The DMA transfer procedure for the next waveform output must be performed. Therefore, as shown in FIG. 5, the DMA transfer is suspended and the FIFO
An idle time occurs in which the output of 4 is constant. This idle time cannot be ignored especially in the case of high-speed output, and the real-time property such as delay in waveform change is lost.

【0006】このため、図5において、CPU1による
プログラムモードでメモリ2よりデータを読取り、DA
C5に書き込む方法が考えられるが、他の処理も並行し
て行うCPU1に負担がかかるとか、基準クロックと同
期して書き込むことができずに出力波形に歪みを生じる
等の課題がある。
Therefore, in FIG. 5, data is read from the memory 2 in the program mode by the CPU 1 and DA
A method of writing to C5 is conceivable, but there is a problem that the CPU 1 that performs other processing in parallel is burdened, or that the output waveform is distorted because writing cannot be performed in synchronization with the reference clock.

【0007】本発明は上記課題に鑑み、外部信号と同期
するとともに、波形変更時に遅れ等のアイドル時間が生
じないリアルタイム性を持つアナログ出力装置を提供す
ることを目的とする。
In view of the above problems, it is an object of the present invention to provide an analog output device that is synchronized with an external signal and has a real-time property that does not cause an idle time such as a delay when changing a waveform.

【0008】[0008]

【課題を解決するための手段】図1の本発明の原理図に
おいて、24はメモリで、波形データ等のサンプリングさ
れたディジタル信号が格納されている。20はディジタル
アナログ変換部で、書き込まれたディジタル信号を外部
信号に基づきアナログ電圧に変換し出力する。21は同期
制御手段で、外部信号をディジタルアナログ変換部20に
入力して書き込まれているディジタル信号を変換出力さ
せた後、識別フラグ22をオンにする。23は書込み手段
で、識別フラグ22を監視し、識別フラグがオンのとき次
のディジタル信号をメモリ24より読み出してディジタル
アナログ変換部20に書込むとともに識別フラグ22をオフ
にする。
In the principle diagram of the present invention shown in FIG. 1, reference numeral 24 is a memory in which sampled digital signals such as waveform data are stored. Reference numeral 20 denotes a digital-analog converter, which converts the written digital signal into an analog voltage based on an external signal and outputs the analog voltage. Reference numeral 21 denotes a synchronization control means, which inputs an external signal to the digital-analog converter 20 to convert and output the written digital signal, and then turns on the identification flag 22. A writing means 23 monitors the identification flag 22, and when the identification flag is on, the next digital signal is read from the memory 24 and written in the digital-analog converter 20, and the identification flag 22 is turned off.

【0009】[0009]

【作用】同期制御手段21は外部信号をディジタルアナロ
グ変換部20に入力して、書き込まれているディジタル信
号をアナログ信号に変換出力させた後、識別フラグ22を
オンにする。書込み手段23は識別フラグを監視し、識別
フラグ22がオンならば、メモリ24に格納されている次の
ディジタル信号をディジタルアナログ変換部20に書き込
んだ後、識別フラグ22をオフにする。
The synchronizing control means 21 inputs the external signal to the digital-analog converter 20, converts the written digital signal into an analog signal and outputs it, and then turns on the identification flag 22. The writing means 23 monitors the identification flag, and if the identification flag 22 is turned on, after writing the next digital signal stored in the memory 24 to the digital-analog converter 20, the identification flag 22 is turned off.

【0010】以上により、外部信号と同期してアナログ
信号を出力することができ、また、DMA方式を使用し
ていないのでアイドル時間が発生せず、連続的に波形が
変更されるためリアルタイム性が改善される。
As described above, the analog signal can be output in synchronization with the external signal, and since the DMA method is not used, the idle time does not occur and the waveform is continuously changed, so that the real time property is obtained. Be improved.

【0011】[0011]

【実施例】図2は一実施例の構成図、図3は動作タイム
チャート図、図4は処理フローチャート図である。
FIG. 2 is a block diagram of an embodiment, FIG. 3 is an operation time chart, and FIG. 4 is a process flowchart.

【0012】図2に示すAOユニット10において、11は
同期制御部(同期制御手段21に対応) で、受信した外部
信号(以下基準クロック)をディジタルアナログ変換器
DAC5に入力した後、識別フラグFLAG12(例えば
レジスタで構成する、識別FLAG22に対応) をオンに
する。13はマイクロプロセッサユニットMPU(書込み
手段23に対応) で、FLAG12を基準クロックより速い
所定周期で監視し、オンならばメモリ2より次のデータ
を読み出してDAC5に書き込む。その他全図を通じて
同一符号は同一対象物を表す。
In the AO unit 10 shown in FIG. 2, 11 is a synchronization control section (corresponding to the synchronization control means 21), which inputs a received external signal (hereinafter referred to as a reference clock) to the digital-analog converter DAC5, and then an identification flag FLAG12. Turn on (corresponding to identification FLAG22, which is composed of a register, for example). A microprocessor unit MPU (corresponding to the writing means 23) 13 monitors the FLAG 12 at a predetermined cycle faster than the reference clock, and if ON, reads the next data from the memory 2 and writes it in the DAC 5. Throughout all the other drawings, the same reference numerals denote the same objects.

【0013】以上の構成により、以下に示すアナログ出
力動作が行われる。図3および図4参照。なお、波形デ
ータはメモリ2に格納されているものとし、その格納ア
ドレス,データ長等はメモリ2の別領域に格納されてい
て、MPU13がその格納アドレスを認識し得るものとす
る。 (S1) 同期制御部11は、変換指示後に受信した基準クロ
ックをDAC5に渡す。これによりDAC5は、図示省
略したレジスタに格納されているディジタル信号を基準
クロックの立ち下がり(図3参照)でDA変換して出力
する。同期制御部11は基準クロックの立ち下がり(DA
変換後)から所定時間後にFLAG12をオンにする。な
お、変換開始のイニシャル時はDAC5はクリアされて
いて、最初は"0" 電圧が出力される。 (S2) MPU13は、FLAG12を基準クロックより短い
時間間隔で常時監視しており、 (S3) FLAG12がオンになったとき、メモリ2より、
指定されている波形データのうち、次のデータを読み出
してDAC5に書き込み、 (S4) FLAG12をオフする。
With the above configuration, the following analog output operation is performed. See FIGS. 3 and 4. It is assumed that the waveform data is stored in the memory 2, the storage address, the data length, etc. are stored in another area of the memory 2, and the MPU 13 can recognize the storage address. (S1) The synchronization control unit 11 passes the reference clock received after the conversion instruction to the DAC 5. As a result, the DAC 5 DA-converts the digital signal stored in the register (not shown) at the falling edge of the reference clock (see FIG. 3) and outputs it. The synchronization control unit 11 uses the falling edge of the reference clock (DA
After a predetermined time from (after conversion), FLAG12 is turned on. Note that the DAC 5 is cleared at the beginning of conversion and the "0" voltage is initially output. (S2) MPU13 constantly monitors FLAG12 at a time interval shorter than the reference clock. (S3) When FLAG12 is turned on,
Of the designated waveform data, the next data is read and written in the DAC 5, and (S4) FLAG12 is turned off.

【0014】以上のごとく、AOユニット10に設けたM
PU13によるプログラムモードにより、メモリ2から読
み出したデータを直接DAC5に書込むため、レジスタ
が少なくとも2段以上あるFIFOに書き込むDMA方
式と異なり、波形変更時にアイドル時間が発生すること
はない。
As described above, the M provided in the AO unit 10
Since the data read from the memory 2 is directly written into the DAC 5 according to the program mode by the PU 13, unlike the DMA method in which the data is written into the FIFO having at least two stages of registers, idle time does not occur when changing the waveform.

【0015】また、図1において、CPU1のプログラ
ムモードによる方法と比較して、変換出力と書き込み
は、FLAG12により同期がとられているので、波形歪
み等を生じることはない。
Further, in FIG. 1, the conversion output and the writing are synchronized by the FLAG 12 as compared with the method according to the program mode of the CPU 1, so that waveform distortion or the like does not occur.

【0016】[0016]

【発明の効果】以上説明したように、本発明は、外部信
号をトリガとして出力するアナログ出力装置において、
外部信号により出力した後識別フラグをオンとし、この
識別フラグオンにより次のデータをディジタルアナログ
変換器に書込むようにしたもので、外部信号と同期した
アナログ信号が出力できること、およびDMA転送方式
を使用しないので、出力波形を変更する際には遅れ時間
がなくリアルタイムに変更できる等の効果がある。
As described above, the present invention provides an analog output device that outputs an external signal as a trigger.
The identification flag is turned on after output by an external signal, and the next data is written to the digital-to-analog converter when this identification flag is turned on. An analog signal synchronized with the external signal can be output and the DMA transfer method is used. Therefore, when changing the output waveform, there is an effect that it can be changed in real time without delay time.

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

【図1】 本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】 一実施例の構成図FIG. 2 is a configuration diagram of an embodiment.

【図3】 動作タイムチャート図[Fig. 3] Operation time chart

【図4】 処理フローチャート図[Fig. 4] Process flow chart

【図5】 従来例の構成図FIG. 5 is a block diagram of a conventional example

【符号の説明】[Explanation of symbols]

1 プロセッサCPU 2 メモリ 3 AOユニット 4 先入れ先出しメモリFIFO 5 ディジタルアナログ変換器DAC 6 DMA制御部 10 AOユニット 11 同期制御部 12 識別フラグFLAG 13 マイクロプロセッサMPU 20 ディジタルアナログ変換器DAC 21 同期制御手段 22 識別フラグ 23 書込み手段 24 メモリ 1 processor CPU 2 memory 3 AO unit 4 first-in first-out memory FIFO 5 digital-analog converter DAC 6 DMA control unit 10 AO unit 11 synchronization control unit 12 identification flag FLAG 13 microprocessor MPU 20 digital-analog converter DAC 21 synchronization control means 22 identification flag 23 Writing means 24 Memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 サンプリングされ、メモリ(24)に格納さ
れているディジタル信号を順次ディジタルアナログ変換
部(20)に書き込むとともに、書き込んだ各ディジタル信
号をそれぞれ外部信号を基準としてアナログ電圧に変換
し出力するアナログ出力装置であって、 該外部信号を該ディジタルアナログ変換部(20)に入力し
て、書き込まれている該ディジタル信号を変換出力させ
た後、識別フラグ(22)をオンにする同期制御手段(21)
と、 該識別フラグ(22)を監視し、該識別フラグがオンのとき
次のディジタル信号を該メモリ(24)より読み出して該デ
ィジタルアナログ変換部(20)に書込むとともに、該識別
フラグをオフにする書込み手段(23)とを備えることを特
徴とするアナログ出力装置。
1. A digital signal sampled and stored in a memory (24) is sequentially written into a digital-analog converter (20), and each written digital signal is converted into an analog voltage based on an external signal and output. An analog output device for inputting the external signal to the digital-analog converter (20) to convert and output the written digital signal, and then to turn on an identification flag (22). Means (21)
The identification flag (22) is monitored, and when the identification flag is on, the next digital signal is read from the memory (24) and written to the digital-analog converter (20), and the identification flag is turned off. An analog output device, comprising: a writing means (23).
JP6546292A 1992-03-24 1992-03-24 Analog output device Pending JPH05265658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6546292A JPH05265658A (en) 1992-03-24 1992-03-24 Analog output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6546292A JPH05265658A (en) 1992-03-24 1992-03-24 Analog output device

Publications (1)

Publication Number Publication Date
JPH05265658A true JPH05265658A (en) 1993-10-15

Family

ID=13287820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6546292A Pending JPH05265658A (en) 1992-03-24 1992-03-24 Analog output device

Country Status (1)

Country Link
JP (1) JPH05265658A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006517075A (en) * 2003-01-29 2006-07-13 アナログ ディヴァイスィズ インク Integrated circuit signal generator for generating a square wave output signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006517075A (en) * 2003-01-29 2006-07-13 アナログ ディヴァイスィズ インク Integrated circuit signal generator for generating a square wave output signal

Similar Documents

Publication Publication Date Title
EP0258062A3 (en) Digital data buffer and variable shift register
JPH10170567A (en) Real-time signal analyzer
KR970073090A (en) Aspect ratio conversion device and method
JPH05265658A (en) Analog output device
JP3586131B2 (en) High-speed image processing device
JP2973941B2 (en) Asynchronous FIFO buffer device
JP2755290B2 (en) Biological signal processing device
JPH0525533U (en) Information processing equipment
KR100466501B1 (en) Video decoder interface device of image signal processing ASIC
JP3528027B2 (en) Digital oscilloscope
JPH02134092A (en) Phase correction circuit for television signal
JPS6068724A (en) Analog-digital and digital-analog converter
JP2004013244A (en) Data acquisition apparatus
JP2562824Y2 (en) Waveform storage device
JPS62293446A (en) Data processor
JPH0520799A (en) 1-7 encoding circuit of magnetic disk device
JPS62169511A (en) Digital delay circuit
JPS62168220A (en) Data input device
JPH04299391A (en) Waveform display device
JPH03196740A (en) Controller for first-in first-out buffer
JPH11352155A (en) Digital oscilloscope
JPH0894716A (en) Data logging circuit
JPH0863387A (en) Device for reading out memory
JPH01316820A (en) Data transfer speed converter
JPH0448884A (en) Storage circuit