ZBasic Language Reference
123
ZBasic Microcontrollers
to the requested value.
Examples
--device-parameter=RTCScale,2
Option DeviceParameter RTCScale 2
RTCError <value>
Default: 10
This parameter gives the desired error threshold, expressed in parts-per-million, for the realizable RTC
frequency. If the realizable RTC frequency deviates by more than the threshold value the compiler will
issue a warning.
Examples
--device-parameter=RTCError,100
Option DeviceParameter RTCError 100
TimerSpeed1Divisor <value>
Default: 1
TimerSpeed2Divisor <value>
Default: 8
These parameters give the initial values for Register.TimerSpeed1and Register.TimerSpeed2,
respectively. These prescaler values are used to select the operating frequency of the I/O Timer for
certain timer-base I/O routines as described in the ZBasic System Library manual.
Examples
--device-parameter=TimerSpeed2Divisor,64
Option DeviceParameter TimerSpeed2Divisor 64
TimerOCPin <timer-pin-specification>
Default: see discussion
This parameter specifies a mapping of a timer compare output to a physical pin. It is only useful for
certain devices, e.g. the ATtiny828, that support output compare pin mapping. The <timer-pin-
specification> is a quoted string of the form "OC<timer><output>:<port>.<pin>" where
<timer> is a timer designator from the set {0..9}
<output> is an output compare designator from the set {A..Z}
<port> is a port designator from the set {A..Z}
<pin> is a port bit designator from the set {0..7}
The default mapping of timer compare outputs to pins is described in the ZBasic System Library Manual.
Examples
--device-parameter=TimerOCPin,"OC1A:B.5"
Option DeviceParameter TimerOCPin "OC1A:B.5"
|