Hi guys. I changed my board to C8051F226 already and i'm using a 32.768kHz external crystal. I have read the datasheet for the oscillator. But i do not understand this sentence, can someone please explain it to me?
"Crystal Oscillator Mode with divide by 2 stage."
The datasheet also recommend me to do the following:
1.Enable the external oscillator 2.Wait 1 ms 3.Poll for XTLVLD '0' ==> '1' 4.Switch to the external oscillator
I have done the 1st 2 steps, but i can't seem to poll for XTLVLD. When i compile, it says undefined symbol.
If the symbol is undefined, it may be caused by the Keil header files either not containing the symbol - or spelling it slightly different because of a name change between different processors in the same family.
You can define the symbol yourself - the datasheet for your chip clearly states what address this bit or byte is at.
Its a bit. I have tried "OSCXCN.7" too. It says: "Invalid Byte Base in Bit Address Expression". But I'm sure that it is in bit 7.
See here: http://www.keil.com/support/docs/1916.htm
SILabs provides an excellent program named config(2) that creates all the code you need, why do you refuse to use it?
Erik
I see... I didn't know how to use though. Thanks for the info though. I'll try this config(2)..
View all questions in Keil forum