JPH0242263B2 - - Google Patents
Info
- Publication number
- JPH0242263B2 JPH0242263B2 JP58056616A JP5661683A JPH0242263B2 JP H0242263 B2 JPH0242263 B2 JP H0242263B2 JP 58056616 A JP58056616 A JP 58056616A JP 5661683 A JP5661683 A JP 5661683A JP H0242263 B2 JPH0242263 B2 JP H0242263B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- circuit
- parallel
- serial conversion
- conversion circuit
- 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
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Digital Transmission Methods That Use Modulated Carrier Waves (AREA)
- Dc Digital Transmission (AREA)
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明はフイードバツクを利用するパルス幅変
調方式に係り、特にハードウエアを用いることに
よつてパルス幅変調における処理装置の負担を低
減したパルス幅変調方式に関するものである。[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a pulse width modulation method using feedback, and in particular to a pulse width modulation method that reduces the burden on a processing device in pulse width modulation by using hardware. It is related to the method.
従来、パーソナルコンピユータにおいては、オ
ーデイオカセツトのインターフエースにおいて、
よくパルス幅変調方式が使用される。このパルス
幅変調に際しては、送信すべきデータについて並
直列変換後、パルス幅の時間を決定したりその他
変調に伴なう計算等を全てプログラムによつて行
なつていた。その理由として、パルス幅変調にお
いては、伝送すべき出力データにより、伝送速度
が変化してしまうので、ハードウエア的にその処
理を行なうにはタイミングが取りにくいためであ
る。
Conventionally, in personal computers, the audio cassette interface
Pulse width modulation methods are often used. In this pulse width modulation, the data to be transmitted is parallel-serial converted, the pulse width time is determined, and other calculations associated with the modulation are all performed by a program. The reason for this is that in pulse width modulation, the transmission speed changes depending on the output data to be transmitted, so it is difficult to determine the timing to perform this processing in terms of hardware.
例えば、第1図は従来のパルス幅変調方式の概
略的な構成を示すが、データバス1上において並
列に送られたデータをレジスタ2にセツトして、
これをプログラムにより1ビツトずつ出力して直
列データに変換し、これを上記の如くソフトウエ
アによりパルス幅の時間を計算して、書込みパル
ス変調波を出力し、これをレベル変換器3でレベ
ル変換した後、オーデイオカセツト4に書込み、
パルス幅変調波形を生成していた。 For example, FIG. 1 shows a schematic configuration of a conventional pulse width modulation method, in which data sent in parallel on a data bus 1 is set in a register 2,
The program outputs this one bit at a time and converts it into serial data.The software calculates the pulse width time as described above, outputs the write pulse modulation wave, and converts the level using the level converter 3. After that, write to audio cassette 4,
It was generating a pulse width modulation waveform.
しかしながら、処理装置内で上記の処理すなわ
ちインターフエース処理を、ソフトウエア的に全
て行なわんとすると、該処理のために処理装置の
処理時間がかなり費やされてしまい、その他の処
理をしなければならない時間が喰われてしまい、
ソフトウエアの効率あるいは処理装置の処理効率
が低下る結果を生じさせていた。
However, if all of the above processing, that is, interface processing, were to be performed within the processing device using software, a considerable amount of processing time would be consumed by the processing device, and other processing would have to be performed. The time I shouldn't have was eaten up,
This results in a decrease in the efficiency of the software or the processing efficiency of the processing device.
本発明は上記の従来技術によるパルス幅変調方
式の問題に鑑み、これを解決するもので、本発明
においてはフイードバツク回路を利用することに
よつて、データ伝送速度の変化に応じて、ビツト
出力のタイミングを取り、データの並直列変換を
ハードウエアで行ない、処理装置のインターフエ
ース処理に対する処理時間を低減させるようにし
たフイードバツクを利用するパルス幅変調方式を
提供することを目的としている。
The present invention has been made in view of the above-mentioned problems of the pulse width modulation method according to the prior art. It is an object of the present invention to provide a pulse width modulation method using feedback that takes timing, performs parallel-serial conversion of data in hardware, and reduces processing time for interface processing of a processing device.
この目的を達成するために、本発明におけるフ
イードバツクを利用するパルス幅変調方式では、
データの並直列変換回路と、クロツク信号と、上
記並直列変換回路の出力信号が入力され、上記並
直列変換回路の出力信号が「0」のとき「0」を
出力し、上記並直列変換回路の出力信号が「1」
のときクロツク信号の立下り毎にその出力が反転
するフリツプフロツプ回路と、上記並直列変換回
路の出力信号と、上記フリツプフロツプ回路の出
力信号が入力され、これらの論理積が出力される
第1のゲート回路と、上記並直列変換回路の出力
信号と、クロツク信号が入力され、前者の否定と
後者の論理積が出力される第2のゲート回路と、
上記第1のゲート回路と、第2のゲート回路の出
力信号が入力され、これらの論理和が出力される
第3のゲート回路を設け、上記第3のゲート回路
の出力信号を上記並直列変換回路にフイードバツ
クし、データ出力と同期させてこのデータ出力を
パルス幅変調することを特徴とする。
To achieve this objective, the pulse width modulation method using feedback in the present invention:
A data parallel-serial conversion circuit, a clock signal, and an output signal of the parallel-serial conversion circuit are input, and when the output signal of the parallel-serial conversion circuit is ``0'', it outputs ``0'', and the parallel-serial conversion circuit outputs ``0''. The output signal of is “1”
a flip-flop circuit whose output is inverted every time the clock signal falls; a first gate to which the output signal of the parallel-to-serial converter circuit and the output signal of the flip-flop circuit are input, and the logical product of these is output; a second gate circuit into which the output signal of the parallel-to-serial conversion circuit and the clock signal are input, and outputs the negation of the former and the AND of the latter;
A third gate circuit is provided to which the output signals of the first gate circuit and the second gate circuit are input, and the logical sum of these is output, and the output signal of the third gate circuit is converted from parallel to serial. It is characterized by providing feedback to the circuit and pulse width modulating the data output in synchronization with the data output.
本発明の一実施例を、第2図及び第3図にもと
づき説明する。
An embodiment of the present invention will be described based on FIGS. 2 and 3.
第2図は本発明のパルス幅変調方式を実現する
装置の実施例、第3図は第2図の装置の動作を説
明するタイミング図を示す。 FIG. 2 shows an embodiment of an apparatus for realizing the pulse width modulation method of the present invention, and FIG. 3 shows a timing diagram explaining the operation of the apparatus shown in FIG.
第2図において、10は並直列変換回路であつ
て、データバスDB上で並列に送られてきたデー
タを、制御線cl1,cl2,cl3上の制御信号によつて
その出力側TDに直列データに変換して出力する
もの、11はJKフリツプフロツプ、12はアン
ドゲート回路、13は一方が否定入力を有するア
ンドゲート回路、4はオアゲート回路、15はレ
ベル変換部を夫々示し、前記JKフリツプフロツ
プおよび前記ゲート回路からなるいわば変調回路
を形成する回路にクロツク発生器(図示せず)か
らのクロツクパルスが与えられるようになつて
いる。 In FIG. 2, reference numeral 10 denotes a parallel-to-serial conversion circuit, which converts data sent in parallel on the data bus DB to its output side TD using control signals on control lines cl 1 , cl 2 , and cl 3 . 11 is a JK flip-flop, 12 is an AND gate circuit, 13 is an AND gate circuit with one side having a negative input, 4 is an OR gate circuit, and 15 is a level converter. Clock pulses from a clock generator (not shown) are applied to a circuit comprising the flip-flop and the gate circuit forming a so-called modulation circuit.
本発明のパルス幅変調方式では、オアゲート回
路14の出力側からフイードバツク回路FBが前
記並直列変換回路10の送信クロツク入力に
入力されている。これによつて送信すべきデータ
を上記のタイミングで出力している。 In the pulse width modulation method of the present invention, a feedback circuit FB is input from the output side of the OR gate circuit 14 to the transmission clock input of the parallel-to-serial conversion circuit 10. As a result, the data to be transmitted is output at the above timing.
以上のように構成された第2図の装置の動作を
第3図のタイミング図を参照して説明する。 The operation of the apparatus shown in FIG. 2 constructed as above will be explained with reference to the timing diagram shown in FIG. 3.
並直列変換回路10の入力側のデータバス
DB、例えば8ビツトからなる並列のデータバス
DB0〜DB7上のデータを、制御線cl1〜cl3上の制
御信号によつて直列データに変換する場合の例を
とる。直列に変換されて出力されるべきデータが
第3図dに示すように1,0,1,0,0,0,
1,1,0,であるとする。したがつて並直列変
換回路10のTDの出力側に、第3図bに示す如
きデータが1,0,1,0,1,0のような変化
で出力されると、そのデータ出力がJKフリツプ
フロツプ11のセツト入力Sに印加されるので、
第3図aに示すようなクロツクがJKフリツプ
フロツプ11のクロツク入力Cおよびアンドゲー
ト回路13の入力の一方に与えられる毎に、該ク
ロツクの「H」(高)から「L」(低)への変化時
にJKフリツプフロツプ11の出力側からのク
ロツクを1/2分周する出力の発生によつて、オ
アゲート回路14からの出力が並直列変換回路1
0のTC端子にフイードバツクされ、第3図cに
示す如き、パルス幅変調されたデータが出力され
る。 Data bus on the input side of the parallel-to-serial conversion circuit 10
DB, for example, a parallel data bus consisting of 8 bits
An example will be taken in which data on DB 0 to DB 7 is converted to serial data by control signals on control lines cl 1 to cl 3 . The data to be serially converted and output is 1, 0, 1, 0, 0, 0, as shown in Figure 3d.
Suppose that it is 1, 1, 0. Therefore, when data as shown in FIG. 3b is outputted to the output side of the TD of the parallel-to-serial conversion circuit 10 with changes such as 1, 0, 1, 0, 1, 0, the data output becomes JK. Since it is applied to the set input S of the flip-flop 11,
Every time a clock as shown in FIG. By generating an output that divides the clock frequency by 1/2 from the output side of the JK flip-flop 11 at the time of change, the output from the OR gate circuit 14 is converted to the parallel/serial converter circuit 1.
The signal is fed back to the TC terminal of 0, and pulse width modulated data as shown in FIG. 3c is output.
すなわち並直列変換回路10の出力TDが、第
3図bの如く、H(「1」を示す)、L(「0」を示
す)と変化するが、Hのときアンドゲート回路1
2がオンとなり、Lのときアンドゲート回路13
がオンとなる。したがつてLのときすなわち
「0」が出力されるときアンドゲート回路13か
らクロツクがそのまま出力され、オアゲート回
路14をを経由してレベル変換部15に伝達され
たり、並直列変換回路10にフイードバツクされ
る。 That is, as shown in FIG. 3b, the output TD of the parallel-to-serial conversion circuit 10 changes from H (indicating "1") to L (indicating "0"), but when it is H, the AND gate circuit 1
2 turns on and is L, the AND gate circuit 13
turns on. Therefore, when the clock is L, that is, when "0" is output, the clock is output as is from the AND gate circuit 13, and is transmitted to the level converter 15 via the OR gate circuit 14, or is fed back to the parallel-to-serial converter 10. be done.
そしてHのときすなわち「1」が出力されると
き、アンドゲート回路12がオンとなるので、
JKフリツプフロツプ11の出力が出力されて
オアゲート回路14に伝達されることになる。 When it is H, that is, when "1" is output, the AND gate circuit 12 is turned on, so
The output of the JK flip-flop 11 is output and transmitted to the OR gate circuit 14.
ところでこのJKフリツプフロツプ11の出
力は、並直列変換回路10のTDがHレベルのと
き、クロツクの立下り毎にその出力が反転する
ので、クロツクが1/2分周された出力が発生す
ることになる。したがつて、第3図bにおける
TDがHレベルすなわち「1」のときは、第3図
cの如くクロツクが1/2分周された出力が生ず
ることになる。 By the way, the output of this JK flip-flop 11 is inverted every time the clock falls when TD of the parallel-to-serial conversion circuit 10 is at H level, so an output is generated with the clock frequency divided by 1/2. Become. Therefore, in Figure 3b
When TD is at the H level, that is, "1", an output obtained by dividing the clock frequency by 1/2 is generated as shown in FIG. 3c.
このようにしてオアゲート回路14からは、
TDのH、Lすなわち「1」,「0」に応じてパル
ス変調された第3図cに示す出力が発生されるこ
とになる。 In this way, from the OR gate circuit 14,
A pulse-modulated output shown in FIG. 3c is generated in accordance with the H and L of TD, that is, "1" and "0".
以上述べたように、本発明においてはデータ伝
送速度の変化に追従さてフイードバツク出力によ
りデータビツトの出力タイミングを取りながらデ
ータの並直列変換回路や、クロツクを1/2分周す
るフリツプフロツプ回路、上記並直列変換回路か
らのデータ出力と上記フリツプフロツプ回路の出
力が入力される第1ゲート回路、上記並直列変換
回路からのデータ出力とクロツクが入力される第
2ゲート回路のような簡単な構成のハードウエア
回路を設けることによつて、処理装置内における
インターフエース処理に対するソフトウエア処理
を省き、処理装置の負担を軽くすることが可能と
なる。
As described above, in the present invention, a data parallel-to-serial conversion circuit, a flip-flop circuit that divides the clock frequency by 1/2, and a flip-flop circuit that divides the clock frequency by 1/2 can be used. Hardware with a simple configuration, such as a first gate circuit to which the data output from the serial conversion circuit and the output of the flip-flop circuit are input, and a second gate circuit to which the data output from the parallel to serial conversion circuit and the clock are input. By providing the circuit, software processing for interface processing within the processing device can be omitted, and the burden on the processing device can be reduced.
第1図は従来技術によるパルス幅変調方式の概
略図、第2図は本発明によるパルス幅変調方式を
実現する装置の実施例、第3図は第2図の装置の
動作を説明するタイミング図、をそれぞれ示す。
図中、10は並直列変換回路、11はJKフリ
ツプフロツプ、12はアンドゲート回路、13は
否定入力を有するアンドゲート回路、14はオア
ゲート回路、15はレベル変換部、DB0〜DB7は
データバス、cl1〜cl3は制御線、FBはフイードバ
ツク回路、を夫々示す。
FIG. 1 is a schematic diagram of a pulse width modulation method according to the prior art, FIG. 2 is an embodiment of a device implementing the pulse width modulation method according to the present invention, and FIG. 3 is a timing diagram explaining the operation of the device shown in FIG. 2. , respectively. In the figure, 10 is a parallel-to-serial conversion circuit, 11 is a JK flip-flop, 12 is an AND gate circuit, 13 is an AND gate circuit with negative input, 14 is an OR gate circuit, 15 is a level converter, and DB 0 to DB 7 are data buses. , cl 1 to cl 3 are control lines, and FB is a feedback circuit, respectively.
Claims (1)
号が入力され、上記並直列変換回路の出力信号が
「0」のとき「0」を出力し、上記並直列変換回
路の出力信号が「1」のときクロツク信号の立下
り毎にその出力が反転するフリツプフロツプ回路
と、 上記並直列変換回路の出力信号と、上記フリツ
プフロツプ回路の出力信号が入力され、これらの
論理積が出力される第1のゲート回路と、 上記並直列変換回路の出力信号と、クロツク信
号が入力され、前者の否定と後者の論理積が出力
される第2のゲート回路と、 上記第1のゲート回路と、第2のゲート回路の
出力信号が入力され、これらの論理和が出力され
る第3のゲート回路を設け、 上記第3のゲート回路の出力信号を上記並直列
変換回路にフイードバツクし、データ出力と同期
させてこのデータ出力をパルス幅変調することを
特徴とするフイードバツクを利用するパルス幅変
調方式。[Claims] 1. A data parallel-to-serial conversion circuit; a clock signal and an output signal of the parallel-to-serial conversion circuit are input, and when the output signal of the parallel-to-serial conversion circuit is “0”, outputs “0”; and a flip-flop circuit whose output is inverted every time the clock signal falls when the output signal of the parallel-serial conversion circuit is "1"; the output signal of the parallel-serial conversion circuit and the output signal of the flip-flop circuit are inputted. a first gate circuit to which the output signal of the parallel-to-serial conversion circuit and a clock signal are input, and a second gate circuit to which the negation of the former and the logical product of the latter are output. and a third gate circuit is provided to which the output signals of the first gate circuit and the second gate circuit are input, and the logical sum of these is output; A pulse width modulation method using feedback, which is characterized by feeding back to a serial conversion circuit and pulse width modulating the data output in synchronization with the data output.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5661683A JPS59182656A (en) | 1983-03-31 | 1983-03-31 | Pulse width modulating system utilizing feedback |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5661683A JPS59182656A (en) | 1983-03-31 | 1983-03-31 | Pulse width modulating system utilizing feedback |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59182656A JPS59182656A (en) | 1984-10-17 |
| JPH0242263B2 true JPH0242263B2 (en) | 1990-09-21 |
Family
ID=13032193
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5661683A Granted JPS59182656A (en) | 1983-03-31 | 1983-03-31 | Pulse width modulating system utilizing feedback |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59182656A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2903798B2 (en) * | 1991-08-29 | 1999-06-14 | 株式会社デンソー | In-vehicle serial data communication method |
| JP5666813B2 (en) * | 2010-03-15 | 2015-02-12 | 株式会社テセック | Time width measuring device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS55160314A (en) * | 1979-05-29 | 1980-12-13 | Toshiba Corp | Interface circuit of audio cassette tape recorder |
| JPS56149151A (en) * | 1980-04-21 | 1981-11-18 | Furukawa Electric Co Ltd:The | Pulse modulating method |
-
1983
- 1983-03-31 JP JP5661683A patent/JPS59182656A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59182656A (en) | 1984-10-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB2332965A (en) | Multiple data rate synchronous DRAM for enhancing data transfer speed | |
| US3932816A (en) | Multifrequency drive clock | |
| JPH0242263B2 (en) | ||
| JPS6261175B2 (en) | ||
| JPH03163908A (en) | Clock signal delay circuit | |
| JPS605492A (en) | Address buffer circuit of semiconductor memory device | |
| JPS63226121A (en) | Serial/parallel converting circuit | |
| SU1432556A1 (en) | Device for solving equations | |
| JPS626734Y2 (en) | ||
| CN117826675A (en) | Active sonar signal source control system | |
| JP2970241B2 (en) | Sampling clock information generation circuit | |
| JPH03203406A (en) | Timing generating circuit | |
| SU1575297A1 (en) | Device for checking pulse sequence | |
| SU828407A1 (en) | Device for shaping difference frequency pulses | |
| JPH02280263A (en) | Microprocessor | |
| JP2606575B2 (en) | Variable speed conversion circuit | |
| JPH04318716A (en) | Destuff control circuit | |
| JPH01290313A (en) | Signal propagating method between integrated circuits | |
| JPS61216192A (en) | Memory writing system | |
| JPH0119671B2 (en) | ||
| JPH06188702A (en) | Pulse width modulating device | |
| JPH05191226A (en) | Spike noise elimination circuit | |
| JPS60102690U (en) | Radiation measuring instrument noise prevention circuit | |
| JPS62110325A (en) | Digital/analog converter | |
| JPS6296879A (en) | Timing control circuit |