Page 1 of 1
what is TFT_Set_MM_Plus() ??
Posted: 30 Mar 2015 02:34
by czorgormez
when i create a new project with visual tft ssd1963 16bit mode it puts
TFT_Set_MM_Plus();
in init procedure. but there is no TFT_Set_MM_Plus() routine in anywhere.
if i open stm32 multimedia plus examples project in my compiler that TFT_Set_MM_Plus() routine apears magically under tft library.
what is that and why i cant use in my project ? what is the solution ?
Re: what is TFT_Set_MM_Plus() ??
Posted: 31 Mar 2015 16:40
by petar.timotijevic
Hi,
Before TFT_Init_SSD1963 use following two functions:
TFT_Set_Default_Mode()
TFT_Set_MM_Plus()
This will allow proper initalization of the TFT display and everything will work just fine.
Best regards,
Peter
Re: what is TFT_Set_MM_Plus() ??
Posted: 31 Mar 2015 21:06
by czorgormez
yes i already thought about it.
but i can't call this function. it looks like a embedded library function. and it is deactive in my compiler.
is it a special function for micromedia plus boards ?
Re: what is TFT_Set_MM_Plus() ??
Posted: 01 Apr 2015 00:54
by czorgormez
ok i found the difference
if i choose stm32F407vg chip i can use TFT_Set_MM_Plus() function from TFT library
but if i choose stm32F207vg chip TFT_Set_MM_Plus() function diasappears from TFT library
also it is not clear what this function is doing ? i am trying to work with ssd1963 TFT controller with 16 bit data bus. is there any clear example for this project ?
Re: what is TFT_Set_MM_Plus() ??
Posted: 01 Apr 2015 16:53
by petar.timotijevic
Hi,
This routine set flag to 1 or reset flag to 0, depending on whether MMB Plus is used or not. Later based on that flag TFT display is configured.
Please see part of code in
__Lib_TFT_Defs.c file:
Code: Select all
if (Is_TFT_MM_Plus() == 0) {
TFT_Write_Command_Ptr(0x08); //SET TFT MODE & hsync+Vsync+DEN MODE
TFT_Write_Command_Ptr(0x80); //SET TFT MODE & hsync+Vsync+DEN MODE
} else {
TFT_Write_Command_Ptr(0x28); //SET TFT MODE & hsync+Vsync+DEN MODE
TFT_Write_Command_Ptr(0x20); //SET TFT MODE & hsync+Vsync+DEN MODE
}
Best regards,
Peter