Bitt – Texas Instruments TMS320C2XX User Manual
Page 201
BITT
Test Bit Specified by TREG
7-48
Cycles for a Single BITT Instruction
Program
Operand
ROM
DARAM
SARAM
External
DARAM
1
1
1
1+p
SARAM
1
1
1, 2
†
1+p
External
1+d
1+d
1+d
2+d+p
† If the operand and the code are in the same SARAM block
Cycles for a Repeat (RPT) Execution of an BITT Instruction
Program
Operand
ROM
DARAM
SARAM
External
DARAM
n
n
n
n+p
SARAM
n
n
n, n+1
†
n+p
External
n+nd
n+nd
n+nd
n+1+p+nd
† If the operand and the code are in the same SARAM block
Example 1
BITT
00h
;(DP = 6) Test bit 14 of data
;at 300h
Before Instruction
After Instruction
Data Memory
Data Memory
300h
4DC8h
300h
4DC8h
TREG 1h
TREG
1h
TC
0
TC
1
Example 2
BITT
*
;Test bit 1 of data at 310h
Before Instruction
After Instruction
ARP
1
ARP
1
AR1
310h
AR1
310h
Data Memory
Data Memory
310h
8000h
310h
8000h
TREG
0Eh
TREG
0Eh
TC
0
TC
0
Cycles