ILi9341 TFT 3.2 LCD NOT WORKING

General discussion on Visual TFT Software.
Post Reply
Author
Message
Uneeb629
Posts: 3
Joined: 13 Oct 2018 12:16

ILi9341 TFT 3.2 LCD NOT WORKING

#1 Post by Uneeb629 » 13 Oct 2018 12:28

Hello Sir/Madam,
I am working with a PIC18F4620 controller, I have ili9341 tft, I am using mikroC 16 bit library and my program is as:
char TFT_16bit_DataPort_Lo at LATB;
char TFT_16bit_DataPort_Hi at LATD;

sbit TFT_16bit_WR at LATC0_bit;
sbit TFT_16bit_RD at LATC1_bit;
sbit TFT_16bit_CS at LATC2_bit;
sbit TFT_16bit_RS at LATC3_bit;
sbit TFT_16bit_RST at LATC4_bit;

char TFT_16bit_DataPort_Lo_Direction at TRISB;
char TFT_16bit_DataPort_Hi_Direction at TRISD;
sbit TFT_16bit_WR_Direction at TRISC0_bit;
sbit TFT_16bit_RD_Direction at TRISC1_bit;
sbit TFT_16bit_CS_Direction at TRISC2_bit;
sbit TFT_16bit_RS_Direction at TRISC3_bit;
sbit TFT_16bit_RST_Direction at TRISC4_bit;


void main() {
TFT_Init_ILI9340(240, 320);
delay_ms(4000);
TFT_16bit_Fill_Screen(CL_BLUE_16bit);
delay_ms(500);
TFT_16bit_Write_Text("Hello Uneeb", 0, 0);
Delay_ms(400);

while(1)
{
PORTC.F5 = 1;
Delay_ms(50);


PORTC.F5 = 0;
Delay_ms(50);


}
}

It is compiled correctly with 0 error.

My connections are as

DB0 to DB7 =====> PORTB
DB7 to DB15 ====> PORTC
WR ====> PORTC.F0
RD ====> PORTC.F1
CS ====> PORTC.F2
RS ====> PORTC.F3
WR ====> PORTC.F4

VDD ====> PICKIT 3 3.3 V
GND ====> Common ground

I am using ili9340 16 bit library for ili9341
I have ili9341
There is no error in coding.
It is very basic test.
But I can see nothing on screen.
Even mikroC coding dont reach while loop.
Because if so then indicator at C.F5 must blink.
It blinks if i remove tft coding.
Any help will be greatly appreciated.

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: ILi9341 TFT 3.2 LCD NOT WORKING

#2 Post by petar.suknjaja » 18 Oct 2018 16:26

Hi,
What's the display name?
I'll review it and let you know what I've found out.
Kind regards,
Petar

MicroMark
Posts: 181
Joined: 11 Feb 2011 17:22

Re: ILi9341 TFT 3.2 LCD NOT WORKING

#3 Post by MicroMark » 18 Oct 2018 18:16

In the title of the thread "ILI9341". Which display do you have ILI9340 or ILI9341?

If you have ILI9341 try replacing TFT_Init_ILI9340 with TFT_Init_ILI9341_16bit

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: ILi9341 TFT 3.2 LCD NOT WORKING

#4 Post by petar.suknjaja » 19 Oct 2018 16:10

Hi,
I managed to find TFT Proto that works on the ILI9341 and has 16bit mode available,
I'll try on it and let you know what I've found out.
Kind regards,
Petar

Post Reply

Return to “Visual TFT General”