what is TFT_Set_MM_Plus() ??

General discussion on mikroC PRO for ARM.
Post Reply
Author
Message
czorgormez
Posts: 18
Joined: 19 Sep 2013 00:05

what is TFT_Set_MM_Plus() ??

#1 Post by czorgormez » 30 Mar 2015 02:34

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 ?

User avatar
petar.timotijevic
mikroElektronika team
Posts: 1739
Joined: 19 Feb 2014 13:46
Location: Serbia
Contact:

Re: what is TFT_Set_MM_Plus() ??

#2 Post by petar.timotijevic » 31 Mar 2015 16:40

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

czorgormez
Posts: 18
Joined: 19 Sep 2013 00:05

Re: what is TFT_Set_MM_Plus() ??

#3 Post by czorgormez » 31 Mar 2015 21:06

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 ?

czorgormez
Posts: 18
Joined: 19 Sep 2013 00:05

Re: what is TFT_Set_MM_Plus() ??

#4 Post by czorgormez » 01 Apr 2015 00:54

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 ?

User avatar
petar.timotijevic
mikroElektronika team
Posts: 1739
Joined: 19 Feb 2014 13:46
Location: Serbia
Contact:

Re: what is TFT_Set_MM_Plus() ??

#5 Post by petar.timotijevic » 01 Apr 2015 16:53

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

Post Reply

Return to “mikroC PRO for ARM General”