This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

keil cx51 for loop not working

When I compiled my C program in keil cx51
the "for loop" is not working what is the solution?

Parents
  • What part of Please also notice the instruction about how to post source code where you unable to understand?

    Did you really look at the insttructions how to post source code?

    Do your code look like the following?

    for (i = 0; i < 10; i++) {
        ;
    }
    

    Notice the difference? Your code should look like that if you where following the instructions for posting source code!

    By the way: Have you based your code on an example? Which example?

    How is Transmit_uart() defined?

    What does datadisp() do?

    You haven't told us what your problem is. What is happending, and what did you expect to happen?

    How have your tried to resolve your problem?

    Is the for loop run, or does number_of_ep have an invalid value?

    What (incorrect) symptoms do you get?

Reply
  • What part of Please also notice the instruction about how to post source code where you unable to understand?

    Did you really look at the insttructions how to post source code?

    Do your code look like the following?

    for (i = 0; i < 10; i++) {
        ;
    }
    

    Notice the difference? Your code should look like that if you where following the instructions for posting source code!

    By the way: Have you based your code on an example? Which example?

    How is Transmit_uart() defined?

    What does datadisp() do?

    You haven't told us what your problem is. What is happending, and what did you expect to happen?

    How have your tried to resolve your problem?

    Is the for loop run, or does number_of_ep have an invalid value?

    What (incorrect) symptoms do you get?

Children