Skip to main content
Erenburg.Evgeny
Associate III
July 2, 2019
Question

STM32F4-DISCOVERY

  • July 2, 2019
  • 0 replies
  • 459 views

I have a demo board STM32F429I-DISC1.

There is a SPI configuration in LCD configuration function

LCD_SPIConfig();

And then

void LCD_WriteData(uint8_t value)
{
 /* Set WRX to send data */
 LCD_CtrlLinesWrite(LCD_WRX_GPIO_PORT, LCD_WRX_PIN, Bit_SET);
 
 /* Reset LCD control line(/CS) and Send data */ 
 LCD_ChipSelect(DISABLE);
 SPI_I2S_SendData(LCD_SPI, value);
 
 /* Wait until a data is sent(not busy), before config /CS HIGH */
 
 while(SPI_I2S_GetFlagStatus(LCD_SPI, SPI_I2S_FLAG_TXE) == RESET) ;
 
 while(SPI_I2S_GetFlagStatus(LCD_SPI, SPI_I2S_FLAG_BSY) != RESET);
 
 LCD_ChipSelect(ENABLE);
}

But the LCD on the demo board doesn't have any SPI interface.

0690X000009YHVjQAO.png

Do I miss something?

This topic has been closed for replies.