@trebla I have understood how the LED will toggle at the each press of a push button. My program is working but it has a problem that there is too much denounce time. I am working on simulator to get 20ms - 30 ms debounc time.My intention is to show to you practical approach from setting goal (toggling led with each button press with debouncing), drawing flowchart, writing code and testing it. Next goal will be non-blocking debounce routine with remembering different states which has more practical for real time systems. But before we must reach this first goal. If you want to learn how embedded systems work, you must be more consistent. Your code in #152 is not LED toggling routine, it is led blinking on trigger routine.
I'll post the code when I have the exact debounc time