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

CLOCK TOO SLOW AND MUST BE FASTER

I NEED THE PORCESSOR TO RUN AT 82MHZ BUT THE XTAL IS 13>7242MHZ

HOW DO I PROGRAM C TO GET THE CODE FASTER?

I LOOK IN UVISION AND CHANGE THE FREQ BUT IT DOESNT MAKE CHANGE IN CODE! HAVE I GOT A BUG?

Parents
  • That's better - but whatever made you think ALL CAPITALS was a good idea in the first place?!

    The XTAL setting in uVision is only there so that the simulator can convert its instruction-cycle counts into times in seconds - it has no effect whatsoever on the compiler, assembler, or linker.
    Therefore, it has no effect whatsoever on the execution speed of your code!

    How do you determine that "it runs slow"?

    What, exactly, runs "slow"?

    How much too "slow" is it?
    How much "faster" does it need to be?

    What steps have you taken to ensure that this isn't due to inefficiencies in your own code?

    What optimisation settings are you using?

    Have you read the chapter in the Manual on writing optimum code?
    http://www.keil.com/support/man/docs/c51/c51_xc.htm

Reply
  • That's better - but whatever made you think ALL CAPITALS was a good idea in the first place?!

    The XTAL setting in uVision is only there so that the simulator can convert its instruction-cycle counts into times in seconds - it has no effect whatsoever on the compiler, assembler, or linker.
    Therefore, it has no effect whatsoever on the execution speed of your code!

    How do you determine that "it runs slow"?

    What, exactly, runs "slow"?

    How much too "slow" is it?
    How much "faster" does it need to be?

    What steps have you taken to ensure that this isn't due to inefficiencies in your own code?

    What optimisation settings are you using?

    Have you read the chapter in the Manual on writing optimum code?
    http://www.keil.com/support/man/docs/c51/c51_xc.htm

Children
No data