PK2300
Software Reference
s
85
However, although the use of noop edges seems to be compute-time
inexpensive, it does require the application to maintain the location of
the non-noop edges. In other words, the application must maintain a
duty cycle variable for each channel in addition to a variable for the
waveform pattern buffer.
Recall that the second problem of changing the duty cycle is the
requirement for the change to be phase synchronized to the current
waveform. Many of the involved issues are similar to those of refresh-
ing the DMA counter and pointer. The driver software library provides
the function
dmapwmSwBuf
to switch waveform pattern buffers.
The following sample programs in the Dynamic C
SAMPLES\PK23XX
subdirectory provide more detailed
examples.
DMAPWM1.C
DMAPWM2.C
DMAPWM3.C
$
Summary of Contents for PK2300
Page 1: ...User s Manual Revision E PK2300 C Programmable Controller ...
Page 10: ...PK2300 x s About This Manual Blank ...
Page 24: ...PK2300 24 s Getting Started Blank ...
Page 88: ...PK2300 88 s Software Reference Blank ...
Page 106: ...106 s Serial Interface Board 2 PK2300 Blank ...
Page 114: ...PK2300 114 s Power Management Blank ...
Page 128: ...PK2300 128 s I O Map and Interrupt Vectors Blank ...
Page 132: ...PK2300 132 s Battery Blank ...
Page 138: ...PK2500 138 s Index Blank ...