View previous topic :: View next topic |
Author |
Message |
Allan
Joined: 20 Dec 2009 Posts: 23
|
Clock Statement on Older Versions of the Compiler |
Posted: Tue Jan 19, 2010 8:39 pm |
|
|
Hi Everybody,
How do I do this statement:
Code: |
#use delay (Crystal=10mHz, Clock=40mHz) //enables PLL 4* multiply
|
On an older version of the compiler? The help files for version 3.234 show no information on the clock function, and I don't have the full manual available. I'm using a 18f2320.
Thanks, Al |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jan 19, 2010 9:25 pm |
|
|
Set the oscillator fuse to H4 and the #use delay to 40 MHz. That should
do it:
Quote: | #include <18F2320.h>
#fuses H4,NOWDT,PUT,BROWNOUT,NOLVP
#use delay (clock=40000000)
//======================================
void main(void)
{
while(1);
} |
|
|
![](templates/subSilver/images/spacer.gif) |
|