[ARM] TFT LCD ILI9341 8bit data mode problems

Status
Not open for further replies.

e.karimi.elc

Newbie level 4
Joined
May 24, 2018
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
67
TFT LCD ILI9341 8bit data mode problem

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
 

Re: TFT LCD ILI9341 8bit data mode problem

... would you please check if there is any bug on software on 8bit data mode ?

software ????

// ILI9341 screen size
#define ILI9341_TFTWIDTH 240L
#define ILI9341_TFTHEIGHT 320L

you must handle the orientation of LCD ....
You must have enough RAM area to use it..

#define Max_Lcd_Buff 320L*240L //ILI9341_TFTWIDTH * ILI9341_TFTHEIGHT //320L*240L

Can you display a pixel ,with a defined color in this area 255x240..


You must use Integer type to go over 255 !

Code:
void DrawPixel(uint16_t x1, uint16_t y1, uint16_t color1)
{
   if((x1 >= _maxX) || (y1 >= _maxY)) return;
    SetWindow(x1, y1, x1+1, y1+1);
    OrientCoordinates(x1, y1);
    _writeData(color1 >> 8, color1);
}
 

Re: TFT LCD ILI9341 8bit data mode problem

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);
 

Re: TFT LCD ILI9341 8bit data mode problem

hello,


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);
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…