Multiplier
32x32 Long Multiplication
IMPYAL P,XT,loc32
P = u(XT)*u(loc32)
QMPYAL ACC,XT,loc32
ACC = (XT)*(loc32)
X
Y
X
XO
*
Y0
Z1 Z0
IMACL P,loc32,*XAR7
ACC += P; P = u(loc32)*u(loc32)
QMACL P,loc32,*XAR7
ACC += P; P = (loc32)*(loc32)
Integer long multiplication
u(long) = u(long) * u(long)
Fraction long multiplication:
(long) = (long) * (long)
(long) 64 = (long) 32 * (long) 32
Y1 * X1
Z3 Z2
Accumulator P-register
Repeat Instruction
Repeat Next: RPT
Features:
Next instruction iterated N+1 times
Saves code space - 1 word
Low overhead - 1 cycle
Easy to use
Non-interruptible
Requires use of | | before next line
May be nested within
BANZ
loops
Options:
RPT #8bit
up to 256 iterations
RPT loc16
location “
loc16
” holds count value
Instruction Cycles
RPT
BANZ
1
4
.
N
Example :
int x[5]={0,0,0,0,0};
x
.usect “samp”,5
MOV
AR1,#x
RPT
#4
|| MOV
*XAR1++,#0
Refer to User Guide for more repeatable instructions
C28x - Appendix C - Assembly Programming
C - 11
Содержание C28 Series
Страница 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Страница 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Страница 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Страница 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Страница 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Страница 275: ...Appendix eZdsp F2812 eZdsp F2812 Connector Header and Pin Diagram C28x Appendix A eZdsp F2812 A 3 ...
Страница 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Страница 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Страница 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Страница 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Страница 281: ...Appendix JP7 JP8 JP11 JP12 Boot Mode Select JP9 PLL Disable DS1 DS2 LEDs C28x Appendix A eZdsp F2812 A 9 ...
Страница 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...