ZBasic System Library
41
ZBasic Microcontrollers
This value represents the rate of change of the counting register of the I/O timer and its value is
computed by dividing F_CPU by the prescaler value selected by the value of Register.TimerSpeed2. For
generic target devices, the initial value of Register.TimerSpeed2 is implied by the configuration parameter
TimerSpeed2Divisor. See the section I/O Timer Prescaler Values for information on the relationship of
prescaler selector values to divisor values.
It is highly recommended to use the built-in values Register.CPUFrequency,
Register.RTCTickFrequency, and Register.RTCTimerFrequency in your application code
instead of using hard-coded values. Doing so also simplifies code that must run on multiple devices that
operate at different speeds. See the descriptions of these values in the ZBasic Language Reference
Manual for more details.
|