Propeller Manual

Table Of Contents
_CLKFREQ – Spin Language Reference
Page 66 · Propeller Manual v1.1
CON
_CLKMODE = XTAL2
_CLKFREQ = 10_000_000
These two declarations set the clock mode for an external medium-speed crystal, no Clock
PLL multiplier, and a System Clock frequency of 10 MHz. The
_XINFREQ value is
automatically set to 10 MHz, as well, because of these declarations.
_CLKFREQ vs CLKFREQ
_CLKFREQ is related to, but not the same as, CLKFREQ. _CLKFREQ contains the application’s
System Clock frequency at startup whereas
CLKFREQ is a command that returns the current
System Clock frequency. In other words,
_CLKFREQ is the original System Clock frequency
and
CLKFREQ is the current System Clock frequency; they both may happen to be the same
value but they certainly can be different.