SSD1963 with PIC32 ( problem in colors )

General discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
MAS-sy
Posts: 9
Joined: 01 Dec 2015 09:08
Location: Syria

SSD1963 with PIC32 ( problem in colors )

#1 Post by MAS-sy » 31 Oct 2016 10:33

Hello,

I have a controller P32MX795F512L with TFT Proto 7'' ( SSD1963 controller ). And I work on 16-bit interface mode
to initialize TFT when i use the library from MikroC Pro for PIC32 ( TFT_Init_SSD1963(800, 480) ); I got a big problem on TFT, the problem in color and size of TFt.
so i added some instructions to have a good display..

and this the initialization code :

void SSD1963Init(void)
{

TFT_Init_SSD1963(800, 480);

TFT_Set_Index_Ptr(0x01); // Soft Reset
TFT_Set_Index_Ptr(0x01); // Soft Reset
TFT_Set_Index_Ptr(0x01); // Soft Reset

TFT_Set_Index_Ptr(0xe0);
TFT_Write_Command_Ptr(0x01);

TFT_Set_Index_Ptr(0xe0);
TFT_Write_Command_Ptr(0x03);

TFT_Set_Index_Ptr(0xb0);
TFT_Write_Command_Ptr(0x28);
TFT_Write_Command_Ptr(0x80);
TFT_Write_Command_Ptr(0x03);
TFT_Write_Command_Ptr(0x1f);
TFT_Write_Command_Ptr(0x01);
TFT_Write_Command_Ptr(0xdf);
TFT_Write_Command_Ptr(0x00);

TFT_Set_Index_Ptr(0xf0);
TFT_Write_Command_Ptr(0x03);

TFT_Set_Index_Ptr(0x36);
TFT_Write_Command_Ptr(0x00);

TFT_Set_Index_Ptr(0x3a); // set r g b
TFT_Write_Command_Ptr(0x70);

TFT_Set_Index_Ptr(0xe2);
TFT_Write_Command_Ptr(0x22);
TFT_Write_Command_Ptr(0x03);
TFT_Write_Command_Ptr(0x04);

TFT_Set_Index_Ptr(0xe6);
TFT_Write_Command_Ptr(0x02);
TFT_Write_Command_Ptr(0xff);
TFT_Write_Command_Ptr(0xff);

TFT_Set_Index_Ptr(0xb4);
TFT_Write_Command_Ptr(0x20);
TFT_Write_Command_Ptr(0xaf);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0xa3);
TFT_Write_Command_Ptr(0x07);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x00);

TFT_Set_Index_Ptr(0xb6);
TFT_Write_Command_Ptr(0x01);
TFT_Write_Command_Ptr(0xef);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x04);
TFT_Write_Command_Ptr(0x01);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x00);

TFT_Set_Index_Ptr(0x2a);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x03);
TFT_Write_Command_Ptr(0x1f);

TFT_Set_Index_Ptr(0x2b);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x1f);
TFT_Write_Command_Ptr(0xdf);

TFT_Set_Index_Ptr(0x33);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x01);
TFT_Write_Command_Ptr(0xdf);
TFT_Write_Command_Ptr(0x00);
TFT_Write_Command_Ptr(0x00);


TFT_Set_Index_Ptr(0x29); // Display On

TFT_Set_DBC_SSD1963(255);

}

but the colors that appear on TFT not matched with what i selected using Visual TFT. for example: the black appears near of green on TFT not black, and the red appears near of Orange !

i tried to solve it , but i can't !
any idea about it ?

Regards,

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: SSD1963 with PIC32 ( problem in colors )

#2 Post by Aleksandar.Mitrovic » 02 Nov 2016 18:04

Hi,

Can you please attach your connection scheme for that display as well?

I will like to check that also.

Kind regards,
Aleksandar

Post Reply

Return to “mikroPascal PRO for PIC General”