tft lcd flicker factory
While some display controllers cause flicker any time they are written, this particular controller shouldn"t have that problem. I would guess you are having flicker because on each update you are writing parts of the display with one value and then rewriting them with another. To avoid flicker, don"t do that. Figure out what the correct value should be for each pixel before you write it. If your display consists of various non-overlapping rectangles that could move around, and if you"re presently erasing the whole screen and then drawing your rectangular objects, you may be able to improve both performance and appearance by only erasing regions where no objects are supposed to appear; depending upon the application, you may be able to improve performance further by only erasing regions where objects used to exist but have just "disappeared".
If you draw data onto the screen in a direction perpendicular to the display scan, you will get the type of diagonal lines you observe here. If you draw data linearly in a direction which is parallel to the display scan at a rate which is slower than the scan rate, there will be an observable "tear" each time the display scan overtakes your drawing. If you draw data at a rate which is faster than the scan rate, and do so in a fashion which is synchronized with the display scan, you can avoid having any kind of display artifacting, but I have not observed any color LCDs (and very few monochrome ones) with a CPU interface which would allow a connected CPU to synchronize updates with the display scanning. That"s too bad, because such an ability would allow cleaner display updates than are possible otherwise. A nice easy technique which was used in many arcade games designed by Eugene Jarvis in the early 1980"s was to have the display scanning process interrupt the processor when the scan hits the middle of the screen and again when it hits the bottom. When the scan hits the middle of the screen, everything above the current scan line may be safely updated without flicker provided the updates happen before the scan reaches the bottom. When the scan hits the bottom, everything below the middle may be updated without flicker, provided the updates happen before the scan reaches the middle. It looks as though this controller chip does provide a function to output a pulse when the scan reaches a specified point ("tearing effect line") but I would conjecture that the output is probably not wired to a pin on the display"s connector.
Flicker is almost always a timing issue. In theory it"s possible it"s a wiring issue in the LED, and unstable power can be unpredictable, so check you connections, solder joints, and power supply. Use the shortest cable possible between the screen and whatever it"s connected to. If your hardware is good, try and slow down your timing/refresh rates/etc. The Mega doesn"t have much in the way of RAM and can easily choke trying to push that many frames of that many pixels per second. It"s also worth knowing how you are connecting to the screen, I2C, SPI, etc
Electrical simulation of the flicker in poly-Si TFT-LCD pixels for the large-area and high-quality TFT-LCD development and manufacturing@article{Son2004ElectricalSO,
Display flicker is an important electro-optical measure of the display quality of a thin-film-transistor liquid-crystal display (TFT LCD). Currently, displays are tuned at the factory using flicker detection equipment that is relatively expensive and bulky. This disclosure describes techniques that leverage the internal optical sensor of the display-under-test to measure display flicker. The techniques reduce factory test-fixture costs and sizes, and also simplify test procedures.
In the past decade, LCD monitors have replaced CRT screens for all but the most specialist applications. Although liquid crystal displays boast perfect
Therefore I copy and pasted the BSP folder(STM32F429I-Discovery) of the CubeMX repository folder and the whole components folder and included my ili9341.h and stm32f429i_discovery_lcd.h and configured via CubeMX the DMA2D,LTDC,FMC(for SDRAM) and just activated my RCC Crystal/Ceramic resonater.
Golden View Display wants you to make an informed choice among our LCD products. The tech center provides you with most of the information you will need to understand liquid crystal displays.