Programming Examples
15-52
ADSP-BF537 Blackfin Processor Hardware Reference
Programming Examples
configures the port control registers in a way that all eight
TMRx
pins are connected to port F.
Listing 15-1. Port Setup
timer_port_setup:
[--sp] = (r7:7, p5:5);
Counter
RO: Counts up on
SCLK or PWM_CLK
RO: Counts up on
SCLK
RO: Counts up on
TMRx event
TRUNx
Read: Timer slave
enable status
Write:
1 - Stop timer if dis-
abled
0 - No effect
Read: Timer slave
enable status
Write:
1 - No effect
0 - No effect
Read: Timer slave
enable status
Write:
1 - No effect
0 - No effect
TOVF_ERR
Set at startup or roll-
over if period = 0 or 1
Set at rollover if width
>= Period
Set if counter wraps
Set if counter wraps
Set if counter wraps or
set at startup or roll-
over if period = 0
IRQ
Depends on
IRQ_ENA:
1 - Set when
TOVF_ERR set or
when counter equals
period and
PERIOD_CNT = 1 or
when counter equals
width and
PERIOD_CNT = 0
0 - Not set
Depends on
IRQ_ENA:
1 - Set when
TOVF_ERR set or
when counter cap-
tures period and
PERIOD_CNT = 1 or
when counter cap-
tures width and
PERIOD_CNT = 0
0 - Not set
Depends on
IRQ_ENA:
1 - Set when counter
equals period or
TOVF_ERR set
0 - Not set
Table 15-6. Control Bit and Register Usage Chart (Cont’d)
Bit / Register
PWM_OUT Mode
WDTH_CAP Mode
EXT_CLK Mode
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...