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 ?
what is TFT_Set_MM_Plus() ??
- petar.timotijevic
- mikroElektronika team
- Posts: 1739
- Joined: 19 Feb 2014 13:46
- Location: Serbia
- Contact:
Re: what is TFT_Set_MM_Plus() ??
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
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
-
- Posts: 18
- Joined: 19 Sep 2013 00:05
Re: what is TFT_Set_MM_Plus() ??
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 ?
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 ?
-
- Posts: 18
- Joined: 19 Sep 2013 00:05
Re: what is TFT_Set_MM_Plus() ??
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 ?
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 ?
- petar.timotijevic
- mikroElektronika team
- Posts: 1739
- Joined: 19 Feb 2014 13:46
- Location: Serbia
- Contact:
Re: what is TFT_Set_MM_Plus() ??
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:
Best regards,
Peter
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
}
Peter