Lessons learned from TQ2440 LCD test failure

Publisher:快乐的天使Latest update time:2023-06-27 Source: elecfansKeywords:TQ2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Test environment: TQ2440 development board (matched with TQ4.3-inch screen)

Test bibliography: "Practical Bare Metal Development of ARM Processors - Mechanisms rather than Strategies" (hereinafter referred to as "Practical Bare Metal Development")

In Chapter 13 of "Bare Metal Development Practice", the LCD controller principle and experiment are explained with a TQ3.5-inch screen. I also noticed this at the beginning, so for some main configuration parameters (listed in the parameter table of the data manual data) are configured with reference to the data manual of the TQ4.3-inch screen. And neglected to pay attention to the timing diagram in the data sheet (because at a glance, the diagram in the reference book seems to be the same as the diagram in the data manual, so I didn’t pay much attention to it and just configured it according to the timing diagram in the textbook), The root cause of my initial test failure was precisely a parameter configuration on the timing diagram.

The wrong parameter is the configuration of INVVCLK in LCDCON5:

image

This bit sets whether to read pixel data on the rising edge of VCLK or on its falling edge. The following is a partial screenshot of the timing diagram given in the 4.3-inch screen data manual:

image

It is easy to see that for the 4.3-inch screen, the pixel data is read on the falling edge of VCLK. On the contrary, the 3.5-inch screen obtains pixel data on the rising edge of VCLK.

The test failed due to a momentary negligence, and I was confused about where the problem was. I checked the parameters over and over again, but still couldn't find the problem. The more I couldn't find the problem, the more confused I became, because I always believed that I configured everything according to the data manual. The parameters are obviously correct. It seems that we have such a thinking habit that the details we ignore the first time will still habitually not pay attention to it during subsequent inspections.

The lesson learned from this failed experiment is: you must pay attention to details from the beginning, be careful, and never be careless. Nothing can be taken for granted! ! !


Keywords:TQ2440 Reference address:Lessons learned from TQ2440 LCD test failure

Previous article:Embedded assembly language in GCC
Next article:Common errors when compiling existing projects in ADS: solutions to the file \\…\\…\\2440init.o cannot be opened

Recommended ReadingLatest update time:2024-11-15 08:15

TQ2440 Study Notes - 10. Basic knowledge of embedded programming [arm-linux-ld option]
arm-linux-ld is used to link multiple target files and library files into an executable file. Introducing the "-T" option, which can be used directly to specify the starting address of the code segment, data segment, and bss segment. It can also be used to specify a link script to perform more complex address settin
[Microcontroller]
TQ2440 Study Notes - 10. Basic knowledge of embedded programming [arm-linux-ld option]
Implementation principle of LCD driver in embedded system
  Combined with Samsung's arm9 series embedded processor S3C2410, this paper explains how to perform modular programming of LCD driver and how to statically load the driver into the system kernel.   LCD (liquid crystal display) module meets the increasing requirements of embedded systems. It can display Chinese chara
[Microcontroller]
STM8 MCU drives LCD module
The STM8L152XX series has an on-chip segment LCD driver, which provides a guarantee for low-cost applications and high-density system design. By using the on-chip LCD driver module, the overall power consumption of the system can be effectively controlled, the system structure can be simplified, and the overall reliab
[Microcontroller]
STM8 MCU drives LCD module
Samsung Display plans to exit LCD business in June
Microsoft China News: Microsoft released the "2021 Environmental Sustainability Report", which comprehensively introduces the progress made by Microsoft in 2021 to achieve the "2030 Goal" of negative carbon emissions, positive water benefits, and zero waste. Looking back to January 2020, when Microsoft first announced
[Mobile phone portable]
Samsung Display plans to exit LCD business in June
ARM platform LCD display Chinese characters
I have made countless Windows programs, but I have never thought of displaying Chinese characters and English letters as the same thing. This is no wonder. When writing window programs, SetWindowText, MessageBox, SetDlgItemText, etc., you only need to pass the string you want to display, then compile and link, and it
[Microcontroller]
JHD161A LCD display and its connection with PIC16F877 microcontroller
    The JHD161A LCD module is a liquid crystal display that uses 5x7 dot matrix graphics to display characters. It is a 1-line 16-character LCD display module produced by Wuhan Bokong Technology Co., Ltd. The control chip it uses is the KS0066 driver chip produced by Samsung Electronics. It uses a 16-pin interface, whe
[Microcontroller]
JHD161A LCD display and its connection with PIC16F877 microcontroller
OK6410A Development Board (V) 1 OK6410A u-boot-2021.01 LCD RGB interface
The LCD driver in u-boot is the LCD driver under the u-boot LCD driver framework, including LCD frame LCD driver The code is https://github.com/lisider/u-boot/tree/ok6410a Submit id: 54c4f9e1ec8017d51234e5909ca39662a257632d General Overview When initializing drv_lcd_init      1. Call the interface function p
[Microcontroller]
Section 002_S3C2440_LCD Controller
LCD controller main functions and required settings: Get: Get the data of a certain pixel from the memory (FrameBuffer); then tell the LCD controller the FrameBuffer address, BPP, and resolution; Send: send FrameBuffer data to LCD in conjunction with other signals; need to set LCD controller timing and pin polarity;
[Microcontroller]
Section 002_S3C2440_LCD Controller
Latest Microcontroller 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号