2017-04-14 05:29 AM
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..
#interrupt2017-04-14 11:56 PM
Hi, It could be the delay(1000) which avoid testing the button during one second. Try without delay or small tempo...