WO2021103799A1 - Method and device for pulse-width modulation (pwm) - Google Patents

Method and device for pulse-width modulation (pwm) Download PDF

Info

Publication number
WO2021103799A1
WO2021103799A1 PCT/CN2020/117964 CN2020117964W WO2021103799A1 WO 2021103799 A1 WO2021103799 A1 WO 2021103799A1 CN 2020117964 W CN2020117964 W CN 2020117964W WO 2021103799 A1 WO2021103799 A1 WO 2021103799A1
Authority
WO
WIPO (PCT)
Prior art keywords
pwm
gray scale
gray
frame rate
refresh period
Prior art date
Application number
PCT/CN2020/117964
Other languages
French (fr)
Chinese (zh)
Inventor
黄荣丰
陈志曼
陈运筹
Original Assignee
广州市雅江光电设备有限公司
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 广州市雅江光电设备有限公司 filed Critical 广州市雅江光电设备有限公司
Publication of WO2021103799A1 publication Critical patent/WO2021103799A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/32Pulse-control circuits
    • H05B45/325Pulse-width modulation [PWM]
    • 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
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the present invention relates to the technical field of lamps, in particular to a PWM pulse width modulation method and device.
  • PWM pulse width modulation modulates the duty cycle of a series of pulses to equivalently obtain the waveform of a signal with a proportional power output.
  • the PWM modifiable gray scale GRAY GCLK/FREQ
  • the PWM gray scale GRAY is inversely proportional to the PWM refresh frequency FREQ, that is, the larger the PWM gray scale GRAY, the smaller the PWM frequency FREQ , So that the PWM gray scale GRAY and the PWM refresh frequency FREQ cannot be increased at the same time.
  • the embodiment of the present invention provides a PWM pulse width modulation method and device, which can increase the PWM gray scale GRAY and the PWM refresh frequency FREQ.
  • an embodiment of the present invention provides a PWM pulse width modulation method, which includes at least the following steps:
  • the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
  • the method further includes:
  • the PWM pulse width is sequentially increased for modulation.
  • the modulation is performed by sequentially increasing the PWM pulse width within the frame rate refresh period T, specifically:
  • the frame rate refresh period T is greater than the PWM refresh period.
  • the embodiment of the present invention also provides a PWM pulse width modulation device, including a microprocessor, for:
  • the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
  • the square microprocessor is also used for:
  • the PWM pulse width is sequentially increased for modulation.
  • microprocessor is also used for:
  • the frame rate refresh period T is greater than the PWM refresh period.
  • the present invention provides a PWM pulse width modulation method and device, any of the embodiments has the following beneficial effects:
  • the PWM gray scale GRAY can be increased, and the PWM refresh frequency FREQ can be increased.
  • Fig. 1 is a flow chart of the PWM pulse width modulation method in an embodiment of the present invention
  • FIG. 2 is a schematic diagram of the PWM pulse width sequentially increasing modulation principle diagram of the PWM pulse width modulation method in the embodiment of the present invention
  • Fig. 3 is a schematic diagram of the sequential incremental modulation of the PWM pulse width of the PWM pulse width modulation method in the embodiment of the present invention.
  • an embodiment of the present invention provides a PWM pulse width modulation method, which includes at least the following steps:
  • the method further includes:
  • the modulation is performed by sequentially increasing the PWM pulse width within the frame rate refresh period T, specifically:
  • the frame rate refresh period T is greater than the PWM refresh period.
  • Figure 2 demonstrates the PWM output waveform with increasing dimming gray.
  • the PWM dimming gray increases with the repetitive cycle of the period T.
  • the frame rate refresh period is T
  • the minimum PWM period is t
  • an embodiment of the present invention also provides a PWM pulse width modulation device, including a microprocessor, for:
  • the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
  • the square microprocessor is also used for:
  • the PWM pulse width is sequentially increased for modulation.
  • microprocessor is also used for:
  • the frame rate refresh period T is greater than the PWM refresh period.
  • the present invention provides a PWM pulse width modulation method and device, which has the following beneficial effects:
  • Dimming gray scale GRAY is composed of the sum of multiple PWM gray scales
  • the PWM refresh frequency and frame rate are not equal, and the frame rate refresh period is greater than the PWM refresh period
  • the PWM pulse width increases in sequence with the grayscale increment. Within a frame rate refresh period, each PWM increases in sequence with the minimum grayscale.

Abstract

Disclosed are a method and device for pulse-width modulation (PWM). The method comprises: when a clock (GCLK) is fixed at a preset value, outputting PWM grayscales (g) in one PWM cycle (t), and increasing a refresh frequency (FREQ) by reducing the PWM grayscales (g), where the PWM grayscales (g) are less than or equal to a preset minimum PWM grayscale; acquiring a dimming grayscale (GRAY) when an N-number of the PWM grayscales (g) are added and a frame-frequency refresh cycle (T) for PWM output, and increasing the dimming grayscale (GRAY) by increasing the frame-frequency refresh cycle, where N is an integer greater than or equal to 1. The embodiments of the present invention increase the grayscale (GRAY) for PWM and additionally increase the refresh frequency (FREQ) of PWM.

Description

一种PWM脉冲宽度调制方法及装置A PWM pulse width modulation method and device 技术领域Technical field
本发明涉及灯具技术领域,尤其是涉及一种PWM脉冲宽度调制方法及装置。The present invention relates to the technical field of lamps, in particular to a PWM pulse width modulation method and device.
背景技术Background technique
目前,PWM脉冲宽度调制是通过对一系列脉冲的占空比进行调制,来等效地获得等比例功率输出的信号的波形。现有技术在系统时钟GCLK固定的情况下,PWM可调制的灰度GRAY=GCLK/FREQ,PWM灰度GRAY与PWM刷新频率FREQ成反比例关系,即PWM灰度GRAY越大,PWM频率FREQ越小,使得PWM灰度GRAY和PWM刷新频率FREQ不能同时提高。At present, PWM pulse width modulation modulates the duty cycle of a series of pulses to equivalently obtain the waveform of a signal with a proportional power output. In the prior art, when the system clock GCLK is fixed, the PWM modifiable gray scale GRAY=GCLK/FREQ, and the PWM gray scale GRAY is inversely proportional to the PWM refresh frequency FREQ, that is, the larger the PWM gray scale GRAY, the smaller the PWM frequency FREQ , So that the PWM gray scale GRAY and the PWM refresh frequency FREQ cannot be increased at the same time.
发明内容Summary of the invention
本发明实施例提供一种PWM脉冲宽度调制方法及装置,既可以提高PWM灰度GRAY,又可以提高PWM刷新频率FREQ。The embodiment of the present invention provides a PWM pulse width modulation method and device, which can increase the PWM gray scale GRAY and the PWM refresh frequency FREQ.
为了解决上述技术问题,本发明实施例提供了一种PWM脉冲宽度调制方法,至少包括以下步骤:In order to solve the above technical problems, an embodiment of the present invention provides a PWM pulse width modulation method, which includes at least the following steps:
当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,并通过降低所述PWM灰度g以提高刷新频率FREQ,其中,所述PWM灰度g小于等于预设的最小PWM灰度;When the clock GCLK is fixed to the preset value, the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
获得N个所述PWM灰度g相加后的调光灰度GRAY和PWM输出的帧频刷新周期T,并通过增加所述帧频刷新周期以增加所述调光灰度GRAY,其中,N为大于等于1的整数。Obtain the dimming gray scale GRAY after adding N of the PWM gray scales g and the frame rate refresh period T of the PWM output, and increase the dimming gray scale GRAY by increasing the frame rate refresh period, where N Is an integer greater than or equal to 1.
作为优选方案,所述方法还包括:As a preferred solution, the method further includes:
在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制。In the frame rate refresh period T, the PWM pulse width is sequentially increased for modulation.
作为优选方案,所述在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制,具体为:As a preferred solution, the modulation is performed by sequentially increasing the PWM pulse width within the frame rate refresh period T, specifically:
在所述帧频刷新周期T内,平均分配至每一PWM脉冲的占空比为 D=GRAY/N;In the frame rate refresh period T, the duty cycle equally distributed to each PWM pulse is D=GRAY/N;
将超出N倍脉冲的灰度R从第一个PWM脉冲开始逐一分配最小单元的灰度脉冲,直至分配完所述超出N倍脉冲的灰度R,其中,灰度R=G%N。The gray scale R exceeding the N times pulse is allocated one by one from the first PWM pulse to the gray scale pulse of the smallest unit until the gray scale R exceeding the N times pulse is allocated, where the gray scale R=G%N.
作为优选方案,所述帧频刷新周期T大于PWM刷新周期。As a preferred solution, the frame rate refresh period T is greater than the PWM refresh period.
本发明实施例还提供一种PWM脉冲宽度调制装置,包括微处理器,用于:The embodiment of the present invention also provides a PWM pulse width modulation device, including a microprocessor, for:
当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,并通过降低所述PWM灰度g以提高刷新频率FREQ,其中,所述PWM灰度g小于等于预设的最小PWM灰度;When the clock GCLK is fixed to the preset value, the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
获得N个所述PWM灰度g相加后的调光灰度GRAY和PWM输出的帧频刷新周期T,并通过增加所述帧频刷新周期以增加所述调光灰度GRAY,其中,N为大于等于1的整数。Obtain the dimming gray scale GRAY after adding N of the PWM gray scales g and the frame rate refresh period T of the PWM output, and increase the dimming gray scale GRAY by increasing the frame rate refresh period, where N Is an integer greater than or equal to 1.
作为优选方案,所述方微处理器还用于:As a preferred solution, the square microprocessor is also used for:
在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制。In the frame rate refresh period T, the PWM pulse width is sequentially increased for modulation.
作为优选方案,所述微处理器还用于:As a preferred solution, the microprocessor is also used for:
在所述帧频刷新周期T内,平均分配至每一PWM脉冲的占空比为D=GRAY/N;In the frame rate refresh period T, the duty cycle equally distributed to each PWM pulse is D=GRAY/N;
将超出N倍脉冲的灰度R从第一个PWM脉冲开始逐一分配最小单元的灰度脉冲,直至分配完所述超出N倍脉冲的灰度R,其中,灰度R=G%N。The gray scale R exceeding the N times pulse is allocated one by one from the first PWM pulse to the gray scale pulse of the smallest unit until the gray scale R exceeding the N times pulse is allocated, where the gray scale R=G%N.
作为优选方案,所述帧频刷新周期T大于PWM刷新周期。As a preferred solution, the frame rate refresh period T is greater than the PWM refresh period.
综上,本发明提供一种PWM脉冲宽度调制方法及装置,其任一种实施例具有如下有益效果:In summary, the present invention provides a PWM pulse width modulation method and device, any of the embodiments has the following beneficial effects:
当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,由于刷新频率FREQ=GCLK/g,通过降低所述PWM灰度g的方式能够提高刷新频率FREQ,也即减小PWM周期提高刷新频率FREQ;When the clock GCLK is fixed at the preset value, the PWM gray scale g is output in a PWM period t. Since the refresh frequency FREQ=GCLK/g, the refresh frequency FREQ can be increased by reducing the PWM gray scale g, that is, reduce Small PWM period increases the refresh frequency FREQ;
获得N个所述PWM灰度g相加后的调光灰度GRAY和PWM输出的帧频刷新周期T,通过增加所述帧频刷新周期以增加所述调光灰度GRAY;Obtain the dimming gray scale GRAY after adding the N PWM gray scales g and the frame rate refresh period T of the PWM output, and increase the dimming gray scale GRAY by increasing the frame rate refresh period;
这样,既可以提高PWM灰度GRAY,又可以提高PWM刷新频率FREQ。In this way, the PWM gray scale GRAY can be increased, and the PWM refresh frequency FREQ can be increased.
附图说明Description of the drawings
图1是本发明实施例中的PWM脉冲宽度调制方法的流程步骤图;Fig. 1 is a flow chart of the PWM pulse width modulation method in an embodiment of the present invention;
图2是本发明实施例中的PWM脉冲宽度调制方法的PWM脉冲宽度按顺序递增调制原理图;2 is a schematic diagram of the PWM pulse width sequentially increasing modulation principle diagram of the PWM pulse width modulation method in the embodiment of the present invention;
图3是本发明实施例中的PWM脉冲宽度调制方法的PWM脉冲宽度按顺序递增调制原理图。Fig. 3 is a schematic diagram of the sequential incremental modulation of the PWM pulse width of the PWM pulse width modulation method in the embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
请参见图1,本发明实施例提供了一种PWM脉冲宽度调制方法,至少包括以下步骤:Referring to FIG. 1, an embodiment of the present invention provides a PWM pulse width modulation method, which includes at least the following steps:
S101、当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,并通过降低所述PWM灰度g以提高刷新频率FREQ,其中,所述PWM灰度g小于等于预设的最小PWM灰度;S101. When the clock GCLK is fixed to a preset value, output the PWM gray scale g within a PWM period t, and increase the refresh frequency FREQ by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value. Set minimum PWM gray scale;
S102、获得N个所述PWM灰度g相加后的调光灰度Gray和PWM输出的帧频刷新周期T,并通过增加所述帧频刷新周期以增加所述调光灰度Gray,其中,N为大于等于1的整数。S102. Obtain the dimming gray gray after the addition of the N PWM gray levels g and the frame rate refresh period T of the PWM output, and increase the dimming gray gray by increasing the frame rate refresh period, wherein , N is an integer greater than or equal to 1.
在本实施例中,在系统时钟GCLK固定的情况下,首先在一个PWM周期t内输出较小的PWM灰度g,从而获得较大的刷新频率FREQ,FREQ=GCLK/g,然后将N个PWM灰度g相加组成所述调光灰度Gray,即Gray=gxN,而此时PWM输出的帧频刷新周期T=txN,这样,既可以提高PWM灰度Gray,又可以提高PWM刷新频率FREQ。In this embodiment, when the system clock GCLK is fixed, first output a smaller PWM gray scale g in a PWM period t, so as to obtain a larger refresh frequency FREQ, FREQ=GCLK/g, and then N The PWM gray level g is added to form the dimming gray gray, that is, Gray=gxN, and the frame rate refresh period T=txN of the PWM output at this time, so that both the PWM gray gray and the PWM refresh frequency can be increased FREQ.
作为优选方案,为了保证每个最小PWM周期内都有PWM脉冲波形输出,所述方法还包括:As a preferred solution, in order to ensure that there is a PWM pulse waveform output in each minimum PWM period, the method further includes:
S103、在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制。S103: In the frame rate refresh period T, the PWM pulse width is sequentially increased and modulated.
优选的,所述在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制,具体为:Preferably, the modulation is performed by sequentially increasing the PWM pulse width within the frame rate refresh period T, specifically:
在所述帧频刷新周期T内,平均分配至每一PWM脉冲的占空比为D=GRAY/N;In the frame rate refresh period T, the duty cycle equally distributed to each PWM pulse is D=GRAY/N;
将超出N倍脉冲的灰度R(灰度R=G%N)从第一个PWM脉冲开始逐一分配最小单元的灰度脉冲,直至分配完所述超出N倍脉冲的灰度R。The gray scale R (gray scale R=G%N) exceeding the N times pulse is allocated one by one from the first PWM pulse to the gray scale pulse of the smallest unit until the gray scale R exceeding the N times pulse is allocated.
其中,所述帧频刷新周期T大于PWM刷新周期。Wherein, the frame rate refresh period T is greater than the PWM refresh period.
如图2所示,图2演示的是调光灰度递增的PWM输出波形,PWM调光灰度Gray随着周期T的重复循环而增加。此时帧频刷新周期为T,最小PWM周期为t,则10个PWM周期组成一个帧频刷新周期T=10t,在一个最小PWM周期t内的灰度为g=100,在一个帧频刷新周期T内的调光灰度Gray=g*N=100*10=1000。As shown in Figure 2, Figure 2 demonstrates the PWM output waveform with increasing dimming gray. The PWM dimming gray increases with the repetitive cycle of the period T. At this time, the frame rate refresh period is T, and the minimum PWM period is t, then 10 PWM cycles constitute a frame rate refresh period T=10t, the gray scale in a minimum PWM period t is g=100, refresh at a frame rate The dimming gray scale in the period T is Gray=g*N=100*10=1000.
PWM调光灰度为Gray,PWM dimming gray scale is Gray,
当Gray=1时,在第一个帧频同期T1内有1个脉冲push1;When Gray=1, there is 1 pulse push1 in the same period T1 of the first frame rate;
当Gray=2时,在第二个帧频同期T2内有2个脉冲push1、push2;When Gray=2, there are 2 pulses push1 and push2 in the second frame rate and the same period T2;
当Gray=3时,在第三个帧频同期T3内有3个脉冲push1、push2、push3;When Gray=3, there are 3 pulses push1, push2, and push3 in the third frame rate and the same period T3;
…以此类推,…And so on,
当Gray=10时,在第十个帧频同期T10内有10个脉冲push1-push10;When Gray=10, there are 10 pulses push1-push10 in the same period T10 of the tenth frame rate;
接着如图3所示,Then as shown in Figure 3.
当Gray=11时,每一个PWM脉冲的占空比D=Gray1/N=11/10=1,余数为R=G%N=1。在一个帧频刷新周期T内每一个脉冲的占空比平均分配为D,超出的灰度R=1分配给第1个脉冲;When Gray=11, the duty ratio of each PWM pulse is D=Gray1/N=11/10=1, and the remainder is R=G%N=1. In a frame rate refresh period T, the duty cycle of each pulse is equally distributed as D, and the excess gray scale R=1 is allocated to the first pulse;
当Gray=12时,超出的灰度R=2分配给第1、2个脉冲;When Gray=12, the excess gray R=2 is allocated to the first and second pulses;
当Gray=13时,超出的灰度R=3分配给第1、2、3个脉冲;When Gray=13, the excess gray R=3 is allocated to the first, second, and third pulses;
…以此类推,按递增的方式分配给每一个PWM不同的脉冲宽度。…And so on, assigning different pulse widths to each PWM in an incremental manner.
作为示例性的,要实现灰阶16bit和刷新频率10K的PWM调制,按传统的PWM脉宽调制方式需要的时钟GCLK=65536*10000=655MHz,达到655MHz的 时钟需要很高速度的处理器,而且现今的驱动电路无法在这么高频率下工作,传统PWM脉宽调制方式很难在电路上实现高灰阶、高刷新频率的PWM调制信号。As an example, to achieve PWM modulation with a gray scale of 16bit and a refresh frequency of 10K, the clock required by the traditional PWM pulse width modulation method is GCLK=65536*10000=655MHz, and a clock reaching 655MHz requires a very high-speed processor, and Today's driving circuits cannot work at such a high frequency, and it is difficult for the traditional PWM pulse width modulation method to realize a high grayscale and high refresh frequency PWM modulation signal on the circuit.
而采用本发明的PWM脉冲宽度调制方法,以时钟GCLK=50M为例,实现灰阶16bit的调光灰度,输出一个完整画面的帧频刷新频率为50M/65536=762Hz,此时帧频Ft与刷新频率FREQ相等也是762Hz。如果将12bit灰阶为一个最小的PWM刷新周期,那么PWM刷新频率为FREQ=50M/4096=12.2K,将16个PWM刷新周期t组成一帧完整的画面,此时帧频Ft还是762Hz,从而用50M时钟实现,高灰阶16bit,高刷新频率12.2K的PWM脉宽调制。Using the PWM pulse width modulation method of the present invention, taking the clock GCLK=50M as an example, a 16-bit dimming gray scale is realized, and the frame rate of outputting a complete picture is 50M/65536=762Hz. At this time, the frame rate is Ft. The same as the refresh frequency FREQ is also 762 Hz. If the 12-bit gray scale is the smallest PWM refresh period, then the PWM refresh frequency is FREQ=50M/4096=12.2K, and 16 PWM refresh periods t form a complete frame. At this time, the frame frequency Ft is still 762Hz, so Realize with 50M clock, high grayscale 16bit, high refresh rate 12.2K PWM pulse width modulation.
对应所述PWM脉冲宽度调制方法,本发明实施例还提供一种PWM脉冲宽度调制装置,包括微处理器,用于:Corresponding to the PWM pulse width modulation method, an embodiment of the present invention also provides a PWM pulse width modulation device, including a microprocessor, for:
当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,并通过降低所述PWM灰度g以提高刷新频率FREQ,其中,所述PWM灰度g小于等于预设的最小PWM灰度;When the clock GCLK is fixed to the preset value, the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
获得N个所述PWM灰度g相加后的调光灰度Gray和PWM输出的帧频刷新周期T,并通过增加所述帧频刷新周期以增加所述调光灰度Gray,其中,N为大于等于1的整数。Obtain the dimming gray gray after adding the N PWM gray levels g and the frame rate refresh period T of the PWM output, and increase the dimming gray gray by increasing the frame rate refresh period, where N Is an integer greater than or equal to 1.
作为优选方案,所述方微处理器还用于:As a preferred solution, the square microprocessor is also used for:
在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制。In the frame rate refresh period T, the PWM pulse width is sequentially increased for modulation.
作为优选方案,所述微处理器还用于:As a preferred solution, the microprocessor is also used for:
在所述帧频刷新周期T内,平均分配至每一PWM脉冲的占空比为D=Gray/N;In the frame rate refresh period T, the duty cycle equally distributed to each PWM pulse is D=Gray/N;
将超出N倍脉冲的灰度R(灰度R=G%N)从第一个PWM脉冲开始逐一分配最小单元的灰度脉冲,直至分配完所述超出N倍脉冲的灰度R。The gray scale R (gray scale R=G%N) exceeding the N times pulse is allocated one by one from the first PWM pulse to the gray scale pulse of the smallest unit until the gray scale R exceeding the N times pulse is allocated.
作为优选方案,所述帧频刷新周期T大于PWM刷新周期。As a preferred solution, the frame rate refresh period T is greater than the PWM refresh period.
本发明提供一种PWM脉冲宽度调制方法及装置,具有如下有益效果:The present invention provides a PWM pulse width modulation method and device, which has the following beneficial effects:
1、当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,由于刷新频率FREQ=GCLK/g,通过降低所述PWM灰度g的方式能够提高刷新 频率FREQ,也即减小PWM周期提高刷新频率FREQ。1. When the clock GCLK is fixed at the preset value, the PWM gray scale g is output within a PWM period t. Since the refresh frequency FREQ=GCLK/g, the refresh frequency FREQ can be increased by reducing the PWM gray scale g, and That is, reduce the PWM period and increase the refresh frequency FREQ.
2、获得N个所述PWM灰度g相加后的调光灰度GRAY和PWM输出的帧频刷新周期T,通过增加所述帧频刷新周期以增加所述调光灰度GRAY。2. Obtain the dimming gray scale GRAY after adding the N PWM gray scales g and the frame rate refresh period T of the PWM output, and increase the dimming gray scale GRAY by increasing the frame rate refresh period.
3、调光灰度GRAY由多个PWM灰度相加的和组成;3. Dimming gray scale GRAY is composed of the sum of multiple PWM gray scales;
4、PWM刷新频率和帧频不等,帧频刷新周期大于PWM刷新周期;4. The PWM refresh frequency and frame rate are not equal, and the frame rate refresh period is greater than the PWM refresh period;
5、PWM脉冲宽度按顺序随着灰度递增而增加,在一个帧频刷新周期内,每个PWM以最小灰度按顺序递增。5. The PWM pulse width increases in sequence with the grayscale increment. Within a frame rate refresh period, each PWM increases in sequence with the minimum grayscale.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications are also considered. This is the protection scope of the present invention.

Claims (8)

  1. 一种PWM脉冲宽度调制方法,其特征在于,至少包括以下步骤:A PWM pulse width modulation method is characterized in that it includes at least the following steps:
    当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,并通过降低所述PWM灰度g以提高刷新频率FREQ,其中,所述PWM灰度g小于等于预设的最小PWM灰度;When the clock GCLK is fixed to the preset value, the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
    获得N个所述PWM灰度g相加后的调光灰度GRAY和PWM输出的帧频刷新周期T,并通过增加所述帧频刷新周期以增加所述调光灰度GRAY,其中,N为大于等于1的整数。Obtain the dimming gray scale GRAY after adding N of the PWM gray scales g and the frame rate refresh period T of the PWM output, and increase the dimming gray scale GRAY by increasing the frame rate refresh period, where N Is an integer greater than or equal to 1.
  2. 如权利要求1所述的PWM脉冲宽度调制方法,其特征在于,所述方法还包括:3. The PWM pulse width modulation method of claim 1, wherein the method further comprises:
    在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制。In the frame rate refresh period T, the PWM pulse width is sequentially increased for modulation.
  3. 如权利要求2所述的PWM脉冲宽度调制方法,其特征在于,所述在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制,具体为:3. The PWM pulse width modulation method according to claim 2, wherein the modulation is performed by sequentially increasing the PWM pulse width within the frame rate refresh period T, specifically:
    在所述帧频刷新周期T内,平均分配至每一PWM脉冲的占空比为D=GRAY/N;In the frame rate refresh period T, the duty cycle equally distributed to each PWM pulse is D=GRAY/N;
    将超出N倍脉冲的灰度R从第一个PWM脉冲开始逐一分配最小单元的灰度脉冲,直至分配完所述超出N倍脉冲的灰度R,其中,灰度R=G%N。The gray scale R exceeding the N times pulse is allocated one by one from the first PWM pulse to the gray scale pulse of the smallest unit until the gray scale R exceeding the N times pulse is allocated, where the gray scale R=G%N.
  4. 如权利要求1所述的PWM脉冲宽度调制方法,其特征在于,所述帧频刷新周期T大于PWM刷新周期。3. The PWM pulse width modulation method of claim 1, wherein the frame rate refresh period T is greater than the PWM refresh period.
  5. 一种PWM脉冲宽度调制装置,其特征在于,包括微处理器,用于:A PWM pulse width modulation device is characterized in that it comprises a microprocessor and is used for:
    当时钟GCLK固定为预设值时,在一个PWM周期t内输出PWM灰度g,并通过降低所述PWM灰度g以提高刷新频率FREQ,其中,所述PWM灰度g小于等于预设的最小PWM灰度;When the clock GCLK is fixed to the preset value, the PWM gray scale g is output in one PWM period t, and the refresh frequency FREQ is increased by reducing the PWM gray scale g, wherein the PWM gray scale g is less than or equal to the preset value Minimum PWM gray scale;
    获得N个所述PWM灰度g相加后的调光灰度GRAY和PWM输出的帧频刷新周期T,并通过增加所述帧频刷新周期以增加所述调光灰度GRAY,其中,N为大于等于1的整数。Obtain the dimming gray scale GRAY after adding N of the PWM gray scales g and the frame rate refresh period T of the PWM output, and increase the dimming gray scale GRAY by increasing the frame rate refresh period, where N Is an integer greater than or equal to 1.
  6. 如权利要求1所述的PWM脉冲宽度调制装置,其特征在于,所述方微处理器还用于:3. The PWM pulse width modulation device of claim 1, wherein the square microprocessor is further used for:
    在所述帧频刷新周期T内按顺序递增PWM脉冲宽度进行调制。In the frame rate refresh period T, the PWM pulse width is sequentially increased for modulation.
  7. 如权利要求6所述的PWM脉冲宽度调制装置,其特征在于,所述微处理器还用于:7. The PWM pulse width modulation device of claim 6, wherein the microprocessor is further used for:
    在所述帧频刷新周期T内,平均分配至每一PWM脉冲的占空比为D=GRAY/N;In the frame rate refresh period T, the duty cycle equally distributed to each PWM pulse is D=GRAY/N;
    将超出N倍脉冲的灰度R从第一个PWM脉冲开始逐一分配最小单元的灰度脉冲,直至分配完所述超出N倍脉冲的灰度R,其中,灰度R=G%N。The gray scale R exceeding the N times pulse is allocated one by one from the first PWM pulse to the gray scale pulse of the smallest unit until the gray scale R exceeding the N times pulse is allocated, where the gray scale R=G%N.
  8. 如权利要求5所述的PWM脉冲宽度调制装置,其特征在于,所述帧频刷新周期T大于PWM刷新周期。5. The PWM pulse width modulation device of claim 5, wherein the frame rate refresh period T is greater than the PWM refresh period.
PCT/CN2020/117964 2019-11-29 2020-09-26 Method and device for pulse-width modulation (pwm) WO2021103799A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911212228.6 2019-11-29
CN201911212228.6A CN110996449B (en) 2019-11-29 2019-11-29 PWM pulse width modulation method and device

Publications (1)

Publication Number Publication Date
WO2021103799A1 true WO2021103799A1 (en) 2021-06-03

Family

ID=70089019

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117964 WO2021103799A1 (en) 2019-11-29 2020-09-26 Method and device for pulse-width modulation (pwm)

Country Status (2)

Country Link
CN (1) CN110996449B (en)
WO (1) WO2021103799A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996449B (en) * 2019-11-29 2021-12-21 广州市雅江光电设备有限公司 PWM pulse width modulation method and device
CN113851074B (en) * 2020-06-28 2023-07-28 深圳市明微电子股份有限公司 LED driving pulse modulation method and device
CN116997051B (en) * 2023-09-27 2023-12-08 中科(深圳)无线半导体有限公司 LED dimming method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070164930A1 (en) * 2006-01-19 2007-07-19 Macroblock, Inc. LED driving device with pulse width modulation
CN105764204A (en) * 2014-12-18 2016-07-13 欧普照明股份有限公司 PWM light modulation method and device
CN106332408A (en) * 2015-07-03 2017-01-11 点晶科技股份有限公司 Signal generation method and circuit for controlling brightness of light emitting diode
CN107205293A (en) * 2016-03-18 2017-09-26 明阳半导体股份有限公司 Light emitting diode driving circuit and method
CN109152136A (en) * 2018-08-31 2019-01-04 广州市雅江光电设备有限公司 A kind of gray scale increase method of LED lamp
CN110996449A (en) * 2019-11-29 2020-04-10 广州市雅江光电设备有限公司 PWM pulse width modulation method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5872554A (en) * 1995-10-16 1999-02-16 Inventec Corporation Method and apparatus for non-blinking displaying of grayscale image on monochrome LCD screen
US7528822B2 (en) * 2001-11-20 2009-05-05 E Ink Corporation Methods for driving electro-optic displays
CN101937638B (en) * 2010-08-20 2012-05-30 广州杰赛科技股份有限公司 Greyscale scanning output method and device
CN102157130A (en) * 2011-04-14 2011-08-17 苏州和迈微电子科技有限公司 Pulse width modulating method for LED driving integrated circuit
CN102779480B (en) * 2012-08-17 2015-04-15 深圳市易事达电子股份有限公司 Display screen drive circuit and light-emitting diode display device
CN103000119B (en) * 2012-12-12 2015-04-08 京东方科技集团股份有限公司 Display driving circuit, display driving method, array substrate and display device
CN103310735B (en) * 2013-06-27 2015-08-05 深圳市明微电子股份有限公司 A kind of support gray shade scale to expand display control method and system
US9952642B2 (en) * 2014-09-29 2018-04-24 Apple Inc. Content dependent display variable refresh rate
CN107507557B (en) * 2016-06-14 2019-10-11 深圳市富满电子集团股份有限公司 A kind of LED driving pulse width dividing method and system
CN109147653B (en) * 2018-10-09 2020-04-10 中国电子科技集团公司第五十八研究所 LED driving chip display control OS-PWM method
CN110277052B (en) * 2019-06-13 2020-08-04 华中科技大学 Full-color L ED driving chip with multi-row scanning high refresh rate and driving method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070164930A1 (en) * 2006-01-19 2007-07-19 Macroblock, Inc. LED driving device with pulse width modulation
CN105764204A (en) * 2014-12-18 2016-07-13 欧普照明股份有限公司 PWM light modulation method and device
CN106332408A (en) * 2015-07-03 2017-01-11 点晶科技股份有限公司 Signal generation method and circuit for controlling brightness of light emitting diode
CN107205293A (en) * 2016-03-18 2017-09-26 明阳半导体股份有限公司 Light emitting diode driving circuit and method
CN109152136A (en) * 2018-08-31 2019-01-04 广州市雅江光电设备有限公司 A kind of gray scale increase method of LED lamp
CN110996449A (en) * 2019-11-29 2020-04-10 广州市雅江光电设备有限公司 PWM pulse width modulation method and device

Also Published As

Publication number Publication date
CN110996449A (en) 2020-04-10
CN110996449B (en) 2021-12-21

Similar Documents

Publication Publication Date Title
WO2021103799A1 (en) Method and device for pulse-width modulation (pwm)
TWI291311B (en) PWM illumination control circuit with low visual noise for LED
JP6335213B2 (en) Method and circuit for generating signal for controlling luminance of light emitting diode
JP2001350439A (en) Modulation circuit and picture display device using the same
JP2009016104A (en) Control method and control device as well as planar light source, and control method of planar light source
US11184962B2 (en) Breathing light adjusting method, apparatus and electronic device
JP2002258820A (en) Automatic brightness controller for liquid crystal display module, and its method
WO2021128558A1 (en) Signal generation apparatus, driving chip, display system and led displaying driving method
JP2003173173A (en) Liquid crystal driving device
US9380668B2 (en) PDM modulation of LED current
JP2020532033A5 (en)
CN110809346B (en) Light adjusting method, light adjusting device and terminal equipment
CN109152136B (en) Gray scale increasing method of LED lamp
CN111081191B (en) Circuit device for controlling backlight source and operation method thereof
JP2002236474A (en) Liquid crystal display device and its driving method
CN110599951B (en) Image data output circuit, display circuit and method
WO2013054730A1 (en) Pulse generation device and pulse generation method
CN109545125A (en) Using the pulse modulation control method and system of pulse width backoff algorithm
TW200807360A (en) Gamma voltage output circuit and liquid crystal display device using the same
JP2011211271A (en) Signal generator
CN210110305U (en) Mu LED pixel driving circuit system
JPS63194296A (en) Light emitting display driving circuit
CN117935732A (en) Dimming method of organic light-emitting display device
JP2545455Y2 (en) Display dimmer
JPH0537487Y2 (en)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20891828

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20891828

Country of ref document: EP

Kind code of ref document: A1