Instruction manual

AMPDIO DRIVERS
Page 161
The minimum train frequency is the frequency
of the train clock source divided by 65536, or
the frequency of the pulse clock source divided
by 65536, whichever is the greatest. E.g. for
CLK_1KHZ the minimum train frequency is
about 0.01526 Hz. If both the train clock
source and pulse clock source are chosen
automatically, the minimum train frequency is
as for CLK_1KHZ, i.e. about 0.01526 Hz.
The maximum train frequency is the frequency
of the train clock source divided by 2, e.g. for
CLK_10MHZ the maximum train frequency is
5000000 Hz. If the train clock source is chosen
automatically, the maximum train frequency is
as for CLK_10MHZ, i.e. 5000000 Hz.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
TCsetPWMTrain
See Also TCfreePWMTrain
TCchangePWMTrainGate
TCchangePWMTrainDutyCycle
TCcontrolPWMTrain
6.4.8.34 Change Pulse Width Modulated Pulse Train Generator's Duty Cycle
TCchangePWMTrainDutyCycle
Changes the duration of the pulses for the pulse width modulated pulse train generator,
preserving the frequency.
SUPPORTED IN VERSION 4.42 ONWARDS.
i = TCchangePWMTrainDutyCycle (h, hPWMT, duty)
where h short: board handle as issued by the
registerBoardEx function.
hPWMT short: pulse width modulated pulse train
generator handle, as issued by the
TCsetPWMTrain function.
duty double:.proportion of the specified period to
spend with the output low, range 0 to 1.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA