_IVG11_handler.counter.czm_error:
CC = bittst(R5, bitpos(CZMEII));
IF !CC JUMP _IVG11_handler.counter.czm_zeroes_counter;
/* Clear the serviced request */
R6 = CZMEII (z);
w[P5] = R6;
/* insert czm error handler here */
_IVG11_handler.counter.czm_error.end:
_IVG11_handler.counter.czm_zeroes_counter:
CC = bittst(R5, bitpos(CZMZII));
IF !CC JUMP _IVG11_handler.counter.all_serviced;
/* Clear the serviced request */
R6 = CZMZII (z);
w[P5] = R6;
/* insert czm zeroes counter handler here */
_IVG11_handler.counter.czm_zeroes_counter.end:
_IVG11_handler.counter.all_serviced:
/* Restore from stack */
(R7:0, P5:0) = [SP++];
RETS = [SP++]
RTS;
_IVG11_handler.counter.end:
Listing 13-4
shows how to set up timer 7 (as an example) to capture the
period of counter events. Refer to "Internal Interfaces" in
ADSP-BF50x Blackfin Processor Hardware Reference
;
General-Purpose Counter
Chapter 9,
13-35
Need help?
Do you have a question about the ADSP-BF506F and is the answer not in the manual?
Questions and answers