961 views|4 replies

28

Posts

0

Resources
The OP
 

[Domestic high-performance motion control MCU Xianji HPM5361] Teach you how to light up the TFT LCD screen step by step [Copy link]

  This post was last edited by Dora without pockets on 2023-12-11 13:44

Hello everyone, it's been another week. I'm sorry that I haven't updated quickly enough, because I'm really busy at work, so I can only do it during lunch break and after work at night. Without further ado, let's get down to business. This issue is a tutorial on lighting up the LCD screen. The LCD we use is a 3.5-inch 320x480 resolution LCD panel driven by ILI9488. Let's start with the graphic tutorial. Don't be fooled by the small number of words in this tutorial, but it's full of dry goods!!! In the future, my tutorials will be as short and concise as possible so that you can learn real knowledge.

First, open the information provided by the seller, which contains reference code. We can use it with CV. The seller provides two routines, one for C51 and one for STM32. We can use the STM32 one. (I will upload the routines mentioned in this article to the attachment)

Copy the LCD related drivers in the example to our newly created project path

Open the LCD.H file, add the relevant header files, and delete the original STM32 header files

Modify the 8080 driver. Thanks to the high IO speed of the previous generation, we directly use IO to simulate the 8080 timing.

The pin connections are as follows:

Add lcd.h header file to main.c

Remember to add IO initialization before the main loop and set all used IO to push-pull output

The next step is the wiring, which is quite a bit of work. Just follow the pinout in the code to connect. (I will later open source a dedicated LCD module for the pre-editing board.)

I wrote a test code casually, as shown below

Compile and download in one go. It's very simple to see the effect directly. That's it.

LCD.zip (9.78 KB, downloads: 1, 售价: 10 分芯积分)

LCD.txt (205 Bytes, downloads: 1, 售价: 1 分芯积分)

This post is from Domestic Chip Exchange

Latest reply

It's lit up. He actually lit up.   Details Published on 2023-12-13 10:03
 
 

28

Posts

0

Resources
2
 
For those who don't have points, please like and follow us, or just leave your email address.
This post is from Domestic Chip Exchange

Comments

That makes sense. The key is that the TFT LCD lights up.  Details Published on 2023-12-13 09:10
That makes sense. The key is that the TFT LCD lights up.  Details Published on 2023-12-11 16:30
 
 
 

6067

Posts

4

Resources
3
 
Dora without pockets posted on 2023-12-11 13:45 For those who don’t have points, please like and follow, or just leave your email address

That makes sense. The key is that the TFT LCD lights up.

This post is from Domestic Chip Exchange
 
 
 

6841

Posts

11

Resources
4
 
Dora without pockets posted on 2023-12-11 13:45 For those who don’t have points, please like and follow, or just leave your email address

Boss, your first tutorial is a classic. Your spirit of sharing is so great. I appreciate your sharing. I look forward to sharing better tutorials!

This post is from Domestic Chip Exchange
 
 
 

36

Posts

0

Resources
5
 

It's lit up. He actually lit up.

This post is from Domestic Chip Exchange
 
 
 

Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list