Trace Unit
20-16
ADSP-BF535 Blackfin Processor Hardware Reference
The number of valid entries in
TBUF
is held in the
TBUFCNT
field of the
TBUFSTAT
register. On every second read,
TBUFCNT
is decremented. Because
each entry corresponds to two pieces of data, a total of
2
TBUFCNT
reads
empties
TBUF
.
Discontinuities that are the same as either of the last two entries in
the trace buffer are not recorded.
Because reading the trace buffer is a destructive operation, it is rec-
ommended that
TBUF
be read in a non-interruptible section of
code.
Note if single-level compression has occurred, the LSB of the branch tar-
get address is set. If two-level compression has occurred, the LSB of the
branch source address is set.
Trace Buffer Control Register (TBUFCTL)
The Trace Unit is enabled by two control bits in the Trace Buffer Control
register (
TBUFCTL
) register. First, the Trace Unit must be activated by set-
ting the
TBUFPWR
bit. If
TBUFPWR=1
, then setting
TBUFEN
to 1 enables the
Trace Unit.
Figure 20-9
shows the Trace Buffer Control register (
TBUFCTL
). If
TBUFOVF = 1
, then the Trace Unit does not record discontinuities in the
exception, NMI, and reset routines.
Содержание ADSP-BF535 Blackfin
Страница 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Страница 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 908: ...SDRAM Controller External Bus Interface Unit B 36 ADSP BF535 Blackfin Processor Hardware Reference...