AnsweredAssumed Answered

Hello,  I had developed one application using STVD

Question asked by KACHHIA.SIDDHARTH on Apr 14, 2017
Latest reply on Apr 15, 2017 by g. lewis

void Menu(void)
{
    if(KeypadStatus == Button_ADD)
    {
        Display_Filling_Constant(&CONF[0],DISPLAY_1,5);
        Display_Filling_Constant(&MENU[0],DISPLAY_2,5);
        Display_Filling_Constant(&BLANK[0],DISPLAY_3,6);
        Display_Show();
        while(KeypadStatus != Button_NOPRESSED );
        delay(1000);
        Menu_Edit();
    }
}

this is my code.. problem in " while(KeypadStatus != Button_NOPRESSED );" line.. program cant exit in while loop..!! stuck in while loop.. please find attachment file KeyScan.. here you find the Button_NOPRESSED value..

my "Scan_Switch" function run with TIM2_25mS interrupt..

KeypadStatus is matrix keypad input.

help me for this..

thanks.. 

Attachments

Outcomes