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:
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:
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! ! !
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
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- SOPC technology and Nios-II soft-core processor
- Microwave Communications
- I made a development board based on your suggestions.
- During the STM32 hardware simulation debugging process, the system stops at a certain point and does not run further.
- Please help me solve my doubts if you know how to use 6N317 chip
- Morris Chang: China's semiconductor manufacturing lags behind Taiwan by five years
- Isolation and filtering of electromagnetic waves
- Designing Accurate and Versatile Li-ion Battery Testing Solutions
- Find library component modifications
- Please recommend a 485 automatic transceiver chip, 3.3V version.