
ADSP-BF50x Blackfin Processor Hardware Reference
10-19
General-Purpose Timers
For example, if the pseudo-code when
TOGGLE_HI
= 0 is:
int period, width;
for (;;) {
period = generate_period(...) ;
width = generate_width(...) ;
waitfor (interrupt) ;
write (TIMER_PERIOD, period) ;
write (TIMER_WIDTH, width) ;
}
Then when
TOGGLE_HI
=
1
, the pseudo-code would be:
int period, width ;
int per1, per2, wid1, wid2 ;
for (;;) {
period = generate_period(...) ;
width = generate_width(...) ;
Figure 10-8. Two Timers With Non-Overlapping Clocks
TMR0
TMR1
WAVEFORM
PERIOD 1
WAVEFORM
PERIOD 2
TIMER
ENABLE
ACTIVE
LOW
ACTIVE
HIGH
ACTIVE
HIGH
ACTIVE
LOW
ACTIVE
LOW
ACTIVE
HIGH
ACTIVE
HIGH
ACTIVE
LOW
TOGGLE_HI = 1
PULSE_HI = 0
TOGGLE_HI = 1
PULSE_HI = 1
TIMER
PERIOD 1
TIMER
PERIOD 2
TIMER
PERIOD 3
TIMER
PERIOD 4
Содержание EZ-KIT Lite ADSP-BF506F
Страница 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 132: ...Unique Information for the ADSP BF50x Processor 4 22 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 342: ...Unique Information for the ADSP BF50x Processor 7 106 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 484: ...Unique Information for the ADSP BF50x Processor 10 60 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 493: ...ADSP BF50x Blackfin Processor Hardware Reference 11 9 Core Timer Unique Information for the ADSP BF50x Processor None ...
Страница 494: ...Unique Information for the ADSP BF50x Processor 11 10 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 506: ...Unique Information for the ADSP BF50x Processor 12 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 544: ...Unique Information for the ADSP BF50x Processor 13 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 712: ...Unique Information for the ADSP BF50x Processor 16 62 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 972: ...Unique Information for the ADSP BF50x Processor 20 38 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Страница 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...