So there is no option in the compiler to set the clock frequency of the processor....How will that be handled? Do i need to edit the Makefile?
you have configured your MCU type as "none". look at the data sheet of that none "MCU", then!
"How will that be handled?"
As Tamir says, that will be described in the Datasheet for the particular chip that you are using - so you will just need to write whatever code is necessary to do whatever the Datasheet tells you.
If it's possible, the chip manufacturer may provide libraries to help...
find out of your chip is a '51 type or an ARM type
Erik
try changing the makefile.
when that works try then changing the compilar options.
the OP: So there is no option in the compiler Sam: then changing the compilar options
Why would the compiler need to know the target CPU clock frequency? It has no use for it. On the other hand, you need to know it to calculate baudrates, timer frequencies and so on.
"It has no use for it."
Absolutely!
However, the Simulator needs to know it in order to relate cycle times to "real" times. And the debugger?
That's why uVision has an option to set it - but, as you say, it's nothing to do with the Compiler.
http://www.keil.com/support/man/docs/uv3/uv3_dg_targkarm.htm
Great...Sam was right. It has Phase-Locked Loop for seting the clock frequency, so refered to the compiler docs for how to set PLL and changed the makefile.
do you mind posting a link to were you found the answer, or quote the exact location in the document you referred to? we are highly curious. personally, I find it interesting that you chose to follow the most incompatant reply you got!
incompatant ;D
Mr. yousaf,
is occasional typos are what concerns you when working with a micro-controller or when having a question answered on a public forum, then I guess you are on the right path indeed. all this still does not change the fact the the answer you chose to rely on is crap, and it will remain that with or without the presence of typos.
Which particular compiler doc was that, exactly?!
It is strange because, as already noted, this has nothing whatsoever to do with the compiler !!
I am happy and my problem is solved.
Thanks to Andy Neil, erik malund, sam jamalay, Mikei Kleshov for all the good clues and advice. All you gave helped me.
wrong again; we did not help you at all!
I did NOT say thanks to Tamir Michael.
EOL.