RCFAST, CLKFREQ and _CLKFREQ
ericball
Posts: 774
The Prop Manual specifies RCFAST having a nominal clock rate of 12MHz with a range between 8MHz and 20MHz.· Is CLKFREQ (i.e. LONG[noparse][[/noparse]0]) set to any particular value?· Can CLKFREQ be set via _CLKFREQ?·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Composite NTSC sprite driver: http://forums.parallax.com/showthread.php?p=800114
NTSC & PAL templates: http://forums.parallax.com/showthread.php?p=803904
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Composite NTSC sprite driver: http://forums.parallax.com/showthread.php?p=800114
NTSC & PAL templates: http://forums.parallax.com/showthread.php?p=803904
Comments
It looks to me like you will get the "nominal" setting if the clock mode is rcfast regardless of the real clock speed.
CLKFREQ is used by convention by programs and objects to adjust for different clock speeds. If you set _CLKMODE and _CLKFREQ or _XINFREQ properly, everything should work out. RCFAST and RCSLOW are not accurate and are temperature sensitive as well, so CLKFREQ is not useful there.
And yes, I know that RCFAST isn't a known frequency and is temperature sensitive. But, I'm hoping it's stable enough for my evil plans. If the user can set _CLKFREQ then the program can use that value as a "best guess". If the output isn't quite right, the user updates _CLKFREQ and reloads.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Composite NTSC sprite driver: http://forums.parallax.com/showthread.php?p=800114
NTSC & PAL templates: http://forums.parallax.com/showthread.php?p=803904