Colour change in TFT 4'3" display SSD1963 is the driver Ic

Post your requests and ideas on the future development of Visual TFT Software.
Post Reply
Author
Message
Anna Maria
Posts: 2
Joined: 17 Mar 2017 05:11

Colour change in TFT 4'3" display SSD1963 is the driver Ic

#1 Post by Anna Maria » 17 Mar 2017 05:24

plz do help to sort this problem


I am working on SSD1963 with 480*272 display ..I use different image displaying on the screen,bt when there is a sudden switching on power supply the color changes.for example, if its blue it changes to pink. my data line 24bit and its RGB format.I observed that during this problem the RGB changes to BGR .
what shal i do to avoid this.

User avatar
danilo.milovic
mikroElektronika team
Posts: 501
Joined: 05 Dec 2016 14:59

Re: Colour change in TFT 4'3" display SSD1963 is the driver

#2 Post by danilo.milovic » 17 Mar 2017 17:04

Hi,

can you explain a little bit more the problem, how do you mean "when there is a sudden switching on power supply"? When and why is this power switching occurs?

Perhaps you need some cap in order to stabilize your power supply?

Regards,

Danilo

josef2600
Posts: 94
Joined: 01 Jan 2012 03:26

Re: Colour change in TFT 4'3" display SSD1963 is the driver

#3 Post by josef2600 » 09 Jul 2017 11:39

Anna Maria wrote:plz do help to sort this problem


I am working on SSD1963 with 480*272 display ..I use different image displaying on the screen,bt when there is a sudden switching on power supply the color changes.for example, if its blue it changes to pink. my data line 24bit and its RGB format.I observed that during this problem the RGB changes to BGR .
what should i do to avoid this.
hi,
this is interesting! i have the exact problem, except i have it always ! i have a ssd1963 and 7" tft. i used 3 different tfts, but always have it. i am going to explain it simply, my green color is fine. but red and blue are toggled ! it should be rgb but it work in bgr - i couldn't make it work in 16bit with pmp or normal port (portd). pic32. it works with 8bit but wrong colors .
how can i change color blue with red ? i am using mikroc pic32 and visual tft ?
i would appreciate any help.
thanks.

before you say check my connections, i will say : it is completely fine. i have don it 5 times. change the pins - ports- mods - all of that. it is the same in compiler without visual tft too.

best regards, Josef.
Attachments
should be this.jpg
should be this.jpg (59.92 KiB) Viewed 4518 times
WP_20170709_14_45_54_Pro.jpg
WP_20170709_14_45_54_Pro.jpg (424.5 KiB) Viewed 4518 times
Last edited by josef2600 on 09 Jul 2017 12:06, edited 1 time in total.

josef2600
Posts: 94
Joined: 01 Jan 2012 03:26

Re: Colour change in TFT 4'3" display SSD1963 is the driver

#4 Post by josef2600 » 09 Jul 2017 12:04

and if you need the schematic of the board, here it is. remember it is designed for both 50pin and 40pin lcd.
it works with development arm boards here.
Attachments
schematic_SSD1963-v3.0.pdf
(89.6 KiB) Downloaded 156 times

josef2600
Posts: 94
Joined: 01 Jan 2012 03:26

Re: Colour change in TFT 4'3" display SSD1963 is the driver

#5 Post by josef2600 » 09 Jul 2017 12:15

and i found some say it can solve this problem:
changed color conversion table from GUICC_M565 to GUICC_565.

but i have no idea how to do that ?
anyone ?

josef2600
Posts: 94
Joined: 01 Jan 2012 03:26

Re: Colour change in TFT 4'3" display SSD1963 is the driver

#6 Post by josef2600 » 09 Jul 2017 13:18

i have found this on the internet - avr forum :
page 38 tells me (very graphically!) that it's bit 3 of the set_address_mode (0x36) command that toggles BGR/RGB

but when i send 0x63 command manually and set bit A3 for BGR color and A1 for mirror problem , every things OK and correct.


TFT_SSD1963YT_8bit_Write_Command(0x36);
TFT_SSD1963_8bit_Write_Data(0x18);
or
TFT_SSD1963YT_8bit_Write_Command(0x63);
TFT_SSD1963_8bit_Write_Data(0x18);


i did it and no change ??!!! why ?

in the datasheet it say it should work. !?!!

josef2600
Posts: 94
Joined: 01 Jan 2012 03:26

Re: Colour change in TFT 4'3" display SSD1963 is the driver

#7 Post by josef2600 » 09 Jul 2017 14:04

i don this too, not working yet.

TFT_SSD1963YT_8bit_Write_Command(0xb0);
TFT_SSD1963_8bit_Write_Data(0b000000); // A0
TFT_SSD1963_8bit_Write_Data(0b10000000); // B5
TFT_SSD1963_8bit_Write_Data(0b010); // HPS10
TFT_SSD1963_8bit_Write_Data(0b01111111); // HPS2
TFT_SSD1963_8bit_Write_Data(0b001); //VPS10
TFT_SSD1963_8bit_Write_Data(0b11011111); // VPS2
TFT_SSD1963_8bit_Write_Data(0b101101); // G2

josef2600
Posts: 94
Joined: 01 Jan 2012 03:26

Re: Colour change in TFT 4'3" display SSD1963 is the driver

#8 Post by josef2600 » 09 Jul 2017 18:15

f... me !
finally i fixed it.
:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :mrgreen: :mrgreen:

in "__Lib_TFT_Defs.c" file located in my installation directory "C:\Program Files\Mikroelektronika\mikroC PRO for PIC32\Uses"
i changed color red and blue :
find this one "void TFT_SSD1963_8bit_Write_Data(unsigned int color)" and change it to this routine :

Code: Select all

void TFT_SSD1963_8bit_Write_Data(unsigned int color) {
volatile unsigned short temp;
  temp = (color<<3);
  if ((temp>>7) == 1) {
    temp += 7;
  }
  TFT_SSD1963YT_8bit_Write_Command(temp);
  temp = (color>>5);
  temp = (temp<<2);
  if ((temp>>7) == 1) {
    temp += 3;
  }
  TFT_SSD1963YT_8bit_Write_Command(temp);
  temp = (color>>11);
  temp = (temp<<3);
  if ((temp>>7) == 1) {
    temp += 7;
  }
  TFT_SSD1963YT_8bit_Write_Command(temp);

}
or use my modified file and replace your file were it is:

best regards and happy project.
Attachments
__Lib_TFT_Defs.rar
site does not allow me to upload .c file
(9.24 KiB) Downloaded 158 times

Post Reply

Return to “Visual TFT Wish List”