4189 views|6 replies

1991

Posts

24

Resources
The OP

[M4 development board Hanker trial maniac-Shower.Xu]-2. LCD driver [Copy link]

I'm so sorry, I'm busy with a project recently and have to work overtime on weekends, so I can only do this at night. Compared to boring work, I love this...:tongue:

I got familiar with the LCD module driver these past two nights, and pieced together a small program. It's late now, and I have to go to work tomorrow, so I'll show you a few photos and videos first.


I feel that the person who wrote the routine code has a deep understanding of the underlying drivers and operating systems. I was very impressed after reading the code.



For update program download, see the attachment.

The development board driver is a very common ili9320 control chip. Many development boards use this control IC. There are many routines and materials on the Internet, you can search for them.

The display screen uses 16-bit data parallel port transmission, so the screen refresh speed is fast.

The main functions of the display driver are initialization function and point drawing/reading function, which are the basis of operating the screen. We would like to thank the developer of the development board, the routine has already written this part for us.

All we have to do is to implement operations such as drawing lines, clearing the screen, drawing rectangles, and outputting characters on this basis. Of course, these can be implemented by calling the point drawing function, but it will affect the speed. We'd better select the window area
The way to write control words and data, although you need to look at DS more, can speed up the display speed. So I put together the following functions
extern void lcd_ili932x_Clear(unsigned long ulcolor);
extern void lcd_ili932x_DrawRectangle(unsigned long x1,unsigned long y1,unsigned long x2,
unsigned long y2,unsigned long ulValue,unsigned char mode);
extern void lcd_ili932x_Draw_Circle(unsigned long x0,unsigned long y0,unsigned char r,
unsigned long ulValue);
extern void lcd_ili932x_ShowChar(unsigned short x, unsigned short y, unsigned char num,
unsigned char size,unsigned char mode);
extern void lcd_ili932x_ShowNum(unsigned short x, unsigned short y, unsigned long num,
unsigned char len,unsigned char size);
extern void lcd_ili932x_ShowString(unsigned short x, unsigned short y, const unsigned char *p);

If you want to understand, please read the code. I will explain it in detail after the whole program is completed.






Video


[This post was last edited by shower.xu on 2012-5-14 19:48]

IMG_1269.JPG (59.09 KB, downloads: 1)

指示灯状态

指示灯状态

IMG_1270.JPG (84.69 KB, downloads: 1)

IMG_1270.JPG

IMG_1271.JPG (104.94 KB, downloads: 1)

界面

界面

IMG_1272.JPG (59.86 KB, downloads: 1)

运行

运行

IMG_1275.JPG (38.98 KB, downloads: 1)

没用TI图形库

没用TI图形库

GUI_LEDtestv1.12.rar

257.1 KB, downloads: 66

This post is from Microcontroller MCU

Latest reply

LM4F does not seem to have an external bus. Is it a 16-bit data bus simulated by GPIO?  Details Published on 2012-5-18 20:52

1237

Posts

19

Resources
2
Not bad! :)
This post is from Microcontroller MCU

997

Posts

1

Resources
3
The OP is awesome~~ Why do you all use Keil to program~~:Sad:
This post is from Microcontroller MCU

1991

Posts

24

Resources
4
Originally posted by jobszheng5 on 2012-5-13 11:58 The original poster is really awesome~~ Why do you all use Keil to program~~:Sad:
I'm just used to it, but I feel it's a bit slow when compiling, especially for UCGUI:titter:
[This post was last edited by shower.xu on 2012-5-13 13:29]
This post is from Microcontroller MCU

1237

Posts

19

Resources
5
I plan to use Iar for UCGUI! Otherwise it will be so slow! :Sweat:
This post is from Microcontroller MCU

4118

Posts

0

Resources
6
:victory:
This post is from Microcontroller MCU

467

Posts

0

Resources
7
LM4F does not seem to have an external bus. Is it a 16-bit data bus simulated by GPIO?
This post is from Microcontroller MCU
Personal signatureNicrosystem专业提供freescale、TI和STM32高性价比开发板、解决方案
http://nicrosystem.taobao.com

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

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