CN107437943B - Analog-to-digital converter sampling system and analog-to-digital converter sampling method - Google Patents
Analog-to-digital converter sampling system and analog-to-digital converter sampling method Download PDFInfo
- Publication number
- CN107437943B CN107437943B CN201610370824.7A CN201610370824A CN107437943B CN 107437943 B CN107437943 B CN 107437943B CN 201610370824 A CN201610370824 A CN 201610370824A CN 107437943 B CN107437943 B CN 107437943B
- Authority
- CN
- China
- Prior art keywords
- analog
- digital converter
- pwm signal
- pwm
- period
- 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.)
- Active
Links
- 238000005070 sampling Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims description 12
- 238000006243 chemical reaction Methods 0.000 claims abstract description 9
- 230000000630 rising effect Effects 0.000 claims description 6
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/124—Sampling or signal conditioning arrangements specially adapted for A/D converters
- H03M1/1245—Details of sampling arrangements or methods
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K7/00—Modulating pulses with a continuously-variable modulating signal
- H03K7/08—Duration or width modulation ; Duty cycle modulation
Abstract
An analog-to-digital converter sampling system comprising: a switching tube; an analog-to-digital converter; the microprocessor comprises a first PWM module and a second PWM module, the first PWM module is connected with the switch tube, the first PWM module is used for generating a first PWM signal to drive the switch tube, the second PWM module is connected with the analog-to-digital converter, and the second PWM module is used for generating a second PWM signal which has a phase difference with the first PWM signal to trigger the analog-to-digital converter to perform analog-to-digital conversion, so that the sampling time of the analog-to-digital converter corresponds to a certain fixed point in the period of the first PWM signal, and fixed-point sampling of the analog-to-digital converter is realized.
Description
Technical Field
The invention relates to an analog-to-digital converter sampling system and an analog-to-digital converter sampling method.
Background
In the application field of Digital DC/DC converters, an ADC (Analog Digital converter) is a necessary module of each system, at present, most of MCU of an embedded system is embedded with high-speed ADC peripherals, and the high-speed ADC peripherals are matched with a high-speed and high-resolution PWM module of the MCU, so that a Digital power supply is rapidly developed in the fields of communication and industrial control. However, these high-speed ADC peripherals are affected by the high-speed switch of the PWM (Pulse Width Modulation) module, so that the ADC sampling values will largely jitter, and the jitter of these sampling values will cause instability of the whole digital feedback loop, which increases the output ripple of the whole ADC, and degrades the system stability.
Disclosure of Invention
In view of the above, it is desirable to provide an analog-to-digital converter sampling system and an analog-to-digital converter sampling method for performing fixed-point sampling on an analog-to-digital converter.
The invention provides an analog-to-digital converter sampling system, comprising:
a switching tube;
an analog-to-digital converter;
the microprocessor comprises a first PWM module and a second PWM module, the first PWM module is connected with the switching tube, the first PWM module is used for generating a first PWM signal to drive the switching tube, the second PWM module is connected with the analog-to-digital converter, and the second PWM module is used for generating a second PWM signal which has a phase difference with the first PWM signal to trigger the analog-to-digital converter to perform analog-to-digital conversion, so that the sampling time of the analog-to-digital converter corresponds to a certain fixed point in the period of the first PWM signal.
Preferably, the second PWM signal has the same period and the same duty ratio as the first PWM signal.
Preferably, the second PWM signal is an integer multiple of a period of the first PWM signal or the period of the first PWM signal is an integer multiple of a period of the second PWM signal.
Preferably, the phase difference is 90 degrees.
Preferably, the analog-to-digital converter is built in the microprocessor or externally arranged on the microprocessor.
Preferably, the analog-to-digital converter is triggered to sample at the rising edge of the second PWM signal.
The invention provides a sampling method of an analog-digital converter, which comprises the following steps:
generating a first PWM signal to drive a switching tube; and
and generating a second PWM signal with a phase difference with the first PWM signal to trigger the analog-to-digital converter to perform analog-to-digital conversion, so that the sampling moment of the analog-to-digital converter corresponds to a certain fixed point in the period of the first PWM signal.
Preferably, the second PWM signal has the same period and the same duty ratio as the first PWM signal.
Preferably, the second PWM signal is an integer multiple of a period of the first PWM signal or the period of the first PWM signal is an integer multiple of a period of the second PWM signal.
Preferably, the phase difference is 90 degrees.
According to the invention, the phase difference exists between the second PWM signal triggering the analog-to-digital converter to perform analog-to-digital conversion and the first PWM signal driving the switching tube, so that the sampling time of the analog-to-digital converter corresponds to a certain fixed point in the period of the first PWM signal, and the fixed-point sampling of the analog-to-digital converter is realized.
Drawings
Fig. 1 is a schematic block diagram of an analog-to-digital converter sampling system according to an embodiment of the present invention.
Fig. 2 is a timing diagram of a first PWM signal and a second PWM signal according to an embodiment of the invention.
Fig. 3 is a flowchart of a sampling method of an analog-to-digital converter according to an embodiment of the invention.
Description of the main elements
Analog-to-digital converter sampling system | 1 |
|
10 |
First PWM |
11 |
Second PWM |
12 |
Switch tube | 20 |
Analog-to-digital converter | 30 |
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings. It is to be understood that the drawings are provided solely for the purposes of reference and illustration and are not intended as a definition of the limits of the invention. The dimensions shown in the figures are for clarity of description only and are not to be taken in a limiting sense.
Referring to fig. 1, a schematic block diagram of an analog-to-digital converter sampling system 1 according to an embodiment of the present invention is shown. The analog-to-digital converter sampling system 1 comprises a microprocessor 10, a switching tube 20 and an analog-to-digital converter 30. The microprocessor 10 includes at least a first PWM (Pulse Width Modulation) module 11 and a second PWM (Pulse Width Modulation) module 12. In this embodiment, the number of the first PWM modules 11 is one. The first PWM module 11 is connected to the switching tube 20. The first PWM module 11 is configured to generate a first PWM signal to drive the switching tube 20, so as to control a time ratio of the switching tube 20 to be turned on and off, and maintain a stable output voltage.
The second PWM module 12 is connected to the analog-to-digital converter 30. The second PWM module 12 is configured to generate a second PWM signal to trigger the analog-to-digital converter 30 to perform analog-to-digital conversion, where the second PWM signal is out of phase with the first PWM signal, so that a sampling time of the analog-to-digital converter 30 corresponds to a fixed point in a period of the first PWM signal.
In this embodiment, the analog-to-digital converter 30 is an independent ADC conversion chip, and in other embodiments, the analog-to-digital converter 30 may be an ADC module built in the microprocessor 10. In this embodiment, the analog-to-digital converter 30 is triggered to sample at the rising edge of the second PWM signal. In other embodiments, the analog-to-digital converter 30 is triggered to sample at the falling edge of the second PWM signal or at both the rising edge of the second PWM signal and the falling edge of the second PWM signal.
In this embodiment, the second PWM signal has the same period and the same duty ratio as the first PWM signal (see fig. 2). In the present embodiment, the phase difference is 90 degrees. In this way, the sampling time of the analog-to-digital converter 30 always corresponds to the middle time in the first PWM signal period. For example, when the analog-to-digital converter 30 samples the current flowing through the inductor in the DC/DC converter, it can be ensured that the sampling point occurs at the center point of the PWM signal driving the switching tube 20, and the sampling at the highest point and the sampling at the lowest point are prevented from occurring, thereby ensuring the stability of the whole system. In other embodiments, the phase difference may be changed to other values, such as 15 degrees, 20 degrees, 45 degrees, etc., according to design requirements. In other embodiments, the second PWM signal has a different period from the first PWM signal, and the second PWM signal is an integer multiple of the period of the first PWM signal or the period of the first PWM signal is an integer multiple of the period of the second PWM signal.
Fig. 3 is a flowchart illustrating a sampling method of an analog-to-digital converter according to an embodiment of the invention.
In step S301, the first PWM module 11 generates a first PWM signal to drive the switching tube 20.
In step S302, the second PWM module 12 generates a second PWM signal to trigger the analog-to-digital converter 30 to perform analog-to-digital conversion, where the second PWM signal has a phase difference with the first PWM signal, so that a sampling time of the analog-to-digital converter 30 corresponds to a fixed point in a period of the first PWM signal.
In the present embodiment, the analog-to-digital converter 30 is triggered to sample at the rising edge of the second PWM signal. In other embodiments, the analog-to-digital converter 30 is triggered to sample at the falling edge of the second PWM signal or at both the rising edge of the second PWM signal and the falling edge of the second PWM signal. In this embodiment, the second PWM signal has the same period and the same duty ratio as the first PWM signal. In the present embodiment, the phase difference is 90 degrees. In other embodiments, the phase difference is 15 degrees, 20 degrees, 45 degrees, etc. In other embodiments, the second PWM signal has a different period from the first PWM signal, and the second PWM signal is an integer multiple of the period of the first PWM signal or the period of the first PWM signal is an integer multiple of the period of the second PWM signal.
Thus, the present invention makes the sampling point of the analog-to-digital converter 30 a fixed point relative to the signal driving the switch tube 20, and by this method, the ADC fixed point sampling according to the present invention is realized. The fixed-point sampling of the ADC is particularly important for a control algorithm based on a current loop, when the current flowing through an inductor is sampled, a sampling point can be ensured to be at a fixed point of a PWM signal, the situation that the sampling is at the highest point sometimes and at the lowest point sometimes is prevented, and the stability of the whole system is ensured.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (10)
1. An analog-to-digital converter sampling system comprising:
a switching tube;
an analog-to-digital converter;
the microprocessor comprises a first PWM module and a second PWM module, the first PWM module is connected with the switching tube, the first PWM module is used for generating a first PWM signal to drive the switching tube, the second PWM module is connected with the analog-to-digital converter, and the second PWM module is used for generating a second PWM signal which has a phase difference with the first PWM signal to trigger the analog-to-digital converter to perform analog-to-digital conversion, so that the sampling time of the analog-to-digital converter corresponds to a certain fixed point in the period of the first PWM signal.
2. The analog-to-digital converter sampling system of claim 1, wherein:
the second PWM signal has the same period and the same duty ratio as the first PWM signal.
3. The analog-to-digital converter sampling system of claim 1, wherein:
the second PWM signal is an integer multiple of a period of the first PWM signal or the period of the first PWM signal is an integer multiple of a period of the second PWM signal.
4. The analog-to-digital converter sampling system of claim 1, wherein:
the phase difference is 90 degrees.
5. The analog-to-digital converter sampling system of claim 1, wherein:
the analog-to-digital converter is arranged in the microprocessor or is externally arranged on the microprocessor.
6. The analog-to-digital converter sampling system of claim 1, wherein:
the analog-to-digital converter is triggered to sample at the rising edge of the second PWM signal.
7. An analog-to-digital converter sampling method comprising:
generating a first PWM signal to drive a switching tube; and
and generating a second PWM signal with a phase difference with the first PWM signal to trigger the analog-to-digital converter to perform analog-to-digital conversion, so that the sampling moment of the analog-to-digital converter corresponds to a certain fixed point in the period of the first PWM signal.
8. The method for sampling an analog-to-digital converter of claim 7, wherein:
the second PWM signal has the same period and the same duty ratio as the first PWM signal.
9. The method for sampling an analog-to-digital converter of claim 7, wherein:
the second PWM signal is an integer multiple of a period of the first PWM signal or the period of the first PWM signal is an integer multiple of a period of the second PWM signal.
10. The method for sampling an analog-to-digital converter of claim 7, wherein:
the phase difference is 90 degrees.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610370824.7A CN107437943B (en) | 2016-05-28 | 2016-05-28 | Analog-to-digital converter sampling system and analog-to-digital converter sampling method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610370824.7A CN107437943B (en) | 2016-05-28 | 2016-05-28 | Analog-to-digital converter sampling system and analog-to-digital converter sampling method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107437943A CN107437943A (en) | 2017-12-05 |
CN107437943B true CN107437943B (en) | 2021-08-31 |
Family
ID=60458207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610370824.7A Active CN107437943B (en) | 2016-05-28 | 2016-05-28 | Analog-to-digital converter sampling system and analog-to-digital converter sampling method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107437943B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101160724A (en) * | 2005-09-27 | 2008-04-09 | 密克罗奇普技术公司 | Selectable real time sample triggering for a plurality of inputs of an analog-to-digital converter |
CN101889396A (en) * | 2007-10-22 | 2010-11-17 | 大动力公司 | Self tracking ADC for digital power supply control systems |
CN102891600A (en) * | 2012-10-09 | 2013-01-23 | 西安交通大学 | DVS-Buck converter used for digitally controlling output voltage and provided with timed self-calibration function |
CN104570858A (en) * | 2014-12-19 | 2015-04-29 | 深圳市科陆电子科技股份有限公司 | Analog signal sampling method and sampling system |
CN105242571A (en) * | 2015-10-21 | 2016-01-13 | 华中科技大学 | Wide-range oxygen sensor controller simulation system |
CN105591638A (en) * | 2016-03-16 | 2016-05-18 | 阳光电源股份有限公司 | Switching tube driving circuit |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100289714B1 (en) * | 1997-08-21 | 2001-05-15 | 윤종용 | Data detector and method therefor |
KR100346125B1 (en) * | 2000-11-03 | 2002-08-01 | 한국철도기술연구원 | Control system of power converter |
JP4835012B2 (en) * | 2005-03-18 | 2011-12-14 | ヤマハ株式会社 | Class D amplifier |
KR100836180B1 (en) * | 2006-11-30 | 2008-06-09 | 한국항공우주연구원 | Parallel Converter System for Reducing Output Voltage Ripple ane Control Method thereof |
CN102332815A (en) * | 2011-09-14 | 2012-01-25 | 深圳航天科技创新研究院 | Method and circuit for suppressing noise caused by analog-to-digital conversion |
CN102594309A (en) * | 2012-03-31 | 2012-07-18 | 中国科学院上海应用物理研究所 | Synchronization method for pulse width modulation |
CN203775068U (en) * | 2014-03-07 | 2014-08-13 | 杭州电子科技大学 | All-digital inverter |
-
2016
- 2016-05-28 CN CN201610370824.7A patent/CN107437943B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101160724A (en) * | 2005-09-27 | 2008-04-09 | 密克罗奇普技术公司 | Selectable real time sample triggering for a plurality of inputs of an analog-to-digital converter |
CN101889396A (en) * | 2007-10-22 | 2010-11-17 | 大动力公司 | Self tracking ADC for digital power supply control systems |
CN102891600A (en) * | 2012-10-09 | 2013-01-23 | 西安交通大学 | DVS-Buck converter used for digitally controlling output voltage and provided with timed self-calibration function |
CN104570858A (en) * | 2014-12-19 | 2015-04-29 | 深圳市科陆电子科技股份有限公司 | Analog signal sampling method and sampling system |
CN105242571A (en) * | 2015-10-21 | 2016-01-13 | 华中科技大学 | Wide-range oxygen sensor controller simulation system |
CN105591638A (en) * | 2016-03-16 | 2016-05-18 | 阳光电源股份有限公司 | Switching tube driving circuit |
Also Published As
Publication number | Publication date |
---|---|
CN107437943A (en) | 2017-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10164534B2 (en) | Single inductor multi-output buck-boost converter and control method thereof | |
US9024599B2 (en) | Multi-phase DC-DC power converter | |
KR101810749B1 (en) | Automatic buck/boost mode selection system for dc-dc converter | |
US8704590B2 (en) | Control circuit for power converter and method thereof | |
JP2011101479A (en) | Dc-dc converter and dc voltage conversion method | |
JP5581971B2 (en) | Switching regulator | |
US10644600B2 (en) | Constant-time buck-boost switching regulator and control circuit and control method thereof | |
KR101681958B1 (en) | Cascaded multilevel ac-ac converter | |
US20130257409A1 (en) | Control circuit for dc-dc converter, dc-dc converter, and control method of dc-dc converter | |
CN111614238B (en) | Multiphase DC-DC power converter and driving method thereof | |
US11817781B2 (en) | Power converter having power stage circuits and an auxiliary module | |
US20180316263A1 (en) | Dc-dc converter, boosting unit, electric vehicle and battery backup system | |
CN107437943B (en) | Analog-to-digital converter sampling system and analog-to-digital converter sampling method | |
US9350264B2 (en) | Control device of power converter circuit | |
WO2012069512A2 (en) | Full-bridge converter with digital pulse modulation (dpwm) for driving a load | |
Rojas-González et al. | An integrated dual-output buck converter based on sliding mode control | |
KR102572644B1 (en) | Synchronous BUCK circuit control method, device, system and electronic device | |
CN107046367B (en) | Switching regulator | |
US9024607B2 (en) | Control circuit for power converter and method thereof | |
CN110663164B (en) | Power converter pre-driver system with multiple power modes | |
KR20130012485A (en) | Error voltage generation circuit, switch control circuit comprising the same, and power factor corrector comprising the switch control circuit | |
US20130300391A1 (en) | Controller, controlling method, and digital dc-dc converter using the controller and the controlling method | |
KR101597056B1 (en) | Charge pump type DCDC converter | |
KR101907386B1 (en) | Multi channel switching converter | |
JP5578245B2 (en) | Constant current output control type switching regulator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |