Programming Model
13-18
ADSP-BF50x Blackfin Processor Hardware Reference
Programming Model
In a typical application, the user will initialize the GP counter for the
desired mode, without enabling it. Normally the events of interest will be
processed using interrupts rather than polling the status bit. In that case,
clear all status bits and activate the generation of interrupt requests with
the
CNT_IMASK
register. Set up the system interrupt controller and core
interrupts. If timing information is required, set up the relevant GP timer
in
WDTH_CAP
mode with the settings described in the
“Capturing Timing
Information” on page 13-14
. Then, enable the interrupts and the periph-
eral itself.
Registers
The GP counter interface has eight memory-mapped registers (MMRs)
that regulate its operation. Descriptions and bit diagrams for MMRs is
provided in the sections that follow.
Counter Module Register Overview
Refer to
Table 13-3
for an overview of all MMRs associated with the GP
counter interface.
Table 13-3. Counter Module Register Overview
Register Name
Width
PAB Operation
Reset Value
CNT_CONFIG
16 bits
R/W
0x0000
CNT_IMASK
16 bits
R/W
0x0000
CNT_STATUS
16 bits
R/W1C
0x0000
CNT_COMMAND
16 bits
R/W1A
0x0000
CNT_DEBOUNCE
16 bits
R/W
0x0000
CNT_COUNTER
32 bits
R/W (16/32 bits) 0x0000 0000
Summary of Contents for EZ-KIT Lite ADSP-BF506F
Page 50: ...Contents l ADSP BF50x Blackfin Processor Hardware Reference ...
Page 92: ...Development Tools 1 30 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 110: ...Interface Overview 3 12 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 236: ...Internal Flash Memory Control Registers 6 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 650: ...Programming Examples 15 56 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 804: ...Programming Examples 17 92 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1194: ...Programming Examples 24 90 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1256: ...ACM Registers A 50 ADSP BF50x Blackfin Processor Hardware Reference ...
Page 1264: ...Boundary Scan Architecture B 8 ADSP BF50x Blackfin Processor Hardware Reference ...