pic32 ssd1963 16bit mode update available?

mikroC, mikroBasic and mikroPascal PRO for Microchip’s 32-bit PIC MCUs
Post Reply
Author
Message
ulrich.kuipers
Posts: 4
Joined: 25 Jan 2010 21:42
Location: Germany

pic32 ssd1963 16bit mode update available?

#1 Post by ulrich.kuipers » 03 Oct 2018 20:59

Hello together,
since three weeks i try to connect a fusion v7 board to a 7 inch tft with ssd1963 controller.
It works in 8 bit mode, so the connections seams ok.
But in 16 bit mode (TFT_init_ssd1603 (800,480) does not work ok.
The initialisation is not complete, timing?, declaration? setting gobal variables ...
I look for the discussions in internet, found some initialisation examples,
but there are limitations in simple commands.
In the TFT Library i found a remark that it is only for pic18-controllers. What about Pic32??
So, it seams since 2013 there were no further improvements in the tft-libs....
Ulrich

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

Re: pic32 ssd1963 16bit mode update available?

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

Hi Ulrich,
Could you tell me what display are you using?
Could you post the wirings?
There will be an update in the TFT library.
Kind regards
Petar

ulrich.kuipers
Posts: 4
Joined: 25 Jan 2010 21:42
Location: Germany

Re: pic32 ssd1963 16bit mode update available?

#3 Post by ulrich.kuipers » 07 Oct 2018 10:19

Hello, thank for the quick answer.
system: fusion V7 Board, pic32
Meanwhile i get Error message vom the mikro pro suite for pic v 2,5: writechip burst verify error...
Nothing changed?!? Going back the very basic... ledblinking... compling und prog ok, but result very slow, blinking change ca every 4 sec
check: oszillators: 80 Mhz, pll multiplier 20x, pll input devider 2x: seams ok, have no idea..
so I stopped development of tft drivers... :(

ulrich.kuipers
Posts: 4
Joined: 25 Jan 2010 21:42
Location: Germany

Re: pic32 ssd1963 16bit mode update available?

#4 Post by ulrich.kuipers » 24 Oct 2018 20:49

Hello I am back again.
Meanwhile i ordered a new processor the old was defective. That is the first time i have a defective mikrocontrolle on a mikroe board.
I soldered the old connections and the 7 inch tft is working in 16 bit mode. I can place text, rectangles and circles, but the colors are wrong.
There are no red colors, blue, white, green will be shown.

I modified the library _lib_tft_defs.c
- so it plot on the format 800 x 480

I think there is a wrong combination of the xx mit mode (command 0xb0)
and pixel mode (commando 0xf0)
and the routines in the library

Very interesting: there are tft_16bit in other mikroc compilers but not for mikroc pro for pic32!!

TFT_Set_Index_Ptr(0xb0); //SET LCD MODE SET TFT 24 Bits MODE
TFT_Write_Command_Ptr(0b00100000); // 1 SET TFT MODE & hsync+Vsync+DEN MODE

TFT_Write_Command_Ptr(0x00); // 2 =0 tft mode SET TFT MODE & hsync+Vsync+DEN MODE

TFT_Write_Command_Ptr(0x03); //3 SET horizontal size=480-1 HightByte, fr 480-1 war das 01 df
TFT_Write_Command_Ptr(0x0B); //4 SET horizontal size=480-1 LowByte
TFT_Write_Command_Ptr(0x01); //5 SET vertical size=480-1 HightByte, für 272 war das 01 0f
TFT_Write_Command_Ptr(0xdf); //6 SET vertical LowByte
TFT_Write_Command_Ptr(0b00000000); //7 SET even/odd line RGB seq.=RGB 2d ist rgb


// in many examples there are the command 0x3a, but it is removed from the original ssd1603 manual
TFT_Set_Index_Ptr(0x3A); // pixel format
TFT_Write_Command_Ptr(0b01010000); // SET R G B format = 6 6 6

// 0000 0000 = hex 0 = 8 bit
// 0000 0001 = hex 1 = 12 bit
// 0000 0010 = hex 2 = 16 bit
// 0000 0011 = hex 3 = 16 bit 565 format
// 0000 0100 = hex 4 = 18 bit
// 0000 0101 = hex 5 = 24 bit
// 6 = 9 bit
TFT_Set_Index_Ptr(0xf0);
TFT_Write_Command_Ptr(0x03); // 3 -16bit,0 -8bit //SET pixel data I/F format=8bit

Post Reply

Return to “PIC32 PRO Compilers”