Multiplier
Single repeat instruction (RPT) is used to reduce code size and speed up many operations in the
DSP application. Some of the most popular operations that use the RPT instruction to perform
multiple taps digital filters or perform block of data transfer.
MAC Instruction
Sum-of-Products: RPT / MAC
∑
=
=
19
0
n
n
n
a
x
y
XAR1++
XAR1++
X0
X0
X1
X1
...
...
X19
X19
MOV T,loc16
ADD ACC,P
MPY P,T,loc16
MOVA T,loc16
ACC+=P
T=*ARn++
P=T*(*ARn++)
MAC
{
Zero ACC & P
Zero ACC & P
Repeat single
Repeat single
Dual operand
Dual operand
last ADD
last ADD
ZAPA
ZAPA
RPT
RPT
#19
#19
||
||
MAC
MAC
P,*XAR1++,*XAR7++
P,*XAR1++,*XAR7++
ADDL
ADDL
ACC,P<<PM
ACC,P<<PM
x
x
.
.
usect
usect
“sample”,20
“sample”,20
y
y
.
.
usect
usect
“result”,2
“result”,2
.sect “coefficient”
.sect “coefficient”
a0:
a0:
.word
.word
0x0101
0x0101
.word
.word
0x0202
0x0202
• • •
• • •
.word
.word
0x2020
0x2020
.sect “code”
.sect “code”
SOP:
SOP:
SPM
SPM
0
0
MOVW
MOVW
DP,#y
DP,#y
MOVL
MOVL
XAR1,#x
XAR1,#x
MOVL
MOVL
XAR7,#a0
XAR7,#a0
MOVL
MOVL
@y,ACC
@y,ACC
B SOP,UNC
B SOP,UNC
XAR7++
A0
A1
...
A19
Second operand
Second operand
must use XAR7
must use XAR7
C - 12
C28x - Appendix C - Assembly Programming
Содержание 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 ...