JPH0471209B2 - - Google Patents

Info

Publication number
JPH0471209B2
JPH0471209B2 JP59035919A JP3591984A JPH0471209B2 JP H0471209 B2 JPH0471209 B2 JP H0471209B2 JP 59035919 A JP59035919 A JP 59035919A JP 3591984 A JP3591984 A JP 3591984A JP H0471209 B2 JPH0471209 B2 JP H0471209B2
Authority
JP
Japan
Prior art keywords
waveform
control
information
storage device
ram
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 - Lifetime
Application number
JP59035919A
Other languages
Japanese (ja)
Other versions
JPS60181810A (en
Inventor
Joji Murakami
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3591984A priority Critical patent/JPS60181810A/en
Publication of JPS60181810A publication Critical patent/JPS60181810A/en
Publication of JPH0471209B2 publication Critical patent/JPH0471209B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 発明の技術分野 本発明は波形発生制御装置に係り、特に、複雑
且つ高速な波形の発生を中央処理装置(以下
CPUと称する)を介在させずに行うことにより
CPUの処理能力を低下させることなく実現する
波形発生制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a waveform generation control device, and in particular, to a central processing unit (hereinafter referred to as
By doing this without the intervention of a CPU (referred to as a CPU)
This invention relates to a waveform generation control device that is realized without reducing the processing capacity of a CPU.

技術の背景 例えばメカトロニクス制御等においては、10マ
イクロ秒といつた狭いパルス幅のパルスを複雑に
組合わせた波形が要求される。このように高速か
つ複雑な波形をマイクロコンピユータにより発生
させる場合、CPUの制御によつて発生させるこ
とは命令数が多くなり過ぎて極めて困難である。
Background of the Technology For example, mechatronics control requires a waveform that is a complex combination of pulses with a narrow pulse width of 10 microseconds. When such high-speed and complex waveforms are generated by a microcomputer, it is extremely difficult to generate them under CPU control because the number of instructions becomes too large.

従来技術と問題点 従来、制御及び演算機能を搭載した装置、例え
ばマイクロプロセツサをそのCPUとして使用す
る制御装置には、高速の波形の発生のためにプロ
グラマブルタイマと称する汎用周辺LSI(例えば
インテル社i8253,8254、モトローラ社MC6840
等)が用いられて波形発生制御が行われている。
このプログラマブルタイマは種々のモードを持
ち、例えばオートロードタイマの機能を利用すれ
ば任意のデユーテイのパルスの発生が可能であ
る。
Conventional technology and problems Conventionally, devices equipped with control and arithmetic functions, such as control devices that use a microprocessor as their CPU, have been equipped with general-purpose peripheral LSIs called programmable timers (for example, Intel Corporation) to generate high-speed waveforms. i8253, 8254, Motorola MC6840
etc.) are used to control waveform generation.
This programmable timer has various modes, and for example, by using the function of an autoload timer, it is possible to generate pulses of arbitrary duty.

しかしながら、上記プログラマブルタイマを用
いた波形発生制御では、少し複雑な波形制御、例
えば4マイクロ秒周期のパルスを10個出力する場
合にも、パルス数を計数するために外部にカウン
タ回路を設ける必要があるので、汎用性に欠け且
つ高価格になるという問題がある。又、例えば音
を出すために少し波形周期を変化させたり、不規
則な波形を出力するためには、その都度CPUに
より上記プログラマブルタイマ内の制御レジスタ
のデータを設定し直す必要があるので、CPUの
処理能力が低下するという問題もある。
However, in the waveform generation control using the programmable timer described above, it is necessary to provide an external counter circuit to count the number of pulses even when controlling the waveform in a slightly complicated manner, for example, when outputting 10 pulses with a period of 4 microseconds. Therefore, there are problems in that it lacks versatility and is expensive. Also, for example, in order to slightly change the waveform cycle to produce sound or to output an irregular waveform, the data in the control register in the programmable timer needs to be reset by the CPU each time. There is also the problem that the processing capacity of

発明の目的 本発明の目的は、上記従来技術における問題に
かんがみ、汎用性があり、低価格で、且つCPU
の処理能力の低下を招かずに高速で複雑な波形を
発生できる波形発生制御装置を提供することにあ
る。
Purpose of the Invention In view of the problems in the prior art described above, an object of the present invention is to provide a versatile, low-cost, and
An object of the present invention is to provide a waveform generation control device that can generate complex waveforms at high speed without causing a decrease in processing capacity.

発明の構成 上記の目的を達成するために、本発明によつて
提供されるものは、制御及び演算機能を搭載した
中央処理装置、及び時間と共に変化する電圧波形
を発生する波形発生装置を具備する制御装置にお
いて、中央処理装置により、発生すべき波形のパ
ルス幅の値及びパルス間隔の値からなる波形情報
及びこの波形情報の読み出し方を制御するための
制御情報が書き込まれる書込み/読出し可能な記
憶装置、及び記憶装置に記憶されている制御情報
を読み出してデコードすることにより、中央処理
装置の制御と無関係に記憶装置の読出しアドレス
を決定し、波形発生装置は、記憶装置制御回路に
より読出しアドレスを用いて記憶装置から読出さ
れた波形情報に基づいて波形を発生するようにし
たことを特徴とする波形発生装置である。
Configuration of the Invention In order to achieve the above object, the present invention provides a central processing unit equipped with control and calculation functions, and a waveform generator that generates a voltage waveform that changes over time. In the control device, a writable/readable memory in which waveform information consisting of pulse width values and pulse interval values of a waveform to be generated and control information for controlling how to read this waveform information are written by the central processing unit. By reading and decoding the control information stored in the device and the storage device, the read address of the storage device is determined independently of the control of the central processing unit, and the waveform generator determines the read address by the storage device control circuit. A waveform generating device is characterized in that it generates a waveform based on waveform information read out from a storage device using the present invention.

発明の実施例 以下、本発明の実施例を図面によつて説明す
る。
Embodiments of the Invention Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例による波形発生制御
装置を示すブロツク回路図である。同図におい
て、1は制御及び演算機能を搭載したCPU、2
は時間と共に変化する電圧を発生する波形発生回
路、3はランダムアクセスメモリ(RAM)、4
はRAM制御回路である。RAM3にはCPU1に
より予め波形情報とこの波形情報を制御する制御
情報が書込まれている。これらの情報のRAM3
への書込みはRAM制御回路4を介して行つても
よいし、図示点線のバス5を介してCPU1から
直接書込んでもよい。いずれにしても、RAM3
に上記情報が一担書込まれた後は、更新のために
再書込みする時以外はRAM3及びRAM制御回
路4がCPU1により制御されることはない。
RAM制御回路4は、RAM3からバス6を介し
て制御情報を読出し、その制御情報をデコードし
てRAM3から波形情報を読出すための読出しア
ドレスを決定する。決定された読出しアドレスは
バス7を介してRAM3に与えられ、それにより
波形情報が読出されてRAM制御回路4及び波形
発生回路2に入力される。RAM制御回路4は受
け取つた波形情報と既に格納されている制御情報
とから、次の読出しアドレスを決定し、こうして
読出しが続行される。波形発生回路2は受け取つ
た波形情報に基づいてハイレベル又はローレベル
の信号すなわちパルス列を送出する。
FIG. 1 is a block circuit diagram showing a waveform generation control device according to an embodiment of the present invention. In the figure, 1 is a CPU equipped with control and calculation functions;
is a waveform generation circuit that generates a voltage that changes over time; 3 is a random access memory (RAM); 4 is a random access memory (RAM);
is the RAM control circuit. Waveform information and control information for controlling this waveform information are written in the RAM 3 in advance by the CPU 1. RAM3 of these information
Writing may be performed via the RAM control circuit 4, or may be written directly from the CPU 1 via the bus 5 indicated by the dotted line in the figure. In any case, RAM3
After the above-mentioned information is written once, the RAM 3 and the RAM control circuit 4 are not controlled by the CPU 1 except when rewriting for updating.
The RAM control circuit 4 reads control information from the RAM 3 via the bus 6, decodes the control information, and determines a read address for reading waveform information from the RAM 3. The determined read address is given to the RAM 3 via the bus 7, whereby the waveform information is read out and input to the RAM control circuit 4 and the waveform generation circuit 2. The RAM control circuit 4 determines the next read address from the received waveform information and the control information already stored, and the read continues in this manner. The waveform generation circuit 2 sends out a high-level or low-level signal, that is, a pulse train, based on the received waveform information.

第2図aは本発明の一実施例により得られるパ
ルス列を示す図、第2図bは第2図aのパルス列
を得るためにRAM3に格納された情報を模式的
に示す図である。第2図a,bに示した例では、
RAM制御回路4はRAM3の1つの番地に格納
された値をカウントダウンして0になると自動的
に次の番地から値をロードしてカウントするとい
う制御を行うものとする。第2図aに示す如く、
10マイクロ秒の幅のパルスを50マイクロ秒間隔で
4回出力して1周期とする信号のn周期目と(n
+1)周期目の間は(100+10×n)マイクロ秒
の間隔とする波形制御を行うとすると、第2図b
に示す如く、RAM3には、10,50,10,50,
10,50,10,110,…のように波形情報を記憶さ
せておけばよい。この場合、制御情報としては、
上記の制御を行わせる情報CをRAM3に格納し
ておき、RAM制御回路4が情報Cをデコードす
ることにより、波形情報をカウントダウンして次
の番地の波形情報をロードするという上記制御を
行う。
FIG. 2a is a diagram showing a pulse train obtained by an embodiment of the present invention, and FIG. 2b is a diagram schematically showing information stored in the RAM 3 to obtain the pulse train of FIG. 2a. In the example shown in Figures 2a and b,
The RAM control circuit 4 counts down the value stored at one address in the RAM 3, and when it reaches 0, automatically loads the value from the next address and starts counting. As shown in Figure 2a,
The nth period and (n
+1) If we perform waveform control with an interval of (100+10×n) microseconds during the period, Figure 2b
As shown in the figure, RAM3 has 10, 50, 10, 50,
Waveform information such as 10, 50, 10, 110, . . . may be stored. In this case, the control information is
Information C for performing the above control is stored in the RAM 3, and the RAM control circuit 4 decodes the information C to perform the above control of counting down the waveform information and loading the waveform information at the next address.

第2図aに示した制御を従来のプログラマブル
タイマで行うためには、外部にゲート信号のハー
ドウエアロジツクを付加したり、レジスタに頻繁
にアクセスを行う必要があり、CPU負荷が増大
してCPU1の効率が落ち、CPUが他の用途にも
使われている場合には、10マイクロ秒のパルス幅
の如き高速の波形の発生が不可能になることがあ
る。
In order to perform the control shown in Figure 2a using a conventional programmable timer, it is necessary to add external hardware logic for gate signals and to access registers frequently, which increases the CPU load and increases the CPU load. If the CPU is used for other purposes, the generation of fast waveforms such as 10 microsecond pulse widths may become impossible.

第3図は本発明の他の実施例によるRAM3の
内容を示す図である。第3図においては、より複
雑な制御情報がRAM3に格納されている。すな
わち、第3図の例では、RAM制御回路4が
LOOP 4 AND JUMP Aという制御情報をデ
コードすることにより、波形情報H=10とL=50
を4回読出して10マイクロ秒の幅のパルスを50マ
イクロ秒間隔で4回出力し、次いでA番地にジヤ
ンプしてH=0とL=60を読出して60マイクロ秒
の間隔をあけ、次にLOOP 4 AND JUMP B
という制御情報をデコードすることによりH=10
とL=50を4回読出して10マイクロ秒の幅のパル
スを50マイクロ秒間隔で4回出力し、次にB番地
にジヤンプして70マイクロ秒の間隔をあけるとい
う波形の発生制御が行われる。
FIG. 3 is a diagram showing the contents of RAM 3 according to another embodiment of the present invention. In FIG. 3, more complex control information is stored in RAM3. That is, in the example of FIG. 3, the RAM control circuit 4
By decoding the control information LOOP 4 AND JUMP A, the waveform information H=10 and L=50
is read 4 times and outputs 10 microsecond width pulses 4 times at 50 microsecond intervals, then jumps to address A and reads H=0 and L=60 at 60 microsecond intervals, then LOOP 4 AND JUMP B
By decoding the control information H=10
Waveform generation control is performed by reading out and L=50 four times, outputting 10 microsecond pulses four times at 50 microsecond intervals, and then jumping to address B with an interval of 70 microseconds. .

いずれの実施例でも、RAM3に一担波形情報
及び制御情報が格納された後は、CPUは波形の
発生制御に関与しないことに着目される。従つ
て、CPUが他の用途に使用されている場合でも
10マイクロ秒の幅の狭いパルスを得ることができ
る。また、複雑な波形制御を行う場合でも新たに
外部カウンタ回路やハードウエアロジツクを付加
する必要はない。
In any of the embodiments, it is noted that once the single waveform information and control information are stored in the RAM 3, the CPU does not participate in waveform generation control. Therefore, even if the CPU is used for other purposes,
A narrow pulse of 10 microseconds can be obtained. Further, even when performing complex waveform control, there is no need to add a new external counter circuit or hardware logic.

本発明は上述の実施例に限られるものではな
く、RAM3に所望の制御情報及び所望の波形情
報を格納することにより様々の波形制御が可能と
なる。
The present invention is not limited to the embodiments described above, and by storing desired control information and desired waveform information in the RAM 3, various waveform controls are possible.

発明の効果 以上説明したように、本発明によれば、汎用性
があり、低価格で、且つCPUの処理能力の低下
を招かずに高速で複雑な波形を発生できる波形発
生制御装置が得られる。
Effects of the Invention As explained above, the present invention provides a waveform generation control device that is versatile, inexpensive, and capable of generating complex waveforms at high speed without reducing the processing power of the CPU. .

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

第1図は本発明の一実施例による波形発生制御
装置を示すブロツク回路図、第2図aは本発明の
一実施例により得られるパルス列を示す図、第2
図bは第2図aのパルス列を得るためにRAMに
格納された情報を模式的に示す図、第3図は本発
明の他の実施例によるRAMの内容を示す図であ
る。 1…中央処理装置、2…波形発生回路、3…記
憶装置、4…記憶装置制御回路。
FIG. 1 is a block circuit diagram showing a waveform generation control device according to an embodiment of the present invention, FIG. 2a is a diagram showing a pulse train obtained by an embodiment of the present invention, and FIG.
FIG. 2B is a diagram schematically showing information stored in the RAM to obtain the pulse train of FIG. 2A, and FIG. 3 is a diagram showing the contents of the RAM according to another embodiment of the present invention. DESCRIPTION OF SYMBOLS 1...Central processing unit, 2...Waveform generation circuit, 3...Storage device, 4...Storage device control circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 制御及び演算機能を搭載した中央処理装置、
及び時間と共に変化する電圧波形を発生する波形
発生装置を具備する制御装置において、該中央処
理装置により、発生すべき波形のパルス幅の値及
びパルス間隔の値からなる波形情報及び該波形情
報の読み出し方を制御するための制御情報が書き
込まれる書込み/読出し可能な記憶装置、及び該
記憶装置に記憶されている該制御情報を読み出し
でデコードすることにより、該中央処理装置の制
御と無関係に該記憶装置の読出しアドレスを決定
し、該波形発生装置は、該記憶装置制御回路によ
り該読出しアドレスを用いて該記憶装置から読出
された波形情報に基づいて波形を発生するように
したことを特徴とする波形発生装置。
1 Central processing unit equipped with control and calculation functions,
and a control device equipped with a waveform generator that generates a voltage waveform that changes over time, in which the central processing unit reads out waveform information consisting of pulse width values and pulse interval values of the waveform to be generated, and the waveform information. A writable/readable storage device in which control information for controlling the computer is written, and the control information stored in the storage device is read and decoded to control the storage device independently of the control of the central processing unit. A read address of the device is determined, and the waveform generating device generates a waveform based on waveform information read from the storage device using the read address by the storage device control circuit. Waveform generator.
JP3591984A 1984-02-29 1984-02-29 Controller for generation of waveform Granted JPS60181810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3591984A JPS60181810A (en) 1984-02-29 1984-02-29 Controller for generation of waveform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3591984A JPS60181810A (en) 1984-02-29 1984-02-29 Controller for generation of waveform

Publications (2)

Publication Number Publication Date
JPS60181810A JPS60181810A (en) 1985-09-17
JPH0471209B2 true JPH0471209B2 (en) 1992-11-13

Family

ID=12455438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3591984A Granted JPS60181810A (en) 1984-02-29 1984-02-29 Controller for generation of waveform

Country Status (1)

Country Link
JP (1) JPS60181810A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58774A (en) * 1981-06-25 1983-01-05 Toshiba Corp High speed pattern generator

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58774A (en) * 1981-06-25 1983-01-05 Toshiba Corp High speed pattern generator

Also Published As

Publication number Publication date
JPS60181810A (en) 1985-09-17

Similar Documents

Publication Publication Date Title
KR960025733A (en) DRAM refresh circuit
JPH0542031B2 (en)
JPH0471209B2 (en)
US4144447A (en) Interval timer
JP2806849B2 (en) Memory address controller
JPS6055916B2 (en) timing circuit
JP2634893B2 (en) Single chip microcomputer
KR900004014Y1 (en) Dram refresh circuit
JP2634425B2 (en) Pitch modulation circuit
JPH045292B2 (en)
JPS6319027B2 (en)
JP2754654B2 (en) Microcomputer output control circuit
JP2729155B2 (en) Self refresh transition circuit
JPH0474736B2 (en)
JPS60173794A (en) Refresh system of memory
JPS63282865A (en) Input/output circuit
JPS61137294A (en) Memory integrated circuit
JPH02216697A (en) Dram control circuit
JPS6220061A (en) Microcomputer containing tone generator
JPS61126691A (en) Refreshing circuit of memory
JPS62173527A (en) Counter circuit
JPS6120417A (en) Programmable pulse generator
JPH0652044A (en) Microprocessor
JPH02130793A (en) Memory control circuit
JPS63164530A (en) Flexible counter