• While loop stucks , freezes !
    Hello .. I am having a very weird issue with my code piece .. The MCU is STM32F407VET6 .. What I'm trying to do is sending a string via USART1 peripheral module .. In order check if the character...
  • Break condition in while loop
    Following is my program. I am trying to read characters at different baud rate and if no character is received within 10 seconds I want to break out of the loop and similarly if any character other than...
  • time while loop
    How do i set up a while loop for a period of time? like one second? thnks
  • 'while' vs 'for' loop
    Hi all, Can someone know if there's a differance between loop with 'for' and same one with 'while'? Is there a differance in code space, time execution and etc? Thanks a lot, Robert
  • Key Press to Exit While Loop
    Hi Everyone, I have been searching for this thing few days and have not found anything except using simple C such as KBHIT. For example, I'm using switch command of case: "A". In this switch case...