CN103516336A - Pulse width modulation device and method with clamping pulse width limiting function and automatic phase-shifting function - Google Patents

Pulse width modulation device and method with clamping pulse width limiting function and automatic phase-shifting function Download PDF

Info

Publication number
CN103516336A
CN103516336A CN201310430834.1A CN201310430834A CN103516336A CN 103516336 A CN103516336 A CN 103516336A CN 201310430834 A CN201310430834 A CN 201310430834A CN 103516336 A CN103516336 A CN 103516336A
Authority
CN
China
Prior art keywords
pulse width
width modulation
phase shift
automatic shifting
sampling
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.)
Granted
Application number
CN201310430834.1A
Other languages
Chinese (zh)
Other versions
CN103516336B (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.)
Jiashan Lianrui Electronic Technology Co., Ltd
Original Assignee
DONGGUAN BOYONG ELECTRONIC TECHNOLOGY Co 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 DONGGUAN BOYONG ELECTRONIC TECHNOLOGY Co Ltd filed Critical DONGGUAN BOYONG ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201310430834.1A priority Critical patent/CN103516336B/en
Publication of CN103516336A publication Critical patent/CN103516336A/en
Application granted granted Critical
Publication of CN103516336B publication Critical patent/CN103516336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Ac Motors In General (AREA)
  • Control Of Motors That Do Not Use Commutators (AREA)

Abstract

The invention discloses a pulse width modulation device and method with a clamping pulse width limiting function and an automatic phase-shifting function. During software initialization, a current sampling time register is arranged, the pulse width modulation device is too close to a sampling trigger judging current bridge communicating state changing point, communicating time of a corresponding channel is automatically adjusted, under the situation that the duty ratio is not changed, the fact that the whole process of current sampling is completed under the situation that the current communicating state is not changed is guaranteed, and sampling accuracy is guaranteed.

Description

A kind of band is clamped down on pulse width modulation apparatus and the method for Width Limitation and automatic shifting phase
Technical field
The invention belongs to machine field, be specifically related to pulse width modulation apparatus and method that a kind of band is clamped down on Width Limitation and automatic shifting phase.
Background technology
In motor application, in whole phase current sampling process, for guaranteeing to gather the accuracy of electric current, need the conducting state of whole electric current bridge to remain unchanged.Once and sampling time point is excessively near apart from the change point (clamping down on a little) of electric current bridge conducting state, need to adjust the duty ratio of adjacent passages, extend conducting state change point, i.e. so-called phase shift process.
In motor application, the information that can use the electric current of the motor coil of flowing through to provide, estimates motor position, and then according to demand the speed of motor is adjusted.As shown in Figure 3, as shown in the current sample of the II quadrant of Fig. 3, if when current sample does not finish, the conducting state of electric current bridge has changed to third quadrant, the current value sampling so can distortion, affect motor position estimation for typical pwm control mode.This situation, in existing scheme, need to extend the time that the second quadrant keeps, delay T2 conducting constantly, will adjust so the corresponding ON time of T2, or software carries out whole phase shift through complicated calculating to T2, and whole like this computational process is very complicated.
Existing scheme, for obtaining accurate phase current values, needs the calculating of multiple step, and final dutyfactor value is limited in a rational scope, at the duration of work of whole motor, needs undoubtedly a large amount of computational process, increases system burden.
Summary of the invention
The present invention is directed to the problems referred to above, the pulse width modulation apparatus and the method that provide a kind of band to clamp down on Width Limitation and automatic shifting phase, for being with pulse width modulation apparatus and the method for clamping down on Width Limitation and automatic shifting phase, by software when the initialization, configure a current sample time register, it is excessively near that described pulse width modulation apparatus triggers judgement electric current bridge conducting state change point in sampling, automatically adjust the ON time of respective channel, in the situation that guaranteeing that duty ratio is constant, the whole process that guarantees current sample is to complete in the situation that current conductive state is constant, guarantee sampling precision.
The present invention addresses the above problem adopted technical scheme: a kind of band is clamped down on the pulse width modulation apparatus of Width Limitation and automatic shifting phase, comprises a hardware module.
Further, a kind of band is clamped down on the pulse duration modulation method of Width Limitation and automatic shifting phase, comprises the following steps:.
(1) software, when initialization, configures a current sample time register;
(2) pulse width modulation apparatus that described band is clamped down on Width Limitation and automatic shifting phase is crossed when near at sampling trigger point judgement electric current bridge conducting state change point, automatically the pulse width modulation apparatus of clamping down on Width Limitation and automatic shifting phase by described band carries out phase shift to passage automatically, adjust the ON time of respective channel, in the situation that guaranteeing that duty ratio is constant, guarantee current sample precision.
Further, the pulse width modulation apparatus that described band is clamped down on Width Limitation and automatic shifting phase automatically carries out phase shift to passage and comprises the following steps:
(1) need after phase shift when prepass judging, hardware module, according to sampling time register and duty ratio configuration register, calculates a pair of comparison value that phase shift needs;
(2) when rolling counters forward starts to export high level or low level during to corresponding comparison value, thereby realize whole phase shift process.
Advantage of the present invention is: software, when initialization, configures a current sample time register, and follow-up work is carried out phase shift to passage automatically by hardware module, guarantees electric current checking precision, does not need a large amount of computational process, reduces system burden.
Except object described above, feature and advantage, the present invention also has other object, feature and advantage.Below with reference to figure, the present invention is further detailed explanation.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.
In the accompanying drawings:
Fig. 1 is sequential chart of the present invention;
Fig. 2 is hardware module desired parameters figure of the present invention;
Fig. 3 is current typical PWM control mode figure.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
With reference to figure 1 and Fig. 2, a kind of pulse width modulation apparatus as depicted in figs. 1 and 2, comprises a hardware module.
, comprise the following steps:.
(1) software, when initialization, configures a current sample time register;
(2) described pulse width modulation apparatus is crossed when near at sampling trigger point judgement electric current bridge conducting state change point, automatically by described pulse width modulation apparatus, automatically passage is carried out to phase shift, adjust the ON time of respective channel, in the situation that guaranteeing that duty ratio is constant, guarantee current sample precision.
Described pulse width modulation apparatus automatically carries out phase shift to passage and comprises the following steps:
(1) need after phase shift when prepass judging, hardware, according to sampling time register and duty ratio configuration register, calculates a pair of comparison value that phase shift needs;
(2) when rolling counters forward starts to export high level or low level during to corresponding comparison value, thereby realize whole phase shift process.
The present invention by software when the initialization, configure a current sample time register, if hardware finds that in sampling trigger point electric current bridge conducting state change point is excessively near, can automatically adjust the ON time of respective channel, in the situation that guaranteeing that duty ratio is constant, the whole process that guarantees current sample is to complete in the situation that current conductive state is constant, guarantees sampling precision.
The realization of hardware pwm realizes by counter, and then counter count down to 0 by first upwards counting down to the periodic quantity of setting downwards, controls and when count value is greater than certain value, produces high level signal during this period, and all the other times produce low level signal.Software can pass through bus when initialization like this, and a register is set as to a time register that current sample is required, and this is worth at whole system duration of work, and hardware all can directly be used.Like this when an adc sampled signal occurs, hardware can calculate this sampled point to the time interval of a nearest electric current bridge firing point, if the time interval is less than the current sample time, so just need to adjust the time started of this firing point, in the situation that not affecting duty ratio, just need to recalculate this ON time, when counter is upwards counted, need to start to produce high level in what value, when counting, need to start to produce low level in what value downwards.Whole process does not need the participation of software systems, alleviates the pressure of whole system.
With reference to figure 1, as shown in Figure 1, suppose sampled point sample constantly with the ON time point hypotelorism of script ub, before sampling process does not finish, variation has occurred the relative status of ua and ub, and (from ua=1, ub=0 changes to ua=1, ub=1), can cause like this sample rate current inaccurate.The scheme automatic calculating sampling time of meeting of this patent, once there is above-mentioned situation, automatically adjust the conducting of ub constantly, in the situation that guaranteeing that duty ratio is constant, make corresponding phase shift, as ub2, thereby guaranteed the accuracy of sampling.
Pulse width modulation apparatus hardware desired parameters as shown in Figure 2, need after phase shift when prepass judging, pulse width modulation apparatus hardware is according to sampling time register timer registerp and duty ratio configuration register duty, and period register period, calculate a pair of comparison value that phase shift needs, when counter counter count down to corresponding comparison value, start to export high level or low level, thereby realize whole phase shift process.
The foregoing is only the preferred embodiments of the present invention, the present invention includes but be not limited to this example, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (3)

1. band is clamped down on a pulse width modulation apparatus for Width Limitation and automatic shifting phase, it is characterized in that, comprises a hardware module.
2. band is clamped down on a pulse duration modulation method for Width Limitation and automatic shifting phase, it is characterized in that, comprises the following steps:
(1) software, when initialization, configures a current sample time register;
(2) described pulse width modulation apparatus is crossed when near at sampling trigger point judgement electric current bridge conducting state change point, automatically the pulse width modulation apparatus of clamping down on Width Limitation and automatic shifting phase by described band carries out phase shift to passage automatically, adjust the ON time of respective channel, in the situation that duty ratio is constant, guarantee electric current checking precision.
3. band according to claim 2 is clamped down on the pulse duration modulation method of Width Limitation and automatic shifting phase, it is characterized in that, the pulse width modulation apparatus that described band is clamped down on Width Limitation and automatic shifting phase automatically carries out phase shift to passage and comprises the following steps:
(1) need after phase shift when prepass judging, described hardware module, according to sampling time register and duty ratio configuration register, calculates a pair of comparison value that phase shift needs;
(2) when rolling counters forward starts to export high level or low level during to corresponding comparison value, thereby realize whole phase shift process.
CN201310430834.1A 2013-09-18 2013-09-18 A kind of band clamps down on pulse width modulation apparatus and the method for pulsewidth restriction and automatic shifting phase Active CN103516336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310430834.1A CN103516336B (en) 2013-09-18 2013-09-18 A kind of band clamps down on pulse width modulation apparatus and the method for pulsewidth restriction and automatic shifting phase

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310430834.1A CN103516336B (en) 2013-09-18 2013-09-18 A kind of band clamps down on pulse width modulation apparatus and the method for pulsewidth restriction and automatic shifting phase

Publications (2)

Publication Number Publication Date
CN103516336A true CN103516336A (en) 2014-01-15
CN103516336B CN103516336B (en) 2016-04-20

Family

ID=49898492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310430834.1A Active CN103516336B (en) 2013-09-18 2013-09-18 A kind of band clamps down on pulse width modulation apparatus and the method for pulsewidth restriction and automatic shifting phase

Country Status (1)

Country Link
CN (1) CN103516336B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793041A (en) * 2015-03-20 2015-07-22 四川长虹电器股份有限公司 Phase-current single-resistance sampling control method for variable-frequency air conditioner
CN106357093A (en) * 2016-09-21 2017-01-25 广州视源电子科技股份有限公司 Method and system for increasing current sampling precision
CN110708045A (en) * 2019-08-01 2020-01-17 珠海格力电器股份有限公司 Waveform phase-shifting control circuit, method and timer
CN114070277A (en) * 2021-11-19 2022-02-18 福州大学 Pulse width modem circuit based on time register and control method
CN114070277B (en) * 2021-11-19 2024-06-07 福州大学 Pulse width modem circuit based on time register and control method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202591804U (en) * 2012-05-10 2012-12-12 刘裕国 Contact arc striking electric welding machine

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202591804U (en) * 2012-05-10 2012-12-12 刘裕国 Contact arc striking electric welding machine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李再兴: "一种基于FPGA的新型移相PWM发生器", 《电焊机》, vol. 42, no. 1, 31 January 2012 (2012-01-31), pages 44 - 46 *
杨金宝等: "一种高精度脉宽调制信号移相电路设计", 《电源技术》, vol. 37, no. 1, 20 January 2013 (2013-01-20), pages 115 - 117 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793041A (en) * 2015-03-20 2015-07-22 四川长虹电器股份有限公司 Phase-current single-resistance sampling control method for variable-frequency air conditioner
CN106357093A (en) * 2016-09-21 2017-01-25 广州视源电子科技股份有限公司 Method and system for increasing current sampling precision
CN106357093B (en) * 2016-09-21 2019-03-26 广州视源电子科技股份有限公司 Improve the method and system of current sample precision
CN110708045A (en) * 2019-08-01 2020-01-17 珠海格力电器股份有限公司 Waveform phase-shifting control circuit, method and timer
CN110708045B (en) * 2019-08-01 2021-04-20 珠海格力电器股份有限公司 Waveform phase-shifting control circuit, method and timer
CN114070277A (en) * 2021-11-19 2022-02-18 福州大学 Pulse width modem circuit based on time register and control method
CN114070277B (en) * 2021-11-19 2024-06-07 福州大学 Pulse width modem circuit based on time register and control method

Also Published As

Publication number Publication date
CN103516336B (en) 2016-04-20

Similar Documents

Publication Publication Date Title
KR101753694B1 (en) Synchronization of rf pulsing with rf metrology, processing, and control
CN100575965C (en) A kind of method of measuring frequency of single-chip
CN102315814B (en) Motor vector control method based on Hall position sensor
CN103516336A (en) Pulse width modulation device and method with clamping pulse width limiting function and automatic phase-shifting function
CN103092248B (en) Feedforward control method and device
CN100550631C (en) Pulse width modulation device
CN102590784A (en) Single-phase intelligent energy meter distributed correction method
CN107147392B (en) TIADC mismatch error calibration method based on adaptive filtering and Taylor series
CN105450094B (en) A kind of current sample method and air-conditioning equipment
CN104428635A (en) Method for controlling a coil current of a magnetoinductive flowmeter
CN105548676B (en) A kind of list resistor current method of sampling and air-conditioning equipment
CN105450095A (en) Single-resistor current sampling method and air conditioning device
CN104201948B (en) Control device and method of position-free sensor of switched reluctance motor
US20220317724A1 (en) Data acquisition system and control method, apparatus, and device therefor, and medium
CN105530585A (en) Direct current impedance detection method of loudspeaker and circuit
CN202522693U (en) Device for detecting measure accuracy degree of electric energy meter
CN104767439A (en) PWM pulse width speed regulation signal setting and fault code feedback circuit
DE102010049856A1 (en) Control circuit and method for speed control, data processing device and program code
CN102608560A (en) Detection device for measuring accuracy of electric energy meter
CN108809438B (en) Time difference compensation method and device
CN107894526B (en) Battery voltage detection device and method and information safety equipment
CN103929159A (en) Clock frequency doubling circuit with duty ratio capable of being adjusted automatically
CN107979317A (en) Permanent magnet synchronization motor spindle weak magnetic speed regulating method
CN111637905B (en) Method and system for rotary parameter adjustment of rotary encoder
CN101611545B (en) Digital gain control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN BOYONG TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: DONGGUAN BOYONG TECHNOLOGY CO., LTD.

Effective date: 20150604

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150604

Address after: 518054 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: SHENZHEN BOYONG TECHNOLOGY CO., LTD.

Address before: 523808 Guangdong province Dongguan City Songshan Lake Industrial Road, building 6 floor 2 Songhu branch

Applicant before: Dongguan Boyong Electronic Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191030

Address after: 314100 east side of No.33, sanjibang, Huitong village, Huimin street, Jiashan County, Jiaxing City, Zhejiang Province

Patentee after: Jiashan Lianrui Electronic Technology Co., Ltd

Address before: 518054 Room 201, building a, No. 1, Qianwan 1st Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen (settled in Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: SHENZHEN BOYONG TECHNOLOGY CO., LTD.

TR01 Transfer of patent right