JPH0469782A - Pwm built-in microcomputer - Google Patents
Pwm built-in microcomputerInfo
- Publication number
- JPH0469782A JPH0469782A JP2184518A JP18451890A JPH0469782A JP H0469782 A JPH0469782 A JP H0469782A JP 2184518 A JP2184518 A JP 2184518A JP 18451890 A JP18451890 A JP 18451890A JP H0469782 A JPH0469782 A JP H0469782A
- Authority
- JP
- Japan
- Prior art keywords
- pwm
- delay
- pulse width
- pwms
- control 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.)
- Pending
Links
- 230000003111 delayed effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 230000001934 delay Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Landscapes
- Inverter Devices (AREA)
- Microcomputers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明はパルス幅変調器(以下PWMと略す)の起動
か同時に掛かることを防ぐためにディレィ制御回路を備
えたマイクロコンピュータに関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer equipped with a delay control circuit to prevent pulse width modulators (hereinafter abbreviated as PWM) from being activated simultaneously.
第7図は複数のPWMを制御するための従来のマイクロ
コンピュータのブロック図である。図において、(la
)、 (Ib)、 (Ic)、 (Id)はP W M
、 (2)はクロックデバイダ、(3)はイネーブル
レジスタである。FIG. 7 is a block diagram of a conventional microcomputer for controlling a plurality of PWMs. In the figure, (la
), (Ib), (Ic), (Id) are P W M
, (2) is a clock divider, and (3) is an enable register.
次に動作について説明する。クロックデバイダ(2)は
、システムクロックφを分周し、P W M (la、
)。Next, the operation will be explained. The clock divider (2) divides the system clock φ and outputs P W M (la,
).
(Ib)、 (Ic)、 (Id)に出力する。P W
M (Ia)、 (Ib)(lc)、 (Id)は入
力されるクロックを基に、パルス幅変調を行った波形を
出力する。また、各PWMの動作開始および動作停止の
制御をイネーブルレジスタ(3)で行う。Output to (Ib), (Ic), and (Id). PW
M (Ia), (Ib), (lc), and (Id) output waveforms that have undergone pulse width modulation based on the input clock. Further, the start and stop of operation of each PWM is controlled by an enable register (3).
従来のPWM内蔵マイクロコンピュータは以」−のよう
な構成となっていたのて、各PWMの周期か同じ場合に
イネーブルすると、PWM出力のブタ変化タイミングか
揃い、電磁式アクチュエタ等をドライブした場合、−時
的な電圧降下を招く原因となりそのため、プログラム作
成時、各PWMの起動を掛けるタイミングをある程度相
対的に遅延させる対策が必要であるという問題点を有し
ていた。A conventional microcomputer with a built-in PWM has the following configuration.If you enable each PWM cycle when they are the same, the PWM output change timings will be the same, and if you drive an electromagnetic actuator, etc. - This causes a temporal voltage drop, and therefore, there is a problem in that when creating a program, it is necessary to take measures to relatively delay the timing of starting each PWM to some extent.
この発明は上記のような問題点を解消するためになされ
たもので、PWMか同時に起動するのを防止するための
ソフトウェアの負担を無くすことがてきるPWM内蔵マ
イクロコンピュータを得ることを目的とする。This invention was made in order to solve the above-mentioned problems, and the object is to obtain a microcomputer with a built-in PWM that can eliminate the burden of software to prevent PWM from starting at the same time. .
この発明に係るPWM内蔵マイクロコンピュタは、複数
のPWMの起動か掛かる時に、各PWMの間で遅延動作
を行わせるディレィ制御回路を付加したものである。A microcomputer with a built-in PWM according to the present invention has a delay control circuit added thereto to perform a delay operation between each PWM when a plurality of PWMs are activated.
この発明におけるディレィ制御回路は、イネーブルレジ
スタに2つ以上のPWMの動作開始命令が書き込まれた
場合に、ディレィ制御回路により、各PWMの起動が掛
かるタイミングがとれ1つとして一致せずに遅延し、同
じ周期で動作している限りPWMの出力か同時に変化す
ることを防ぐことができる。The delay control circuit according to the present invention, when two or more PWM operation start commands are written in the enable register, the delay control circuit adjusts the timing at which each PWM starts, so that none of them match and are delayed. As long as they operate at the same cycle, it is possible to prevent the PWM outputs from changing at the same time.
以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第1図はこの発明の一実施例であるPWM内蔵マイクロ
コンピュータのブロック図て、図中符号(Ia)、(I
b)、(Ic)、(Id)、(2)、 (3)は前記従
来のものと同一につきその説明は省略する。図において
、(4)はイネーブルレジスタ(3)とP W M (
la)、 (lb)、 (Ic)。FIG. 1 is a block diagram of a microcomputer with a built-in PWM, which is an embodiment of the present invention.
b), (Ic), (Id), (2), and (3) are the same as those of the prior art, so their explanation will be omitted. In the figure, (4) is the enable register (3) and P W M (
la), (lb), (Ic).
(1d)の間に接続されたディレィ制御回路である。This is a delay control circuit connected between (1d) and (1d).
次に動作について説明する。クロックデバイダ(2)は
システムクロックφを分周し、P W M (la、)
。Next, the operation will be explained. The clock divider (2) divides the system clock φ and generates P W M (la,)
.
(Ib)、 (Ic)、 (Id)はクロックデバイダ
(2)から入力されるソースクロックを基にパルス幅変
調を行う。(Ib), (Ic), and (Id) perform pulse width modulation based on the source clock input from the clock divider (2).
イネーブルレジスタ(3)はP W M (la)、
(Ib)、 (Ic)。Enable register (3) is P W M (la),
(Ib), (Ic).
(1d)の動作開始、動作停止を制御する。そして、2
つ以上のPWMの起動か掛かった場合、ディレィ制御回
路(4)は各PWMの起動かとれ1つとして同時に起き
ないように、PWMの遅延動作を設定した時間たけ行う
ものである。Controls the start and stop of the operation (1d). And 2
When more than one PWM is activated, the delay control circuit (4) delays the PWM for a set period of time so that the activation of each PWM does not occur simultaneously.
第2図(a)はこのPWM内蔵マイクロコンピュータの
PWM出力を一実施例としてタイミングチャートで示し
たものである。各PWMの出力はディレィ制御回路の効
果により遅延動作を行っているので、同周期で動作して
いる限り出力か同時に立ち上がることはない。FIG. 2(a) is a timing chart showing the PWM output of this PWM built-in microcomputer as an example. Since the outputs of each PWM are delayed by the effect of the delay control circuit, the outputs will not rise at the same time as long as they operate at the same cycle.
第2図(b)は第2図(a)の実施例において、PWM
■とPWM3のみ起動を掛けた場合をタイミングチャー
トて示したものである。このとき、各PWMの出力は(
a)の場合よりPWM2の出力がない場合と等しい。す
なわち、前記従来のものにおいて第6図(a)のように
PWMか起動していたものを、ディレィ制御回路(4)
を設けることにより第6図(b)のように、各PWMの
周期が同一である限り、波形の変化が同じタイミングで
起こることを防止する。FIG. 2(b) shows the PWM in the embodiment of FIG. 2(a).
This is a timing chart showing the case where only (1) and PWM3 are activated. At this time, the output of each PWM is (
This is equivalent to the case where there is no output of PWM2 compared to case a). In other words, the delay control circuit (4) replaces the conventional circuit that activated PWM as shown in FIG. 6(a).
By providing this, as shown in FIG. 6(b), as long as the periods of each PWM are the same, changes in waveforms are prevented from occurring at the same timing.
第3図(a)〜(C)はディレィ制御回路によるPWM
の遅延動作のこの発明の他の実施例をPWM出力をタイ
ミングチャートで表わすことにより示したものである。Figures 3(a) to (C) show PWM using the delay control circuit.
Another example of the delay operation of the present invention is shown by representing the PWM output with a timing chart.
このようにディレィ制御回路により、自由な遅延時間の
設定、及び、起動順位の設定か可能である。また、第4
図、第5図はこの発明の他の実施例を示すブロック図で
ある。In this way, by using the delay control circuit, it is possible to freely set the delay time and the starting order. Also, the fourth
5 are block diagrams showing other embodiments of the present invention.
第4図は前記実施例におけるクロックデバイダ(2)を
プリスケーラ(5)に変えたものである。この回路にお
いて、プリスケーラ(5)はクロックデバイダ(2)と
同様にシステムクロックφを分周し、PWM(Ia)、
(lb)、 (Ic)、 (Id)にソースクロック
を出力するものである。従って、ディレィ制御回路(4
)は前記実施例と同様に、複数のPWMの内2つ以上の
PWMの起動かかかったときに、各PWMの遅延動作を
起こし、同周期で動作している限り、PWMの出力が同
時に変化することを防ぐものである。In FIG. 4, the clock divider (2) in the above embodiment is replaced with a prescaler (5). In this circuit, the prescaler (5) divides the system clock φ in the same way as the clock divider (2), and divides the system clock φ into PWM (Ia),
The source clock is output to (lb), (Ic), and (Id). Therefore, the delay control circuit (4
) is similar to the above embodiment, when two or more PWMs among the plurality of PWMs are started, the delay operation of each PWM is caused, and as long as the PWMs are operating at the same cycle, the outputs of the PWMs change simultaneously. This is to prevent this from happening.
第5図は前記実施例におけるPWM(Ia)〜(1d)
をタイマ(6a)〜(6d)に変えたもので、このよう
な使用法においてもディレィ制御回路(4)は、複数の
タイマの内2つ以上のタイマの起動か掛かった場合に、
各タイマの遅延動作を起こし、同周期で動作している限
り、タイマの出力か同時に変化することを防ぐものであ
る。FIG. 5 shows PWM (Ia) to (1d) in the above embodiment.
is changed to timers (6a) to (6d), and even in this usage, the delay control circuit (4) will delay the activation of two or more timers among the plurality of timers.
This causes a delay operation of each timer and prevents the outputs of the timers from changing at the same time as long as they operate at the same cycle.
さらに、前記実施例と上記2つの他の実施例において、
ディレィ制御回路の具体的回路は示していないか、前述
の動作を得ることか出来れば、との様な構成であっても
良いことはいうまでもない。Furthermore, in the above embodiment and the above two other embodiments,
It goes without saying that the specific circuit of the delay control circuit is not shown, or that it may be configured as long as it can obtain the above-mentioned operation.
以上のようにこの発明によれば、複数のPWMの内2つ
以上のPWMの起動が掛かった場合にその出力か変化す
るタイミングを設定した時間たけ遅延させることかでき
、したかって、電磁式アクチュエータ等をドライブした
場合に一時的な電圧降下を防ぐためのソフトウェア上の
処置を必要としなくなるなとの効果かある。As described above, according to the present invention, when two or more PWMs among a plurality of PWMs are activated, the timing at which the output changes can be delayed by a set time, and thus the electromagnetic actuator This has the effect of eliminating the need for software measures to prevent temporary voltage drops when driving etc.
第1図はこの発明の一実施例であるPWM内蔵マイクロ
コンピュータのブロック図、第2図は第1図のディレィ
制御回路によるPWMの遅延動作の一実施例を示すタイ
ミングチャート、第3図はディレィ制御回路によるPW
Mの遅延動作の他の実施例を示すタイミングチャート、
第4図、第5図はこの発明の他の実施例を示すブロック
図、第6図はこの発明によって課題を解決する方法を示
したタイミングチャート、第7図は従来のマイクロコン
ビコータのブロック図である。
図において、(Ia) 〜(Id)はPWM、(2)は
クロックデバイダ、(3)はイネーブルレジスタ、(4
)はディレィ制御回路、(5)はプリスケーラ、(6a
)〜(6d)はタイマを示す。
なお、図中、同一符号は同一、又は相当部分を示す。
代 理 人 大 岩 増 雄第1図
(Q)
2・7Dツノテハ′4ア
J:イ半−7°ルトlスZ
4・テう目刺1卸回路
書(自発)FIG. 1 is a block diagram of a microcomputer with a built-in PWM which is an embodiment of the present invention, FIG. 2 is a timing chart showing an embodiment of PWM delay operation by the delay control circuit of FIG. 1, and FIG. PW by control circuit
A timing chart showing another example of the delay operation of M,
FIGS. 4 and 5 are block diagrams showing other embodiments of the present invention, FIG. 6 is a timing chart showing a method for solving the problems by this invention, and FIG. 7 is a block diagram of a conventional micro combi coater. It is. In the figure, (Ia) to (Id) are PWM, (2) is a clock divider, (3) is an enable register, and (4) is a clock divider.
) is the delay control circuit, (5) is the prescaler, (6a
) to (6d) indicate timers. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Agent Masuo Daiiwa Fig. 1 (Q) 2.7D Tsunoteha'4A J: A half-7° Lutrus Z 4.Teu Meguchi 1 Wholesale circuit book (self-produced)
Claims (1)
および動作停止を制御するイネーブルレジスタ、前記複
数のパルス幅変調器の内2つ以上の動作開始が同時に行
われることを防止して、各パルス幅変調器の間で遅延動
作させこの遅延時間を制御することを可能にしたディレ
イ制御回路、このディレイ制御回路によりパルス幅変調
器が同じ周期で動作している限り前記パルス幅変調器の
出力が同タイミングで変化するのを防止したことを特徴
とするPWM内蔵マイクロコンピュータ。a plurality of pulse width modulators; an enable register for controlling the start and stop of operation of the pulse width modulators; A delay control circuit that allows delay operation between pulse width modulators to control this delay time, and as long as the pulse width modulators operate at the same cycle, the output of the pulse width modulator is controlled by this delay control circuit. A microcomputer with a built-in PWM, characterized in that it prevents changes at the same timing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2184518A JPH0469782A (en) | 1990-07-10 | 1990-07-10 | Pwm built-in microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2184518A JPH0469782A (en) | 1990-07-10 | 1990-07-10 | Pwm built-in microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0469782A true JPH0469782A (en) | 1992-03-04 |
Family
ID=16154601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2184518A Pending JPH0469782A (en) | 1990-07-10 | 1990-07-10 | Pwm built-in microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0469782A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100356812B1 (en) * | 2000-01-28 | 2002-10-18 | 주식회사 하이닉스반도체 | Pulse width modulator |
WO2005081389A1 (en) * | 2004-02-19 | 2005-09-01 | Mitsubishi Denki Kabushiki Kaisha | Multiple phase simultaneous switching preventing circuit, pwm inverter and its driving method |
CN103733501A (en) * | 2011-09-05 | 2014-04-16 | 日产自动车株式会社 | Power conversion device and power conversion method |
-
1990
- 1990-07-10 JP JP2184518A patent/JPH0469782A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100356812B1 (en) * | 2000-01-28 | 2002-10-18 | 주식회사 하이닉스반도체 | Pulse width modulator |
WO2005081389A1 (en) * | 2004-02-19 | 2005-09-01 | Mitsubishi Denki Kabushiki Kaisha | Multiple phase simultaneous switching preventing circuit, pwm inverter and its driving method |
US7327181B2 (en) | 2004-02-19 | 2008-02-05 | Mitsubishi Denki Kabushiki Kaisha | Multiple phase simultaneous switching preventing circuit, PWM inverter and its driving method |
CN103733501A (en) * | 2011-09-05 | 2014-04-16 | 日产自动车株式会社 | Power conversion device and power conversion method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2673249C2 (en) | Method of controlling lighting arrangement, lighting controller and lighting system | |
TWI337692B (en) | Methods of forming a power controller and controlling a power supply, and power supply controller | |
JP2013048403A (en) | Digital-to-analog converter and digital-to-analog conversion method | |
KR20090003221A (en) | Allowing immediate update of pulse width modulation values | |
EP2359477A1 (en) | Multi-channel digital pulse width modulator (dpwm) | |
US20180034450A1 (en) | Ramp based clock synchronization for stackable circuits | |
CN103828237B (en) | Maintain pulse width modulation data set coherence | |
US9448581B2 (en) | Timer unit circuit having plurality of output modes and method of using the same | |
JPH0469782A (en) | Pwm built-in microcomputer | |
JP3180494B2 (en) | Logic device | |
TWI426695B (en) | Motor driver control device | |
KR20140137416A (en) | Method and circuit arrangement for limiting peak currents and pitch of current flanks | |
JPS63232615A (en) | Clock switching circuit | |
KR100417900B1 (en) | An installation for peak and hold type injector in car | |
KR100304393B1 (en) | Motor control apparatus | |
US7327177B2 (en) | Hardware/software implementation of a PWM with enhanced features using a standard microprocessor | |
JPH0341815A (en) | Pulse width modulation waveform generating circuit | |
JP2000013196A (en) | Clock selection circuit | |
JPH0731567B2 (en) | Clock control circuit | |
KR20240056079A (en) | A unit module for multiple PWM frequency output power converters with a single sync signal | |
KR20120001962A (en) | Controlling system for h-bridge and method thereof | |
JP5988038B2 (en) | Control circuit | |
JPH0212306A (en) | Output driver for programmable controller | |
JPH01177635A (en) | System for controlling wait | |
KR19980066705A (en) | Reset Circuit with Noise Rejection |