DSPRelated.com
Forums

assembly DSP

Started by demraoui222 December 19, 2010
Hello,
I'm a new user of DSP,i want to learn Assembler to programming DSP6713.
i have an instruction set reference guide but it's not enough,i want to khnow for example how to declare variable and if it's possible to use trigonometric functions.
i need your help and thanks.

_____________________________________
demraoui222,

On 12/19/2010 10:08 AM, demraoui222 wrote:
>
> Hello,
> I'm a new user of DSP,i want to learn Assembler to programming DSP6713.
> i have an instruction set reference guide but it's not enough,i want
> to khnow for example how to declare variable and if it's possible to
> use trigonometric functions.
> i need your help and thanks.
>

The TI documents below [from ti.com] will help get you started with
Linear Assembly coding.
SPRU198 ---TMS320C6000 Programmer's Guide.
SPRU189 ---TMS320C6000 DSP CPU and Instruction Set Reference Guide.
SPRU186 ---TMS320C6000 Assembly Language Tools User's Guide
SPRA440 ---Bit-Reverse and Digit-Reverse:Linear-Time SmallLookup Table
Implementation for the TMS320C6000

Also, to start understanding TI assembly, you can write small C programs
and have the compiler generate an assembly code file.

You are out of luck WRT trig functions.

Why are you wanting to learn assembly code??

mikedunn
>
demraoui,

I assume you have already downloaded the document: spru186s.pdf from T.I.

There are a few different ways to declare a variable in assembler.

A T.I. document that has several examples, including how to write an assembly
function and how to call it from C....

go to http://www.ti.com
in the 'search by keyword' box, type "SPRA590", click 'go'.

the resulting page has a link to the spra590.pdf file.
open that file.

The above is for the C2000 family, but the operations are the same.
The above is a trivial example.

Then you might want to read/download spra755a.zip and spra755a.pdf

A flexible way to define variables (which are normally in the .bss section
.bss symbol,size in bytes[, alignment[, bank offset]]

So a trivial example:
.bss myvariable, 4,4
defines a variable name 'myvariable' as 4 bytes long (an integer in size),
aligned on a 4 byte boundary.

--------------------

BTW:
most of the questions that you may have about the T.I. products, documentation,
etc can be found at the above URL. (which will re-direct you to focus.ti.com)

R. Williams

---------- Original Message -----------
From: "demraoui222"
To: c...
Sent: Sun, 19 Dec 2010 16:08:55 -0000
Subject: [c6x] assembly DSP

> Hello,
> I'm a new user of DSP,i want to learn Assembler to programming DSP6713.
> i have an instruction set reference guide but it's not enough,i want
> to khnow for example how to declare variable and if it's possible to
> use trigonometric functions. i need your help and thanks.
------- End of Original Message -------

_____________________________________
Hi,
thanks for sending documents, its very interssting to starting with assembly
language, i want to use Asm for generating waves, i want use c++ but my
supervisor like to do this work with asm, im going
to try it