For sure it does set it to 8Mhz but don't we also need to state DEFINE?Originally Posted by danielhr77
---------------------
For sure it does set it to 8Mhz but don't we also need to state DEFINE?Originally Posted by danielhr77
---------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
I don't think so... So far It's working fine...
I think that DEFINE OSC is for external oscillators only, but not sure...
NOPE, DEFINE is a compiler directive and MUST be added at the top of the code. OSCCON is a PIC register that must be set like all the otheres. Let's Say TXSTA, RCSTA, SPBRG.
Do a simple Test, with your current OSCCON setting do a simple LED blink. use DEFINE OSC 4.. then use DEFINE OSC 8
what happen?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Originally Posted by mister_e
That is what I thought so.
Daniel, could you pls test it and post the result?
-----------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
With DEFINE OSC 8 the LEDs are blinking slowly...
With DEFINE OSC 4 the LEDs are blinking faster...
I'm confused... :|
Last edited by DanPBP; - 16th October 2006 at 14:50.
Normal... they have to blink twice the speed of DEFINE OSC 8 right?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks