Functional Description
13-10
ADSP-BF50x Blackfin Processor Hardware Reference
interrupt controller, this will generate an interrupt request. The
active edge is selected by the
CZMINV
bit in the
CNT_CONFIG
register:
(rising edge if cleared, falling edge if set to one).
•
Zero-once mode
–This mode is used to perform an initial reset of
the counter value when an active zero marker is detected. After
that, the zero marker is ignored (the counter is not reset anymore).
This mode is enabled by setting the
W1ZMONCE
bit in the
CNT_COMMAND
register. The
CNT_COUNTER
register and the
W1ZMONCE
bit are cleared on the next active edge on the
CZM
pin. Thus, the
W1ZMONCE
bit can be read to check whether the event has already
occurred, if desired. The active edge of the
CZM
pin is selected by
the
CZMINV
bit in the
CNT_CONFIG
register (rising edge if cleared,
falling edge if set to one).
Boundary Comparison Modes
The GP counter includes two boundary registers,
CNT_MIN
(lower) and
CNT_MAX
(upper). The counter value is compared to the lower and upper
boundary. Depending on which mode is selected, different actions are
taken if the count value reaches either of the boundary values.
There are four boundary modes:
•
Boundary-compare mode
–The two boundary registers are simply
compared to the
CNT_COUNTER
register. If, after incrementing,
CNT_COUNTER
equals
CNT_MAX
then the
MAXCII
bit in the
CNT_STATUS
register is set. If the
MAXCIE
bit in the
CNT_IMASK
register is set, an
interrupt request is generated. Similarly if, after decrementing,
CNT_COUNTER
equals
CNT_MIN
then the
MINCII
status bit is set. If the
MINCIE
bit in the
CNT_IMASK
register is set, an interrupt request is
generated. The
MAXCII
and
MINCII
bits are not set if the
CNT_MAX
and
CNT_MIN
registers are updated by software.
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 ...