Contacts & links

Designer

Name days

Today:
Tomorrow:

Weather

Počasí Hradec Králové - Slunečno.cz

Other

Actual date:

STM32F407VGT6 ARM (STM32F4 Discovery kit) and 320x240 LCD TFT module (SSD1289 + XPT2046)

The attached code solves connection of ARM STM32F407VGT6 (STM32F4 Discovery kit) with graphic LCD module display (driver: SSD1289, resolution: 320x240, touch panel: ADS7843 or XPT2046). It is example of possible communication, written in Keil uVision4 environment. Despite of the fact there are many videos showing this topic, it is very hard to find any usable code, prepared for compilation.

I would like to thank to Martin Šerík, who has inspired me with his piece of code, available here.

Let me also thank to Megahercas for his advices and code examples sent to my email.

Code link: glcdarm.zip

For correct speed, you have to modify HSE_VALUE in stmf4xx.h file (default path C:\Program Files\Keil4\ARM\INC\ST\STM32F4xx\).
The right definition is:
#define HSE_VALUE ((uint32_t)8000000)