Dear Sirs ,
recently we use TFT LCD with ILI9341 controller in 8bit data mode and a STM32F746 with mikroc compiler.our LCD size is 320*240 pixels , i don't know why we can't write on address higher than 255 ! , and we don't access in bottom of LCD ,
i mean just we can write on 255 * 240 pixels of LCD display ,
would you please check if there is any bug on software on 8bit data mode ?
Thanks and best regards
Ehsan
Dear Paul ,
Thanks for points,
i check all items one by one .
you must handle the orientation of LCD .... has been done
You must have enough RAM area to use it.. has been done
#define Max_Lcd_Buff 320L*240L //ILI9341_TFTWIDTH * ILI9341_TFTHEIGHT //320L*240L we done it INIT subroutine
Can you display a pixel ,with a defined color in this area 255x240.. yes possible but higher than 255 is not possible
You must use Integer type to go over 255 ! yes we use 16 bit integer .
here you can find our sample code
thanks again
Ehsan
Code:
sbit TFT_RST at GPIOI_ODR.B12;
sbit TFT_RS at GPIOI_ODR.B9;
sbit TFT_CS at GPIOI_ODR.B8;
sbit TFT_RD at GPIOI_ODR.B11;
sbit TFT_WR at GPIOI_ODR.B10;
unsigned int TFT_DataPort at GPIOI_ODR;
LCD_BLEN = 1;
TFT_Set_Default_Mode();
TFT_Init_ILI9341_8bit(240, 320);
TFT_Dot(240, 255, CL_BLACK);
while(1);
show details on LCD Init et Pixel draw
TFT_Init_ILI9341_8bit(240, 320); // are you sure of this order , because if mode is wrong you need (320,240)
TFT_Dot(240, 255, CL_BLACK);