Method of realizing grayscale of LED display screen by pulse width modulation

Publisher:创新之梦Latest update time:2011-06-10 Source: 互联网Keywords:PWM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Pulse width modulation is to achieve grayscale by controlling the light-emitting time of LED . The photoelectric response speed of LED is relatively fast, which can reach tens of megahertz. Therefore, we can use the control circuit to light up and extinguish the LED at high speed to obtain fine grayscale. In this way, the current driving the LED becomes a series of pulses, and the width of the pulse is modulated by the image data, so it is called pulse width modulation. This method has low control cost, high control accuracy and good linearity, and has been widely used.

1. Weight Lighting Method

Taking the corrected 12-bit image data D11...D0 as an example to illustrate this method, first convert the parallel data into serial data, and then output the LED lights in turn . When the highest bit D11 is output, the LED lights need to be turned on (or off) for 2 048 clock cycles (the LED lights are turned on when D11 is high, and the LED lights are turned off when D11 is low); when D10 is output, 1 024 clock cycles are required; and so on, only one clock cycle is required when D0 is output. In this way, 4 096 clock cycles are required to complete the grayscale formation of a pixel. Obviously, this method is too time-consuming, and it is generally not used in practice.

2. Weight Extinction Method

Still taking the corrected 12-bit image data D11...D0 as an example to illustrate this method, firstly, the parallel data is still converted into serial data, and then the LED lights are output in turn. However, this method only needs 12 clock cycles to complete the grayscale formation of one pixel. This method defines that when outputting D11, the LED light needs to be turned on (or off) for 1 clock cycle; then, DIO is 1/2 clock cycle; D9 is 1,4 clock cycle; and so on, D0 is 1/2048 clock cycle. It should be noted that the clock mentioned here refers to the lock clock (LAT) of the LED driver output to the LED display screen , which is generally around 1 000-3 000Hz (the internal clock of the main control chip is generally above 100 MHz). When each bit of image data is output and locked on the screen, the main control chip outputs a signal called "blanking pulse" (OE), which is generally defined as turning off the LED when OE is high and turning on the LED when OE is low. The width of the OE pulse must be precisely controlled. When outputting D11, OE outputs 1 clock cycle; when outputting DO, OE outputs 1/2 048 clock cycles. Although this method has a small time cost, it greatly sacrifices the brightness of the display screen . If the image data is fully bright (that is, D11... D0 are all 1), the brightness of the display screen is only 17% (approximate value) of the weighted lighting method. The formula is as follows:

Brightness percentage = 1/12 (1+1/2+1/4+1/8+1/16+1/32+1/64+1/128+1/256+1/512+1/1 024+1/2 048) = 17%

Obviously, such brightness is unacceptable.

3. Hybrid method

In order to increase the brightness of the screen without wasting too much time, the two methods can be mixed. For example, we can make D11 repeat 8 times, D10 repeat 4 times, D9 repeat 2 times, D8 output once, and from D7 on, the pulse width of OE is halved, and when D0 is output, the pulse width of OE is 1/256. This method requires 23 clock cycles to complete the grayscale formation of a pixel. It is much less than the 4,096 clock cycles of the weighted lighting method, and the brightness of the screen can reach 70% (approximate value) of the weighted lighting method. The formula is as follows:

Brightness percentage = 1/23 (8+4+2+1+1/2+1/4+l/8+1/16+1/32+1/64+1/128+l/256) = 70%

Generally speaking, this brightness should be acceptable. If you want to increase the brightness, you can repeat D11 16 times or more; conversely, if you want to reduce the time cost, you can reduce the repetition of D11 a little bit. You can't have both, and you need to consider comprehensively.



Keywords:PWM Reference address:Method of realizing grayscale of LED display screen by pulse width modulation

Previous article:Analysis on improving the efficiency of medium voltage boost converter in LED backlight system
Next article:Output power measurement in an electrolytic capacitor-free LED driver solution

Recommended ReadingLatest update time:2024-11-16 19:35

High-precision PWM (pulse width modulation) 12-bit DA converter with easy adjustment
High-precision PWM (pulse width modulation) 12-bit DA converter with easy adjustment Function of the circuit Pulse width modulation DA converters are mostly used in slow response power supply control circuits. Because the output voltage depends on the duty cycle, as long as the full-scale voltage is adjusted, i
[Analog Electronics]
High-precision PWM (pulse width modulation) 12-bit DA converter with easy adjustment
[Self-study 51 MCU] 10 -- PWM introduction, 51 MCU RAM area division
1. PWM Introduction PWM (Pulse Width Modulation), also known as pulse width modulation in Chinese, can use digital signals to achieve the effect of an analog signal. Pulse width modulation is to change the pulse width to achieve different effects. See Figure 10-1 for three groups of pulse signals. It is a waveform w
[Microcontroller]
[Self-study 51 MCU] 10 -- PWM introduction, 51 MCU RAM area division
The PCA module of STC12C5A60S2 outputs PWM wave
PCA is a module and a hardware structure, as shown in the following figure The 16-bit PCA timer/counter is equivalent to timer 0/1. It will automatically increase by 1 after each clock cycle. The clock cycle comes from the following parts: A clock cycle may be (SYSclk/1, SYSclk/2...), and the last external input r
[Microcontroller]
The PCA module of STC12C5A60S2 outputs PWM wave
Key points of designing AVR microcontroller timing counter based on PWM function
1. Key points of timer/counter PWM design  According to the characteristics of PWM (Pulse Width Modulation (PWM: (Pulse Width Modulation) is a very effective mode that uses the digital output of the microprocessor to control the analog circuit)), the following points should be noted when using the ATmega128 timer/co
[Microcontroller]
STM8S uses timer 1 to output PWM from CH4 through official LIB
I was confused when reading the Chinese datasheet of STM8S. It took me two nights to debug this function. Post the following code for your reference: TIM1_DeInit(); TIM1_TimeBaseInit(16, TIM1_COUNTERMODE_UP, 999, 0x00); //250 TIM1_OC4Init(TIM1_OCMODE_PWM1, TIM1_OUTPUTSTATE_ENABLE, 499, TIM1_OCPOLARITY_LOW, TIM1_OC
[Microcontroller]
Design of a sine wave output inverter power supply based on single chip microcomputer
Low-voltage, low-power inverter power supplies have been widely used in industrial and civilian fields. In particular, the development and utilization of new energy sources, such as the widespread use of solar cells, requires an inverter system to convert the DC voltage output by solar cells into 220V, 50Hz AC volta
[Power Management]
Design of a sine wave output inverter power supply based on single chip microcomputer
STC MCU IO configuration and PWM
I/O Port Layout            All I/O ports of the STC2C5201AD series microcontrollers can be configured by software to one of four working types, as shown in the following table. The four types are: quasi-bidirectional port/weak pull-up (standard 8051 output mode), strong push-pull output/strong pull-up, input only (hig
[Microcontroller]
STC MCU IO configuration and PWM
The important role of power factor corrector (PFC) in power supply applications
Traditional off-line switch-mode power converters produce non-sinusoidal input currents with high harmonic content. This can stress power lines, circuit breakers, and power utilities. In addition, harmonics can affect other electronic devices connected to the same power line. Active power factor correctors (PFCs) that
[Power Management]
The important role of power factor corrector (PFC) in power supply applications
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号