Greetings! I'm using TivaC with TFT 2.8 SPI Module ili9341 (http://www.lcdwiki.com/2.8inch_SPI_Module_ILI9341_SKU:MSP2807). And i have a problem: too slow refreshing of screen (0.6 FPS). I figured out what problem is slow SPI connection. After this i checked it out with oscillograph (Real speed is 45.45 KHz but i configured TivaC SPI as 10 MHz).
SPI initialization code:
SPI_Params_init(&SPI_Parameters); SPI_Parameters.mode = SPI_MASTER; SPI_Parameters.bitRate = 10000000; SPI_Parameters.dataSize = 8; SPI_Parameters.transferMode = SPI_MODE_BLOCKING; SPI_H = SPI_open(0, &SPI_Parameters); if (!SPI_H) { System_abort("An attempt to configurate module \"SPI\" was unsuccessful!"); }
SPI send code:
unsigned char Answer = 0x0; SPI_Message_Data.count = Data_Length; SPI_Message_Data.txBuf = Data_Ptr; Answer = SPI_transfer(SPI_H, &SPI_Message_Data); return Answer;
I don't know what's wrong with my code, help, please
P.S. This is exactly my problem because of some guys is using this display with <I don't know, 30 FPS, may be?> like in this video: https://www.youtube.com/watch?v=WapdjBnF7tQ