Question: Table 7-3, pg 7-40 states for BRAF bit that after modifying w/ RSBX, end of loop must be more than 5 words away. While Sec 7.5.8.2 and Ex 7.58, pg 7-78 state that it should be 6 words. Which is correct?

Answer: You need 5 instruction words before the last word in the block repeat. This figure does not include the last word in the block repeat.

 
 
              STM       #9, BRC
              RPTB      endloop-1
              RSBX      BRAF
              NOP
              NOP
              NOP
              NOP
              NOP
              NOP
endloop:      NOP
 
 
whereas this code will not:
 
 
BEGIN:        STM       #9, BRC
              RPTB      endloop-1
              RSBX      BRAF
              NOP
              NOP
              NOP
              NOP
              NOP
endloop:      NOP

Device: TMS320C5xx
Category: Applications / Examples
Detail: Examples
Title: States for BRAF Bit
Source: Case from the TMS320 Hotline
Date: 06/19/98
GenId: 30086

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!