Modes of Operation
10-22
ADSP-BF50x Blackfin Processor Hardware Reference
with the PPI, refer to
“Frame Synchronization in GP Modes” in
Chapter 20, Parallel Peripheral Interface
.
Stopping the Timer in PWM_OUT Mode
In all
PWM_OUT
mode variants, the timer treats a disable operation (W1C to
TIMER_DISABLE
) as a “stop is pending” condition. When disabled, it auto-
matically completes the current waveform and then stops cleanly. This
prevents truncation of the current pulse and unwanted PWM patterns at
the
TMR
pin. The processor can determine when the timer stops running by
polling for the corresponding
TRUN
bit in the
TIMER_STATUS
register to read
“0” or by waiting for the last interrupt (if enabled). Note the timer cannot
be reconfigured (
TIMER_CONFIG
cannot be written to a new value) until
after the timer stops and
TRUN
reads “0”.
In
PWM_OUT
single pulse mode (
PERIOD_CNT
= 0), it is not necessary to write
TIMER_DISABLE
to stop the timer. At the end of the pulse, the timer stops
automatically, the corresponding bit in
TIMER_ENABLE
(and
TIMER_DISABLE
) is cleared, and the corresponding
TRUN
bit is cleared. See
Figure 10-4 on page 10-13
. To generate multiple pulses, write a “1” to
TIMER_ENABLE
, wait for the timer to stop, then write another “1” to
TIMER_ENABLE
.
In continuous PWM generation mode (
PWM_OUT
,
PERIOD_CNT
= 1) software
can stop the timer by writing to the
TIMER_DISABLE
register. To prevent
the ongoing PWM pattern from being stopped in an unpredictable way,
the timer does not stop immediately when the corresponding “1” has been
written to the
TIMER_DISABLE
register. Rather, the write simply clears the
enable latch and the timer still completes the ongoing PWM patterns
gracefully. It stops cleanly at the end of the first period when the enable
latch is cleared. During this final period the
TIMEN
bit returns “0”, but the
TRUN
bit still reads as a “1”.
If the
TRUN
bit is not cleared explicitly, and the enable latch can be cleared
and re-enabled all before the end of the current period will continue to
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...