Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Fri Oct 01, 2010 2:31 am |
|
|
Always, always, always, _tell us your compiler version_...
There are various ways of doing this, on latter compilers.
Old version (should work pretty generically):
#fuses H4
#use delay(clock=40000000)
On newer compilers, you can use
#fuses H4
#use delay(clock=40M)
and on the latest compilers
#use delay(clock=40M, oscillator=10M)
which automatically selects H4 for you.
The old version should still be supported, and is 'safe' with just about any compiler.
Best Wishes |
|