CN116388552B - Switching circuit control method, control chip and switching circuit - Google Patents

Switching circuit control method, control chip and switching circuit Download PDF

Info

Publication number
CN116388552B
CN116388552B CN202310668140.5A CN202310668140A CN116388552B CN 116388552 B CN116388552 B CN 116388552B CN 202310668140 A CN202310668140 A CN 202310668140A CN 116388552 B CN116388552 B CN 116388552B
Authority
CN
China
Prior art keywords
valley
switching
working stage
inductor
nth
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
Application number
CN202310668140.5A
Other languages
Chinese (zh)
Other versions
CN116388552A (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.)
Fanta Semiconductor Technology Hangzhou Co ltd
Original Assignee
Fanta Semiconductor Technology Hangzhou 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 Fanta Semiconductor Technology Hangzhou Co ltd filed Critical Fanta Semiconductor Technology Hangzhou Co ltd
Priority to CN202310668140.5A priority Critical patent/CN116388552B/en
Priority to CN202311147895.7A priority patent/CN117175906A/en
Publication of CN116388552A publication Critical patent/CN116388552A/en
Application granted granted Critical
Publication of CN116388552B publication Critical patent/CN116388552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/42Circuits or arrangements for compensating for or adjusting power factor in converters or inverters
    • H02M1/4208Arrangements for improving power factor of AC input
    • H02M1/4225Arrangements for improving power factor of AC input using a non-isolated boost converter
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/08Circuits specially adapted for the generation of control voltages for semiconductor devices incorporated in static converters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/10Technologies improving the efficiency by using switched-mode power supplies [SMPS], i.e. efficient power electronics conversion e.g. power factor correction or reduction of losses in power supplies or efficient standby modes

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Inverter Devices (AREA)
  • Rectifiers (AREA)
  • Electronic Switches (AREA)

Abstract

The embodiment of the invention provides a switching circuit control method, a control chip and a switching circuit. The switching circuit control method is used for controlling a switching circuit, the switching circuit at least comprises an inductor and a switching tube capable of controlling the inductor to perform excitation, and the switching circuit at least comprises an N-th working stage, an (N+1) -th working stage … … and an (N+M) -th working stage; in the N working stage, the switching tube is opened at the Nth valley bottom, in the (N+1) working stage, the switching tube is opened … … at the (N+1) th valley bottom, in the (N+M) working stage, the switching tube is opened at the (N+M) th valley bottom; when the first preset condition group is met, the switching circuit is sequentially switched to the (N+M) th working stage from the N-th working stage and the (N+1) th working stage … …; wherein N and M are positive integers; the first preset condition group characterizes that the reference current of the inductor gradually decreases. The control method can sequentially and adaptively control the switching tube to be turned on at the valley bottom, and has a more stable control effect.

Description

开关电路控制方法、控制芯片及开关电路Switching circuit control method, control chip and switching circuit

技术领域Technical field

本发明涉及开关电路控制领域,尤其涉及一种开关电路控制方法、控制芯片及开关电路。The present invention relates to the field of switch circuit control, and in particular, to a switch circuit control method, a control chip and a switch circuit.

背景技术Background technique

图1展示了传统CRM或DCM工作的单相BOOST PFC控制器及其电路。以该电路为例,在CRM/DCM多模式工作的开关电路中,DCM工作模式下的死区时间Tdcmoff是计算出来的,如果Tdcmoff时间是在谷底数3和谷底数4之间,那么就可能会跳到谷底3开通,若前一个开关周期的谷底为5,那么谷底就会从前一个开关周期的谷底5跳到谷底3,这样不但会因为选择谷底3开通而导致输入电流畸变(平均值电流不准确),还会出现因为谷底开通在不同谷底数而使输入电流因为振荡而产生畸变的问题,从而使iTHD变大;图2说明了这种情况。CRM工作模式下,开关管在第一个谷底开通,而切换到DCM工作时,有可能直接从第一个谷底跳到第三个谷底或更多的谷底开通,有时甚至不从谷底开通,这样会导致电感电流的峰值跳变,例如从Idcm-pk2跳变到Icrm-pk3,如果电流峰值突变很大,容易引起震荡,导致输入电流畸变。Figure 1 shows a single-phase BOOST PFC controller and its circuit operating with conventional CRM or DCM. Taking this circuit as an example, in the CRM/DCM multi-mode switching circuit, the dead time Tdcmoff in the DCM working mode is calculated. If the Tdcmoff time is between the bottom number 3 and the bottom number 4, then it is possible It will jump to the bottom 3 to turn on. If the bottom of the previous switching cycle is 5, then the bottom will jump from the bottom 5 of the previous switching cycle to the bottom 3. This will not only cause the input current distortion (average current) due to the selection of bottom 3 to turn on. Inaccurate), there will also be a problem that the input current is distorted due to oscillation due to the valley opening at different valley numbers, thus making the iTHD larger; Figure 2 illustrates this situation. In the CRM working mode, the switch tube is turned on at the first valley, but when switching to DCM, it may jump directly from the first valley to the third valley or more valleys, and sometimes it is not even switched on from the bottom. In this way It will cause the peak value of the inductor current to jump, for example, from I dcm-pk2 to I crm-pk3 . If the current peak value suddenly changes significantly, it will easily cause oscillation and cause input current distortion.

发明内容Contents of the invention

有鉴于此,本发明实施例提供了一种开关电路控制方法、控制芯片及开关电路。该控制方法可以根据不同工作阶段选择不同的谷底数开通,从而能够实现不同工作阶段之间的切换稳定。In view of this, embodiments of the present invention provide a switching circuit control method, a control chip and a switching circuit. This control method can select different valley numbers to open according to different working stages, thereby achieving stable switching between different working stages.

为解决上述技术问题,本申请采用了如下技术方案:In order to solve the above technical problems, this application adopts the following technical solutions:

一种开关电路控制方法,用于对开关电路进行控制,所述开关电路至少包括电感和能够控制所述电感进行励磁的开关管,所述开关电路至少包括第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段;在第N工作阶段,所述开关管在第N个谷底开通,在第(N+1)工作阶段;所述开关管在第(N+1)个谷底开通……在第(N+M)工作阶段,所述开关管在第(N+M)个谷底开通;当满足第一预设条件群时,所述开关电路由第N工作阶段、第(N+1)工作阶段……依次切换到第(N+M)工作阶段;其中,N和M均为正整数;第一预设条件群表征所述电感的参考电流逐渐减小。A switching circuit control method for controlling a switching circuit. The switching circuit at least includes an inductor and a switching tube capable of controlling the inductor for excitation. The switching circuit at least includes an Nth working stage, an (N+1) ) working stage...(N+M)th working stage; in the Nth working stage, the switching tube is turned on at the Nth valley, and in the (N+1)th working stage; the switching tube is turned on at the (N+th)th working stage; 1) The first valley is turned on... In the (N+M)th working stage, the switch tube is turned on at the (N+M)th valley; when the first preset condition group is met, the switch circuit is operated by the Nth stage, the (N+1)th working stage...switch to the (N+M)th working stage in turn; where N and M are both positive integers; the first preset condition group represents that the reference current of the inductor gradually decreases .

该控制方法根据是否满足第一预设条件群实现谷底个数逐个增加去控制开关管开通,由于相邻工作阶段的谷底开通的谷底数变化只有一个,所以产生的能量差异很小,也就是电感电流的变化很小,从而保证切换的稳定。This control method controls the opening of the switching tube by increasing the number of valleys one by one based on whether the first preset condition group is met. Since the number of valleys opening in adjacent working stages changes only by one, the energy difference generated is very small, that is, the inductance The change of current is very small, thus ensuring the stability of switching.

一种开关电路控制芯片,适用于对开关电路的控制,所述开关电路至少包括电感和能够控制所述电感进行励磁的开关管,所述开关电路至少包括第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段;在第N工作阶段,所述开关管在第N个谷底开通;在第(N+1)工作阶段,所述开关管在第(N+1)个谷底开通……在第(N+M)工作阶段,所述开关管在第(N+M)个谷底开通;所述开关电路控制芯片至少包括自适应谷底数产生单元和自适应锁谷底控制单元;所述自适应谷底数产生单元,用于在满足第一预设条件群时,对N进行加1后得到下一个工作状态的开通谷底数,并用(N+1)更新N,直至得到第(N+M)工作阶段的开通谷底数(N+M),并将各个工作阶段的开通谷底数发送至所述自适应锁谷底控制单元;第一预设条件群表征电感的参考电流逐渐减小;所述自适应锁谷底控制单元,用于根据所述自适应谷底数产生单元计算得到的开通谷底数,产生对应的控制所述开关管开通的控制信号;其中,N和M均为正整数。A switching circuit control chip, suitable for controlling a switching circuit. The switching circuit at least includes an inductor and a switching tube capable of controlling the inductor for excitation. The switching circuit at least includes an Nth working stage, an (N+1) ) working stage...the (N+M) working stage; in the N working stage, the switch tube is turned on at the Nth valley; in the (N+1) working stage, the switching tube is turned on at the (N+ 1) The first valley is turned on... In the (N+M)th working stage, the switch tube is turned on at the (N+M)th valley; the switch circuit control chip at least includes an adaptive valley number generation unit and an adaptive lock. Valley control unit; the adaptive valley number generation unit is used to add 1 to N to obtain the opening valley number of the next working state when the first preset condition group is met, and update N with (N+1), Until the opening valley number (N+M) of the (N+M)th working stage is obtained, and the opening valley number of each working stage is sent to the adaptive locking valley control unit; the first preset condition group represents the reference of the inductor The current gradually decreases; the adaptive locking valley control unit is used to generate a corresponding control signal for controlling the opening of the switch tube according to the opening valley number calculated by the adaptive valley number generating unit; wherein, N and M are all positive integers.

该控制芯片能够实现按是否满足第一预设条件群实现谷底个数逐个增加去控制开关管开通,由于相邻工作阶段的谷底开通的谷底数变化只有一个,所以产生的能量差异很小,也就是电感电流的变化很小,从而保证切换的稳定。The control chip can control the opening of the switch tube by increasing the number of valleys one by one according to whether the first preset condition group is met. Since the number of valley openings in adjacent working stages changes only by one, the energy difference generated is very small. That is, the change in the inductor current is very small, thus ensuring stable switching.

一种开关电路,包括开关单元、输出电压采样单元、输入电压采样单元、电流采样单元、电感电流过零采样单元和上述的开关电路控制芯片;所述输出电压采样单元与所述开关单元输出端电连接,采样输出电压采样信号;所述输入电压采样单元与所述开关单元输入端电连接,采样输入电压采样信号;所述输出电压采样单元和输入电压采样单元还与所述开关电路控制芯片的参考电流产生单元电连接;所述电流采样单元与所述开关单元电连接,采样所述开关单元的电感电流采样信号;所述电感电流过零采样单元与所述开关单元电连接,用于获取所述开关单元的电感的电感电流过零信号;所述电流采样单元与所述开关电路控制芯片的Ton信号控制单元电连接;所述电感电流过零采样单元与所述开关电路控制芯片的自适应锁谷底控制单元电连接;所述开关电路控制芯片至少用于根据所述输出电压采样信号、输入电压采样信号、电感电流采样信号和电感电流过零信号控制所述开关单元工作。A switching circuit, including a switching unit, an output voltage sampling unit, an input voltage sampling unit, a current sampling unit, an inductor current zero-crossing sampling unit and the above-mentioned switching circuit control chip; the output voltage sampling unit and the switching unit output end Electrically connected to sample the output voltage sampling signal; the input voltage sampling unit is electrically connected to the input end of the switch unit to sample the input voltage sampling signal; the output voltage sampling unit and the input voltage sampling unit are also connected to the switch circuit control chip The reference current generating unit is electrically connected; the current sampling unit is electrically connected to the switch unit, and the inductor current sampling signal of the switch unit is sampled; the inductor current zero-crossing sampling unit is electrically connected to the switch unit, for Obtain the inductor current zero-crossing signal of the inductor of the switch unit; the current sampling unit is electrically connected to the Ton signal control unit of the switch circuit control chip; the inductor current zero-crossing sampling unit is electrically connected to the switch circuit control chip. The adaptive lock bottom control unit is electrically connected; the switch circuit control chip is at least used to control the operation of the switch unit according to the output voltage sampling signal, the input voltage sampling signal, the inductor current sampling signal and the inductor current zero-crossing signal.

该开关电路在上述开关电路控制芯片的控制下,能够实现谷底个数逐个增加去开通开关管,由于相邻工作阶段的谷底开通的谷底数变化只有一个,所以产生的能量差异很小,也就是电感电流的变化很小,从而保证电路控制的稳定性。Under the control of the above-mentioned switch circuit control chip, the switching circuit can realize the number of valleys to be increased one by one to turn on the switching tube. Since the number of valleys to turn on at the valleys in adjacent working stages changes only by one, the energy difference generated is very small, that is, The change in inductor current is very small, thus ensuring the stability of circuit control.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图,但应属于本申请保护范围。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention and are not relevant to the present invention. For those of ordinary skill in the field, other drawings can be obtained based on these drawings without exerting creative efforts, but these drawings should fall within the protection scope of this application.

图1为现有技术中一种boost电路的示意图;Figure 1 is a schematic diagram of a boost circuit in the prior art;

图2为图1所述的boost电路的波形示意图;Figure 2 is a schematic waveform diagram of the boost circuit described in Figure 1;

图3为本发明实施例提供的一种控制方法流程图;Figure 3 is a flow chart of a control method provided by an embodiment of the present invention;

图4为本发明实施例根据图3所示控制方法的波形示意图;Figure 4 is a schematic waveform diagram according to the control method shown in Figure 3 according to the embodiment of the present invention;

图5为本发明实施例提供的第一种第一/第二预设条件群的波形示意图;Figure 5 is a schematic waveform diagram of the first first/second preset condition group provided by the embodiment of the present invention;

图6为本发明实施例提供的第一种第一/第二预设条件群的另一波形示意图;Figure 6 is another waveform schematic diagram of the first first/second preset condition group provided by the embodiment of the present invention;

图7为本发明实施例提供的第二种第一/第二预设条件群的波形示意图;Figure 7 is a schematic waveform diagram of the second first/second preset condition group provided by the embodiment of the present invention;

图8为本发明实施例提供的第三种第一/第二预设条件群的波形示意图;Figure 8 is a schematic waveform diagram of the third first/second preset condition group provided by the embodiment of the present invention;

图9为本发明实施例提供的一种使用计时方式获取谷底的波形示意图;Figure 9 is a schematic diagram of a waveform obtained using a timing method according to an embodiment of the present invention;

图10为本发明实施例提供的设有最大关断时间的开关管开通控制流程图;Figure 10 is a flow chart of switching tube opening control with a maximum off time provided by an embodiment of the present invention;

图11为本发明实施例提供的一种获取最大谷底数的流程示意图;Figure 11 is a schematic flowchart of obtaining the maximum number of valleys provided by an embodiment of the present invention;

图12为本发明实施例提供的一种开关电路控制芯片的框图;Figure 12 is a block diagram of a switch circuit control chip provided by an embodiment of the present invention;

图13为本发明实施例提供的另一种开关电路控制芯片的框图;Figure 13 is a block diagram of another switch circuit control chip provided by an embodiment of the present invention;

图14为本发明实施例提供的一种开关电路的示意图。Figure 14 is a schematic diagram of a switching circuit provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。In order to better understand the technical solution of the present invention, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be clear that the described embodiments are only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.

在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。电连接包括直接电连接和间接电连接。The terminology used in the embodiments of the present invention is only for the purpose of describing specific embodiments and is not intended to limit the present invention. As used in this embodiment and the appended claims, the singular forms "a," "the" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. Electrical connections include direct electrical connections and indirect electrical connections.

应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,甲和/或乙,可以表示:单独存在甲,同时存在甲和乙,单独存在乙这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this article is only an association relationship describing related objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, and A and A exist simultaneously. B, there are three situations of B alone. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.

开关电路拓扑有boost(升压)电路及其衍生的图腾柱无桥BOOST PFC(功率因素校正)电路,buck(降压)电路、flyback(反激变换)电路等等。开关电路至少包含开关管和电感,常见的单相boost电路如图1所示,通过对开关管Q控制实现电源转换功能或者功率因素校正功能。根据电感电流的控制形式,开关电路具有3个工作模式:CCM工作模式(Continuous Conduction Mode:电感电流连续模式)、DCM工作模式(DiscontinuousConduction Mode:电感电流断续模式)和CRM工作模式(Critical Conduction mode:临界导通模式)。本申请主要对DCM工作模式或者CRM工作模式切换到DCM工作模式的控制方法进行改进以实现更优化的控制。Switching circuit topology includes boost (boost) circuit and its derived totem pole bridgeless BOOST PFC (power factor correction) circuit, buck (step-down) circuit, flyback (flyback conversion) circuit, etc. The switching circuit at least includes a switching tube and an inductor. A common single-phase boost circuit is shown in Figure 1. The power conversion function or power factor correction function is achieved by controlling the switching tube Q. According to the control form of the inductor current, the switching circuit has three working modes: CCM working mode (Continuous Conduction Mode: inductor current continuous mode), DCM working mode (DiscontinuousConduction Mode: inductor current discontinuous mode) and CRM working mode (Critical Conduction mode) : critical conduction mode). This application mainly improves the control method of switching from the DCM working mode or the CRM working mode to the DCM working mode to achieve more optimized control.

具体的,本申请实施例提供了一种开关电路控制方法,用于对开关电路进行控制,所述开关电路至少包括电感和能够控制该电感进行励磁的开关管,所述开关电路至少包括(M+1)个工作阶段:第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段。每个工作阶段的开关管开通谷底不同,但是依次增加或减少1个:在第N工作阶段,所述开关管在第N个谷底开通;在第(N+1)工作阶段,所述开关管在第(N+1)个谷底开通……在第(N+M)工作阶段,所述开关管在第(N+M)个谷底开通。其中,N和M均为正整数。相邻工作阶段的切换条件由第一预设条件群决定,如图3所示,该控制方法包括步骤S11:判断开关电路的相关参数是否满足第一预设条件群;S12:若满足,则进行工作阶段的切换。即,当满足第一预设条件群时,开关电路由第N工作阶段、第(N+1)工作阶段……依次逐步切换到第(N+M)工作阶段。当满足第二预设条件群时,所述开关电路依次从第(N+M)工作阶段切换到第N工作阶段,即,所述开关电路依次从第(N+M)工作阶段、第(N+M-1)工作阶段……第(N+1)工作阶段切换到第N工作阶段,工作阶段的个数由M的大小决定。第一预设条件群表征电感的参考电流逐渐减小,而第二预设条件群表征电感的参考电流逐渐增大。Specifically, embodiments of the present application provide a switching circuit control method for controlling a switching circuit. The switching circuit at least includes an inductor and a switching tube capable of controlling the inductor for excitation. The switching circuit at least includes (M +1) work stage: Nth work stage, (N+1)th work stage... (N+M)th work stage. The opening valleys of the switching tubes in each working stage are different, but they increase or decrease by one in turn: in the Nth working stage, the switching tubes are opened at the Nth valley; in the (N+1)th working stage, the switching tubes are turned on Turn on at the (N+1)th valley... In the (N+M)th working stage, the switch tube turns on at the (N+M)th valley. Among them, N and M are both positive integers. The switching conditions of adjacent working stages are determined by the first preset condition group. As shown in Figure 3, the control method includes steps S11: Determine whether the relevant parameters of the switching circuit satisfy the first preset condition group; S12: If satisfied, then Switch work phases. That is, when the first preset condition group is satisfied, the switching circuit gradually switches from the Nth working stage, the (N+1)th working stage... to the (N+M)th working stage in sequence. When the second preset condition group is satisfied, the switch circuit switches from the (N+M)th working stage to the Nth working stage in sequence, that is, the switch circuit switches from the (N+M)th working stage to the (N+M)th working stage in sequence. N+M-1) Work stage...The (N+1)th work stage switches to the Nth work stage. The number of work stages is determined by the size of M. The first preset condition group represents that the reference current of the inductor gradually decreases, and the second preset condition group represents that the reference current of the inductor gradually increases.

该控制方法能使CRM到DCM的切换工作,或DCM工作时,死区时间Tdcmoff变化是按一定的规则实现谷底个数逐个增加去开通或谷底个数逐个去减小开通的,由于相邻工作阶段的谷底开通的谷底数变化只有一个,所以产生的能量差异很小,也就是电感电流的变化很小,从而保证切换的稳定。其中,CRM工作模式下,开关管在第1个谷底开通。另外,在该控制方法中,由于每次开通的谷底是预先知道的,所以能更准确的计算出电感电流的平均值。这样不但能够实现高效率,而且输入电流畸变小,iTHD的很小。This control method can make the switch from CRM to DCM work, or when DCM is working, the dead time Tdcmoff changes according to certain rules to realize that the number of valleys is increased one by one to activate or the number of valleys is reduced one by one to activate. Due to the adjacent work There is only one change in the number of valley openings at the bottom of the stage, so the energy difference generated is very small, that is, the change in the inductor current is very small, thus ensuring the stability of switching. Among them, in the CRM working mode, the switch tube is turned on at the first bottom. In addition, in this control method, since the bottom of each turn-on is known in advance, the average value of the inductor current can be calculated more accurately. This not only achieves high efficiency, but also has small input current distortion and very small iTHD.

上述控制方法在DCM工作模式下和DCM切换到CRM工作模式时的电感电流波形IL、开关管的Vds波形、开关管关断信号Vrst时序图、Vds谷底Vsetzcd时序图和开关管的驱动信号Vgate时序图如图4所示,具体的,由DCM工作模式下的第三工作阶段(第三个谷底开通)、第二工作阶段(第二个谷底开通)切换CRM工作模式下的第一工作阶段(第一个谷底开通)。Vds指的是开关管的漏极(D极)和源极(S极)之间的电压,死区时间内的Vds的变化是由开关管的寄生电容/电感与其它器件发生谐振产生的。如图4所示,DCM工作模式下和DCM切换到CRM时,按一定规格在不同谷底开通且谷底数是逐个增加或逐个减小的,也就是锁定谷底开通的。当谷底锁定时,就可以定时得到Tdcmoff(n)的时间,这样就可以根据公式(1)调节DCM工作模式下对应工作阶段的参考电流峰值Idcm-PK(n),或者,通过开关管开通时间Tdcmon(n)间接调整Idcm-PK(n),使每个工作阶段的电感电流平均值等于Iin-ac,Iin-ac是跟输入电压同频同相的交流电流信号。The above control method shows the inductor current waveform IL , the Vds waveform of the switch tube, the switch tube turn-off signal Vrst timing diagram, the Vds bottom Vsetzcd timing diagram and the switch tube drive signal Vgate in the DCM operating mode and when the DCM switches to the CRM operating mode. The timing diagram is shown in Figure 4. Specifically, the third working stage in the DCM working mode (the third valley activation) and the second working stage (the second valley activation) switch to the first working phase in the CRM working mode. (The first valley opens). Vds refers to the voltage between the drain (D pole) and source (S pole) of the switch tube. The change in Vds during the dead time is caused by the resonance between the parasitic capacitance/inductance of the switch tube and other devices. As shown in Figure 4, in DCM working mode and when DCM switches to CRM, it is activated at different valleys according to certain specifications and the number of valleys increases or decreases one by one, that is, the valley activation is locked. When the valley is locked, the time of Tdcmoff (n) can be obtained regularly, so that the reference current peak value I dcm-PK (n) of the corresponding working stage in the DCM working mode can be adjusted according to formula (1), or the switching tube can be turned on. Time Tdcmon (n) indirectly adjusts I dcm-PK (n) so that the average value of the inductor current in each working stage is equal to I in-ac . I in-ac is an AC current signal with the same frequency and phase as the input voltage.

Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n)+Tdcmoff(n))/ Tdcmzcd(n)…公式(1);I dcm-PK (n) = 2*I ref-ac (n) * (T dcmzcd (n) + T dcmoff (n))/T dcmzcd (n)...Formula (1);

其中,Iref-ac(n)为第n工作阶段的电感电流参考平均值,与Iin-ac成正比;Tdcmzcd(n)为第n工作阶段所述电感励磁和退磁的时间之和;所述Tdcmoff(n)为第n工作阶段所述电感退磁后的死区时间;所述第n个工作阶段在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤n≤(N+M)。Among them, I ref-ac (n) is the reference average value of the inductor current in the n-th working stage, which is proportional to I in-ac ; T dcmzcd (n) is the sum of the inductor excitation and demagnetization times in the n-th working stage; The T dcmoff (n) is the dead time after demagnetization of the inductor in the nth working stage; the nth working stage is turned on at the nth valley, and the dead time is (n-1) resonance cycles ; When the inductor current reaches the peak reference current I dcm-PK (n), the switch tube is controlled to turn off; where n is a positive integer and N≤n≤(N+M).

另外,也可以利用前一个开关周期的信息调节参考电流峰值Idcm-PK(n),即,通过公式(2)调节DCM工作模式下对应工作阶段的参考电流峰值Idcm-PK(n);In addition, the information of the previous switching cycle can also be used to adjust the reference current peak value I dcm-PK (n), that is, the reference current peak value I dcm-PK (n) of the corresponding working stage in the DCM operating mode is adjusted through formula (2);

Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n-1)+Tdcmoff(n-1))/Tdcmzcd(n-1)…公式(2);I dcm-PK (n)=2*I ref-ac (n)*(T dcmzcd (n-1)+T dcmoff (n-1))/T dcmzcd (n-1)...Formula (2);

其中,Iref-ac(n)为第n工作阶段的电感电流参考平均值,与Iin-ac成正比;Tdcmzcd(n-1)为第(n-1)工作阶段所述电感励磁和退磁的时间之和;所述Tdcmoff(n-1)为第(n-1)工作阶段所述电感退磁后的死区时间;所述第n个工作阶段在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤(n-1)≤(N+M)。Among them, I ref-ac (n) is the reference average value of the inductor current in the nth working stage, which is proportional to I in-ac ; T dcmzcd (n-1) is the inductor excitation sum in the (n-1)th working stage. The sum of the demagnetization times; the T dcmoff (n-1) is the dead time after the inductor is demagnetized in the (n-1)th working stage; the nth working stage is turned on at the nth valley, and the The dead time is (n-1) resonance periods; when the inductor current reaches the peak reference current I dcm-PK (n), the switch is controlled to turn off; where n is a positive integer and N≤ (n-1)≤(N+M).

具体的,在一个实施例中,参考图5和图6,在一个工频周期中,开关电路具有多个模式(DCM/CRM/CCM),模式之间的切换由电感电流的参考瞬时值和预设的模式切换阈值决定;图5具有DCM、CRM和CCM工作模式;而图6具有CRM和DCM工作模式。本申请对CCM工作模式的控制及各模式的切换条件不作限定。本实施例中,多个工作阶段出现在同一工频周期内,在一个工频周期内,预设有(M+1)个预设参考值:RefN、Ref(N+1)……Ref(N+M)。第一预设条件群包括电感电流的参考瞬时值Iref_ac_trans由第(N)预设参考值RefN依次降低到第(N+M)预设参考值Ref(N+M);第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段位于同一个工频周期。Specifically, in one embodiment, referring to Figures 5 and 6, in a power frequency cycle, the switching circuit has multiple modes (DCM/CRM/CCM), and the switching between modes is determined by the reference instantaneous value of the inductor current and The preset mode switching threshold is determined; Figure 5 has DCM, CRM and CCM working modes; while Figure 6 has CRM and DCM working modes. This application does not limit the control of the CCM working mode and the switching conditions of each mode. In this embodiment, multiple working stages occur in the same power frequency cycle. Within one power frequency cycle, there are (M+1) preset reference values: RefN, Ref(N+1)...Ref( N+M). The first preset condition group includes the reference instantaneous value I ref_ac_trans of the inductor current sequentially decreasing from the (N)th preset reference value RefN to the (N+M)th preset reference value Ref(N+M); the Nth working stage, The (N+1) working stage...(N+M) working stage is located in the same power frequency cycle.

第二预设条件群包括电感电流的瞬时参考值Iref_ac_trans由第(N+M)预设参考值Ref(N+M)依次增加到第N预设参考值RefN;第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段位于同一个工频周期。The second preset condition group includes the instantaneous reference value I ref_ac_trans of the inductor current increasing from the (N+M) preset reference value Ref(N+M) to the Nth preset reference value RefN; N+1) working stage...The (N+M) working stage is located in the same power frequency cycle.

图5和图6所示的实施例,一个工频电压或电流周期内,谷底开通是随着参考信号的实时值在一定范围内按谷底数变化而变化的示意。以N=1,M=4为例,Ref5<Ref4<Ref3<Ref2<Ref1,当Iref_ac_trans<Ref5,开关电路工作在第五工作阶段,开关管在第五谷底开通;当Ref5<Iref_ac_trans<Ref4,开关电路工作在第四工作阶段,开关管在第四谷底开通;当Ref4<Iref_ac_trans<Ref3,开关电路工作在第三工作阶段,开关管在第三谷底开通;当Ref3<Iref_ac_trans<Ref2,开关电路工作在第二工作阶段,开关管在第二谷底开通;当Ref2<Iref_ac_trans<Ref1,开关电路工作在第一工作阶段,开关管在第一谷底开通,也为CRM工作模式。其中,Ref1也可以作为CCM和CRM工作模式之间切换的模式切换阈值,Rer2可以作为CRM和DCM工作模式之间切换的模式切换阈值。In the embodiments shown in Figures 5 and 6, within a power frequency voltage or current cycle, the valley opening changes as the real-time value of the reference signal changes according to the number of valleys within a certain range. Taking N=1, M=4 as an example, Ref5<Ref4<Ref3<Ref2<Ref1, when I ref_ac_trans <Ref5, the switch circuit works in the fifth working stage, and the switch tube is turned on at the bottom of the fifth valley; when Ref5<I ref_ac_trans < Ref4, the switching circuit works in the fourth working stage, and the switching tube is turned on at the fourth valley; when Ref4<I ref_ac_trans <Ref3, the switching circuit works in the third working stage, and the switching tube is turned on at the third valley; when Ref3<I ref_ac_trans < Ref2, the switching circuit works in the second working stage, and the switching tube is turned on at the second valley; when Ref2<I ref_ac_trans <Ref1, the switching circuit works in the first working stage, and the switching tube is turned on at the first valley, which is also the CRM working mode. Among them, Ref1 can also be used as the mode switching threshold for switching between CCM and CRM working modes, and Rer2 can be used as the mode switching threshold for switching between CRM and DCM working modes.

在另一个实施例中,如图7所示,本申请提供了一种开关电路控制方法,即谷底开通的数目是根据电感的参考电流峰值的不同而改变,但在一个工频周期内,开通的谷底数是保持不便的。这种工作方式适合CRM或DCM工作的情况。图7中,以N=1为例,说明了从谷底1到谷底(1+M)开通的情况。本实施例中,预设有(M+1)个预设峰值:RefpkN、Refpk(N+1)……Refpk(N+M)。第一预设条件群包括电感电流的参考电流峰值由第(N)预设峰值依次降低到第(N+M)预设峰值;所述第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段位于不同工频周期。In another embodiment, as shown in Figure 7, this application provides a switching circuit control method, that is, the number of valley openings changes according to the reference current peak value of the inductor, but within a power frequency cycle, the number of valley openings is The trough number is kept inconvenient. This way of working is suitable for CRM or DCM working situations. In Figure 7, taking N=1 as an example, the situation of opening from valley 1 to valley (1+M) is illustrated. In this embodiment, there are (M+1) preset peak values: RefpkN, Refpk(N+1)...Refpk(N+M). The first preset condition group includes the reference current peak value of the inductor current decreasing from the (N)th preset peak value to the (N+M)th preset peak value in sequence; the Nth working stage, the (N+1)th working stage... ...The (N+M) working stage is located in different power frequency cycles.

第二预设条件群包括所述电感电流的参考电流峰值由第(N+M)预设峰值依次增加到第N预设峰值;所述第N工作阶段、第(N+1)工作阶段……和第(N+M)工作阶段位于不同工频周期。The second preset condition group includes the reference current peak value of the inductor current increasing from the (N+M)th preset peak value to the Nth preset peak value in sequence; the Nth working stage, the (N+1)th working stage... ...and the (N+M) working stage are located in different power frequency cycles.

在另一个实施例中,为了获取不同工作阶段的切换条件,第一预设条件群可以使用以下步骤获取:In another embodiment, in order to obtain the switching conditions of different working stages, the first preset condition group can be obtained using the following steps:

step1:确定决定谷底数变化的参考信号,该参考信号用于表征输入平均电流的参考信号Iref_valley的峰值或者瞬时值,或者用于表征参考信号Iref_valley的瞬时值和峰值的组合。step1: Determine the reference signal that determines the change in the valley number. This reference signal is used to characterize the peak value or instantaneous value of the reference signal I ref_valley of the input average current, or is used to characterize the combination of the instantaneous value and peak value of the reference signal I ref_valley .

step2:配置切换步进调节因子A,step。A为常数,step根据效率来设置,用于优化效率调试,step值不同,DCM的深度推进速度不同,根据通态损耗和开关损耗确定最后的step值。step2: Configure the switching step adjustment factor A, step. A is a constant, and step is set according to efficiency, which is used to optimize efficiency debugging. Different step values have different depth advancement speeds of DCM. The final step value is determined based on the on-state loss and switching loss.

step3:使用以下公式计算谷底切换阈值。step3: Use the following formula to calculate the valley switching threshold.

Iref_valley(n~ n+1)=Iref_set/(A+n×step);I ref_valley (n~ n+1)=I ref_set / (A+n×step);

其中:Iac_valley(n~n+1)指的是从第n个谷底切换到第(n+1)个谷底的电流参考阈值。Among them: I ac_valley (n~n+1) refers to the current reference threshold switching from the nth valley to the (n+1)th valley.

假设定义CCM为0个谷底,CRM为1个谷底。Iref_set可以定义为CCM工作模式切换到CRM工作模式的模式切换阈值或者CRM工作模式切换到DCM工作模式的模式切换阈值。Assume that CCM is defined as 0 troughs and CRM is 1 trough. I ref_set can be defined as the mode switching threshold for switching the CCM working mode to the CRM working mode or the mode switching threshold for switching the CRM working mode to the DCM working mode.

系统根据以上公式可自动配置CCM/CRM/DCM之间的切换阈值。并且会根据输入平均电流和配置好的参数,自动锁定谷底。锁定谷底后再使用特定的计算公式计算DCM工作模式下的电流环参考,确保输入电流始终跟随输入电压。The system can automatically configure the switching threshold between CCM/CRM/DCM based on the above formula. And it will automatically lock the bottom according to the input average current and configured parameters. After locking the valley, use a specific calculation formula to calculate the current loop reference in DCM operating mode to ensure that the input current always follows the input voltage.

图8中,配置CCM/CRM工作模式之间的切换阈值A为1,参数A=1下不同step值的切换阈值为0.33、0.45、0.59、0.75、0.96、1.22、1.56、2,根据A、step和Iref_set构建出图8的切换曲线。可见,step值可设为多档,在实际工作时,假设使用默认档位step=2,假如CRM工作模态频率太高超过一定限制值,可自动切换step到下一档,以此避免CRM工作频率过高。图纸的变化趋势有利是开关电路,比如BOOST PFC变换器在功率较大时工作第1个~第3个谷底,而在更轻载时工作在更低的谷底数开通,有利于提高效率。In Figure 8, the switching threshold A between CCM/CRM working modes is configured as 1. The switching thresholds of different step values under parameter A=1 are 0.33, 0.45, 0.59, 0.75, 0.96, 1.22, 1.56, 2. According to A, step and I ref_set construct the switching curve in Figure 8. It can be seen that the step value can be set to multiple levels. In actual work, it is assumed that the default level step=2 is used. If the CRM working mode frequency is too high and exceeds a certain limit value, the step can be automatically switched to the next level to avoid CRM The operating frequency is too high. The changing trend of the drawings is favorable for switching circuits. For example, the BOOST PFC converter operates in the first to third valleys when the power is large, and operates at a lower valley number when the power is lighter, which is beneficial to improving efficiency.

本实施例中,第一预设条件群为表征所述电感电流的参考值降低到Iref_valley(n~n+1);其中,Iref_valley(n~ n+1)=Iref_set/(A+n×Step)。而第二预设条件群为电感电流的参考值增加到Iref_valley(n~n-1)=Iref_set/[A+(n-1)×Step],Iac_valley(n~n-1)指的是从第n个谷底切换到第(n-1)个谷底的电流参考阈值。In this embodiment, the first preset condition group is that the reference value representing the inductor current decreases to I ref_valley (n~n+1); where, I ref_valley (n~ n+1)=I ref_set / (A+ n×Step). The second preset condition group is that the reference value of the inductor current increases to I ref_valley (n~n-1)=I ref_set /[A+(n-1)×Step], which I ac_valley (n~n-1) refers to is the current reference threshold for switching from the nth valley to the (n-1)th valley.

当然,除了上述的第一/第二预设条件群以外,还可以设置其它预设条件群,以满足工作阶段切换要求。Iref_valley(n~n+1)/Iref_valley(n~n-1)的计算公式不限于以上的示例,可以是正比例函数、反比例函数、二次方程等,步进调节因子不限于2个,可以为任意个。Of course, in addition to the above-mentioned first/second preset condition group, other preset condition groups can also be set to meet the working stage switching requirements. The calculation formula of I ref_valley (n~n+1)/I ref_valley (n~n-1) is not limited to the above examples. It can be a direct proportional function, an inverse proportional function, a quadratic equation, etc., and the step adjustment factor is not limited to 2. Can be any number.

进一步的,在上述实施例中,谷底可以由电感电流过零检测电路检测得到,比如由电感的ZCD绕组检测得到。但是在DCM工作的关断时间里,Vds的震荡幅值随着时间会逐渐的减小,电感电流也逐渐减小,导致过零检测电路无法检测出Vsetzcd信号,如图9中,在谷底5能够检测到Vsetzcd,在谷底6到谷底8没法检测出来。在这种情况下,本发明技术提供了一种自适应精准模拟检测到谷底的方法,使谷底能够增加并按目标设置的谷底开通。该自适应精准模拟检测谷底的方法会对相邻的两个Vsetzcd信号之间的时间进行计时,如Tr1和Tr2等,Tr1、Tr2……为真正的谐振周期,并用第一时长Trto记录最近的两个谷底之间的时长并保留一定的增量时间Td,即Trto=Tr+Td,将Trto等效为谐振周期,也为相邻两个谷底的谐振时长。在每个Vsetzcd信号来时,用计时器cnt_TO计时Trto。如果在某个时间没有等到Vsetzcd信号,且发现cnt_TO=Trto,则认为已经找到谷底,这个谷底的时间用Trto的时间作为等效的相邻两个谷底的时长。如果这时的谷底数达到了目标值,就产生触发关管开通的信号Vset;如果没有达到,则谷底数增加一个,重复定时,直到谷底数达到目标值。例如图9中,以开通谷底数为第八个为例,谷底5能检测到Vsetzcd信号,但谷底6到谷底8之间都没检测到Vsetzcd信号,则Trto=Tr4+Td。当cnt_TO定时达到Trto时,认为检测到谷底了,谷底数增加1个,这个重复定时,当谷底数达到目标的谷底8时,产生了触发关管开通的信号Vset。Furthermore, in the above embodiment, the valley bottom can be detected by the inductor current zero-crossing detection circuit, such as by the ZCD winding of the inductor. However, during the off time of DCM operation, the oscillation amplitude of Vds will gradually decrease over time, and the inductor current will also gradually decrease, causing the zero-crossing detection circuit to be unable to detect the Vsetzcd signal. As shown in Figure 9, at the bottom of 5 Vsetzcd can be detected, but cannot be detected from valley 6 to valley 8. In this case, the technology of the present invention provides a method of adaptively accurately simulating the detected valley, so that the valley can be increased and opened according to the target set valley. This method of adaptive and precise simulation to detect the bottom of the valley will time the time between two adjacent Vsetzcd signals, such as Tr1 and Tr2, etc., Tr1, Tr2... are the real resonance periods, and use the first duration Trto to record the latest The duration between two valleys retains a certain incremental time Td, that is, Trto=Tr+Td. Trto is equivalent to the resonance period, which is also the resonance duration of two adjacent valleys. When each Vsetzcd signal comes, timer cnt_TO is used to time Trto. If the Vsetzcd signal is not waited for at a certain time and cnt_TO=Trto is found, it is considered that the valley bottom has been found. The time of this valley uses the time of Trto as the equivalent length of two adjacent valleys. If the bottom number at this time reaches the target value, a signal Vset is generated that triggers the opening of the switch. If it does not, the bottom number is increased by one, and the timing is repeated until the bottom number reaches the target value. For example, in Figure 9, taking the eighth opening valley number as an example, the Vsetzcd signal can be detected at valley 5, but no Vsetzcd signal is detected between valley 6 and valley 8, then Trto=Tr4+Td. When the cnt_TO timing reaches Trto, it is considered that the bottom has been detected, and the number of bottoms is increased by 1. This repeated timing, when the number of bottoms reaches the target bottom of 8, generates a signal Vset that triggers the opening of the switch.

本实施例中,每当所述过零检测电路检测到过零信号时,利用计时器cnt_T0计时,若计时期间,所述过零检测电路检测到过零信号,则认为找到谷底,计时清零;若未检测到过零信号且计时时长达到第一时长Trto,也判定该时刻为谷底时刻;再根据所述过零信号和第一时长Trto计算谷底数,直到谷底数到达决定所述开关管开通的谷底数。一般前面几个谷底能用过零检测电路检测得到谷底,随着谐振能力降低,则后面谐振周期谷底需要靠计时器cnt_T0计时得到。In this embodiment, whenever the zero-crossing detection circuit detects a zero-crossing signal, the timer cnt_T0 is used for timing. If the zero-crossing detection circuit detects a zero-crossing signal during the timing period, it is considered that the bottom has been found and the timing is cleared. ; If the zero-crossing signal is not detected and the timing reaches the first duration Trto, the moment is also determined to be the bottom moment; and then the valley number is calculated based on the zero-crossing signal and the first duration Trto until the valley number reaches the determination of the switching tube The opening trough number. Generally, the first few valleys can be detected using the zero-crossing detection circuit. As the resonance capability decreases, the valleys of the subsequent resonance cycles need to be measured by the timer cnt_T0.

进一步的,在上述实施例中,若开关电路工作于DCM工作模式,根据上述开关电路控制方法(也为谷底自适应控制算法)能够计算到各个工作阶段的开通谷底。但是,开通谷底数对应的时间不宜超过开关管的最大关断时间Toffmax。所以,当决定所述开关管开通的谷底未到达、但最大关断时间到达时,控制开关管开通。谷底数n的最大值由DCM工作的最大关断时间Toffmax和谷底之间周期Tr所限定的,若最大关断时间限制为小于等于40us,周期Tr由硬件设计决定,这样最大的谷底数也就限制了。本实施例中,如果依照第一预设条件群设定的最大的谷底数没有达到,而DCM工作的最大关断时间已经达到了Toffmax,则最大谷底数就不需要达到设定的最大值就可以产生Vset信号,触发Vgate为正,控制开关管开通。图10示出了实现该实施例的一种流程示意图。Furthermore, in the above embodiment, if the switching circuit operates in the DCM operating mode, the opening valley of each working stage can be calculated according to the above switching circuit control method (also a valley adaptive control algorithm). However, the time corresponding to the turn-on valley number should not exceed the maximum turn-off time T offmax of the switch tube. Therefore, when the bottom that determines the switch tube to be turned on has not been reached but the maximum off time is reached, the switch tube is controlled to be turned on. The maximum value of the valley number n is limited by the maximum off-time T offmax of DCM operation and the period Tr between valleys. If the maximum off-time is limited to less than or equal to 40us, the period Tr is determined by the hardware design, so the maximum valley number is also It's limited. In this embodiment, if the maximum number of valleys set according to the first preset condition group has not been reached, and the maximum off-time of DCM operation has reached T offmax , then the maximum number of valleys does not need to reach the set maximum value. The Vset signal can be generated, triggering Vgate to be positive, and controlling the switching tube to turn on. Figure 10 shows a schematic flow chart for implementing this embodiment.

开关电路中,开关频率往往是需要限定最低工作频率的,过低的工作频率会带来人耳可识别的噪音,而且过低的开关频率造成的电流纹波也是难以滤除的。而且不同输入电压工作时,工作频率在最低频率工作时,谷底数也是不同的。现有技术往往限定一个固定的最大谷底数,但是在低压下往往在触发最大谷底数之前就已经被最低频率限制住,而高压下又容易造成谷底数超最大谷底限制,造成控制上的不可靠,无法做到兼容高低压,应用受到很大局限。而本申请提供的控制方法中,谷底数n的值是可以自适应变化的,谷底数n可以根据参考信号(电流)的峰值和/或瞬时值而自适应变化的。参考信号值越大,谷底数n的值越小。In switching circuits, the switching frequency often needs to limit the minimum operating frequency. An operating frequency that is too low will cause noise that can be recognized by the human ear, and the current ripple caused by a switching frequency that is too low is difficult to filter out. Moreover, when working with different input voltages and working at the lowest frequency, the valley numbers are also different. Existing technology often limits a fixed maximum number of valleys. However, under low pressure, it is often limited by the lowest frequency before the maximum number of valleys is triggered. Under high pressure, it is easy to cause the number of valleys to exceed the maximum valley limit, resulting in unreliable control. , cannot be compatible with high and low voltages, and its application is greatly limited. In the control method provided by this application, the value of the valley number n can be adaptively changed, and the valley number n can be adaptively changed according to the peak value and/or instantaneous value of the reference signal (current). The larger the reference signal value, the smaller the value of the valley number n.

另外,考虑到噪音问题,开关电路一般设置有最低频率限制,比如25kHz, 当开关周期达到预设值时将强制开通,此时谷底数不再按预期进行,按公式(1)中Idcm-PK(n)运行下的输入电流Iin-ac(n)将违背预期,即Iin-ac发生畸变。因此对于最大谷底数需要做限定,开关管的寄生电容越大或PFC电感量越大时,相应的最大谷底数应该取值较小,以避免因最低频率限制而导致Iin-ac发生畸变。In addition, considering the noise problem, the switching circuit is generally set with a minimum frequency limit, such as 25kHz. When the switching cycle reaches the preset value, it will be forced to turn on. At this time, the valley number no longer proceeds as expected. According to I dcm- in formula (1) The input current I in-ac (n) under PK (n) operation will violate expectations, that is, I in-ac will be distorted. Therefore, the maximum valley number needs to be limited. When the parasitic capacitance of the switch tube is larger or the PFC inductance is larger, the corresponding maximum valley number should be smaller to avoid distortion of I in-ac due to the lowest frequency limit.

如上,考虑到不同的系统需要设置不同的最大谷底数,以实现优化运行,本申请还提出一种自适应最大谷底数选取策略。如图11所示,预设谷底配置初始值为最大谷底数Nvalley_max;在每个(或每N个,即多个)工频半波中进行开关频率侦测,对于较低的开关频率(接近最低限制频率25kHz的值,比如低于35kHz)的开关次数进行计数,记为Nfsw_low,若Nfsw_low大于预设值Nfsw_th_H, 则下一个工频周期中最大谷底数Nvalley_max自动减小1,而当Nfsw_low小于另一预设值Nfsw_th_L时, 则下一个工频周期中最大谷底数Nvalley_max自动增加1。As mentioned above, considering that different systems need to set different maximum valley numbers to achieve optimal operation, this application also proposes an adaptive maximum valley number selection strategy. As shown in Figure 11, the initial value of the preset valley configuration is the maximum number of valleys N valley_max ; switching frequency detection is performed in every (or every N, that is, multiple) power frequency half-waves. For lower switching frequencies ( The number of switches close to the lowest limit frequency 25kHz (for example, lower than 35kHz) is counted and recorded as N fsw_low . If N fsw_low is greater than the preset value N fsw_th_H , the maximum number of valleys N valley_max in the next power frequency cycle is automatically reduced by 1. , and when N fsw_low is less than another preset value N fsw_th_L , the maximum number of valleys N valley_max in the next power frequency cycle is automatically increased by 1.

如此策略下,不论对于不同的输入电压还是不同的负载,Nvalley_max都将自动调整到一个较为优化的值上,实现即不被最低频率25kHz限制而畸变,又将工频半波中的最低开关频率调整到较低值上;从而可以减少人工调试配置时间,且全工作范围内效率优化与THD优化兼得。也就是说,开关电路工作时的,根据第一/第二预设条件群计算得到的最大谷底数小于等于最大谷底数确定模块确定的最大谷底数Nvalley_max,最大开通谷底数即第(N+M)工作阶段的谷底数(N+M)小于等于Nvalley_maxUnder this strategy, regardless of different input voltages or different loads, N valley_max will be automatically adjusted to a more optimized value, so that it is not distorted by the lowest frequency of 25kHz, and the lowest switching value in the power frequency half-wave is achieved. The frequency is adjusted to a lower value; thus manual debugging and configuration time can be reduced, and both efficiency and THD optimization can be achieved within the full working range. That is to say, when the switching circuit is working, the maximum valley number calculated according to the first/second preset condition group is less than or equal to the maximum valley number N valley_max determined by the maximum valley number determination module, and the maximum opening valley number is the (N+ M) The number of valleys in the working stage (N+M) is less than or equal to N valley_max .

采样上述实施例提供的开关电路控制方法,至少具有以下优点中的一个或多个:The switching circuit control method provided by the above embodiments has at least one or more of the following advantages:

1. 保持多模式工作高效率的特点的同时,保证在CRM/DCM工作下,谷底开通的是按规定的规律变化的,保证电感电流的平均值不因为电感电流跳变而震荡畸变。1. While maintaining the high efficiency characteristics of multi-mode operation, it is ensured that under CRM/DCM operation, the valley opening changes according to the prescribed rules, ensuring that the average value of the inductor current does not oscillate and distort due to the jump of the inductor current.

2. 可以自适应配置谷底调整曲线,防止CRM模式工作频率过高。2. The valley adjustment curve can be configured adaptively to prevent the CRM mode working frequency from being too high.

3. 补充策略可以避免低于最低工作频率工作,出现人耳可识别的噪音,和出现较大电流纹波。3. Supplementary strategies can avoid operating below the minimum operating frequency, causing noise that can be recognized by the human ear, and causing large current ripples.

4. 补充策略可以避免出现非谷底开通,造成开关损耗和EMI干扰。4. Supplementary strategies can avoid non-bottom turn-on, causing switching losses and EMI interference.

5. 补充策略可以自动识别所需要的最大谷底数,并在最低频率前锁定谷底,既方便工程师设计,又实现全工作范围内效率优化与THD优化兼得。5. The supplementary strategy can automatically identify the required maximum number of valleys and lock the valley before the lowest frequency, which not only facilitates engineer design, but also achieves both efficiency optimization and THD optimization within the full working range.

为了实现对上述实施例提供的开关电路控制方法,本申请实施例提供一种开关电路控制芯片IC,适用于对开关电路的控制,该开关电路至少包括电感和能够控制电感进行励磁的开关管,开关电路至少包括第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段;在第N工作阶段,所述开关管在第N个谷底开通……在第(N+M)工作阶段,开关管在第(N+M)个谷底开通。如图12所示,该开关电路控制芯片IC至少包括自适应谷底数产生单元11和自适应锁谷底控制单元12;In order to implement the switch circuit control method provided in the above embodiments, embodiments of the present application provide a switch circuit control chip IC, which is suitable for controlling the switch circuit. The switch circuit at least includes an inductor and a switch tube capable of controlling the inductor for excitation. The switching circuit at least includes the Nth working stage, the (N+1)th working stage...the (N+M)th working stage; in the Nth working stage, the switch tube is turned on at the Nth valley...in the (Nth) +M) working stage, the switch tube is turned on at the (N+M)th valley. As shown in Figure 12, the switch circuit control chip IC at least includes an adaptive valley number generation unit 11 and an adaptive lock valley control unit 12;

自适应谷底数产生单元11,用于在满足第一预设条件群时,对N进行加1后得到下一个工作状态的开通谷底数,并用(N+1)更新N,直至得到第(N+M)工作阶段的开通谷底数(N+M),并将各个工作阶段的开通谷底数发送至所述自适应锁谷底控制单元;The adaptive valley number generating unit 11 is used to add 1 to N to obtain the opening valley number of the next working state when the first preset condition group is met, and update N with (N+1) until the (Nth +M) the opening valley number (N+M) of the working stage, and send the opening valley number of each working stage to the adaptive locking valley control unit;

自适应锁谷底控制单元12,用于根据自适应谷底数产生单元计算得到的开通谷底数,产生对应的控制所述开关管开通的控制信号;其中,N和M均为正整数。The adaptive lock bottom control unit 12 is used to generate a corresponding control signal for controlling the opening of the switch tube according to the opening valley number calculated by the adaptive valley number generation unit; wherein, N and M are both positive integers.

该开关电路控制芯片的技术效果参照上述开关电路控制方法的技术效果,在此及后文不再赘述,两者之间可互相引用和借鉴。The technical effects of the switch circuit control chip refer to the technical effects of the above-mentioned switch circuit control method, which will not be described in detail here and later. The two can be quoted and learned from each other.

在一个实施例中,该控制芯片还包括整形调节单元13,整形调节单元用于根据以下公式(1)计算得到所述电感的峰值参考电流Idcm-PK(n),In one embodiment, the control chip also includes a shaping adjustment unit 13, which is used to calculate the peak reference current I dcm-PK (n) of the inductor according to the following formula (1),

Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n)+Tdcmoff(n))/ Tdcmzcd(n); Idcm-PK (n)=2* Iref-ac (n)*( Tdcmzcd (n)+ Tdcmoff (n))/ Tdcmzcd (n);

其中,Iref-ac(n)为第n个工作阶段的电感电流参考平均值;Tdcmzcd(n)为第n工作阶段的所述电感励磁和退磁的时间之和;所述Tdcmoff(n)为第n工作阶段的所述电感退磁后的死区时间;所述第n个工作阶段在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤n≤(N+M)。Among them, I ref-ac (n) is the reference average value of the inductor current in the n-th working stage; T dcmzcd (n) is the sum of the excitation and demagnetization time of the inductor in the n-th working stage; the T dcmoff (n ) is the dead time after demagnetization of the inductor in the nth working stage; the nth working stage is turned on at the nth valley, and the dead time is (n-1) resonance cycles; when the inductor When the current reaches the peak reference current I dcm-PK (n), the switch tube is controlled to turn off; where n is a positive integer and N≤n≤(N+M).

另外,整形调节单元还可以利用前一个开关周期的信息调节参考电流峰值Idcm-PK(n),即,通过公式(2)调节DCM工作模式下对应工作阶段的参考电流峰值Idcm-PK(n);In addition, the shaping adjustment unit can also use the information of the previous switching cycle to adjust the reference current peak value Idcm-PK(n), that is, adjust the reference current peak value Idcm-PK(n) of the corresponding working stage in the DCM operating mode through formula (2) ;

Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n-1)+Tdcmoff(n-1))/ Tdcmzcd(n-1)…公式(2);I dcm-PK (n)=2*I ref-ac (n)*(T dcmzcd (n-1)+T dcmoff (n-1))/T dcmzcd (n-1)...Formula (2);

其中,Iref-ac(n)为第n工作阶段的电感电流参考平均值;Tdcmzcd(n)为第n工作阶段的所述电感励磁和退磁的时间之和;所述Tdcmoff(n)为第n工作阶段的所述电感退磁后的死区时间;所述第n个工作阶段在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤(n-1)≤(N+M)。Among them, I ref-ac (n) is the reference average value of the inductor current in the n-th working stage; T dcmzcd (n) is the sum of the excitation and demagnetization time of the inductor in the n-th working stage; the T dcmoff (n) is the dead time after demagnetization of the inductor in the nth working stage; the nth working stage is turned on at the nth valley, and the dead time is (n-1) resonance cycles; when the inductor current When the peak reference current I dcm-PK (n) is reached, the switching tube is controlled to turn off; where n is a positive integer and N≤(n-1)≤(N+M).

在一个实施例中,自适应谷底数产生单元包括电感电流输入端口和比较模块;In one embodiment, the adaptive valley number generation unit includes an inductor current input port and a comparison module;

自适应谷底数产生单元预设有第N预设参考值、第(N+1)预设参考值……第(N+M)预设参考值;电感电流输入端口用于接收电感电流的参考瞬时值;所述比较模块用于将所述参考瞬时值与各个所述预设参考值进行比较;当所述参考瞬时值由第N预设参考值依次降低到第(N+M)预设参考值,所述自适应谷底数产生单元依次将开通谷底数N、(N+1)……(N+M)发送至所述自适应锁谷底控制单元;当所述参考瞬时值第(N+M)预设参考值依次增加到第N预设参考值,所述自适应谷底数产生单元依次将开通谷底数(N+M)……(N+1)、N发送至所述自适应锁谷底控制单元;由所述第N工作阶段、第(N+1)工作阶段……和第(N+M)工作阶段位于同一个工频周期;The adaptive valley number generation unit is preset with the Nth preset reference value, the (N+1)th preset reference value... the (N+M)th preset reference value; the inductor current input port is used to receive the reference of the inductor current Instantaneous value; the comparison module is used to compare the reference instantaneous value with each of the preset reference values; when the reference instantaneous value is sequentially reduced from the Nth preset reference value to the (N+M)th preset Reference value, the adaptive valley number generating unit sequentially sends the opening valley number N, (N+1)...(N+M) to the adaptive locking valley control unit; when the reference instantaneous value (N +M) The preset reference value is sequentially increased to the Nth preset reference value, and the adaptive valley number generating unit sequentially sends the opening valley number (N+M)...(N+1), N to the adaptive Bottom locking control unit; the Nth working stage, the (N+1)th working stage... and the (N+M)th working stage are located in the same power frequency cycle;

在另一个实施例中,自适应谷底数产生单元预设有第N预设峰值、第(N+1)预设峰值……第(N+M)预设峰值;所述电感电流输入端口用于接收所述电感的参考电流峰值;所述比较模块用于将所述参考电流峰值与各个所述预设峰值进行比较;当所述参考电流峰值由第N预设峰值依次降低到第(N+M)预设峰值,所述自适应谷底数产生单元依次将开通谷底数N、(N+1)……(N+M)发送至所述自适应锁谷底控制单元;当所述参考电流峰值由第(N+M)预设峰值依次增加到第N预设峰值,所述自适应谷底数产生单元依次将开通谷底数(N+M)、……、(N+1)、N发送至所述自适应锁谷底控制单元;所述第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段位于不同工频周期。In another embodiment, the adaptive valley number generating unit is preset with the Nth preset peak value, the (N+1)th preset peak value... the (N+M)th preset peak value; the inductor current input port is used for After receiving the reference current peak value of the inductor; the comparison module is used to compare the reference current peak value with each of the preset peak values; when the reference current peak value decreases from the Nth preset peak value to the (Nth) +M) preset peak value, the adaptive valley number generation unit sequentially sends the opening valley number N, (N+1)...(N+M) to the adaptive locking valley control unit; when the reference current The peak value increases sequentially from the (N+M) preset peak value to the Nth preset peak value, and the adaptive valley number generating unit sequentially sends the opening valley number (N+M), ..., (N+1), N to the adaptive locking bottom control unit; the Nth working stage, the (N+1)th working stage... the (N+M)th working stage are located in different power frequency cycles.

参照图13,在一个实施例中,自适应谷底数产生单元11预设有切换步进调节因子A和step,自适应谷底数产生单元11还预设有参考信号阈值Iref_set,Iref_set为开关电路由CCM工作模式切换到CRM工作模式的模式切换阈值或者为开关电路由CRM工作模式切换到DCM工作模式的模式切换阈值;自适应谷底数产生单元11包括电感电流输入端口、计算模块和判断模块;Referring to Figure 13, in one embodiment, the adaptive valley number generating unit 11 is preset with switching step adjustment factors A and step. The adaptive valley number generating unit 11 is also preset with a reference signal threshold I ref_set , and I ref_set is a switch. The mode switching threshold for the circuit to switch from the CCM working mode to the CRM working mode or the mode switching threshold for the switching circuit to switch from the CRM working mode to the DCM working mode; the adaptive valley number generation unit 11 includes an inductor current input port, a calculation module and a judgment module ;

电感电流输入端口用于接收表征所述电感电流的参考值,如电感电流的参考瞬时值Iref_ac_trans和/或电感电流参考峰值Iref_ac_pkThe inductor current input port is used to receive a reference value characterizing the inductor current, such as the reference instantaneous value I ref_ac_trans of the inductor current and/or the reference peak value I ref_ac_pk of the inductor current.

计算模块用于计算从第n个谷底切换到第(n+1)个谷底的电流参考阈值Iref_valley(n~ n+1),Iref_valley(n~ n+1)=Iref_set/(A+n×step);The calculation module is used to calculate the current reference threshold I ref_valley (n~ n+1) for switching from the nth valley to the (n+1)th valley, I ref_valley (n~ n+1)=I ref_set / (A+ n×step);

判断模块用于判断所述电感电流的参考值是否降低到所述Iref_valley(n~ n+1);若是,对n进行加1得到第(n+1)工作阶段的开通谷底数。进一步的,利用n+1更新n直到由第N工作阶段切换到第(N+M)工作阶段。The judgment module is used to judge whether the reference value of the inductor current drops to the I ref_valley (n~ n+1); if so, add 1 to n to obtain the opening valley number of the (n+1)th working stage. Further, n is updated using n+1 until switching from the Nth working stage to the (N+M)th working stage.

另外,判断模块还可以用于判断所述电感电流的参考值是否增加到Iref_valley(n~n-1);若是,对n进行减1得到第(n-1)工作阶段的开通谷底数。进一步的,利用(n-1)更新n直到由第(N+M)工作阶段切换到第N工作阶段。In addition, the judgment module can also be used to judge whether the reference value of the inductor current increases to I ref_valley (n~n-1); if so, subtract 1 from n to obtain the turn-on valley number of the (n-1)th working stage. Further, (n-1) is used to update n until switching from the (N+M)th working stage to the Nth working stage.

进一步的,如图13所示,开关电路控制芯片IC包括过零检测端口;自适应锁谷底控制单元12与过零检测端口电连接,通过过零检测端口接收电感电流的过零信号Vzcd。为了实现控制,自适应锁谷底控制单元12与所述过零检测端口电连接,以便根据自适应谷底数产生单元11发来的谷底数找寻到需要产生开关管的开通控制信号的时刻。Further, as shown in Figure 13, the switch circuit control chip IC includes a zero-crossing detection port; the adaptive lock valley control unit 12 is electrically connected to the zero-crossing detection port, and receives the zero-crossing signal Vzcd of the inductor current through the zero-crossing detection port. In order to achieve control, the adaptive lock bottom control unit 12 is electrically connected to the zero-crossing detection port, so as to find the time when the turn-on control signal of the switching tube needs to be generated based on the bottom number sent from the adaptive bottom number generation unit 11 .

在一个实施例中,自适应谷底数产生单元11包括计时模块和计数模块;In one embodiment, the adaptive valley number generation unit 11 includes a timing module and a counting module;

计时模块用于对相邻两个电感电流的过零信号之间的时间进行计时,得到谐振时间Tr;在谐振时间Tr基础上增加增量时间Td,得到第一时长Trto;其中,所述过零信号表征谷底;The timing module is used to time the time between the zero-crossing signals of two adjacent inductor currents to obtain the resonance time Tr; add the increment time Td on the basis of the resonance time Tr to obtain the first time length Trto; wherein, the process A zero signal represents the bottom;

每当过零检测端口接收到过零信号时,利用计时器cnt_T0计时,若计时期间,所述过零检测端口接收到过零信号,则计时清零;若未检测到过零信号且计时时长达到第一时长Trto,则判定该时刻为谷底时刻,并将第一时长Trto等效为相邻两个固定的谐振时长;后续利用计时第一时长Trto的方式获取谷底数。Whenever the zero-crossing detection port receives a zero-crossing signal, the timer cnt_T0 is used for timing. If the zero-crossing detection port receives a zero-crossing signal during the timing, the timing is cleared; if no zero-crossing signal is detected and the timing duration is When the first duration Trto is reached, the moment is determined to be the valley moment, and the first duration Trto is equivalent to two adjacent fixed resonance durations; subsequently, the valley number is obtained by timing the first duration Trto.

计数模块,用于至少根据所述过零信号和第一时长Trto计算谷底数,直到谷底数到达决定所述开关管开通的谷底数。A counting module, configured to calculate the bottom number based on at least the zero-crossing signal and the first duration Trto until the bottom number reaches the bottom number that determines the turning on of the switch tube.

进一步的,在一个实施例中,还可以设置自适应谷底数产生单元11包括最大谷底数确定模块;最大谷底数确定模块预设谷底配置初始值为最大谷底数Nvalley_max;最大谷底数确定模块用于:Further, in one embodiment, the adaptive valley number generation unit 11 can also be configured to include a maximum valley number determination module; the maximum valley number determination module presets the valley configuration initial value to be the maximum valley number N valley_max ; the maximum valley number determination module is At:

在1个或多个工频半波中,对所述开关电路的开关频率进行侦测;Detect the switching frequency of the switching circuit in one or more power frequency half-waves;

若所述开关频率小于预设限制频率(比如35kHz)的次数大于预设值Nfsw_th_H时,则设定下一个工频周期中,最大谷底数配置为(Nvalley_max-1),并利用(Nvalley_max-1)更新Nvalley_max;若所述开关频率小于预设限制频率(比如35kHz)的次数小于预设值Nfsw_th_L时,则设定下一个工频周期中,最大谷底数配置为(Nvalley_max+1),并利用(Nvalley_max+1)更新Nvalley_max;(N+M)小于等于Nvalley_max。也就是说,开关电路工作时的,根据第一/第二预设条件群计算得到的最大谷底数小于等于最大谷底数确定模块确定的最大谷底数Nvalley_maxIf the number of times the switching frequency is less than the preset limit frequency (such as 35kHz) is greater than the preset value N fsw_th_H , then set the maximum number of valleys in the next power frequency cycle to (N valley_max -1), and use (N valley_max -1) Update N valley_max ; if the number of times the switching frequency is less than the preset limit frequency (such as 35kHz) is less than the preset value N fsw_th_L , then set the maximum number of valleys in the next power frequency cycle to (N valley_max +1), and use (N valley_max +1) to update N valley_max ; (N+M) is less than or equal to N valley_max . That is to say, when the switching circuit is operating, the maximum valley number calculated according to the first/second preset condition group is less than or equal to the maximum valley number N valley_max determined by the maximum valley number determination module.

进一步的,在一个实施例中,开关电路的开关管设置有最大关断时间;当决定所述开关管开通的谷底未到达、但所述最大关断时间到达时,所述自适应锁谷底控制单元产生控制所述开关管开通的控制信号。Further, in one embodiment, the switch tube of the switching circuit is set with a maximum off-time; when the valley that determines the switch tube to turn on has not been reached, but the maximum off-time has been reached, the adaptive lock bottom control The unit generates a control signal to control the opening of the switch tube.

图13示出了一种开关电路的控制芯片,其包括自适应谷底控制功能,该开关电路控制芯片包括自适应谷底数产生单元11、自适应谷底数控制单元12、整形条件单元13、参考电流产生单元14、模式控制单元15、Ton信号控制单元16和CCM-Toff控制单元17;其中,参考电流产生单元14、模式控制单元15、Ton信号控制单元16和CCM-Toff控制单元17的控制方式可参考现有技术。Figure 13 shows a control chip of a switching circuit, which includes an adaptive valley control function. The switching circuit control chip includes an adaptive valley number generation unit 11, an adaptive valley number control unit 12, a shaping condition unit 13, and a reference current. Generation unit 14, mode control unit 15, Ton signal control unit 16 and CCM-Toff control unit 17; wherein, the control method of the reference current generation unit 14, mode control unit 15, Ton signal control unit 16 and CCM-Toff control unit 17 Reference can be made to existing technology.

参考电流采样单元14,用于根据开关电路的输入电压采样值Vin和输出电压采样值Vo产生电感电流参考值;电感电流参考值包括电感电流参考平均值Iref-ac、电感电流参考瞬时值(Iref_ac_trans)和/或电感电流的参考电流峰值(Iref_ac_pk);The reference current sampling unit 14 is used to generate an inductor current reference value based on the input voltage sampling value Vin and the output voltage sampling value Vo of the switching circuit; the inductor current reference value includes the inductor current reference average value I ref-ac and the inductor current reference instantaneous value ( I ref_ac_trans ) and/or the reference current peak value of the inductor current (I ref_ac_pk );

模式控制单元15,用于根据参考电流采样单元14产生的电感电流参考值,确定开关电路的工作模式;The mode control unit 15 is used to determine the operating mode of the switching circuit based on the inductor current reference value generated by the reference current sampling unit 14;

Ton信号控制单元16用于根据确定的工作模式、各工作模式下的电感参考电流(比如整形调节单元产生的DCM工作模式下的电感参考电流Iref—DCM以及由参考电流采样单元14产生的CRM/CCM工作模式下的峰值参考电流Iref—CCM/Iref—CRM)及电感电流采样信号Vcs产生控制所述开关管关断的控制信号。其中电感电流采样信号可以直接通过采样电感电流得到,也可以通过采样开关管电路来得到。The Ton signal control unit 16 is configured to determine the working mode, the inductor reference current in each working mode (such as the inductor reference current I ref-DCM in the DCM working mode generated by the shaping adjustment unit and the CRM generated by the reference current sampling unit 14 The peak reference current I ref—CCM /I ref—CRM ) and the inductor current sampling signal Vcs in the /CCM operating mode generate a control signal that controls the switch tube to turn off. The inductor current sampling signal can be obtained directly by sampling the inductor current, or it can be obtained by sampling the switching tube circuit.

CCM-Toff控制单元17用于根据工作模式(CCM工作模式)、输入电压采样值、输出电压采样值及开关周期Ts产生控制所述开关管关断的控制信号。The CCM-Toff control unit 17 is used to generate a control signal to control the switch tube to turn off according to the working mode (CCM working mode), the input voltage sampling value, the output voltage sampling value and the switching period Ts.

自适应谷底数产生单元11用于产生开通谷底数;自适应锁谷底控制单元12用于至少根据所述谷底数、电感电流的过零信号产生CRM和/或DCM工作模式下的开关管关断的控制信号。也就是说,整形调节单元13、自适应谷底数产生单元11和自适应锁谷底控制单元12用于执行CRM和DCM工作模式下的开关管关断控制。图13中,自适应谷底数产生单元实现图8的谷底数控制规律;整形调节单元13实现Iref—DCM信号随着谷底数的变化而变化。自适应谷底数产生单元11和自适应锁谷底控制单元12实现图4~图11的控制策略和Toff的信号控制。The adaptive valley number generation unit 11 is used to generate a turn-on valley number; the adaptive locking valley control unit 12 is used to generate a switching tube turn-off in the CRM and/or DCM operating mode based on at least the valley number and the zero-crossing signal of the inductor current. control signal. That is to say, the shaping adjustment unit 13, the adaptive valley number generation unit 11 and the adaptive locking valley control unit 12 are used to perform switching tube turn-off control in CRM and DCM operating modes. In Figure 13, the adaptive valley number generation unit realizes the valley number control law of Figure 8; the shaping adjustment unit 13 realizes that the I ref-DCM signal changes with the change of the valley number. The adaptive valley number generation unit 11 and the adaptive valley locking control unit 12 implement the control strategies of Figures 4 to 11 and the signal control of Toff.

本申请中还可以利用表征输入平均电流的参考电流(Iref_ac)的瞬时值(Iref_ac_trans)控制一个工频周期内实现CCM/CRM/DCM组合工作。三种工作模式根据输入平均值电流的瞬时值(Iref_ac_trans)大小而自由切换;也可以利用峰值(Iref_ac_pk)控制一个工频周期内只包含CCM,CRM和DCM一种工作模式。或者CCM/CRM/DCM这三种工作模式在一个工频周期内包含CCM ,CRM/DCM和DCM组合的情况。In this application, the instantaneous value (I ref_ac_trans ) of the reference current (I ref_ac ) that characterizes the input average current can also be used to control the CCM/CRM/DCM combined operation within a power frequency cycle. The three working modes can be freely switched according to the instantaneous value of the input average current (I ref_ac_trans ); the peak value (I ref_ac_pk ) can also be used to control only one working mode including CCM, CRM and DCM in a power frequency cycle. Or the three working modes of CCM/CRM/DCM include the combination of CCM, CRM/DCM and DCM within one power frequency cycle.

该开关电路控制芯片至少具有以下优点中的一个或多个:The switch circuit control chip has at least one or more of the following advantages:

1. 保持多模式工作高效率的特点的同时,保证在CRM/DCM工作下,谷底开通的是按规定的规律变化的,保证电感电流的平均值不因为电感电流跳变而震荡畸变。1. While maintaining the high efficiency characteristics of multi-mode operation, it is ensured that under CRM/DCM operation, the valley opening changes according to the prescribed rules, ensuring that the average value of the inductor current does not oscillate and distort due to the jump of the inductor current.

2. 可以自适应配置谷底调整曲线,防止CRM模式工作频率过高。2. The valley adjustment curve can be configured adaptively to prevent the CRM mode working frequency from being too high.

3. 补充策略可以避免低于最低工作频率工作,出现人耳可识别的噪音,和出现较大电流纹波。3. Supplementary strategies can avoid operating below the minimum operating frequency, causing noise that can be recognized by the human ear, and causing large current ripples.

4. 补充策略可以避免出现非谷底开通,造成开关损耗和EMI干扰。4. Supplementary strategies can avoid non-bottom turn-on, causing switching losses and EMI interference.

5. 补充策略可以自动识别所需要的最大谷底数,并在最低频率前锁定谷底,既方便工程师设计,又实现全工作范围内效率优化与THD优化兼得。5. The supplementary strategy can automatically identify the required maximum number of valleys and lock the valley before the lowest frequency, which not only facilitates engineer design, but also achieves both efficiency optimization and THD optimization within the full working range.

基于上述的开关电路控制方法和控制芯片,本申请实施例还提供了一种开关电路,结合图1和图14所示,该开关电路包括开关单元20、输出电压采样单元22、输入电压采样单元21、电流采样单元23、电感电流过零采样单元24和上述的开关电路控制芯片IC;开关单元可以是Flyback变换器、BOOST变换器(如图1所示)或者单相图腾柱无桥BOOST PFC变换器(如图14所示);该开关电路控制芯片IC用于控制开关单元20中个开关管,使开关电路具有的更优性能。Based on the above switching circuit control method and control chip, embodiments of the present application also provide a switching circuit. As shown in FIG. 1 and FIG. 14 , the switching circuit includes a switching unit 20, an output voltage sampling unit 22, and an input voltage sampling unit. 21. Current sampling unit 23, inductor current zero-crossing sampling unit 24 and the above-mentioned switching circuit control chip IC; the switching unit can be a Flyback converter, a BOOST converter (as shown in Figure 1) or a single-phase totem pole bridgeless BOOST PFC converter (as shown in Figure 14); the switching circuit control chip IC is used to control each switching tube in the switching unit 20, so that the switching circuit has better performance.

输出电压采样单元22与开关单元20输出端电连接,采样输出电压采样信号Vo;输入电压采样单元21与开关单元20输入端电连接,采样输入电压采样信号Vin;输出电压采样单元22和输入电压采样单元21还与该开关电路控制芯片IC的参考电流产生单元14电连接;电流采样单元23与开关单元23电连接,采样开关单元20的电感电流,得到电感电流采样信号Vcs;电感电流过零采样单元24与开关单元20电连接,用于获取开关单元20的电感电流过零信号Vzcd,该信号用于表征谐振谷底;电流采样单元23与开关电路控制芯片IC的Ton信号控制单元16电连接;电感电流过零采样单元24与开关电路控制芯片IC的自适应锁谷底控制单元12电连接;开关电路控制芯片IC至少用于根据输出电压采样信号Vo、输入电压采样信号Vin、电感电流采样信号Vcs和电感电流过零信号Vzcd控制所述开关单元工作。具体控制方式参照前述的开关电路控制方法和开关电路控制芯片的实施例所述,本申请在此不再赘述。The output voltage sampling unit 22 is electrically connected to the output terminal of the switch unit 20, and samples the output voltage sampling signal Vo; the input voltage sampling unit 21 is electrically connected to the input terminal of the switch unit 20, and samples the input voltage sampling signal Vin; the output voltage sampling unit 22 and the input voltage The sampling unit 21 is also electrically connected to the reference current generating unit 14 of the switch circuit control chip IC; the current sampling unit 23 is electrically connected to the switch unit 23, and samples the inductor current of the switch unit 20 to obtain the inductor current sampling signal Vcs; the inductor current crosses zero. The sampling unit 24 is electrically connected to the switching unit 20 and is used to obtain the inductor current zero-crossing signal Vzcd of the switching unit 20, which is used to represent the resonance valley; the current sampling unit 23 is electrically connected to the Ton signal control unit 16 of the switching circuit control chip IC. ; The inductor current zero-crossing sampling unit 24 is electrically connected to the adaptive locking bottom control unit 12 of the switching circuit control chip IC; the switching circuit control chip IC is at least used to measure the output voltage sampling signal Vo, the input voltage sampling signal Vin, and the inductor current sampling signal Vcs and the inductor current zero-crossing signal Vzcd control the operation of the switching unit. The specific control method is described with reference to the aforementioned switch circuit control method and switch circuit control chip embodiments, and will not be described again in this application.

本申请实施例提出的开关电路控制方法和开关电路控制芯片不但适用于传统单相BOOST PFC变换器,BUCK变换器、Flyback变换器、还可以用于单相图腾柱无桥BOOST PFC变换器。如图14所示,单相图腾柱无桥BOOST PFC变换器跟传统BOOST PFC变换器(如图1所示)对控制芯片的要求略有差别,由于参考地的不同,所以Vin,Vo和Vcs的信号采样方法不同外,控制芯片的输出除了Vgda外,还需要产生一个Vdgb,Vgdb跟Vgda之间需要插入一个死区时间保证工作安全,在工频周期的正负半周,Vgda和Vgdb要互换主从关系。The switching circuit control method and switching circuit control chip proposed in the embodiment of this application are not only suitable for traditional single-phase BOOST PFC converters, BUCK converters, Flyback converters, but also can be used for single-phase totem pole bridgeless BOOST PFC converters. As shown in Figure 14, the single-phase totem pole bridgeless BOOST PFC converter has slightly different requirements for the control chip than the traditional BOOST PFC converter (shown in Figure 1). Due to the different reference grounds, Vin, Vo and Vcs In addition to the different signal sampling methods, in addition to Vgda, the output of the control chip also needs to generate a Vdgb. A dead time needs to be inserted between Vgdb and Vgda to ensure work safety. In the positive and negative half cycles of the power frequency cycle, Vgda and Vgdb need to interact with each other. Change the master-slave relationship.

以上所揭露的仅为本申请较佳实施例,不能以此来限定本申请之权利范围,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,仍属本申请所涵盖的范围。What is disclosed above is only the preferred embodiment of the present application, and cannot be used to limit the scope of rights of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification still belong to this application. Scope covered by the application.

Claims (11)

1.一种开关电路控制方法,用于对开关电路进行控制,所述开关电路至少包括电感和能够控制所述电感进行励磁的开关管,其特征在于,所述开关电路至少包括第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段;在所述第N工作阶段,所述开关管在第N个谷底开通;在所述第(N+1)工作阶段,所述开关管在第(N+1)个谷底开通……在所述第(N+M)工作阶段,所述开关管在第(N+M)个谷底开通;当满足第一预设条件群时,所述开关电路依次由所述第N工作阶段、所述第(N+1)工作阶段……切换到所述第(N+M)工作阶段;其中,N和M均为正整数;所述第一预设条件群表征所述电感的参考电流逐渐减小;1. A switching circuit control method for controlling a switching circuit. The switching circuit at least includes an inductor and a switching tube capable of controlling the inductor for excitation. It is characterized in that the switching circuit at least includes an Nth working stage. , (N+1)th working stage...(N+M)th working stage; in the Nth working stage, the switch tube is turned on at the Nth valley; in the (N+1)th working stage , the switch tube is turned on at the (N+1)th valley... In the (N+M)th working stage, the switch tube is turned on at the (N+M)th valley; when the first preset is satisfied Condition group, the switch circuit switches from the Nth working stage, the (N+1)th working stage... to the (N+M)th working stage; where N and M are both positive Integer; the first preset condition group represents that the reference current of the inductor gradually decreases; 所述电感的峰值参考电流Idcm-PK(n)根据公式(1)或(2)计算得到:The peak reference current I dcm-PK (n) of the inductor is calculated according to formula (1) or (2): Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n)+Tdcmoff(n))/ Tdcmzcd(n)…公式(1);其中,Iref-ac(n)为第n工作阶段的电感电流参考平均值;Tdcmzcd(n)为第n工作阶段的所述电感励磁和退磁的时间之和;所述Tdcmoff(n)为第n工作阶段的所述电感退磁后的死区时间;在第n个工作阶段,所述开关管在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤n≤(N+M);I dcm-PK (n) = 2*I ref-ac (n) * (T dcmzcd (n) + T dcmoff (n)) / T dcmzcd (n)...Formula (1); where, I ref-ac ( n) is the reference average value of the inductor current in the nth working stage; T dcmzcd (n) is the sum of the excitation and demagnetization times of the inductor in the nth working stage; the T dcmoff (n) is all the times in the nth working stage The dead time after the inductor is demagnetized; in the nth working stage, the switch is turned on at the nth valley, and the dead time is (n-1) resonance periods; when the inductor current reaches the When the peak reference current I dcm-PK (n) is reached, the switch tube is controlled to turn off; where n is a positive integer and N≤n≤(N+M); Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n-1)+Tdcmoff(n-1))/ Tdcmzcd(n-1)…公式(2);其中,Iref-ac(n)为第n工作阶段的电感电流参考平均值;Tdcmzcd(n)为第n工作阶段的所述电感励磁和退磁的时间之和;所述Tdcmoff(n)为第n工作阶段的所述电感退磁后的死区时间;在第n个工作阶段,所述开关管在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤(n-1)≤(N+M);I dcm-PK (n)=2*I ref-ac (n)*(T dcmzcd (n-1)+T dcmoff (n-1))/T dcmzcd (n-1)...Formula (2); where , I ref-ac (n) is the reference average value of the inductor current in the n-th working stage; T dcmzcd (n) is the sum of the excitation and demagnetization times of the inductor in the n-th working stage; the T dcmoff (n) is The dead time after demagnetization of the inductor in the nth working stage; in the nth working stage, the switch tube is turned on at the nth valley bottom, and the dead time is (n-1) resonance periods; when the When the inductor current reaches the peak reference current I dcm-PK (n), the switch is controlled to turn off; where n is a positive integer and N≤(n-1)≤(N+M); 所述第一预设条件群为表征所述电感电流的参考值降低到Iref_valley(n~ n+1);The first preset condition group is that the reference value characterizing the inductor current decreases to I ref_valley (n~ n+1); 其中,Iref_valley(n~ n+1)=Iref_set/(A+n×step),Among them, I ref_valley (n~ n+1)=I ref_set / (A+n×step), 其中,Iac_valley(n~n+1)指的是从第n个谷底切换到第(n+1)个谷底的电流参考阈值;A和step为切换步进调节因子,step为根据效率来确定一组数值,A为常数;Iref_set为所述开关电路由CCM工作模式切换到CRM工作模式的模式切换阈值或者为所述开关电路由CRM工作模式切换到DCM工作模式的模式切换阈值。Among them, I ac_valley (n~n+1) refers to the current reference threshold for switching from the nth valley to the (n+1)th valley; A and step are the switching step adjustment factors, and step is determined based on efficiency A set of values, A is a constant; I ref_set is the mode switching threshold for the switching circuit to switch from the CCM working mode to the CRM working mode or the mode switching threshold for the switching circuit to switch from the CRM working mode to the DCM working mode. 2.根据权利要求1所述的开关电路控制方法,其特征在于,所述谷底由过零检测电路检测到过零信号得到;2. The switching circuit control method according to claim 1, wherein the valley bottom is obtained by detecting a zero-crossing signal by a zero-crossing detection circuit; 若随着所述开关管的漏极和源极之间电压的谐振幅值减小,所述过零检测电路无法检测得到过零信号,则通过以下步骤获取谷底:If the zero-crossing detection circuit cannot detect a zero-crossing signal as the resonant amplitude of the voltage between the drain and source of the switch tube decreases, the valley bottom is obtained through the following steps: 对所述过零检测电路检测到的相邻两个谷底之间的时间进行计时,得到谐振时间;Timing the time between two adjacent valleys detected by the zero-crossing detection circuit to obtain the resonance time; 在所述谐振时间基础上增加增量时间,得到第一时长;Add an increment time to the resonance time to obtain a first duration; 每当所述过零检测电路检测到过零信号时,利用计时器cnt_T0计时,若计时期间,所述过零检测电路检测到过零信号,则计时清零;若未检测到过零信号但计时时长达到所述第一时长,则判定该时刻为谷底时刻,并将所述第一时长等效为相邻两个谷底的谐振时长;Whenever the zero-crossing detection circuit detects a zero-crossing signal, the timer cnt_T0 is used for timing. If the zero-crossing detection circuit detects a zero-crossing signal during the timing period, the timing is cleared; if no zero-crossing signal is detected but When the timing duration reaches the first duration, the moment is determined to be the valley moment, and the first duration is equivalent to the resonance duration of two adjacent valleys; 至少根据所述过零信号和第一时长计算谷底数,直到谷底数到达决定所述开关管开通的谷底数。The valley number is calculated at least based on the zero-crossing signal and the first duration until the valley number reaches the valley number that determines the opening of the switch tube. 3.根据权利要求1所述的开关电路控制方法,其特征在于,所述开关电路工作于DCM工作模式;当决定所述开关管开通的谷底未到达、但最大关断时间到达时,控制所述开关管开通。3. The switching circuit control method according to claim 1, characterized in that the switching circuit operates in the DCM operating mode; when the bottom that determines the opening of the switching tube has not been reached, but the maximum off time is reached, the control circuit is controlled. The switch tube is turned on. 4.根据权利要求1所述的开关电路控制方法,其特征在于,还包括步骤:4. The switching circuit control method according to claim 1, further comprising the steps of: 预设谷底配置初始值为最大谷底数Nvalley_maxThe initial value of the default valley configuration is the maximum number of valleys N valley_max ; 在1个或多个工频半波中,对所述开关电路的开关频率进行侦测;Detect the switching frequency of the switching circuit in one or more power frequency half-waves; 若所述开关频率小于预设限制频率的次数大于预设值Nfsw_th_H时,则设定下一个工频周期中,最大谷底数配置为(Nvalley_max-1),并利用(Nvalley_max-1)更新Nvalley_maxIf the number of times the switching frequency is less than the preset limit frequency is greater than the preset value N fsw_th_H , then set the maximum number of valleys in the next power frequency cycle to (N valley_max -1), and use (N valley_max -1) Update N valley_max ; 若所述开关频率小于预设限制频率的次数小于预设值Nfsw_th_L时,则设定下一个工频周期中,最大谷底数配置为(Nvalley_max+1),并利用(Nvalley_max+1)更新Nvalley_maxIf the number of times the switching frequency is less than the preset limit frequency is less than the preset value N fsw_th_L , then set the maximum number of valleys in the next power frequency cycle to (N valley_max +1), and use (N valley_max +1) Update N valley_max ; (N+M)小于等于Nvalley_max(N+M) is less than or equal to N valley_max . 5.根据权利要求1所述的开关电路控制方法,其特征在于,当满足第二预设条件群时,所述开关电路依次从第(N+M)工作阶段……切换到第N工作阶段;所述第二预设条件群表征电感的参考电流逐渐增大;5. The switching circuit control method according to claim 1, characterized in that when the second preset condition group is met, the switching circuit switches from the (N+M)th working stage... to the Nth working stage in sequence. ;The second preset condition group represents that the reference current of the inductor gradually increases; 所述第二预设条件群包括电感电流的瞬时参考值由第(N+M)预设参考值……依次增加到第N预设参考值;所述第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段位于同一个工频周期;The second preset condition group includes the instantaneous reference value of the inductor current increasing from the (N+M)th preset reference value... to the Nth preset reference value in turn; the Nth working stage, the (N+1)th ) Working stage...The (N+M) working stage is located in the same power frequency cycle; 或者,or, 所述第二预设条件群包括所述电感电流的参考电流峰值由第(N+M)预设峰值……依次增加到第N预设峰值;所述第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段位于不同工频周期;The second preset condition group includes the reference current peak value of the inductor current increasing from the (N+M)th preset peak value...to the Nth preset peak value in sequence; the Nth working stage, the (N+1)th ) working stage...The (N+M) working stage is located in different power frequency cycles; 或者,or, 所述第二预设条件群包括所述电感电流的参考值增加到Iref_valley(n~n-1)=Iref_set/[A+(n-1)×Step],Iac_valley(n~n-1)指的是从第n个谷底切换到第(n-1)个谷底的电流参考阈值;其中,Iac_valley(n~n-1)指的是从第n个谷底切换到第(n-1)个谷底的电流参考阈值;A和step为切换步进调节因子,step为根据效率来确定一组数值,A为常数;Iref_set为所述开关电路由CCM工作模式切换到CRM工作模式的模式切换阈值或者为所述开关电路由CRM工作模式切换到DCM工作模式的模式切换阈值。The second preset condition group includes the reference value of the inductor current increasing to I ref_valley (n~n-1)=I ref_set /[A+(n-1)×Step], I ac_valley (n~n-1 ) refers to the current reference threshold for switching from the nth valley to the (n-1)th valley; among them, I ac_valley (n~n-1) refers to the switching from the nth valley to the (n-1) ) is the current reference threshold of the valley; A and step are switching step adjustment factors, step is a set of values determined according to efficiency, and A is a constant; I ref_set is the mode in which the switch circuit switches from the CCM operating mode to the CRM operating mode The switching threshold may be a mode switching threshold for the switch circuit to switch from the CRM working mode to the DCM working mode. 6.一种开关电路控制芯片,适用于对开关电路的控制,所述开关电路至少包括电感和能够控制所述电感进行励磁的开关管,其特征在于,所述开关电路至少包括第N工作阶段、第(N+1)工作阶段……第(N+M)工作阶段;在所述第N工作阶段,所述开关管在第N个谷底开通;在所述第(N+1)工作阶段,所述开关管在第(N+1)个谷底开通……在所述第(N+M)工作阶段,所述开关管在第(N+M)个谷底开通;所述开关电路控制芯片至少包括自适应谷底数产生单元和自适应锁谷底控制单元;6. A switching circuit control chip, suitable for controlling a switching circuit. The switching circuit at least includes an inductor and a switching tube capable of controlling the excitation of the inductor. It is characterized in that the switching circuit at least includes an Nth working stage. , (N+1)th working stage...(N+M)th working stage; in the Nth working stage, the switch tube is turned on at the Nth valley; in the (N+1)th working stage , the switch tube is turned on at the (N+1)th valley... In the (N+M)th working stage, the switch tube is turned on at the (N+M)th valley; the switch circuit control chip At least including an adaptive valley number generation unit and an adaptive locking valley control unit; 所述自适应谷底数产生单元,用于在满足第一预设条件群时,对N进行加1后得到下一个工作状态的开通谷底数,并用(N+1)更新N,直至得到第(N+M)工作阶段的开通谷底数(N+M),并将各个工作阶段的开通谷底数发送至所述自适应锁谷底控制单元;第一预设条件群表征电感的参考电流逐渐减小;The adaptive valley number generating unit is used to add 1 to N to obtain the opening valley number of the next working state when the first preset condition group is met, and update N with (N+1) until the (th) is obtained. N+M) the number of turn-on valleys in the working stage (N+M), and send the number of turn-on valleys in each working stage to the adaptive locking valley control unit; the first preset condition group represents the gradual decrease of the reference current of the inductor ; 所述自适应锁谷底控制单元,用于根据所述自适应谷底数产生单元计算得到的开通谷底数,产生对应的控制所述开关管开通的控制信号;其中,N和M均为正整数;The adaptive lock valley bottom control unit is used to generate a corresponding control signal for controlling the opening of the switch tube according to the opening valley number calculated by the adaptive valley number generation unit; wherein, N and M are both positive integers; 所述开关电路控制芯片还包括整形调节单元,所述整形调节单元用于根据以下公式(1)或(2)计算得到所述电感的峰值参考电流Idcm-PK(n),The switching circuit control chip also includes a shaping adjustment unit, which is used to calculate the peak reference current I dcm-PK (n) of the inductor according to the following formula (1) or (2), Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n)+Tdcmoff(n))/ Tdcmzcd(n)…公式(1);其中,Iref-ac(n)为第n个工作阶段的电感电流参考平均值;Tdcmzcd(n)为第n工作阶段的所述电感励磁和退磁的时间之和;所述Tdcmoff(n)为第n工作阶段的所述电感退磁后的死区时间;在所述第n个工作阶段,所述开关管在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤n≤(N+M);I dcm-PK (n) = 2*I ref-ac (n) * (T dcmzcd (n) + T dcmoff (n)) / T dcmzcd (n)...Formula (1); where, I ref-ac ( n) is the reference average value of the inductor current in the nth working stage; T dcmzcd (n) is the sum of the inductor excitation and demagnetization times in the nth working stage; the T dcmoff (n) is the nth working stage The dead time after the inductor is demagnetized; in the nth working stage, the switch is turned on at the nth valley, and the dead time is (n-1) resonance cycles; when the inductor current When the peak reference current I dcm-PK (n) is reached, the switch tube is controlled to turn off; where n is a positive integer and N≤n≤(N+M); Idcm-PK(n)=2*Iref-ac(n)*(Tdcmzcd(n-1)+Tdcmoff(n-1))/Tdcmzcd(n-1)…公式(2);其中,Iref-ac(n)为第n工作阶段的电感电流参考平均值;Tdcmzcd(n)为第n工作阶段的所述电感励磁和退磁的时间之和;所述Tdcmoff(n)为第n工作阶段的所述电感退磁后的死区时间;在所述第n个工作阶段,所述开关管在第n个谷底开通,所述死区时间为(n-1)个谐振周期;当所述电感电流达到所述峰值参考电流Idcm-PK(n)时,控制所述开关管关断;其中,n为正整数且N≤(n-1)≤(N+M);I dcm-PK (n)=2*I ref-ac (n)*(T dcmzcd (n-1)+T dcmoff (n-1))/T dcmzcd (n-1)...Formula (2); where , I ref-ac (n) is the reference average value of the inductor current in the n-th working stage; T dcmzcd (n) is the sum of the excitation and demagnetization times of the inductor in the n-th working stage; the T dcmoff (n) is The dead time after demagnetization of the inductor in the nth working stage; in the nth working stage, the switch tube is turned on at the nth valley, and the dead time is (n-1) resonance cycles; When the inductor current reaches the peak reference current I dcm-PK (n), the switch is controlled to turn off; where n is a positive integer and N≤(n-1)≤(N+M); 所述自适应谷底数产生单元预设有切换步进调节因子A和step,所述自适应谷底数产生单元还预设有参考信号阈值Iref_set,Iref_set为所述开关电路由CCM工作模式切换到CRM工作模式的模式切换阈值或者为所述开关电路由CRM工作模式切换到DCM工作模式的模式切换阈值;所述自适应谷底数产生单元包括电感电流输入端口、计算模块和判断模块;The adaptive valley number generation unit is preset with switching step adjustment factors A and step. The adaptive valley number generation unit is also preset with a reference signal threshold I ref_set . I ref_set is when the switch circuit is switched from the CCM operating mode. The mode switching threshold to the CRM working mode or the mode switching threshold for the switch circuit to switch from the CRM working mode to the DCM working mode; the adaptive valley number generating unit includes an inductor current input port, a calculation module and a judgment module; 所述电感电流输入端口用于接收表征所述电感电流的参考值;The inductor current input port is used to receive a reference value characterizing the inductor current; 所述计算模块用于计算从第n个谷底切换到第(n+1)个谷底的电流参考阈值Iref_valley(n~ n+1),Iref_valley(n~ n+1)=Iref_set/(A+n×step); The calculation module is used to calculate the current reference threshold I ref_valley (n~ n+1) for switching from the nth valley to the (n+1)th valley, I ref_valley ( n~ n+1)=I ref_set / ( A+n×step); 所述判断模块用于判断所述电感电流的参考值是否降低到所述Iref_valley(n~ n+1);若是,对n进行加1得到第(n+1)工作阶段的开通谷底数;所述判断模块还用于判断所述电感电流的参考值是否增加到Iref_valley(n~ n-1);若是,对n进行减1得到第(n-1)工作阶段的开通谷底数。The judgment module is used to judge whether the reference value of the inductor current drops to the I ref_valley (n~ n+1); if so, add 1 to n to obtain the opening valley number of the (n+1)th working stage; The judgment module is also used to judge whether the reference value of the inductor current increases to I ref_valley (n~ n-1); if so, subtract 1 from n to obtain the opening valley number of the (n-1)th working stage. 7.根据权利要求6所述的开关电路控制芯片,其特征在于,所述开关电路控制芯片包括过零检测端口;所述自适应锁谷底控制单元与所述过零检测端口电连接,通过所述过零检测端口接收所述电感电流的过零信号;7. The switching circuit control chip according to claim 6, characterized in that the switching circuit control chip includes a zero-crossing detection port; the adaptive lock bottom control unit is electrically connected to the zero-crossing detection port, and passes through the zero-crossing detection port. The zero-crossing detection port receives the zero-crossing signal of the inductor current; 所述自适应锁谷底控制单元包括计时模块和计数模块;The adaptive bottom locking control unit includes a timing module and a counting module; 所述计时模块用于对相邻两个电感电流的过零信号之间的时间进行计时,得到谐振时间;在所述谐振时间基础上增加增量时间,得到第一时长;其中,所述过零信号表征谷底;The timing module is used to time the time between the zero-crossing signals of two adjacent inductor currents to obtain the resonance time; add an increment time on the basis of the resonance time to obtain the first duration; wherein, the A zero signal represents the bottom; 每当所述过零检测端口接收到过零信号时,利用计时器cnt_T0计时,若计时期间,所述过零检测端口接收到过零信号,则计时清零;若未接收到过零信号但计时时长达到所述第一时长,则判定该时刻为谷底时刻,并将所述第一时长等效为相邻两个谷底的谐振时长;Whenever the zero-crossing detection port receives a zero-crossing signal, the timer cnt_T0 is used for timing. If the zero-crossing detection port receives a zero-crossing signal during the timing period, the timing is cleared; if no zero-crossing signal is received but When the timing duration reaches the first duration, the moment is determined to be the valley moment, and the first duration is equivalent to the resonance duration of two adjacent valleys; 所述计数模块,用于至少根据所述过零信号和第一时长计算谷底数,直到谷底数到达决定所述开关管开通的谷底数。The counting module is configured to calculate the bottom number based on at least the zero-crossing signal and the first duration until the bottom number reaches the bottom number that determines the turning on of the switch tube. 8.根据权利要求6所述的开关电路控制芯片,其特征在于,所述自适应谷底数产生单元还包括最大谷底数确定模块;所述最大谷底数确定模块预设谷底配置初始值为最大谷底数Nvalley_max;所述最大谷底数确定模块用于:8. The switching circuit control chip according to claim 6, wherein the adaptive valley number generation unit further includes a maximum valley number determination module; the maximum valley number determination module presets the valley configuration initial value to be the maximum valley number. Number N valley_max ; the maximum valley number determination module is used for: 在1个或多个工频半波中,对所述开关电路的开关频率进行侦测;Detect the switching frequency of the switching circuit in one or more power frequency half-waves; 若所述开关频率小于预设限制频率的次数大于预设值Nfsw_th_H时,则设定下一个工频周期中,最大谷底数配置为(Nvalley_max-1),并利用(Nvalley_max-1)更新Nvalley_maxIf the number of times the switching frequency is less than the preset limit frequency is greater than the preset value N fsw_th_H , then set the maximum number of valleys in the next power frequency cycle to (N valley_max -1), and use (N valley_max -1) Update N valley_max ; 若所述开关频率小于预设限制频率的次数小于预设值Nfsw_th_L时,则设定下一个工频周期中,最大谷底数配置为(Nvalley_max+1),并利用(Nvalley_max+1)更新Nvalley_maxIf the number of times the switching frequency is less than the preset limit frequency is less than the preset value N fsw_th_L , then set the maximum number of valleys in the next power frequency cycle to (N valley_max +1), and use (N valley_max +1) Update N valley_max ; (N+M)小于等于Nvalley_max(N+M) is less than or equal to N valley_max . 9.根据权利要求6所述的开关电路控制芯片,其特征在于,所述开关电路具有所述开关管的最大关断时间;当决定所述开关管开通的谷底未到达、但所述最大关断时间到达时,所述自适应锁谷底控制单元产生控制所述开关管开通的控制信号。9. The switching circuit control chip according to claim 6, wherein the switching circuit has a maximum off time of the switching tube; When the off time arrives, the adaptive lock bottom control unit generates a control signal to control the switching tube to turn on. 10.根据权利要求6所述的开关电路控制芯片,其特征在于,还包括参考电流产生单元、模式控制单元、Ton信号控制单元和CCM-Toff控制单元;10. The switching circuit control chip according to claim 6, further comprising a reference current generation unit, a mode control unit, a Ton signal control unit and a CCM-Toff control unit; 所述参考电流采样单元,用于根据所述开关电路的输入电压采样值和输出电压采样值产生电感电流参考值;The reference current sampling unit is used to generate an inductor current reference value based on the input voltage sampling value and the output voltage sampling value of the switching circuit; 所述模式控制单元,用于根据所述电感电流参考值确定所述开关电路的工作模式;The mode control unit is used to determine the operating mode of the switching circuit according to the inductor current reference value; 所述Ton信号控制单元用于根据所述工作模式、各工作模式下的电感参考电流及电感电流采样信号产生控制所述开关管关断的控制信号;The Ton signal control unit is used to generate a control signal that controls the switch tube to turn off according to the working mode, the inductor reference current in each working mode, and the inductor current sampling signal; 所述CCM-Toff控制单元用于根据所述工作模式、输入电压采样值、输出电压采样值及开关周期产生控制所述开关管关断的控制信号;The CCM-Toff control unit is used to generate a control signal to control the switch tube to turn off according to the working mode, the input voltage sampling value, the output voltage sampling value and the switching period; 所述自适应谷底数产生单元用于产生开通谷底数;所述自适应锁谷底控制单元用于至少根据所述谷底数、电感电流的过零信号产生CRM和/或DCM工作模式下的开关管关断的控制信号。The adaptive valley number generation unit is used to generate a turn-on valley number; the adaptive locking valley control unit is used to generate a switching tube in the CRM and/or DCM operating mode based on at least the valley number and the zero-crossing signal of the inductor current. shutdown control signal. 11.一种开关电路,其特征在于,包括开关单元、输出电压采样单元、输入电压采样单元、电流采样单元、电感电流过零采样单元和如权利要求6-10任一项所述的开关电路控制芯片;所述输出电压采样单元与所述开关单元输出端电连接,采样输出电压采样信号;所述输入电压采样单元与所述开关单元输入端电连接,采样输入电压采样信号;所述输出电压采样单元和输入电压采样单元还与所述开关电路控制芯片的参考电流产生单元电连接;所述电流采样单元与所述开关单元电连接,采样所述开关单元的电感电流采样信号;所述电感电流过零采样单元与所述开关单元电连接,用于获取所述开关单元的电感的电感电流过零信号;所述电流采样单元与所述开关电路控制芯片的Ton信号控制单元电连接;所述电感电流过零采样单元与所述开关电路控制芯片的自适应锁谷底控制单元电连接;所述开关电路控制芯片至少用于根据所述输出电压采样信号、输入电压采样信号、电感电流采样信号和电感电流过零信号控制所述开关单元工作。11. A switching circuit, characterized in that it includes a switching unit, an output voltage sampling unit, an input voltage sampling unit, a current sampling unit, an inductor current zero-crossing sampling unit and a switching circuit as claimed in any one of claims 6 to 10 Control chip; the output voltage sampling unit is electrically connected to the output terminal of the switch unit, and samples the output voltage sampling signal; the input voltage sampling unit is electrically connected to the input terminal of the switch unit, and samples the input voltage sampling signal; the output The voltage sampling unit and the input voltage sampling unit are also electrically connected to the reference current generating unit of the switching circuit control chip; the current sampling unit is electrically connected to the switching unit and samples the inductor current sampling signal of the switching unit; The inductor current zero-crossing sampling unit is electrically connected to the switch unit, and is used to obtain the inductor current zero-crossing signal of the inductor of the switch unit; the current sampling unit is electrically connected to the Ton signal control unit of the switch circuit control chip; The inductor current zero-crossing sampling unit is electrically connected to the adaptive locking bottom control unit of the switch circuit control chip; the switch circuit control chip is at least used to sample the output voltage sampling signal, the input voltage sampling signal, and the inductor current. The signal and the inductor current zero-crossing signal control the operation of the switching unit.
CN202310668140.5A 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit Active CN116388552B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310668140.5A CN116388552B (en) 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit
CN202311147895.7A CN117175906A (en) 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310668140.5A CN116388552B (en) 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311147895.7A Division CN117175906A (en) 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit

Publications (2)

Publication Number Publication Date
CN116388552A CN116388552A (en) 2023-07-04
CN116388552B true CN116388552B (en) 2023-09-19

Family

ID=86966067

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310668140.5A Active CN116388552B (en) 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit
CN202311147895.7A Pending CN117175906A (en) 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311147895.7A Pending CN117175906A (en) 2023-06-07 2023-06-07 Switching circuit control method, control chip and switching circuit

Country Status (1)

Country Link
CN (2) CN116388552B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119906259B (en) * 2025-04-01 2025-07-15 梵塔半导体技术(杭州)有限公司 PFC circuit control method, controller, chip and circuit

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104242658A (en) * 2014-09-19 2014-12-24 无锡芯朋微电子股份有限公司 Valley-switching digital control circuit of switch power source
CN104852579A (en) * 2014-02-14 2015-08-19 英飞凌科技奥地利有限公司 Switched-mode power converter
CN105024535A (en) * 2014-03-27 2015-11-04 英飞凌科技奥地利有限公司 Peak power limitation and overpower protection for switching regulated power supply
CN108173435A (en) * 2018-02-08 2018-06-15 无锡硅动力微电子股份有限公司 Switching Power Supply control unit and the adaptive the lowest point lock-in circuit of Quasi-resonant switching power supply
CN108574414A (en) * 2017-03-10 2018-09-25 半导体组件工业公司 For quasi-resonance QR converters frequency reduce method and for the controller of quasi-resonance QR converters
CN111490681A (en) * 2020-05-07 2020-08-04 安徽省东科半导体有限公司 Quasi-resonance switch power supply controller based on valley bottom locking
CN113595370A (en) * 2021-07-23 2021-11-02 成都启臣微电子股份有限公司 Dynamic tracking quasi-resonant valley bottom conduction circuit and method and primary side feedback switching power supply
CN115065254A (en) * 2022-08-19 2022-09-16 深圳英集芯科技股份有限公司 Control device and method of flyback switching power supply and charger
CN115473415A (en) * 2022-09-29 2022-12-13 杭州茂力半导体技术有限公司 Isolated switch converter and controller and control method thereof
CN115864853A (en) * 2023-01-29 2023-03-28 无锡硅动力微电子股份有限公司 Trough latching and switching control circuit and control method based on output power
CN115995953A (en) * 2023-01-10 2023-04-21 华大半导体有限公司 Control method of power factor correction circuit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9083250B2 (en) * 2012-07-27 2015-07-14 Stmicroelectronics S.R.L. Method and circuit for controlling a switching regulator
US9431911B2 (en) * 2014-07-16 2016-08-30 Grenergy Opto Inc. Switching mode power supply capable of providing a block time in response to an output current
US9787191B2 (en) * 2015-07-08 2017-10-10 Infineon Technologies Austria Ag Converter with quasi-resonant mode of operation for supplying power to a load
CN107248817B (en) * 2017-06-28 2019-06-18 成都芯源系统有限公司 Quasi-resonance control switching circuit and method
WO2019155379A1 (en) * 2018-02-12 2019-08-15 Silanna Asia Pte Ltd Quasi-resonant flyback converter controller

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852579A (en) * 2014-02-14 2015-08-19 英飞凌科技奥地利有限公司 Switched-mode power converter
CN105024535A (en) * 2014-03-27 2015-11-04 英飞凌科技奥地利有限公司 Peak power limitation and overpower protection for switching regulated power supply
CN104242658A (en) * 2014-09-19 2014-12-24 无锡芯朋微电子股份有限公司 Valley-switching digital control circuit of switch power source
CN108574414A (en) * 2017-03-10 2018-09-25 半导体组件工业公司 For quasi-resonance QR converters frequency reduce method and for the controller of quasi-resonance QR converters
CN108173435A (en) * 2018-02-08 2018-06-15 无锡硅动力微电子股份有限公司 Switching Power Supply control unit and the adaptive the lowest point lock-in circuit of Quasi-resonant switching power supply
CN111490681A (en) * 2020-05-07 2020-08-04 安徽省东科半导体有限公司 Quasi-resonance switch power supply controller based on valley bottom locking
CN113595370A (en) * 2021-07-23 2021-11-02 成都启臣微电子股份有限公司 Dynamic tracking quasi-resonant valley bottom conduction circuit and method and primary side feedback switching power supply
CN115065254A (en) * 2022-08-19 2022-09-16 深圳英集芯科技股份有限公司 Control device and method of flyback switching power supply and charger
CN115473415A (en) * 2022-09-29 2022-12-13 杭州茂力半导体技术有限公司 Isolated switch converter and controller and control method thereof
CN115995953A (en) * 2023-01-10 2023-04-21 华大半导体有限公司 Control method of power factor correction circuit
CN115864853A (en) * 2023-01-29 2023-03-28 无锡硅动力微电子股份有限公司 Trough latching and switching control circuit and control method based on output power

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Digital controller with integrated valley switching control for light load efficiency and THD improvements in PFC converter;H. Nene et al.;2017 IEEE Applied Power Electronics Conference and Exposition (APEC);第1785-1788页 *
一种宽恒流范围数字控制LED驱动电路;吴娜;冯全源;邸志雄;;微电子学(第02期);第66-69+78页 *

Also Published As

Publication number Publication date
CN116388552A (en) 2023-07-04
CN117175906A (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN109713889B (en) Power factor correction circuit and control method thereof
CN112134443B (en) A soft switching implementation and adaptive control method based on critical conduction mode
CN102664525A (en) Switching power supply circuit and control method thereof
CN112865510B (en) Pulse width period control system and method
CN112019019B (en) Drive control method, apparatus, home appliance, and computer-readable storage medium
CN110086368B (en) Light load efficiency optimization scheme of full-bridge inverter based on intermittent current mode
CN102810984A (en) A switching power supply circuit
CN112130049B (en) Soft switch detection circuit of power switch device and switching loss dynamic optimization method
US20250141359A1 (en) Power controller, switch-mode power supply, and control method thereof
CN116388552B (en) Switching circuit control method, control chip and switching circuit
CN103236790B (en) Method and device for controlling half-hysteresis ring pulse sequences of switching power supply in continuous working mode
CN114696579A (en) Power converter and control circuit thereof
CN113098286B (en) Synchronous rectification method for LCLCLCL resonant converter
TW202312635A (en) Hybrid flyback circuit and control method
TW201212496A (en) Switching mode power supply with burst mode operation
CN116015047A (en) Single-phase power factor correction converter and control method based on hybrid mode
CN115065244A (en) Control circuit and optimization method of four-switch buck-boost converter
CN104022672A (en) Self-adaptive adjustable delay circuit for soft-switch ZVT (zero voltage transformation) converter
CN116260320B (en) Switch circuit control method, switch circuit control chip and switch circuit
CN114024441A (en) Self-adaptive load frequency reduction control circuit
CN113193754A (en) Low-loss synchronous rectification control method and system suitable for LLC resonant circuit
CN119134885A (en) Control circuit and THD optimization method for PFC circuit
CN117060688A (en) Resonant circuit, control method thereof and control chip
CN111355392B (en) Adaptive synchronous rectification control system and method for LLC resonant converter
CN114448277A (en) Forward and reverse excitation AC/DC conversion circuit and control method

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