18X and setfreq

Charliem

Senior Member
Hello everyone,
I am running the latest version of PE and I am wanting to set the int osc of a 18X to 8 mhzusing the Setfreq command.according the the datasheet this is supported,but I keep getting a "Not supported in this mode" error.I doubled checked to make sure I have the 18x selected.Any ideas? thanks.Charlie
 
Did you type "setfreq m8"? I normally adjust the speed in the "Options" window (under the "View" menu). I can set the speed to 8MHz there. You only use the setfreq command for a temporary change (in my opinion). Both worked for me. And make sure you have the right PICAXE selected; there are three types in the 18 series.

Edited by - dannydig87 on 22/11/2006 03:40:42
 

SD2100

New Member
If you have "#PICAXE 18" in your program it will not work, Try "#PICAXE 18X" These compiler directives overide the settings in the menu. Or you can remove the directive and just use the menu settings.
Have a look at page 6 & 7 of the latest version of the basic commands manual it shows all the compiler directives.


Edited by - Phil75 on 22/11/2006 04:14:33
 
Top