Hello I would like to use this 16 bit lcd
in flowcode I see that only 8bit how can I do?
http://www.lcdwiki.com/7.0inch_16BIT_Module_SSD1963
Thanks
7.0inch 16BIT Module SSD1963
-
hiromiyureei
- Posts: 40
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 17, 2020 3:34 pm
- Been thanked: 5 times
-
medelec35
- Valued Contributor
- Posts: 2274
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 708 times
- Been thanked: 768 times
Re: 7.0inch 16BIT Module SSD1963
Hello.
Sorry for the delay
I have added this request to my list to do as soon as possible.
I have moved this topic to feature requests section.
Sorry for the delay
I have added this request to my list to do as soon as possible.
I have moved this topic to feature requests section.
Martin
-
medelec35
- Valued Contributor
- Posts: 2274
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 708 times
- Been thanked: 768 times
Re: 7.0inch 16BIT Module SSD1963
Hello.
I have edited the component to add 16bit.
I have not been able to test the component.
If you would like to give it a try and let me know if it works or not?
Browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.
Place the attached component.
If Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the component you added will be overwritten, so it will stop working again (unless the component update has been pushed).
I have edited the component to add 16bit.
I have not been able to test the component.
If you would like to give it a try and let me know if it works or not?
Browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.
Code: Select all
%ProgramData%\MatrixTSL\FlowcodeV10\ComponentsIf Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the component you added will be overwritten, so it will stop working again (unless the component update has been pushed).
- Attachments
-
- gLCD_SSD1963.fcpx
- (18.66 KiB) Downloaded 240 times
Martin
-
hiromiyureei
- Posts: 40
- Joined: Thu Dec 17, 2020 3:34 pm
- Been thanked: 5 times
Re: 7.0inch 16BIT Module SSD1963
I apologize for the huge delay I will try next week and let you know at the moment thank you very much
Re: 7.0inch 16BIT Module SSD1963
I tried the gLCD_SSD1963 component in both 8-bit and 16-bit versions with a display
https://aliexpress.ru/item/100500796456 ... 1748698597
Initialization does not work with a standard FSMC connection to stm32f407vet6.
I used the C-code insert for initialization, корекцииcolor and geometry correction, and bus acceleration.
/ * 1. SWITCH FSMC STM32 TO 16-BIT MODE */
/ / Setting bit 4 (MWID=01) in the BCR1 register
FSMC_Bank1->BTCR[0] &= ~(0x3 << 4);
FSMC_Bank1->BTCR[0] |= (0x1 << 4);
/ / Setting BTR1 timings for 168MHz (accelerated for 16 bits)
// ADDSET=5, DATAST=15, BUSTURN=1
FSMC_Bank1->BTCR[1] = (5 << 0) | (15 << 8) | (1 << 16);
/ * 2. INITIALIZING SSD1963 (16-BIT INTERFACE) */
/ / Soft reset
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0x01);
delay_ms(10);
/ / Setting LCD MODE (Critical: 0x0C enables 16-bit bus)
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xB0);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x0C); // 16-bit interface, 24-bit internal
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // TFT mode
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x03); // HDP High (799)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x1F); // HDP Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x01); // VDP High (479)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0xDF); // VDP Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); / / RGB order (change to 0x20 if BGR)
/ / Setting the pixel data format (565 RGB)
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xF0);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x03); // 16-bit 565 format
delay_ms(5);
/ * 3. HORIZONTAL TIMINGS (RETURN TO STANDARD) */
/ / At 16 bits, the tails disappear, using the standard 46 (0x2E)
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xB4);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x04); // HT High (1100)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x4C); // HT Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // HPS High
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x2E); // HPS Low (46)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x08); // HPW (Pulse width)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00);
/* 4. VERTICAL TIMINGS */
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xB6);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x02); // VT High (525)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x0D); // VT Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // VPS High
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x10); // VPS Low (16)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x08); // VPW
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // FPS High
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // FPS Low
It's working !!!
I'll give you an example...
https://aliexpress.ru/item/100500796456 ... 1748698597
Initialization does not work with a standard FSMC connection to stm32f407vet6.
I used the C-code insert for initialization, корекцииcolor and geometry correction, and bus acceleration.
/ * 1. SWITCH FSMC STM32 TO 16-BIT MODE */
/ / Setting bit 4 (MWID=01) in the BCR1 register
FSMC_Bank1->BTCR[0] &= ~(0x3 << 4);
FSMC_Bank1->BTCR[0] |= (0x1 << 4);
/ / Setting BTR1 timings for 168MHz (accelerated for 16 bits)
// ADDSET=5, DATAST=15, BUSTURN=1
FSMC_Bank1->BTCR[1] = (5 << 0) | (15 << 8) | (1 << 16);
/ * 2. INITIALIZING SSD1963 (16-BIT INTERFACE) */
/ / Soft reset
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0x01);
delay_ms(10);
/ / Setting LCD MODE (Critical: 0x0C enables 16-bit bus)
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xB0);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x0C); // 16-bit interface, 24-bit internal
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // TFT mode
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x03); // HDP High (799)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x1F); // HDP Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x01); // VDP High (479)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0xDF); // VDP Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); / / RGB order (change to 0x20 if BGR)
/ / Setting the pixel data format (565 RGB)
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xF0);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x03); // 16-bit 565 format
delay_ms(5);
/ * 3. HORIZONTAL TIMINGS (RETURN TO STANDARD) */
/ / At 16 bits, the tails disappear, using the standard 46 (0x2E)
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xB4);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x04); // HT High (1100)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x4C); // HT Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // HPS High
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x2E); // HPS Low (46)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x08); // HPW (Pulse width)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00);
/* 4. VERTICAL TIMINGS */
FCD_04581_gLCD_SSD1963__LCD_Write_Reg(0xB6);
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x02); // VT High (525)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x0D); // VT Low
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // VPS High
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x10); // VPS Low (16)
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x08); // VPW
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // FPS High
FCD_04581_gLCD_SSD1963__LCD_Write_Data(0x00); // FPS Low
It's working !!!
I'll give you an example...
- Attachments
-
- f407vet6_ssd1693_16b.fcfx
- (29.89 KiB) Downloaded 13 times