STM32F429 Display per SPI ansteuern

OP #3491205
Lesenswert?

MoinMoin

ich versuche gerade auf sonem STM32F429 DiscoveryBoard das TFT zum 
laufen zu bekommen. Jedoch hab ich das Problem nicht so recht zu wissen, 
was ich wo zuweisen soll.

Im Datasheet vom Discovery steht unter TFT-SPI:
Reset ist an NRST
CSX ist an PC2
DCX ist an PD13
SCL ist an PF7
SDI/SDO ist an PF9

In der RTE_device.h wo ich die SPI einstellen kann, finde ich aber 
lediglich SCL, dann ist da noch MISO und MOSI, die kommen mir von den 
AVR bekannt vor.
Desweiteren ist da auch noch ein NSS? Kann mir jdm verraten, auf welche 
Pins ich die SPI nun initialisieren muss?

Mit freundlichen Grüßen und vielem Dank im vorraus

Chaos
Gast #3491244
Lesenswert?

Sieht irgendwie schon nach SPI aus:
1
/** 
2
  * @brief  LCD Control pin  
3
  */ 
4
#define LCD_NCS_PIN             GPIO_Pin_2                  
5
#define LCD_NCS_GPIO_PORT       GPIOC                      
6
#define LCD_NCS_GPIO_CLK        RCC_AHB1Periph_GPIOC 
7

8
/** 
9
  * @brief  LCD Command/data pin  
10
  */
11
#define LCD_WRX_PIN             GPIO_Pin_13                  
12
#define LCD_WRX_GPIO_PORT       GPIOD
13
#define LCD_WRX_GPIO_CLK        RCC_AHB1Periph_GPIOD 
14

15
/** 
16
  * @brief  LCD SPI Interface pins 
17
  */ 
18
#define LCD_SPI_SCK_PIN               GPIO_Pin_7                     /* PF.07 */
19
#define LCD_SPI_SCK_GPIO_PORT         GPIOF                          /* GPIOF */
20
#define LCD_SPI_SCK_GPIO_CLK          RCC_AHB1Periph_GPIOF  
21
#define LCD_SPI_SCK_SOURCE            GPIO_PinSource7
22
#define LCD_SPI_SCK_AF                GPIO_AF_SPI5
23
#define LCD_SPI_MISO_PIN              GPIO_Pin_8                     /* PF.08 */
24
#define LCD_SPI_MISO_GPIO_PORT        GPIOF                          /* GPIOF */
25
#define LCD_SPI_MISO_GPIO_CLK         RCC_AHB1Periph_GPIOF  
26
#define LCD_SPI_MISO_SOURCE           GPIO_PinSource8
27
#define LCD_SPI_MISO_AF               GPIO_AF_SPI5
28
#define LCD_SPI_MOSI_PIN              GPIO_Pin_9                     /* PF.09 */
29
#define LCD_SPI_MOSI_GPIO_PORT        GPIOF                          /* GPIOF */
30
#define LCD_SPI_MOSI_GPIO_CLK         RCC_AHB1Periph_GPIOF  
31
#define LCD_SPI_MOSI_SOURCE           GPIO_PinSource9
32
#define LCD_SPI_MOSI_AF               GPIO_AF_SPI5
33
#define LCD_SPI                       SPI5
34
#define LCD_SPI_CLK                   RCC_APB2Periph_SPI5
OP #3491250
Lesenswert?

P.S. und im Datenblatt vom ILI9341 steht auch "ILI9341 provides the 
8-/9-/16-/18-bit parallel syst
em interface for 8080- /8080
-
series, and 3-/4-line serial
system interface for serial data input. The input s
ystem interface is selected by external pins IM [3:
0] and the bit
formal per pixel color order is selected by DBI [2:
0] bits of 3Ah register. "

@Holger:
Danke für den Tip, werd ich mir mal anschauen, aber vorher erstmal den 
Ausschnitt von Hans versuchen, vielen Dank auch dafür an dich, Hans =)
Gast #3491360
Lesenswert?

TFT LCD (Thin-film-transistor liquid-crystal display)
The TFT LCD is a 2.41" display of 262 K colors. Its definition is QVGA 
(240 x 320 dots) and
is directly driven by the STM32F429ZIT6 using the RGB protocol. It 
includes the ILI9341
LCD controller and can operate with a 2.8 ±0.3 V voltage.
The STM32F429ZIT6 MCU controls this motion sensor through the SPI 
interface.
Gast #3491373
Lesenswert?

>Aber der Kollege hat recht - im User-Manual steht in der Tabelle LCD-SPI
>... das kann aber auch nur wegen dem Touch Controller sein.

Das Display wird über SPI konfiguriert.

Der Touch läuft mit I2C.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren