When
TOGGLE_HI
width registers once per waveform period. When
updates the timer period and timer pulse width registers twice per wave-
form. Period values are half as large. In odd-numbered periods, write
(
Period – Width
order to obtain center-aligned pulses.
For example, if the pseudo-code when
int period, width ;
for (;;) {
period = generate_period(...) ;
width = generate_width(...) ;
waitfor (interrupt) ;
write(TIMERx_PERIOD, period) ;
write(TIMERx_WIDTH, width) ;
}
Then when
TOGGLE_HI
int period, width ;
int per1, per2, wid1, wid2 ;
for (;;)
{
period = generate_period(...) ;
width = generate_width(...) ;
per1 = period/2 ;
wid1 = width/2 ;
per2 = period/2 ;
wid2 = width/2 ;
waitfor (interrupt) ;
ADSP-BF537 Blackfin Processor Hardware Reference
=
, software updates the timer period and timer pulse
0
) instead of
Width
=
, the pseudo-code would be:
1
General-Purpose Timers
TOGGLE_HI = 1
to the timer pulse width register in
TOGGLE_HI = 0
, software
is:
15-21
Need help?
Do you have a question about the Blackfin ADSP-BF537 and is the answer not in the manual?