CLKFREQ in the constant or DAT section?
Timothy D. Swieter
Posts: 1,613
I am working on an assembly routine. This routine is a driver that may run on systems at different Propeller clock speeds. I would like to make the code untied to the specific system speed. In other words I want to do some time calculations upfront, during the "complie" and download to the Propeller. Therefore I was thinking about using the CLKFREQ command in the DAT section for initialized data, but that doesn't seem to be allowed. Then I was thinking having the DAT variable be initialized to a constant variable and have the constant section use CLKFREQ. That doesn't seem to work either.
I am eager to learn of any tips or tricks to accomplish my small design snag of initializing data. I suppose I could do it as a variable, but if it is possible to not use variables that is preferred.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
I am eager to learn of any tips or tricks to accomplish my small design snag of initializing data. I suppose I could do it as a variable, but if it is possible to not use variables that is preferred.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
Comments
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
-Phil