
ADSP-BF59x Blackfin Processor Hardware Reference
8-47
General-Purpose Timers
Programming Examples
Listing 8-1
configures the port control registers in a way that enables
TMR
pins associated with Port G. This example assumes
TMR1-7
are connected
to Port G bits 5–11.
Listing 8-1. Port Setup
timer_port_setup:
Counter
RO: Counts up on
SCLK or PWM_CLK
RO: Counts up on
SCLK
RO: Counts up on
TMR pin event
TRUN
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 captures
period and
PERIOD_CNT = 1 or
when counter captures
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 8-2. Control Bit and Register Usage Chart (Continued)
Bit / Register
PWM_OUT Mode
WDTH_CAP Mode
EXT_CLK Mode
Содержание ADSP-BF59x Blackfin
Страница 64: ...Development Tools 1 22 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 74: ...Processor Specific MMRs 2 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 204: ...Unique Information for the ADSP BF59x Processor 5 104 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 244: ...Programming Examples 6 40 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 345: ...ADSP BF59x Blackfin Processor Hardware Reference 9 9 Core Timer Unique Information for the ADSP BF59x Processor None...
Страница 346: ...Unique Information for the ADSP BF59x Processor 9 10 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 398: ...Unique Information for the ADSP BF59x Processor 11 42 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 622: ...Unique Information for the ADSP BF59x Processor 15 38 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 700: ...Programming Examples 16 78 ADSP BF59x Blackfin Processor Hardware Reference...
Страница 738: ...Boundary Scan Architecture B 8 ADSP BF59x Blackfin Processor Hardware Reference...