Instruction manual
AMPDIO DRIVERS
Page 168
Prior Calls registerBoardEx
See Also TCmultiplyFreq
6.4.10 Digitally Controlled Oscillator Functions
6.4.10.1 Prepare a Digitally-Controlled Oscillator — TCsetDCO
Implements a digitally controlled oscillator (DCO) which periodically reads a data value from a
digital input channel and generates an external frequency based on the value. The digital
input channel can be 1, 4, 8, 12, 16, or 24-bits wide, as specified by a previous call to function
DIOsetChanWidth. The digital channel must have already been set up as an input with a call
to function DIOsetMode. See section 3.4.2 for more details on the Digitally Controlled
Oscillator application.
i = TCsetDCO (h, diChip, diChan, opChip, opChan, udFreq, udChip,
MinF, MaxF)
where h short: board handle as issued by the
registerBoardEx function.
diChip short: address offset of the digital input chip.
One of the following pre-defined constants may
be used:
PPIX = 0
PPIY = 8
PPIZ = 16
diChan short: digital input channel.
opChip short: address offset of the timer/counter chip
to be used for frequency output. One of the
following pre-defined constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20
opChan short: frequency output timer/counter channel
number within the chip (0, 1 or 2).
udFreq float: update frequency in Hertz.
udChip short: address offset of a timer/counter chip of
which counter channel 1 will be used to
generate the update interrupts. One of the
following pre-defined constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12