[go: up one dir, main page]

CN102025276B - Clock domain crossing controller of digital control switch power supply and control method thereof - Google Patents

Clock domain crossing controller of digital control switch power supply and control method thereof Download PDF

Info

Publication number
CN102025276B
CN102025276B CN 201010541433 CN201010541433A CN102025276B CN 102025276 B CN102025276 B CN 102025276B CN 201010541433 CN201010541433 CN 201010541433 CN 201010541433 A CN201010541433 A CN 201010541433A CN 102025276 B CN102025276 B CN 102025276B
Authority
CN
China
Prior art keywords
signal
digital
clock
power supply
dpwm
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
CN 201010541433
Other languages
Chinese (zh)
Other versions
CN102025276A (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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN 201010541433 priority Critical patent/CN102025276B/en
Publication of CN102025276A publication Critical patent/CN102025276A/en
Application granted granted Critical
Publication of CN102025276B publication Critical patent/CN102025276B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Dc-Dc Converters (AREA)

Abstract

一种数字控制开关电源跨时钟域控制器及其控制方法,控制器包括分压网络、模数转换器、数字补偿器、数字脉冲调制电路、驱动电路和时钟逻辑电路,开关电源输出端数据被采集后,经各模块的依次处理输出开关电源的电压控制信号,时钟逻辑电路提供控制器的工作时钟,本发明采用同步时钟双沿触发的系统构建,克服了时钟单沿触发引入的数据延迟稳态,在保持普通数字控制优点的基础上,对系统数据处理部分进行了优化,从而减小了系统中控制信号滞后,实现了实时数据控制系统,并且在同步时钟脉冲结束后,切断前级模块的工作,节省系统功耗。

A digitally controlled switching power supply cross-clock domain controller and its control method, the controller includes a voltage divider network, an analog-to-digital converter, a digital compensator, a digital pulse modulation circuit, a drive circuit and a clock logic circuit, and the data at the output end of the switching power supply is After the acquisition, the voltage control signal of the switching power supply is output through the sequential processing of each module, and the clock logic circuit provides the working clock of the controller. On the basis of maintaining the advantages of ordinary digital control, the data processing part of the system is optimized, thereby reducing the control signal lag in the system, realizing a real-time data control system, and cutting off the front-end module after the synchronous clock pulse ends work, saving system power consumption.

Description

一种数字控制开关电源跨时钟域控制器及其控制方法A digitally controlled switching power supply cross-clock domain controller and its control method

技术领域 technical field

本发明属于电子技术领域,涉及集成电路的设计,用于数字控制技术的开关电源,具体为一种数字控制开关电源跨时钟域控制器及其控制方法。The invention belongs to the field of electronic technology, relates to the design of an integrated circuit, and is used for a switching power supply of digital control technology, in particular to a cross-clock domain controller of a digital control switching power supply and a control method thereof.

背景技术 Background technique

采用数字控制技术的开关电源,可以带来电源系统性能的显著提高,因为数字控制方法具有灵活性,可以实现复杂控制算法,对外界影响的敏感度较低,如受器件变化影响小。The switching power supply using digital control technology can significantly improve the performance of the power system, because the digital control method is flexible, can realize complex control algorithms, and is less sensitive to external influences, such as being less affected by device changes.

数字电源的控制环路是由多个功能模块级联而成,而如何保障各个模块数据采集点之间的同步采集是数字技术中一个非常重要的问题。在跨时钟域传输数据时,输入数据与采样时钟发生沿打沿的情况,电路不能在规定的时间进入稳态,此时为亚稳态,电路输出的电压处于非法的逻辑电平间,具体的电压值无法预测,输出可能发生振荡。因此在跨时钟域系统设计时,需要首先对系统的时钟进行定义,使得时钟同步。The control loop of a digital power supply is formed by cascading multiple functional modules, and how to ensure the synchronous collection of data collection points of each module is a very important issue in digital technology. When data is transmitted across the clock domain, the input data and the sampling clock are edged, and the circuit cannot enter a stable state within the specified time. At this time, it is a metastable state, and the voltage output by the circuit is between illegal logic levels. Specifically The value of the voltage is unpredictable and the output may oscillate. Therefore, when designing a cross-clock domain system, it is necessary to first define the clock of the system so that the clocks are synchronized.

基本的数字控制开关电源的控制环路包括模数转换器ADC、数字补偿器以及数字脉宽调制电路DPWM和驱动电路在内的四个子模块,如图1。如果简单的将这几个子模块输入输出对接构建成闭环系统,尽管理论上可以实现反馈调节的功能,但按照这种架构进行电路设计,系统中各个子模块之间仅有数据传输,没有时序约束,无法保证传输数据时序关系的正确性,因此这种功能模块直接堆叠的架构无法保证系统工作的正确性。并且ADC和数字补偿器两级的数据处理速度由各自的工作时钟控制,可以具有较快的处理速度,而DPWM电路的输出处理速度与开关频率同步,相对较慢,从而导致数据堆积形成瓶颈。为解决上述问题需要为各个子模块确定恰当的时序关系,可由一个同步时钟实现。现有的数字控制开关电源解决方案中,一种是在数字脉宽调制电路前面利用多个移位寄存器进行数据的保持,优点是前级产生的所有数据都可得到处理,但是当前处理的控制信号是几个开关周期之前的数据所对应的值,无法实现系统的实时调控;另外一种方法是对堆积的数据进行“冷”处理,即对数字脉宽调制电路来不及处理的数据不做任何处理,DPWM只处理当前输入端的数据,此方案电路结构简单,但会丢失一部分数据,并且所处理的数据依然有延时,不是最新的数据,且不能得知正在处理的数据对应的周期。The control loop of the basic digital control switching power supply includes four sub-modules including the analog-to-digital converter ADC, digital compensator, digital pulse width modulation circuit DPWM and driving circuit, as shown in Figure 1. If the input and output of these sub-modules are simply connected to form a closed-loop system, although the function of feedback adjustment can be realized in theory, but the circuit design is carried out according to this architecture, and there is only data transmission between the sub-modules in the system, and there is no timing constraint , the correctness of the timing relationship of the transmitted data cannot be guaranteed, so the architecture in which the functional modules are directly stacked cannot guarantee the correctness of the system work. Moreover, the data processing speed of the two stages of ADC and digital compensator is controlled by their respective working clocks, which can have a relatively fast processing speed, while the output processing speed of the DPWM circuit is synchronized with the switching frequency, which is relatively slow, resulting in data accumulation forming a bottleneck. In order to solve the above problems, it is necessary to determine the appropriate timing relationship for each sub-module, which can be realized by a synchronous clock. Among the existing digital control switching power supply solutions, one is to use multiple shift registers to hold data in front of the digital pulse width modulation circuit. The advantage is that all the data generated by the previous stage can be processed, but the current processing control The signal is the value corresponding to the data several switching cycles ago, which cannot realize real-time control of the system; another method is to perform "cold" processing on the accumulated data, that is, do not do anything to the data that the digital pulse width modulation circuit has no time to process. Processing, DPWM only processes the data at the current input end. This scheme has a simple circuit structure, but part of the data will be lost, and the processed data still has a delay. It is not the latest data, and the cycle corresponding to the data being processed cannot be known.

发明内容 Contents of the invention

本发明要解决的问题是对数字控制开关电源进行合理的时序控制,保证数据传输时序关系的正确性、即时性。The problem to be solved by the present invention is to carry out reasonable timing control on the digitally controlled switching power supply to ensure the correctness and immediacy of the timing relationship of data transmission.

本发明的技术方案为:一种数字控制开关电源跨时钟域控制器,与开关电源功率级连接,控制器包括分压网络Hsense、模数转换器ADC、误差电压信号处理模块、占空比控制信号处理模块、数字脉宽调制电路DPWM、时钟逻辑电路和驱动电路,占空比控制信号处理模块包括数字补偿器和D触发器组成的寄存器,开关电源输出端信号Vout(t)经分压网络Hsense分压后被模数转换器ADC采集并量化得到数字信号Vo[n],数字信号Vo[n]与预设离散基准电压Vref[n]输入误差电压信号处理模块,两者在误差电压信号处理模块中相减得到误差电压信号e[n],误差电压信号e[n]输入数字补偿器中进行数据处理,输出的dc[n]再经数字脉宽调制电路DPWM调制,并由驱动电路放大后产生开关电源的电压控制信号d(t),其中时钟逻辑电路提供控制器各部分的同步时钟信号syn(t)。The technical solution of the present invention is: a digitally controlled switching power supply cross-clock domain controller connected to the switching power supply power stage, the controller includes a voltage divider network H sense , an analog-to-digital converter ADC, an error voltage signal processing module, and a duty cycle Control signal processing module, digital pulse width modulation circuit DPWM, clock logic circuit and drive circuit, the duty ratio control signal processing module includes a register composed of a digital compensator and a D flip-flop, and the output signal V out (t) of the switching power supply is divided into After the pressure network H sense is divided, it is collected and quantized by the analog-to-digital converter ADC to obtain the digital signal V o [n], and the digital signal V o [n] and the preset discrete reference voltage V ref [n] are input to the error voltage signal processing module. The two are subtracted in the error voltage signal processing module to obtain the error voltage signal e[n], the error voltage signal e[n] is input into the digital compensator for data processing, and the output d c [n] is then passed through the digital pulse width modulation circuit DPWM modulation, and amplified by the driving circuit to generate the voltage control signal d(t) of the switching power supply, in which the clock logic circuit provides the synchronous clock signal syn(t) of each part of the controller.

时钟逻辑电路由若干D触发器、与门、非门组成,通过复用DPWM的计数器得到时钟脉冲发生电路,计数器输出信号经过第一D触发器延时后再反馈到计数器输入端,同时计数器输出信号取反后送入第二D触发器,第二D触发器反相端信号接入第三D触发器的输入端,其中第二D触发器和第三D触发器的同相输出端送入一个两输入与门,所述两输入与门的输出即为同步时钟信号。The clock logic circuit is composed of several D flip-flops, AND gates and NOT gates. The clock pulse generation circuit is obtained by multiplexing the DPWM counter. The output signal of the counter is fed back to the input terminal of the counter after being delayed by the first D flip-flop, and the counter outputs After the signal is inverted, it is sent to the second D flip-flop, and the signal at the inverting end of the second D flip-flop is connected to the input of the third D flip-flop, where the non-inverting output of the second D flip-flop and the third D flip-flop are sent to A two-input AND gate, the output of the two-input AND gate is a synchronous clock signal.

上述数字控制开关电源跨时钟域控制器的控制方法为:控制器在开关电源每个开关周期调节一次占空比的大小,并同时完成误差电压信号和占空比控制信号的更新:控制器由同一个时钟信号syn(t)进行时序控制,在时钟信号的上升沿到来时,ADC启动工作,进行数据采集处理,同时更新误差信号处理模块的数据,时钟信号的下降沿到来时,触发占空比控制信号处理模块的数据更新,并将最新的占空比控制信号d[n]传递给DPWM进行实时处理,其中同步时钟信号syn(t)被设置为一个占空比很小的窄脉冲信号,所述窄脉冲信号的大小与模数转换器ADC及数字补偿器的工作时钟有关,为ADC的处理时间和数字补偿器的计算时间之和,在一个开关周期内,利用syn(t)信号作为选择信号,用DPWM实际输出和电源电压VDD作为二选一选择器的被选信号,当syn(t)信号为高电平时,令DPWM输出与电源电压接通,即强制使得输出的PWM信号为高电平,同步时钟信号syn(t)下降沿之后再使用该开关周期实际产生的占空比控制信号d[n]控制DPWM的输出信号dpwm(t)的占空比大小,保证DPWM在每个开关周期输出的PWM信号是对该开关周期的系统误差电压信号进行调节。The control method of the digitally controlled switching power supply cross-clock domain controller is: the controller adjusts the size of the duty cycle once in each switching cycle of the switching power supply, and at the same time completes the update of the error voltage signal and the duty cycle control signal: the controller is controlled by The same clock signal syn(t) performs timing control. When the rising edge of the clock signal arrives, the ADC starts to work, performs data acquisition and processing, and updates the data of the error signal processing module at the same time. When the falling edge of the clock signal arrives, the trigger duty The data of the control signal processing module is updated, and the latest duty cycle control signal d[n] is passed to the DPWM for real-time processing, in which the synchronous clock signal syn(t) is set as a narrow pulse signal with a small duty cycle , the size of the narrow pulse signal is related to the working clock of the analog-to-digital converter ADC and the digital compensator, which is the sum of the processing time of the ADC and the calculation time of the digital compensator. In one switching cycle, the syn (t) signal is used As the selection signal, the actual output of DPWM and the power supply voltage V DD are used as the selected signal of the one-of-two selector. When the syn(t) signal is high, the DPWM output is connected to the power supply voltage, that is, the output PWM is forced to The signal is at a high level, and after the falling edge of the synchronous clock signal syn(t), the duty cycle control signal d[n] actually generated by the switching cycle is used to control the duty cycle of the DPWM output signal dpwm(t), ensuring that the DPWM The PWM signal output in each switching cycle is to adjust the system error voltage signal of the switching cycle.

本发明在分析数字控制开关电源内部电路结构及数据传输时序的基础上,提出了采用同步时钟双沿触发的系统构建,采用内部产生的同步时钟信号的上升和下降沿对数据进行双沿触发处理,这种方法使得跨时钟域的数据流在统一的时钟控制下工作,克服了时钟单沿触发引入的数据延迟稳态,并且能够全局规划系统模块工作时间,可在必要时关闭前级模块,降低系统的功率损耗。本发明还在同步时钟信号脉冲持续时间内强制输出的控制信号为高,以减小系统中数据的延时,保证了实时控制,克服了现有技术的不足。Based on the analysis of the internal circuit structure and data transmission timing of the digital control switching power supply, the present invention proposes a system construction using a synchronous clock double-edge trigger, and uses the rising and falling edges of the internally generated synchronous clock signal to perform double-edge trigger processing on data , this method makes the data flow across the clock domain work under the unified clock control, overcomes the data delay stability introduced by the single-edge trigger of the clock, and can globally plan the working time of the system modules, and can turn off the front-end modules when necessary. reduce system power loss. The invention also forces the output control signal to be high during the pulse duration of the synchronous clock signal, so as to reduce the data delay in the system, ensure real-time control, and overcome the shortcomings of the prior art.

本发明在保持普通数字控制优点的基础上,对控制器数据处理部分进行了优化,从而减小了控制信号滞后,实现了实时数据控制系统,并且在同步时钟脉冲结束后,切断前级模块的工作,节省系统功耗。本发明的优点及有益效果包括:On the basis of maintaining the advantages of ordinary digital control, the present invention optimizes the data processing part of the controller, thereby reducing the lag of the control signal, realizing a real-time data control system, and cutting off the front-stage module after the synchronous clock pulse ends. work and save system power consumption. Advantages and beneficial effects of the present invention include:

(1)、电路结构简单,由标准门电路组成,易于实现且制备工艺简单;(1), the circuit structure is simple, composed of standard gate circuits, easy to realize and simple preparation process;

(2)、系统中采用的内部同步时钟双沿触发电路可以实时处理系统数据,保证了控制信号的实时性;(2) The internal synchronous clock double-edge trigger circuit used in the system can process system data in real time, ensuring the real-time performance of control signals;

(3)、系统中采用的输出占空比信号初始高电平的设计思想,可在系统数据处理阶段维持调节功能,提高了系统的响应速度;(3) The design idea of the initial high level of the output duty cycle signal adopted in the system can maintain the adjustment function in the system data processing stage and improve the response speed of the system;

(4)、系统中各模块工作时间可控,降低了电路功率损耗。(4) The working time of each module in the system is controllable, which reduces the power loss of the circuit.

附图说明 Description of drawings

图1是数字控制开关电源中使用外部同步时钟的系统架构框图。Figure 1 is a block diagram of the system architecture using an external synchronous clock in a digitally controlled switching power supply.

图2是数字控制开关电源中使用外部同步时钟的系统架构数据变化规律图。Figure 2 is a diagram of the data change law of the system architecture using an external synchronous clock in a digitally controlled switching power supply.

图3是本发明的数字控制开关电源跨时钟域控制器的内部同步时钟双沿触发系统架构框图。FIG. 3 is a block diagram of an internal synchronous clock double-edge trigger system architecture of a digitally controlled switching power supply cross-clock domain controller of the present invention.

图4是本发明的数字控制开关电源跨时钟域控制器的同步时钟双沿触发系统架构数据变化规律。Fig. 4 shows the data change law of the synchronous clock double-edge trigger system architecture of the digitally controlled switching power supply cross-clock domain controller of the present invention.

图5是本发明的数字控制开关电源跨时钟域控制器的计数器、同步时钟发生器电路图。Fig. 5 is a circuit diagram of a counter and a synchronous clock generator of a digitally controlled switching power supply cross-clock domain controller of the present invention.

图6是本发明的数字控制开关电源跨时钟域控制器的计数器、同步时钟发生器电路工作波形。Fig. 6 is the working waveform of the counter and synchronous clock generator circuit of the digitally controlled switching power supply cross-clock domain controller of the present invention.

图7是本发明的数字控制开关电源跨时钟域控制器的同步时钟信号和占空比信号。Fig. 7 is a synchronous clock signal and a duty cycle signal of the cross-clock domain controller of the digitally controlled switching power supply of the present invention.

图8是本发明与开关电源的连接示意图。Fig. 8 is a schematic diagram of the connection between the present invention and the switching power supply.

具体实施方式 Detailed ways

如图3和图8,本发明控制器包括分压网络Hsence、模数转换器、误差电压信号处理模块、数字补偿器、PWM信号输出模块、驱动电路以及时钟逻辑电路。开关电源输出端数据Vout(t)经分压网络分压后被ADC采集并量化得到Vo[n],与预设离散基准电压Vref[n]相减得到误差电压信号e[n]送入数字补偿器中进行数据处理,再经数字脉宽调制电路DPWM调制产生开关电源的电压控制信号,并由驱动电路加大驱动能力后控制开关电源功率管的开合。控制器在开关电源每个开关周期调节一次占空比的大小,即由时钟逻辑产生的同步时钟信号syn(t)控制,在一个开关周期内完成ADC采样量化、误差生成、补偿器输出及占空比控制信号的更新。时钟逻辑电路由若干D触发器、与门、非门组成,通过复用DPWM的计数器得到时钟脉冲发生电路得到同步时钟信号syn(t),在时钟信号syn(t)的上升沿到来时,ADC启动工作,进行数据采样量化,误差信号处理模块和数字补偿器输出数据更新;时钟信号的下降沿到来时,触发DPWM占空比调制模块输入端数据更新,即将当前占空比控制信号dc[n]读入DPWM中进行实时处理。其中同步时钟信号syn(t)高电平维持时间与模数转换器ADC及数字补偿器的工作时钟有关,是ADC处理时间和数字补偿器计算时间之和。在syn(t)维持高电平时间内,前级模块正在进行数据处理,DPWM的输入信号无数据更新,在syn(t)下降沿来临后DPWM的输入信号才得到更新。为了使得每个周期的占空比输出信号dpwm(t)都是对当前开关周期内采样值的处理,因此在syn(t)高电平时间内将强制使得DPWM输出信号为高电平,syn(t)下降沿之后再使用当前实际产生的占空比控制信号控制DPWM的输出dpwm(t)高电平维持时间,即输出dpwm(t)高电平维持时间由两部分组成:强制高电平时间和精确高电平时间,保证了DPWM在每个开关周期输出的PWM信号是对该开关周期当前的系统状态进行调节。为使得调节精确,强制高电平时间尽可能短,即需要syn(t)为一个窄脉冲信号,高电平维持时间较短,因此要求ADC、误差处理模块和数字补偿器具有高速的处理速度。并且为了解决ADC、误差处理模块和数字补偿器高速时钟带来功耗增加的问题,由同步时钟syn(t)作为时钟控制信号,当syn(t)下降沿来临时,表示此三个模块处理结束,掐断其工作时钟,在下次需要处理时再将其打开,以便降低系统功耗。As shown in Fig. 3 and Fig. 8, the controller of the present invention includes a voltage divider network H sence , an analog-to-digital converter, an error voltage signal processing module, a digital compensator, a PWM signal output module, a driving circuit and a clock logic circuit. The output data V out (t) of the switching power supply is divided by the voltage divider network and then collected and quantified by the ADC to obtain V o [n], which is subtracted from the preset discrete reference voltage V ref [n] to obtain the error voltage signal e[n] Send it to the digital compensator for data processing, and then generate the voltage control signal of the switching power supply through the digital pulse width modulation circuit DPWM modulation, and control the opening and closing of the power tube of the switching power supply after the driving circuit increases the driving capacity. The controller adjusts the duty ratio once in each switching cycle of the switching power supply, which is controlled by the synchronous clock signal syn(t) generated by the clock logic, and completes ADC sampling quantization, error generation, compensator output, and duty cycle within one switching cycle. Update of the air ratio control signal. The clock logic circuit is composed of several D flip-flops, AND gates, and NOT gates. The clock pulse generation circuit is obtained by multiplexing the DPWM counter to obtain the synchronous clock signal syn(t). When the rising edge of the clock signal syn(t) arrives, the ADC Start the work, perform data sampling and quantification, update the output data of the error signal processing module and the digital compensator; when the falling edge of the clock signal arrives, it will trigger the data update at the input end of the DPWM duty cycle modulation module, that is, the current duty cycle control signal d c [ n] read into DPWM for real-time processing. The high-level maintenance time of the synchronous clock signal syn(t) is related to the working clock of the analog-to-digital converter ADC and the digital compensator, which is the sum of the processing time of the ADC and the calculation time of the digital compensator. During the time when syn(t) maintains a high level, the front-end module is processing data, and the DPWM input signal has no data update, and the DPWM input signal is updated only after the falling edge of syn(t) comes. In order to make the duty ratio output signal dpwm(t) of each cycle process the sampling value in the current switching cycle, the DPWM output signal will be forced to be high level during the high level time of syn(t), syn (t) After the falling edge, use the current actual duty cycle control signal to control the DPWM output dpwm(t) high-level maintenance time, that is, the output dpwm(t) high-level maintenance time consists of two parts: forced high power The flat time and precise high level time ensure that the PWM signal output by the DPWM in each switching cycle is to adjust the current system state of the switching cycle. In order to make the adjustment accurate, the high-level time is forced to be as short as possible, that is, syn(t) needs to be a narrow pulse signal, and the high-level maintenance time is short, so the ADC, error processing module and digital compensator are required to have high-speed processing speed . And in order to solve the problem of increased power consumption caused by the high-speed clock of ADC, error processing module and digital compensator, the synchronous clock syn(t) is used as the clock control signal. When the falling edge of syn(t) comes, it means that the three modules process End, cut off its working clock, and turn it on again when it needs to be processed next time, so as to reduce system power consumption.

下面具体说明本发明控制的控制方法。The control method of the present invention will be described in detail below.

在数字电源中每个开关周期调节一次占空比的大小,而调节过程是数字补偿器和DPWM两个模块共同完成。一方面需要数字补偿器根据ADC量化的误差电压的大小e[n]和前一时刻系统的工作状态计算出当前所需占空比控制信号dc[n]的大小;另一方面需要DPWM根据此占空比控制信号dc[n]产生一个开关周期内输出PWM波形的占空比值dpwm(t)。假设采用典型的数字PID补偿,则占空比控制信号与误差电压的关系为In the digital power supply, the size of the duty cycle is adjusted every switching cycle, and the adjustment process is completed by the two modules of the digital compensator and DPWM. On the one hand, the digital compensator is required to calculate the size of the current required duty ratio control signal d c [n] according to the magnitude of the error voltage e[n] quantified by the ADC and the working state of the system at the previous moment; on the other hand, the DPWM is required to This duty cycle control signal d c [n] produces a duty cycle value dpwm(t) of the output PWM waveform within one switching cycle. Assuming a typical digital PID compensation is used, the relationship between the duty cycle control signal and the error voltage is

dc[n]=dc[n-1]+ae[n]-be[n-1]+ce[n-2]            (1) dc [n]= dc [n-1]+ae[n]-be[n-1]+ce[n-2] (1)

其中,a、b、c分别为PID的补偿系数,可根据开关电源系统频率稳定性设计方法确定系数值的大小,为本领域技术人员公知,不再详述。因此,计算当前开关周期的占空比控制信号大小dc[n]需要使用前一个开关周期的占空比大小dc[n-1]、当前开关周期的误差电压e[n]以及前两个开关周期误差电压e[n-1]、e[n-2],所以还需要使用同步时钟对以上各个数据在每个开关周期进行一次更新。可以在误差信号处理模块中采用串联D触发器保存相关数据,可利用同步时钟syn(t)控制每一个开关周期完成一次数据更新。由于误差信号处理模块和占空比控制信号处理模块内部的D触发器使用了同一个同步时钟信号,并且二者之间有单向的数据流动,这样第n个开关周期的数据在本周期内被误差处理模块更新并交给数字补偿器用于计算占空比的大小,但是计算所得到的占空比大小dc[n]必须要到第n+1个开关周期才能被占空比控制信号处理模块内的D触发器更新并控制DPWM对输出信号dpwm(t)的占空比进行调节。采用这种处理办法可免除数据的堆积及丢失,但依然造成了一个开关周期的滞后,DPWM的输出控制信号不能及时控制当前的系统状态,必然会给系统带来不利影响。Wherein, a, b, and c are the compensation coefficients of PID respectively, and the values of the coefficients can be determined according to the frequency stability design method of the switching power supply system, which are well known to those skilled in the art and will not be described in detail. Therefore, to calculate the duty cycle control signal size d c [n] of the current switching cycle, the duty cycle size d c [n-1] of the previous switching cycle, the error voltage e[n] of the current switching cycle, and the previous two switching cycle error voltages e[n-1], e[n-2], so it is also necessary to use a synchronous clock to update each of the above data once in each switching cycle. In the error signal processing module, a series D flip-flop can be used to save relevant data, and a synchronous clock syn(t) can be used to control each switching cycle to complete a data update. Since the D flip-flop inside the error signal processing module and the duty cycle control signal processing module uses the same synchronous clock signal, and there is a unidirectional data flow between the two, the data of the nth switching cycle is in this cycle It is updated by the error processing module and delivered to the digital compensator to calculate the duty cycle, but the calculated duty cycle d c [n] must be the n+1th switching cycle before it can be controlled by the duty cycle signal The D flip-flop in the processing module updates and controls the DPWM to adjust the duty cycle of the output signal dpwm(t). Using this method can avoid the accumulation and loss of data, but it still causes a switching cycle lag. The output control signal of DPWM cannot control the current system state in time, which will inevitably bring adverse effects to the system.

为了避免因上述的数据滞后而不能对电源系统进行实时控制,希望在一个开关周期内同时完成误差电压信号、占空比控制信号的更新。因为二者受同一个时钟信号syn(t)控制,本发明提出了在时钟的上升沿触发误差信号处理模块进行数据更新,时钟的下降沿触发占空比控制信号的数据更新的处理方式。但是由于在同步时钟信号的上升沿和下降沿中间的时间段内由于占空比控制信号dc[n]仍然没有被更新,其值依然是上个开关周期的误差电压e[n]和电路中其他状态相关的数据通过数字补偿器所计算后的结果。考虑到实际开关电源系统中占空比通常不会很小,即当一个开关周期开始后PWM信号不会在很短的时间内变为低电平。基于这种特点,将同步时钟syn(t)设置为一个占空比很小的窄脉冲信号,在脉冲的上升沿和下降沿之间的时间段内强制的使得PWM输出信号为高电平,同步时钟信号下降沿之后再使用该开关周期产生的占空比控制信号dc[n]控制PWM信号dpwm(t)的占空比大小,这样就可以保证每个开关周期输出的PWM信号是对该开关周期的系统误差电压信号进行调节。所述窄脉冲信号的大小与模数转换器ADC及数字补偿器的工作时钟有关,为ADC的处理时间和数字补偿器的计算时间之和,在一个时钟信号的脉冲时间内,利用syn(t)信号作为选择信号,用DPWM实际输出和电源电压VDD作为二选一选择器的被选信号,当syn(t)信号为高电平时,令DPWM输出与电源电压接通,即强制使得DPWM输出信号为高电平。In order to avoid the real-time control of the power supply system due to the above-mentioned data lag, it is hoped that the update of the error voltage signal and the duty ratio control signal can be completed simultaneously within one switching cycle. Because both are controlled by the same clock signal syn(t), the present invention proposes a processing method in which the rising edge of the clock triggers the error signal processing module to update the data, and the falling edge of the clock triggers the data update of the duty ratio control signal. However, because the duty cycle control signal d c [n] is still not updated during the period between the rising edge and the falling edge of the synchronous clock signal, its value is still the error voltage e[n] of the last switching cycle and the circuit The data related to other states in the computer is the result calculated by the digital compensator. Considering that the duty cycle in an actual switching power supply system is usually not very small, that is, the PWM signal will not change to a low level within a short time after a switching cycle starts. Based on this feature, the synchronous clock syn(t) is set as a narrow pulse signal with a small duty cycle, and the PWM output signal is forced to be high during the period between the rising edge and the falling edge of the pulse. After the falling edge of the synchronous clock signal, use the duty cycle control signal d c [n] generated by the switching cycle to control the duty cycle of the PWM signal dpwm(t), so as to ensure that the PWM signal output in each switching cycle is right The switching cycle is regulated by the system error voltage signal. The size of the narrow pulse signal is related to the operating clock of the analog-to-digital converter ADC and the digital compensator, which is the sum of the processing time of the ADC and the calculation time of the digital compensator, within the pulse time of a clock signal, using syn (t ) signal as the selection signal, use the actual output of DPWM and the power supply voltage V DD as the selected signal of the two-choice selector, when the syn(t) signal is high, the DPWM output is connected to the power supply voltage, that is, the DPWM is forced to The output signal is high level.

下面结合附图及实例对本发明电路结构、工作原理及工作过程作进一步说明。The circuit structure, working principle and working process of the present invention will be further described below in conjunction with the accompanying drawings and examples.

参看图2和图3,本发明优化的数字控制开关电源跨时钟域控制器中把数字补偿器纳入占空比控制信号处理模块的范畴,DPWM模块中添加系统同步时钟产生电路产生的syn(t)信号替代原本外部给的的时钟信号。同步时钟syn(t)的上升沿意味着一个开关周期的开始,该上升沿会触发图中误差电压信号处理模块中的D触发器中进行数据更新。同步时钟上升沿之后为高电平,高电平期间占空比控制信号由于还没有经过更新,其值依然是上一个开关周期的数据,但这种情况下通过同步时钟控制多路选择器强制DPWM的输出为高电平,不让上一个开关周期的占空比控制信号控制当前开关周期PWM信号的占空比大小。在此期间数字补偿器按式(1)所示的补偿算法完成数字补偿。同步时钟信号的下降沿到来触发当前开关周期的占空比控制信号通过D触发器更新,更新后的数据交给DPWM控制PWM信号占空比的大小,同时同步时钟信号跳变为低电平,此时多路选择器输出DPWM当前开关周期实际的占空比信号。数据随同步时钟信号的变化规律如图4。Referring to Fig. 2 and Fig. 3, digital compensator is brought into the category of duty ratio control signal processing module in the cross-clock domain controller of the digitally controlled switching power supply optimized in the present invention, and syn(t ) signal to replace the original external clock signal. The rising edge of the synchronous clock syn(t) means the start of a switching cycle, and the rising edge will trigger data update in the D flip-flop in the error voltage signal processing module in the figure. After the rising edge of the synchronous clock, it is high level. During the high level period, the duty cycle control signal has not been updated, and its value is still the data of the previous switching cycle. However, in this case, the synchronous clock controls the multiplexer to force The output of DPWM is high level, and the duty cycle control signal of the previous switching cycle is not allowed to control the duty cycle of the PWM signal in the current switching cycle. During this period, the digital compensator completes the digital compensation according to the compensation algorithm shown in formula (1). The falling edge of the synchronous clock signal triggers the duty cycle control signal of the current switching cycle to be updated through the D flip-flop, and the updated data is handed over to the DPWM to control the duty cycle of the PWM signal, and the synchronous clock signal jumps to a low level, At this time, the multiplexer outputs the actual duty ratio signal of the current switching period of the DPWM. Figure 4 shows how the data changes with the synchronous clock signal.

DPWM的输出值dpwm(t)与同步时钟syn(t)的关系可以看出在同步时钟信号syn(t)为高的时间段内,PWM输出强制为高,当syn(t)变为低时,PWM才输出实际的占空比值。所以,这种电路结构中,系统所能输出的最小占空比信号的大小受到时钟同步信号的限制,而不能达到理想的零占空比。但从开关电源实际工作情况来看,系统在PWM工作模式下基本不会出现需要一个开关周期内占空比信号为零的需求,因此所能输出最小占空比信号的限制对实际电路工作没有影响。本发明控制器的同步时钟信号和占空比信号如图7,其中1为占空比信号,2为同步时钟信号。The relationship between the output value dpwm(t) of DPWM and the synchronous clock syn(t) can be seen that during the time period when the synchronous clock signal syn(t) is high, the PWM output is forced to be high, and when syn(t) becomes low , PWM will output the actual duty cycle value. Therefore, in this circuit structure, the size of the minimum duty cycle signal that the system can output is limited by the clock synchronization signal, and the ideal zero duty cycle cannot be achieved. However, judging from the actual working conditions of the switching power supply, the system basically does not require the duty cycle signal to be zero within one switching cycle in the PWM working mode, so the limit of the minimum duty cycle signal that can be output has no effect on the actual circuit work. Influence. The synchronous clock signal and duty ratio signal of the controller of the present invention are shown in Figure 7, wherein 1 is the duty ratio signal, and 2 is the synchronous clock signal.

本发明中同步时钟产生电路是通过复用数字电源中DPWM部分的计数器设计脉冲发生电路实现的,参看图5,时钟逻辑电路由若干D触发器、与门、非门组成,通过复用DPWM的计数器得到时钟脉冲发生电路,计数器输出信号经过第一D触发器延时后再反馈到计数器输入端,同时计数器输出信号取反后送入第二D触发器,第二D触发器反相端信号接入第三D触发器的输入端,其中第二D触发器和第三D触发器的同相输出端送入一个两输入与门,所述两输入与门的输出即为同步时钟信号。该电路中,输入时钟信号clk_in的上升沿会触发第一D触发器DFF更新数据,导致计数器输出信号N[n-1:0]加一。计数开始后(2n-1)个计数周期内,计数器输出的最高位N[n-1]一直为‘0’;经过2n个周期后计数器计满,N[n-1]为‘1’,而同步时钟信号syn(t)在这段时间内一直保持为低电平。(2n+1)个周期后N[n-1]又由‘1’跳变为‘0’。这时第二D触发器DFF0的Q端输出高电平,NQ端输出低电平;而第三D触发器DFF1的输出仍保持之前的‘1’,两个D触发器的输出通过与逻辑后导致该同步信号跳变为高电平,经过一个clk_in信号周期后第三D触发器DFF1输出跳变为低电平,同步信号也因此跳变为低电平。当计数器输出值再次变为零的情况下同步信号会再次发生正跳变,因此该同步信号的周期恰好是开关周期,占空比为1/32。数字控制开关电源跨时钟域控制器的计数器、同步时钟发生器电路工作波形如图6所示。另外由于同步信号正跳变发生在计数器输出零值的时刻,此时PWM信号也会发生正跳变,因此同步信号的正跳变意味一个开关周期的开始,该同步信号完全可以满足系统数据同步的需要。In the present invention, the synchronous clock generation circuit is realized by multiplexing the counter design pulse generating circuit of the DPWM part in the digital power supply. Referring to Fig. 5, the clock logic circuit is composed of several D flip-flops, AND gates and NOT gates. The counter gets the clock pulse generation circuit, and the output signal of the counter is fed back to the input terminal of the counter after being delayed by the first D flip-flop. At the same time, the output signal of the counter is reversed and sent to the second D flip-flop, and the signal at the inverting terminal of the second D flip-flop The input terminal of the third D flip-flop is connected, wherein the non-inverting output terminals of the second D flip-flop and the third D flip-flop are sent to a two-input AND gate, and the output of the two-input AND gate is a synchronous clock signal. In this circuit, the rising edge of the input clock signal clk_in will trigger the first D flip-flop DFF to update data, causing the counter output signal N[n-1:0] to be increased by one. Within (2 n -1) counting cycles after the counting starts, the highest bit N[n-1] of the counter output is always '0'; after 2 n cycles, the counter is full, and N[n-1] is '1'', while the synchronous clock signal syn(t) remains low during this period. After (2 n +1) cycles, N[n-1] jumps from '1' to '0' again. At this time, the Q terminal of the second D flip-flop DFF0 outputs a high level, and the NQ terminal outputs a low level; while the output of the third D flip-flop DFF1 still maintains the previous '1', and the outputs of the two D flip-flops pass through the AND logic Afterwards, the synchronous signal transitions to a high level, and after one cycle of the clk_in signal, the output of the third D flip-flop DFF1 transitions to a low level, and the synchronous signal also transitions to a low level. When the counter output value becomes zero again, the synchronization signal will jump again, so the period of the synchronization signal is exactly the switching period, and the duty ratio is 1/32. Figure 6 shows the working waveform of the counter and synchronous clock generator circuit of the digitally controlled switching power supply cross-clock domain controller. In addition, since the positive transition of the synchronization signal occurs at the moment when the counter outputs a zero value, the PWM signal will also undergo a positive transition at this time, so the positive transition of the synchronization signal means the beginning of a switching cycle, and the synchronization signal can fully satisfy the system data synchronization. needs.

Claims (2)

1. a digital control Switching Power Supply cross clock domain controller is connected with Switching Power Supply, it is characterized in that controller comprises potential-divider network H Sense, analog to digital converter ADC, error voltage signal processing module, duty cycle control signal processing module, digital pulse width modulation circuit DPWM, logical circuit of clock and drive circuit, the duty cycle control signal processing module comprises the register that digital compensator and d type flip flop are formed, Switching Power Supply output end signal V Out(t) through potential-divider network H SenseGathered by analog to digital converter ADC after the dividing potential drop and quantize to obtain digital signal V o[n], digital signal V o[n] and default discrete reference voltage V Ref[n] input error voltage signal processing module, both in the error voltage signal processing module, subtract each other obtain error voltage signal e[n], error voltage signal e[n] carry out data processing, the output d of duty cycle control signal processing module in the input digit compensator c[n] is again through digital pulse width modulation circuit DPWM modulation, and by the voltage control signal d (t) that produces Switching Power Supply after the drive circuit amplification, wherein logical circuit of clock provides the synchronizing clock signals syn (t) of controller each several part;
Controller is regulated the size of a duty ratio in each switch periods of Switching Power Supply, and finish the renewal of error voltage signal and duty cycle control signal simultaneously: controller carries out sequencing control by a synchronizing clock signals syn (t), when rising edge of clock signal arrives, analog to digital converter ADC starts work, carry out data acquisition process, upgrade the data of error voltage signal processing module simultaneously, when the trailing edge of clock signal arrives, trigger the Data Update of duty cycle control signal processing module, and with up-to-date duty cycle control signal d[n] pass to digital pulse width modulation circuit DPWM and handle in real time, wherein synchronizing clock signals syn (t) is set to a narrow pulse signal that duty ratio is very little, the size of described narrow pulse signal is relevant with the work clock of analog to digital converter ADC and digital compensator, be the processing time of analog to digital converter ADC and sum computing time of digital compensator, in a switch periods, utilize synchronizing clock signals syn (t) as selecting signal, with digital pulse width actual output of modulation circuit DPWM and supply voltage V DDSelected signal as the alternative selector, when synchronizing clock signals syn (t) is high level, make digital pulse width modulation circuit DPWM output and supply voltage connect, promptly force to make that the pwm signal of output is a high level, re-use the duty cycle control signal d[n of actual generations of this switch periods after synchronizing clock signals syn (t) trailing edge] the duty ratio size of the output signal dpwm (t) of control figure pulse-width modulation circuit DPWM, the pwm signal that assurance digital pulse width modulation circuit DPWM exports in each switch periods is that the systematic error voltage signal of this switch periods is regulated.
2. digital control Switching Power Supply cross clock domain controller according to claim 1, it is characterized in that logical circuit of clock is by some d type flip flops, two inputs are formed with door and not gate, counter by digital multiplexing pulse-width modulation circuit DPWM obtains clock circuit, counter output signal feeds back to the counter input after delaying time through first d type flip flop again, send into second d type flip flop after the negate of unison counter output signal process not gate, the second d type flip flop end of oppisite phase signal inserts the input of 3d flip-flop, wherein the in-phase output end of second d type flip flop and 3d flip-flop is sent into one two input and door, and described two inputs are synchronizing clock signals with the output of door.
CN 201010541433 2010-11-11 2010-11-11 Clock domain crossing controller of digital control switch power supply and control method thereof Expired - Fee Related CN102025276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010541433 CN102025276B (en) 2010-11-11 2010-11-11 Clock domain crossing controller of digital control switch power supply and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010541433 CN102025276B (en) 2010-11-11 2010-11-11 Clock domain crossing controller of digital control switch power supply and control method thereof

Publications (2)

Publication Number Publication Date
CN102025276A CN102025276A (en) 2011-04-20
CN102025276B true CN102025276B (en) 2013-07-31

Family

ID=43866246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010541433 Expired - Fee Related CN102025276B (en) 2010-11-11 2010-11-11 Clock domain crossing controller of digital control switch power supply and control method thereof

Country Status (1)

Country Link
CN (1) CN102025276B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202306199U (en) * 2011-07-27 2012-07-04 中兴通讯股份有限公司 Digital power supply and circuit board
CN102694466B (en) * 2012-05-16 2015-06-10 无锡创想华微科技有限公司 Device and method for controlling digital power supply
CN102880443B (en) * 2012-08-31 2014-11-05 深圳市英威腾电气股份有限公司 Data processing method and related devices for data processing method
CN103914578A (en) * 2012-12-28 2014-07-09 北京中电华大电子设计有限责任公司 Combinational logic circuit capable of maintaining duty ratio
CN103986327A (en) * 2014-05-16 2014-08-13 西北工业大学 Adjacent Cycle Sampling Voltage Control Method for Digitally Controlled Step-Down DC-DC Switching Converter
CN104467426B (en) * 2014-09-22 2017-06-23 杭州电子科技大学 A kind of digital DC DC switching power circuits
CN108331577A (en) * 2017-12-27 2018-07-27 北京六合伟业科技股份有限公司 Through non magnetic drill collar and MWD wireless communication systems and method in oil drilling
CN113676162B (en) * 2018-03-26 2024-02-23 南京矽力微电子技术有限公司 Pulse signal level calculating method and circuit
CN109167519A (en) * 2018-10-18 2019-01-08 哈尔滨理工大学 A kind of inverse-excitation type switch power-supply digital loop compensator
CN109391247B (en) * 2018-12-10 2024-05-03 珠海一微半导体股份有限公司 Filter, processing circuit and chip based on PWM signal
US10784767B1 (en) * 2019-05-30 2020-09-22 Astec International Limited Switching power converters with adaptively triggered analog-to-digital converters
CN110661513B (en) * 2019-08-15 2022-09-13 合肥工业大学 Digital pulse width modulation circuit and working method
CN110515419B (en) * 2019-08-23 2023-03-10 天津芯海创科技有限公司 Device for realizing clock domain crossing by optimizing Gray code encoding mode
CN111277143B (en) * 2020-03-10 2021-06-04 电子科技大学 A Digitally Controlled Buck Converter with Enhanced Transient Response
CN111464153A (en) * 2020-05-14 2020-07-28 京东方科技集团股份有限公司 Pulse signal generation circuit, pulse signal generation method, clock generation module and display device
CN112532056B (en) * 2020-11-26 2022-05-27 浙江大学 A DC-DC Power Supply Compensation Control Circuit Based on Voltage Controlled Delay Line
CN112653446B (en) * 2020-12-24 2024-06-04 西安翔腾微电子科技有限公司 CMOS driving circuit with synchronous enabling and output level setting functions and driving method
CN115276621B (en) * 2022-07-07 2024-04-19 重庆御芯微信息技术有限公司 High-precision pulse width modulation method and device
CN116527041A (en) * 2023-07-04 2023-08-01 成都华普电器有限公司 Working frequency synchronization method and device applied to digital power supply
CN116560457B (en) * 2023-07-10 2023-09-15 北京炬玄智能科技有限公司 Inter-clock domain synchronization circuit and method based on IIC communication
CN118282369B (en) * 2024-06-03 2024-08-23 杰华特微电子股份有限公司 High-precision digital pulse modulator and switch converter

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4418788B2 (en) * 2005-10-19 2010-02-24 キヤノン株式会社 Switching power supply, electronic device including the switching power supply, and switching power supply control method
US7626837B2 (en) * 2006-08-14 2009-12-01 Agere Systems Inc. Digitally controlled current-mode switched power supply

Also Published As

Publication number Publication date
CN102025276A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN102025276B (en) Clock domain crossing controller of digital control switch power supply and control method thereof
CN100517181C (en) A processor and its frequency reduction device and method
CN110661513B (en) Digital pulse width modulation circuit and working method
CN102394643B (en) Digital pulse width modulator based on digital delayed-locked loop (DLL)
US7646808B2 (en) Allowing immediate update of pulse width modulation values
CN103178809B (en) A kind of DDS porch control method, module and pulse signal generator
CN102035514B (en) Control method for digital pulse width modulation (DPWM) circuit
CN106533401A (en) DPWM module for synchronous segmentation delay chain based on FPGA
CN110120798B (en) DPWM circuit with double-edge trigger mixed structure and control method thereof
CN107222189B (en) A digital pulse width modulator
CN110690879B (en) Parameter-adjustable PWM controller based on programmable device and PWM pulse generation method
CN105978539B (en) A kind of quick clock that structure is simplified stretching circuit
JP2022543269A (en) A Digital Zero Current Switching Lock-in Controller for Optimal Operation of Resonant Switched Capacitor Converters (SCCs)
CN104156024B (en) A kind of adaptive voltage scaling device
CN111884631A (en) A Digital Pulse Width Modulation Module Using Hybrid Structure
CN103812504B (en) Phase correction device and phase correction method
CN110176927A (en) The digital pulse-width modulator being made of segmented speed delay chain and single delay phase-locked loop
EP1819050B1 (en) Delay line calibration circuit comprising asynchronous arbiter element
CN104639159B (en) A kind of super low-power consumption and without metastable frequency digital quantizer
CN109104170A (en) An Adaptive Broadband Digital Clock Interpolator Unit
CN201956987U (en) High-speed and low-consumption DPWM used in adjustable output NC power supply
US7327300B1 (en) System and method for generating a pulse width modulated signal having variable duty cycle resolution
CN106357112A (en) Compensation method for reducing nonlinearity caused by ADC (Analog Digital Converter) quantification effect of DC/DC (Direct Current/Direct Current) converter
CN104639042A (en) Low-power-consumption adjustable frequency multiplier
WO2023235164A1 (en) Anti-aging clock source multiplexing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130731

Termination date: 20151111

EXPY Termination of patent right or utility model