STM32: Problems Connecting a Display via LTDC.

STM32: Problems Connecting a Display via LTDC.
STM32

In one of my previous articles I described how to connect a display to an STM32 microcontroller using the LTDC interface. The article ended with a video showing an image on the display built into the DISCOVERY board. Naturally, my next wish was to run something bigger and connect it myself, so that I'd have a complete picture in my head. I ordered a 7-inch display from China...

Connecting a Resistive Touch Panel with an XPT2046 Driver to STM32 and Calibrating It Using Four Points.

Connecting a Resistive Touch Panel with an XPT2046 Driver to STM32 and Calibrating It Using Four Points.
Дисплеи

There are already several articles about resistive touch panels on this site: here you can read how they work, and here how to connect one to an AVR and calibrate it. So below I'll only talk about the subtleties of working with such a panel. As you know, data exchange with the XPT2046 happens over SPI, so you just need to find a free one and connect to it. Usually, to see which pins are assigned to which SPI...

Connecting a TFT Display to STM32 via FSMC, Using the SSD1963 as an Example.

Connecting a TFT Display to STM32 via FSMC, Using the SSD1963 as an Example.
Дисплеи

Here's how it happened: one of the site's visitors sent me, as a gift, a 5-inch TFT display controlled by the SSD1963 driver. About ten days later the parcel arrived, but the box it was packed in was dented and the display itself was broken. I wrote to the sender about it, and he immediately ordered the same display on eBay in my name, for which I thank him. No more than two weeks had passed since...

Drawing Geometric Shapes on a TFT Display, Using the ILI9341 as an Example.

Drawing Geometric Shapes on a TFT Display, Using the ILI9341 as an Example.
Дисплеи

The algorithms for drawing geometric shapes on a TFT display were covered earlier here, so in this article I'll just give the implementation of the functions for the ILI9341. To fill the screen with the desired color in the previous article, we used the TFT_Fill_Screen() function; the same function can fill a rectangle or square of the required size if you set the coordinates of the working...

Displaying Characters and Strings on a TFT Display, Using the ILI9341 as an Example.

Displaying Characters and Strings on a TFT Display, Using the ILI9341 as an Example.
Дисплеи

In the previous article we looked at how to initialize a TFT display controlled by the ILI9341 driver; in this one we'll learn to display characters and strings. But first we need to clarify one thing: whereas with the SSD1289 you need to specify two coordinates and the color of a point to draw it on the display, with the ILI9341 you specify 4 coordinates that bound the working area, and then the color of each newly...

TFT Display Initialization for AVR, Using the ILI9341 as an Example.

TFT Display Initialization for AVR, Using the ILI9341 as an Example.
Дисплеи

About a year ago an article appeared on this site about how to initialize a TFT display controlled by the SSD1289, and about a month ago one of the site's visitors wrote to me. The gist of the letter was that he had ordered a display via the link in the article but couldn't get it working, and he offered to send me this display and several others, and I, in turn, would publish the code...

Connecting a TFT Display to the STM32F103VET6 via FSMC, Using the SSD1289 as an Example.

Connecting a TFT Display to the STM32F103VET6 via FSMC, Using the SSD1289 as an Example.
Дисплеи

Recently a board with an STM32VET6 that I ordered on AliExpress arrived, and in this article we'll try to connect a TFT display to it; by the way, the board has a dedicated header for it. Unlike the Atmega, STM32 has a special interface for connecting a display, called FSMC, also known as the external memory controller. The idea of FSMC is as follows: when connected via FSMC...

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example.

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example.
Дисплеи

In the previous article we converted an image into an array and wrote this array to an SD card; now let's try to display it on a TFT display. To work with the SD card, we'll use the Petit FatFs library, which is designed for 8-bit microcontrollers with little memory. The library consists of 5 files: integer.h - a header file that describes the basic data types...

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example (Converting an Image to an Array)

Displaying an Image on a TFT Display from an SD Card, Using the SSD1289 as an Example (Converting an Image to an Array)
Дисплеи

In previous articles we dealt with the TFT display and the resistive touch panel; to master all the capabilities the module offers, let's try connecting the memory card, namely writing an image to an SD card and displaying it. Jumping ahead a bit, I'll say that the binary of the image (320x240) came out at 150K, while the Atmega16 has 16K of flash and 1K of RAM, so no matter...

How to Get Touch Point Coordinates and Calibrate a Resistive Touch Panel, Using the XPT2046 as an Example.

How to Get Touch Point Coordinates and Calibrate a Resistive Touch Panel, Using the XPT2046 as an Example.
Дисплеи

In the previous article we looked at how to initialize the controller; in this one we'll figure out how to get the touch coordinates and calibrate the touch panel. Before determining the touch coordinates, the touch itself has to be detected; for this we'll use the dedicated T_IRQ pin, which goes to logic zero when the panel is touched. It would be good to connect it to a pin responsible for...

How a Resistive Touch Screen Works, Using the XPT2046 Controller as an Example.

How a Resistive Touch Screen Works, Using the XPT2046 Controller as an Example.
Дисплеи

As you know, touch screens today come in 2 types: resistive and capacitive. Their main difference for the user is that a resistive screen responds to pressure, while a capacitive one responds to touch. Let's look at how each of them is built. A resistive screen is a glass liquid crystal display covered with a flexible membrane. On the facing...

Drawing Geometric Shapes on a TFT Display, Using the SSD1289 as an Example.

Drawing Geometric Shapes on a TFT Display, Using the SSD1289 as an Example.
Дисплеи

In the previous article we learned to display characters and strings on a TFT display; in this one we'll learn to draw geometric shapes. There aren't that many geometric shapes useful for building a graphical interface; the main ones are the rectangle and the circle, and those are what we'll learn to draw, in two variants, filled and unfilled. I'll say right away that the article will describe in detail...

Displaying Characters and Strings on a TFT Display, Using the SSD1289 as an Example.

Displaying Characters and Strings on a TFT Display, Using the SSD1289 as an Example.
Дисплеи

First of all, I'd like to say that the display's shorter side is X and the longer side is Y. In the previous article we looked at how to initialize the display; in this one we'll learn to display characters and strings. Let's start with characters. Characters are a set of points filled in a certain order. To display a point, you need to perform the following sequence...

Initializing a TFT Display for AVR, Using the SSD1289 as an Example.

Initializing a TFT Display for AVR, Using the SSD1289 as an Example.
Дисплеи

The other day a TFT display arrived, driven by an SSD1289 controller, with a resistive touch panel on an XPT2046 and an SD card slot, in short, this one. We'll use an Atmega16 as the controlling microcontroller. I didn't look for ready-made initialization examples; I decided to figure out how it works and write my own. First, let's deal with the connection interface. Communication with the SSD1289 controller can take place...