Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0758891B2 - Pulse width modulator - Google Patents
[go: Go Back, main page]

JPH0758891B2 - Pulse width modulator - Google Patents

Pulse width modulator

Info

Publication number
JPH0758891B2
JPH0758891B2 JP22933687A JP22933687A JPH0758891B2 JP H0758891 B2 JPH0758891 B2 JP H0758891B2 JP 22933687 A JP22933687 A JP 22933687A JP 22933687 A JP22933687 A JP 22933687A JP H0758891 B2 JPH0758891 B2 JP H0758891B2
Authority
JP
Japan
Prior art keywords
counter
reload
output
pwm
reload register
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
JP22933687A
Other languages
Japanese (ja)
Other versions
JPS6471322A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP22933687A priority Critical patent/JPH0758891B2/en
Publication of JPS6471322A publication Critical patent/JPS6471322A/en
Publication of JPH0758891B2 publication Critical patent/JPH0758891B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Inverter Devices (AREA)
  • Dc-Dc Converters (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、リロードレジスタ付カウンタ2個を用いた
パルス幅変調器(以下PWMと称する)に関するものであ
る。
The present invention relates to a pulse width modulator (hereinafter referred to as PWM) using two counters with reload registers.

〔従来の技術〕[Conventional technology]

第4図は'86三菱半導体データブック,8ビットワンチッ
プマイクロコンピュータ編2−180頁,M50753−XXXSP/FP
図11に示された従来のリロードレジスタ付カウンタ回路
2個を用いたPWMの構成を要約して示した図である。こ
の図において、1は“PWM出力=0"の時間長を制御する
リロードレジスタ付カウンタ、2は“PWM出力=1"の時
間長を制御するリロードレジスタ付カウンタ、3はリロ
ードレジスタ付カウンタ1,2のカウンタに伝播されるカ
ウントパルス(クロック)、4はリロードレジスタ付カ
ウンタ1のカウンタがターミナルカウント値に到達した
ことを示す信号、5はリロードレジスタ付カウンタ2の
カウンタがターミナルカウント値に到達したことを示す
信号、6は信号4,5で制御される出力制御部(RSフリッ
プフロップ)、7はPWM出力である。
Fig. 4 is the page of the '86 Mitsubishi Semiconductor Data Book, 8-bit one-chip microcomputer, page 2-180, M50753-XXXSP / FP.
FIG. 12 is a diagram summarizing a configuration of a PWM using the two counter circuits with a reload register shown in FIG. 11. In this figure, 1 is a counter with a reload register that controls the time length of “PWM output = 0”, 2 is a counter with a reload register that controls the time length of “PWM output = 1”, 3 is a counter with a reload register 1, Count pulse (clock) propagated to the counter of 2; 4 is a signal indicating that the counter of the counter with reload register 1 has reached the terminal count value; 5 is the counter of the counter with reload register 2 has reached the terminal count value Is an output control unit (RS flip-flop) controlled by signals 4 and 5, and 7 is a PWM output.

また、第5図はリロードレジスタ付カウンタ1,2の内部
構成例を示している。この図において、8はカウンタ、
9はターミナルカウント値に到達した時にカウンタ8に
書込まれる値(=リロード設定値)を保持するリロード
レジスタ、10はターミナルカイント値に到達したこと示
す信号4または信号5のおのおのによりリロードレジス
タ9の値をカウンタ8に書込む動作(いわゆるリロード
動作)を制御する回路、11はカウントパルス3をカウン
タ8に伝播するか否かを制御するスイッチ回路である。
Further, FIG. 5 shows an internal configuration example of the counters 1 and 2 with reload registers. In this figure, 8 is a counter,
9 is a reload register that holds the value (= reload setting value) written in the counter 8 when the terminal count value is reached, and 10 is a reload register 9 depending on the signal 4 or signal 5 indicating that the terminal count value has been reached. Is a circuit for controlling the operation of writing the value of 8 to the counter 8 (so-called reload operation), and 11 is a switch circuit for controlling whether or not the count pulse 3 is propagated to the counter 8.

次に動作について説明するが、以下における説明では、
リロードレジスタ付カウンタ1,2のカウンタ8はダウン
カウンタであるものとし、そのターミナルカウント値は
“1"であるとする。
Next, the operation will be described. In the following description,
The counter 8 of the counters 1 and 2 with reload registers is a down counter, and its terminal count value is "1".

第6図において、12はリロードレジスタ付カウンタ1に
おけるカウンタ8のカウントダウン動作を示し、13はリ
ロードレジスタ付カウンタ2におけるカウンタ8のカウ
ントダウン動作を示す。まず、リロードレジスタ付カウ
ンタ1のカウンタ8がカンウンタ初期値(この図では初
期値=4)から順次カウントダウンを行ない、カウンタ
の内容が1になるとタイミングaでターミナルカウント
値に到達したことを示す信号4を発生する。これによ
り、PWM出力7は“0"→“1"に変化し、リロードレジス
タ付カウンタ2のカウンタ8がカウンタ初期値(この図
では初期値=5)からカウントダウンを開始する。この
リロードレジスタ付カウンタ2のカウンタ8は順次カウ
ントダウンを行ない、カウンタの内容が1になるとタイ
ミングbでターミナルカウント値に到達したことを示す
信号5を発生する。これにより、PWM出力7は“1"→
“0"に変化し、同時にリロードレジスタ付カウンタ1,2
には各々のリロード設定値が、各々の次のカウンタ初期
値(この図ではn,m)として、リロードレジスタから書
込まれ、1周期分のPWM動作が完了する。なお、n=4
かつm=5の場合には、“0"出力時間長:“1"出力時間
長=4:5の出力波形を連続的に出力する。
In FIG. 6, 12 shows the countdown operation of the counter 8 in the counter 1 with the reload register, and 13 shows the countdown operation of the counter 8 in the counter 2 with the reload register. First, the counter 8 of the counter 1 with a reload register counts down sequentially from the counter initial value (initial value = 4 in this figure), and when the counter content becomes 1, a signal 4 indicating that the terminal count value has been reached at the timing a. To occur. As a result, the PWM output 7 changes from "0" to "1", and the counter 8 of the counter 2 with the reload register starts counting down from the counter initial value (initial value = 5 in this figure). The counter 8 of the counter 2 with the reload register sequentially counts down, and when the content of the counter becomes 1, a signal 5 indicating that the terminal count value has been reached is generated at a timing b. As a result, the PWM output 7 becomes "1" →
It changes to “0” and at the same time counters 1 and 2 with reload register
Each reload setting value is written from the reload register as the next counter initial value (n, m in this figure) to complete the PWM operation for one cycle. Note that n = 4
When m = 5, the output waveform of "0" output time length: "1" output time length = 4: 5 is continuously output.

また、以上の説明ではターミナルカウント値を“1"とし
たが、ターミナルカウント値が“0"のカウンタを用いる
場合も、カウンタ初期値“l"に対し実行時間長が“l+
1"になることを除けば、上記の場合と同様のPWM動作を
行なう。
Further, although the terminal count value is "1" in the above description, even when a counter having a terminal count value of "0" is used, the execution time length is "l +
The same PWM operation as in the above case is performed except that it becomes 1 ".

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

従来のPWMは以上のように構成されているので、 ・ターミナルカウント値=1の場合 カウンタ初期値を“0"にしても、0→〔フルスケール〕
→〔フルスケール−1…というラップアラウンド動作を
する。
Since the conventional PWM is configured as above, ・ When the terminal count value = 1, even if the counter initial value is "0", 0 → [full scale]
→ Performs a wraparound operation called [Full Scale-1 ...

・ターミナルカイント値=0の場合 カウンタ初期値を“0"にしても、“0+1"の実行時間長
を有する。
-When terminal value = 0 Even if the initial value of the counter is "0", the execution time length is "0 + 1".

というように、いずれの場合も時間長=0に相当するPW
M動作、すなわち直流出力(連続的に“0"を出力する、
または連続的に“1"を出力する)を実現することが困難
であるという問題点があった。
In any case, PW corresponding to time length = 0
M operation, ie DC output (continuously output "0",
Alternatively, there is a problem that it is difficult to realize "outputting" 1 "continuously".

この発明は上記のような問題点を解決するためになされ
たもので、カウンタ初期値を“0"にすると、直流出力を
行なうことが可能なパルス幅変調器を得ることを目的と
する。
The present invention has been made to solve the above problems, and an object of the present invention is to obtain a pulse width modulator capable of performing DC output when the initial value of the counter is set to "0".

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るパルス幅変調器は、PWM出力が第1電圧
レベルである時間長を決定する第1のリロードレジスタ
付カウンタと、PWM出力が第2電圧レベルである時間長
を決定する第2のリロードレジスタ付カウンタと、該第
1のリロードレジスタ付カウンタのカウンタから出力さ
える,当該カウンタの内容が所定のターミナルカウント
値に到達したことを示す第1のターミナルカウント値到
達信号を受けて、PWM出力を上記第1電圧レベルから上
記第2電圧レベルに切り換えた後、該第2のリロードレ
ジスタ付カウンタのカウンタから出力される,当該カウ
ンタの内容が所定のターミナルカウント値に到達したこ
とを示す第2のターミナルカウント値到達信号を受け
て、PWM出力を上記第2電圧レベルから上記第1電圧レ
ベルに切り換えて、一周期分のPWM動作を完了させる出
力制御回路とを有し、上記第1,及び第2のリロードレジ
スタ付カウンタが、それぞれ上記第1または第2のター
ミナルカウント値到達信号の発生後、直ちに当該第1ま
たは第2のターミナルカウント値到達信号に基づいて、
そのリロードレジスタのリロード設定値をそのカウンタ
にカウンタ初期値として書き込まれるよう構成されてな
るパルス幅変調器であって、上記第1,及び第2のリロー
ドレジスタ付カウンタの各カウンタは、これが上記第1
または第2のターミナルカウント値到達信号を発生した
後,次の周期のPWM動作におけるカウント動作を開始す
るまでの間に、上記カウンタ初期値として書き込まれた
リロード設定値が“0"であるか否かを判定して、判定信
号を出力するものであり、上記出力制御回路は、上記第
1,及び第2のリロードレジスタ付カウンタの各々のカウ
ンタから出力された上記判定信号を受けて、上記第1,及
び第2のリロードレジスタ付カウンタのうちのそのリロ
ード設定値が“0"であると判定されたものを、上記次の
周期のPWM動作においてその動作を停止状態に保持し、
その上記リロード設定値が“0"ではないと判定されたも
のを上記次の周期のPWM動作においてその動作を起動状
態に保持するよう制御するものであることを特徴とする
ものである。
A pulse width modulator according to the present invention includes a first counter with a reload register that determines a time length when a PWM output is at a first voltage level, and a second counter that determines a time length when a PWM output is at a second voltage level. PWM output in response to a counter with a reload register and a first terminal count value reaching signal output from the counter of the first reload register and indicating that the content of the counter has reached a predetermined terminal count value. Is switched from the first voltage level to the second voltage level, the second counter indicating that the counter content output from the counter of the second reload register has reached a predetermined terminal count value. In response to the terminal count value reaching signal of, the PWM output is switched from the second voltage level to the first voltage level, and one cycle And an output control circuit for completing the PWM operation, wherein the first and second counters with a reload register are respectively connected to the first or second counter immediately after the first or second terminal count value reaching signal is generated. Based on the terminal count value arrival signal of 2,
A pulse width modulator configured to write the reload set value of the reload register to the counter as a counter initial value, wherein each counter of the first and second counters with a reload register is 1
Or, whether the reload setting value written as the counter initial value is "0" between the generation of the second terminal count value reaching signal and the start of the counting operation in the PWM operation of the next cycle. The output control circuit is configured to determine whether
Receiving the determination signal output from each of the counters with the first and second reload registers, the reload setting value of the counters with the first and second reload registers is "0". What was determined to be, hold the operation in the stopped state in the PWM operation of the next cycle,
It is characterized in that, when the reload setting value is judged not to be "0", it is controlled so as to hold the operation in the activated state in the PWM operation of the next cycle.

〔作用〕[Action]

この発明においては、PWM出力が第1電圧レベルである
時間長を決定する第1のリロードレジスタ付カウンタ,
及びPWM出力が第2電圧レベルである時間長を決定する
第2のリロードレジスタ付カウンタの各々のカウンタ
が、その次の周期のPWM動作におけるカウンタ初期値が
“0"である否かを示す予知信号を発生し、この信号によ
り、上記次の周期のPWM動作において上記第1,及び第2
のリロードレジスタ付カウンタのうちのそのカウンタ初
期値が“0"であるものは停止状態に保持され、そのカウ
ンタ初期値が“0"でないものは起動状態に保持されるも
のとしたから、実行時間長=0を実現でき、PWM動作の
一周期が第1または第2の電圧レベルに固定されたPWM
直流出力を得ることができる。
In the present invention, a counter with a first reload register that determines the length of time that the PWM output is at the first voltage level,
And a prediction that each counter of the second counter with a reload register that determines the length of time that the PWM output is at the second voltage level indicates whether the counter initial value in the PWM operation of the next cycle is "0". A signal is generated, and by this signal, in the PWM operation in the next cycle, the first and second signals are generated.
Of the counters with reload registers of the above, those with an initial value of "0" are held in the stopped state, and those with an initial value other than "0" are held in the activated state. PWM in which length = 0 can be realized and one cycle of PWM operation is fixed to the first or second voltage level
DC output can be obtained.

〔実施例〕〔Example〕

第1図は本発明の一実施例によるPWMの構成を示してい
る。この図において、15は“PWM出力=0"の時間長を制
御するリロードレジスタ付カウンタ、16は“PWM出力=
1"の時間長を制御するリロードレジスタ付カウンタ、3
はリロードレジスタ付カウンタ15,16のカウンタに伝播
されるカウントパルス(クロック)、4はリロードレジ
スタ付カウンタ15のカウンタがターミナルカウント値に
到達したことを示す信号、17はリロードレジスタ付カウ
ンタ15のカウンタの次の周期のPWM動作におけるカウン
タ初期値が“0"である否かを示す信号、5はリロードレ
ジスタ付カウンタ16のカウンタがターミナルカウント値
に到達したことを示す信号、18はリロードレジスア付カ
ウンタ16のカウンタの次の周期のPWM動作におけるカウ
ンタ初期値が“0"であるか否かを示す信号、19は信号4,
5,17,18を受けてPWM出力を制御する出力制御部、7はPW
M出力である。
FIG. 1 shows the structure of a PWM according to an embodiment of the present invention. In this figure, 15 is a counter with a reload register that controls the time length of "PWM output = 0", and 16 is "PWM output =
Counter with reload register to control 1 "time length, 3
Is a count pulse (clock) propagated to the counters with reload registers 15 and 16, 4 is a signal indicating that the counter of the counter with reload register 15 has reached the terminal count value, 17 is a counter of the counter with reload register 15 A signal indicating whether the initial value of the counter in the PWM operation in the next cycle of is 0 or not, 5 is a signal indicating that the counter of the counter 16 with a reload register has reached the terminal count value, 18 is a reload register A signal indicating whether the initial value of the counter in the PWM operation in the next cycle of the counter of the counter 16 is “0”, 19 is the signal 4,
Output controller for receiving 5,17,18 and controlling PWM output, 7 is PW
M output.

また、第2図はリロードレジスタ付カウンタ15,16の内
部構成を示している。この図において、20はカウンタ
(第5図に示したカウンタ8との相違は、次のカウンタ
初期値が“0"である否かを示す信号17(18)を出力する
点である。)、9はターミナルカウント値に到達した時
にカウンタ20に書込まれる値を保持するリロードレジス
タ、30はターミナルカウント値に到達したことを示す信
号4(5)によりリロードレジスタ9の値(=リロード
設定値)を次のPWM動作周期のカウント動作が始まる前
にカウンタ20に書い込む(以下プリロードと称する)動
作を制御する回路(第5図に示した回路10との相違は、
書込みタイミングの差である)、11はカウントパルス3
をカウンタ20に伝播するか否かを制御するスイッチ回路
である。
Further, FIG. 2 shows the internal configuration of the counters 15 and 16 with reload registers. In this figure, 20 is a counter (the difference from the counter 8 shown in FIG. 5 is that a signal 17 (18) indicating whether the next counter initial value is "0" is output). 9 is a reload register that holds the value written to the counter 20 when the terminal count value is reached, and 30 is the value of the reload register 9 (= reload setting value) due to the signal 4 (5) indicating that the terminal count value has been reached The circuit for controlling the operation of writing (to be referred to as preload hereinafter) into the counter 20 before the counting operation of the next PWM operation cycle starts (the difference from the circuit 10 shown in FIG. 5 is
11 is the count pulse 3), which is the difference in write timing.
Is a switch circuit for controlling whether or not to propagate to the counter 20.

以下、動作について説明する。なお、リロードレジスタ
付カウンタ15,16のカウンタ20はダウンカウンタである
ものとし、そのターミナルカウント値は“1"であるとす
る。また、DC出力の例を示すため、リロードレジスタ付
カウンタ15のカウンタ20のカウンタ初期値=2,リロード
レジスタ付カウンタ15のリロードレジスタ9のリロード
設定値=0、リロードレジスタ付カウンタ16のカウンタ
20のカウンタ初期値=3,リロードレジスタ付カウンタ16
のリロードレジスタ9のリロード設定値=4とする。
The operation will be described below. The counter 20 of the counters 15 and 16 with reload registers is a down counter, and its terminal count value is "1". Further, in order to show an example of DC output, the counter initial value of the counter 20 of the reload register-equipped counter 15 = 2, the reload set value of the reload register 9 of the counter 15 with reload register = 0, the counter of the counter 16 with reload register
20 counter initial value = 3, counter with reload register 16
The reload setting value of the reload register 9 is set to 4.

第3図において、21はリロードレジスタ付カウンタ15に
おけるカウントダウン動作を示す信号、22はリロードレ
ジスタ付カウンタ15の次のカンウンタ初期値が“0"であ
る否かを示す信号である。また、23はリロードレジスタ
付カウンタ16におけるカウントダウン動作を示す信号、
24はリロードレジスタ付カウンタ16の次のカウンタ初期
値が“0"である否かを示す信号である。まず、リロード
レジスタ付カウンタ15がそのカウンタ20のカウンタ初期
値(=2)から順次カウントダウンを行なう。この間、
PWM出力7は“0"である。リロードレジスタ付カウンタ1
5のカウンタ20がターミナルカウントに到達すると、PWM
出力7は“0"→“1"に変化し、リロードレジスタ付カウ
ンタ16がそのカウンタ20のカウンタ初期値(=3)から
カウントダウンを開始する。リロードレジスタ付カウン
タ16のカウンタ20は順次カウントダウンを行ない、タイ
ミングcでターミナルカウント値に到達したことを示す
信号5を発生させる。これにより、このカウンタ20には
ただちに次のカウンタ初期値とリロードレジスタ9のリ
ロード設定値がプリロードされ、これが“0"であるか否
かの判定が行なわれる。この結果をタイミングd(=次
のPWM動作周期のカウント動作が始まるタイミング)ま
でに判明されることにより、次のPWM動作周期を直流出
力にするよう制御することが可能になる。
In FIG. 3, reference numeral 21 is a signal indicating the countdown operation of the counter 15 with a reload register, and 22 is a signal indicating whether the next counter initial value of the counter 15 with a reload register is "0". Further, 23 is a signal indicating the countdown operation in the counter 16 with a reload register,
Reference numeral 24 is a signal indicating whether or not the next counter initial value of the counter 16 with a reload register is "0". First, the reload register counter 15 sequentially counts down from the counter initial value (= 2) of the counter 20. During this time,
The PWM output 7 is “0”. Counter 1 with reload register
When the counter 20 of 5 reaches the terminal count, the PWM
The output 7 changes from "0" to "1", and the counter 16 with a reload register starts counting down from the counter initial value (= 3) of the counter 20. The counter 20 of the counter 16 with the reload register sequentially counts down and generates the signal 5 indicating that the terminal count value has been reached at the timing c. As a result, the counter 20 is immediately preloaded with the next counter initial value and the reload set value of the reload register 9, and it is determined whether or not this is "0". By recognizing this result by the timing d (= the timing at which the counting operation of the next PWM operation cycle starts), it becomes possible to control the next PWM operation cycle to be the DC output.

すなわち、第3図に示すタイミングdでは、 (a)信号22が有意→カウンタ15の次のカウンタ初期値
は“0"である (b)信号24が有意でない→カウンタ16の次のカウンタ
初期値は“0"でないことが判明しているため、出力制御
部19は、 (1)PWM出力7を、通常ならば『“1"→“0"にする』
ところを、『“1"のままにする』 (2)スイッチ11の操作により、通常ならば『カウンタ
16を停止し、カウンタ15を起動する』ところを、『カウ
ンタ15を停止のまま、カウンタ16を再起動する』 という動作を行なうことにより、DC出力(“1")を実現
できる。
That is, at the timing d shown in FIG. 3, (a) the signal 22 is significant → the next counter initial value of the counter 15 is “0”. (B) The signal 24 is not significant → the next counter initial value of the counter 16. Since it is known that is not “0”, the output control unit 19 (1) normally sets the PWM output 7 to “1” → “0” ”.
However, "Keep it at" 1 "" (2) If the switch 11 is operated, the "Counter"
The DC output (“1”) can be realized by performing the operation of “restarting the counter 16 while keeping the counter 15 stopped” instead of “stop 16 and start the counter 15”.

なお、上記実施例では、タイミングcでリロードレジス
タ9からカウンタ20へ次のリロード設定値をプリロード
することにより、次のカウンタ初期値が“0"かどうか判
定する例を示したが、これは、タイミングc〜タイミン
グdの間にリロードレジスタ9のリロード設定値を直接
判定する回路をリロードレジスタ9に付加し、信号17,1
8に相当する信号を発生させるようにしてもよく、上記
実施例と同様の効果を得ることができる。
In the above embodiment, the example in which it is determined whether the next counter initial value is “0” by preloading the next reload set value from the reload register 9 to the counter 20 at the timing c has been described. A circuit for directly determining the reload set value of the reload register 9 is added to the reload register 9 between the timing c and the timing d, and signals 17, 1
A signal corresponding to 8 may be generated, and the same effect as in the above embodiment can be obtained.

〔発明の効果〕〔The invention's effect〕

以上のように、この発明に係るパルス幅変調器によれ
ば、PWM出力が第1電圧レベルである時間長を決定する
第1のリロードレジスタ付カウンタと、PWM出力が第2
電圧レベルである時間長を決定する第2のリロードレジ
スタ付カウンタと、該第1のリロードレジスタ付カウン
タのカウンタから出力される,当該カウンタの内容が所
定のターミナルカウント値に到達したことを示す第1の
ターミナルカウント値到達信号を受けて、PWM出力を上
記第1電圧レベルから上記第2電圧レベルに切り換えた
後、該第2のリロードレジスタ付カウンタのカウンタか
ら出力される,当該カウンタの内容が所定のターミナル
カウント値に到達したことを示す第2のターミナルカウ
ント値到達信号を受けて、PWM出力を上記第2電圧レベ
ルから上記第1電圧レベルに切り換えて、一周期分のPW
M動作を完了させる出力制御回路とを有し、上記第1,5及
び第2のリロードレジスタ付カウンタが、それぞれ上記
第1または第2のターミナルカウント値到達信号の発生
後、直ちに当該第1または第2のターミナルカウント値
到達信号により、そのリロードレジスタのリロード設定
値をそのカウンタにカウンタ初期値として書き込まれる
よう構成されてなるパルス幅変調器であって、上記第1,
及び第2のリロードレジスタ付カウンタの各カウンタ
を、これが上記第1または第2のターミナルカウント値
到達信号を発生した後,次の周期のPWM動作におけるカ
ウント動作を開始するまでの間に、上記カウンタ初期値
として書き込まれたリロード設定値が“0"であるか否か
を判定して、判定信号を出力するものとし、上記出力制
御回路を、上記第1,及び第2のリロードレジスタ付カウ
ンタの各々のカウンタから出力された上記判定信号を受
けて、上記第1,及び第2のリロードレジスタ付カウンタ
のうちのそのリロード設定値が“0"であると判定された
ものを、上記次の周期のPWM動作においてその動作を停
止状態に保持し、その上記リロード設定値が“0"ではな
いと判定されたものを上記次の周期のPWM動作において
その動作を起動状態に保持するよう制御するものとした
ので、実行時間長=0が実現されて、直流出力を出力で
きる効果がある。また、PWM制御用ソフトウエアの負荷
を大幅に軽減できる効果がある。
As described above, according to the pulse width modulator of the present invention, the first counter with a reload register for determining the time length of the PWM output being the first voltage level and the second PWM output are provided.
A second counter with a reload register that determines a time length that is a voltage level, and a first counter that indicates that the content of the counter output from the counter with the reload register has reached a predetermined terminal count value. When the PWM output is switched from the first voltage level to the second voltage level in response to the terminal count value reaching signal of 1, the content of the counter output from the counter of the second reload register counter is Upon receiving the second terminal count value reaching signal indicating that the predetermined terminal count value has been reached, the PWM output is switched from the second voltage level to the first voltage level, and the PW for one cycle is
And an output control circuit for completing the M operation, wherein the first, fifth and second counters with a reload register respectively immediately after the first or second terminal count value reaching signal is generated, A pulse width modulator configured to write the reload set value of the reload register to the counter as a counter initial value in response to a second terminal count value arrival signal.
And each counter of the second counter with the reload register, after the counter generates the first or second terminal count value reaching signal and before the counting operation in the PWM operation of the next cycle is started, It is assumed that the reload setting value written as the initial value is "0" and a determination signal is output, and the output control circuit is configured to operate the counters with the first and second reload registers. In response to the determination signals output from the respective counters, the one determined to have the reload setting value of the first and second counters with the reload register is "0" Hold the operation in the stop state in the PWM operation of, and hold the operation in the start state in the PWM operation of the next cycle when it is determined that the reload setting value is not "0" Since the control is performed as described above, the execution time length = 0 is realized, and there is an effect that a DC output can be output. It also has the effect of significantly reducing the load on the PWM control software.

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

第1図は本発明の一実施例による2個のリロードレジス
タ付カウンタ回路を用いたPWMを示す構成図、第2図は
本発明によるリロードレジスタ付カウンタの内部構成の
一例を示す図、第3図は本発明によるPWM動作の一例を
示すタイミング図、第4図は従来の2個のリロードレジ
スタ付カウンタ回路を用いたPWMを示す構成図、第5図
は従来のリロードレジスタ付カウンタの内部構成の一例
を示す図、第6図は従来のPWM動作の一例を示すタイミ
ング図である。 4,5はターミナルカウント値に到達したことを示す信
号、7はPWM出力、15,16はリロードレジスタ付カウンタ
回路、17,18は次の設定値が“0"であることを示す信
号、19は出力制御部。 なお、図中、同一符号は同一又は相当部分を示す。
FIG. 1 is a block diagram showing a PWM using two counter circuits with a reload register according to an embodiment of the present invention, and FIG. 2 is a diagram showing an example of an internal configuration of a counter with a reload register according to the present invention. FIG. 4 is a timing chart showing an example of the PWM operation according to the present invention, FIG. 4 is a block diagram showing a PWM using two conventional counter circuits with reload registers, and FIG. 5 is an internal configuration of a conventional counter with reload registers. FIG. 6 is a timing chart showing an example of a conventional PWM operation. 4,5 are signals indicating that the terminal count value has been reached, 7 is PWM output, 15 and 16 are counter circuits with reload register, 17 and 18 are signals indicating that the next set value is "0", 19 Is the output control unit. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】パルス幅変調(以下、PWMとも言う。)出
力が第1電圧レベルである時間長を決定する第1のリロ
ードレジスタ付カウンタと、 PWM出力が第2電圧レベルである時間長を決定する第2
のリロードレジスタ付カウンタと、 該第1のリロードレジスタ付カウンタのカウンタから出
力される,当該カウンタの内容が所定のターミナルカウ
ント値に到達したことを示す第1のターミナルカウント
値到達信号を受けて、PWM出力を上記第1電圧レベルか
ら上記第2電圧レベルに切り換えた後、該第2のリロー
ドレジスタ付カウンタのカウンタから出力される,当該
カウンタの内容が所定のターミナルカウント値に到達し
たことを示す第2のターミナルカウント値到達信号を受
けて、PWM出力を上記第2電圧レベルから上記第1電圧
レベルに切り換えて、一周期分のPWM動作を完了させる
出力制御回路とを有し、 上記第1,及び第2のリロードレジスタ付カウンタが、そ
れぞれ上記第1または第2のターミナルカウント値到達
信号の発生後、直ちに当該第1または第2のターミナル
カウント値到達信号に基づいて、そのリロードレジスタ
のリロード設定値をそのカウンタにカウンタ初期値とし
て書き込まれるよう構成されてなるパルス幅変調器であ
って、 上記第1,及び第2のリロードレジスタ付カウンタの各カ
ウンタは、これが上記第1または第2のターミナルカイ
ント値到達信号を発生した後,次の周期のPWM動作にお
けるカウント動作を開始するまでの間に、上記カウンタ
初期値として書き込まれたリロード設定値が“0"である
か否かを判定して、判定信号を出力するものであり、 上記出力制御回路は、上記第1,及び第2のリロードレジ
スタ付カウンタの各々のカウンタから出力された上記判
定信号を受けて、上記第1,及び第2のリロードレジスタ
付カウンタのうちのそのリロード設定値が“0"であると
判定されとものを、上記次の周期のPWM動作においてそ
の動作を停止状態に保持し、その上記リロード設定値が
“0"ではないと判定されたものを上記次の周期のPWM動
作においてその動作を起道状態に保持するよう制御する
ものであることを特徴とするパルス幅変調器。
1. A first counter with a reload register for determining a time length for which a pulse width modulation (hereinafter, also referred to as PWM) output is a first voltage level, and a time length for which a PWM output is a second voltage level. Second to decide
And a first terminal count value reaching signal indicating that the content of the counter has reached a predetermined terminal count value output from the counter of the reload register and the counter of the first reload register. After the PWM output is switched from the first voltage level to the second voltage level, it indicates that the content of the counter output from the counter of the second reload register has reached a predetermined terminal count value. An output control circuit that receives the second terminal count value reaching signal and switches the PWM output from the second voltage level to the first voltage level to complete the PWM operation for one cycle; , And a second counter with a reload register, immediately after generation of the first or second terminal count value reaching signal, respectively. A pulse width modulator configured to write the reload set value of the reload register to the counter as a counter initial value based on the first or second terminal count value arrival signal. , And each counter of the second counter with a reload register, after the counter generates the first or second terminal kinetic value reaching signal, until the counting operation in the PWM operation of the next cycle is started, The output control circuit determines whether or not the reload setting value written as the counter initial value is “0” and outputs a determination signal. The output control circuit includes the first and second reload registers. Receiving the judgment signal output from each of the counters with a built-in counter, the reload setting of the first and second counters with a reload register Although the value is judged to be “0”, the operation is held in the stopped state in the PWM operation of the next cycle and the reload setting value is judged not to be “0”. A pulse width modulator which is controlled so as to hold the operation in the starting state in the PWM operation of the period.
JP22933687A 1987-09-11 1987-09-11 Pulse width modulator Expired - Fee Related JPH0758891B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22933687A JPH0758891B2 (en) 1987-09-11 1987-09-11 Pulse width modulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22933687A JPH0758891B2 (en) 1987-09-11 1987-09-11 Pulse width modulator

Publications (2)

Publication Number Publication Date
JPS6471322A JPS6471322A (en) 1989-03-16
JPH0758891B2 true JPH0758891B2 (en) 1995-06-21

Family

ID=16890560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22933687A Expired - Fee Related JPH0758891B2 (en) 1987-09-11 1987-09-11 Pulse width modulator

Country Status (1)

Country Link
JP (1) JPH0758891B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010113063A (en) * 2000-06-16 2001-12-28 이형도 Device for combine reel in deck

Also Published As

Publication number Publication date
JPS6471322A (en) 1989-03-16

Similar Documents

Publication Publication Date Title
KR910005187A (en) Line Computer
US5233638A (en) Timer input control circuit and counter control circuit
JP3099927B2 (en) Microcomputer
JP3437802B2 (en) Clock control circuit and error correction circuit using the same
JPH0758891B2 (en) Pulse width modulator
JP2773546B2 (en) Pulse generation circuit
JP2512119B2 (en) Microprocessor
SU1267618A1 (en) Adaptive multichannel tracking analog-to-digital converter
JPS6070550A (en) Disc device
JP2735248B2 (en) Floppy disk unit
JPH0562784B2 (en)
JP2754654B2 (en) Microcomputer output control circuit
JPS6221092Y2 (en)
SU752338A1 (en) Rapid-access storage control device
JPH0126218B2 (en)
JPH05241782A (en) Circuit configuration with distributed registers that perform read and write operations under self-time adjustment
SU955061A1 (en) Microprogram control device
JP2794440B2 (en) PWM controller
JPS6010355A (en) Measuring system of activity ratio of central processing unit
JPH0445063Y2 (en)
JP2960120B2 (en) Pulse generator
JPH04287421A (en) Start circuit for a/d converter or d/a converter
JPH02297683A (en) Microcomputer
SU1591076A2 (en) DEVICE FOR THE CONTROL OF MEMORY BLOCKS
JPH0370878B2 (en)

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees