• '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
  • 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...
  • while loop and ISR routine
    Hello all, I am using 8051 controller with UART working. I am generating interrupt for UART RX. in main() I am sending one string to hyperterminal through UART TX and I can see it on Hyperterminal...
  • 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...
  • Compiler Errors on Do While loops
    C51 compiler V6.23, at optimization levels of 7 or above generates crash code as shown in the listing below. The compiler PUSHes R1,R2,and R3 on the stack upon return from the function. When the Do While...