ADSP-BF535 Blackfin Processor Hardware Reference
16-17
Timers
Note the period settings can be altered without similar impacts.
When a timer is running in PWM_OUT mode with the
PERIOD_CNT
bit set, and it is subsequently stopped, it does not wait
for the end of the current period before stopping. Once disabled,
the
TMRx
pin goes low, and the last PWM cycle is not completed.
To generate the maximum frequency on the
TMRx
output pin, set the
TIMERx_PERIOD
value to 2 and the
TIMERx_WIDTH
value to 1. This makes
TMRx
toggle each
SCLK
cycle, producing a duty cycle of 50%.
Single Pulse Generation
If the
PERIOD_CNT
bit in
TIMERx_CONFIG
is cleared, PWM_OUT generates
a single pulse on the
TMRx
pin. This mode can also be used to implement a
precise delay. The pulse width is defined by the Timer Width register and
the Timer Period register is not used.
At the end of the pulse the interrupt latch bit (
IRQx
) is set and the timer is
stopped automatically. If the
PULSE_HI
bit is set, an active high pulse is
generated on the
TMRx
pin. If
PULSE_HI
is not set, the pulse is active low.
The active low pulse configuration is not recommended, since the
TMRx
pin is always driven low when the timer is not running,
regardless of the
PULSE_HI
bit.
Figure 16-10. Recommended Width Update Procedure
W idt h
O ld
Per io d
Pe r iod
W idt h
O ld
W idt h
N ew
P e rio d -
W idt h O ld
P e r iod -
W idth
P er iod -
W idt h Old +
W idt h Ne w -
W idt h Ne w
WIDT H = Wid th N ew
PE RIO D = Pe r io d O ld - W idt h O ld + W idth Ne w
PE RIO D = Pe r io d O ld
P e ri od
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...