I have a TMS320C31 DSK board at hand and do not know what to do
with it. Can anyone give me any pointer as in where do I start?
The first thing I would do is load something simple, like RAND.DSK, and get
used to how the debugger and device work. RAND.DSK is created from RAND.ASM
using either the command line assembler DSK3A, or the Assemble pulldown
menus in the new DSK3DW debugger.
As you step through each opcode you might begin to get a feeling for what is
going on. Most of the opcodes should be fairly intuitive. For those that
are not, look them up in the users guide.
; Integer opcode examples
ADDI 1,R0 ; adds constant '1' to the content of R0
MPYI @VAL,R1 ; multiplies R1 by content of location 'VAL' in memory
; Floating point opcode examples
ADDF 1,R0 ; adds constant '1.0' to the content of R0 (as float)
MPYF @VAL,R1 ; multiplies R1 by content of location 'VAL' in memory
Do you think fixed and floating point formats are the same? Not likely, so
this might be the next thing to research. Yada-yada-ya...
next you might try some simple math examples that come with the DSK. A good
one might be inverse or inverse square root or the multiplication of two
complex pairs. This is not DSP filters and FFT yet, but it does get you to
thinking about how you might go about writing DSP code.
Off topic (how WinHelp->DSK3HELP works)
Incidentally, if you have the new DSK tools, have a look at the DSK3HELP.HLP
file (a Windows help file). There is *a lot* of information here and you
could spend a lot of time being lost. Instead, as you ask yourself these
questions, for example 'how are floating and fixed point formats
represented', try searching the help file using 'Find'.
BTW, how a Help File Works is interesting in itself and might be a neat
little trick to add to everyones bag of engineering tricks.
Help files are compressed files and as such will lump together similar
strings, saving a pointer to where a string needs to go in the expanded file
rather than the string itself. For example, in this paragraph alone the
word ' file ' along with leading and lagging white spaces appears four
times. It might therefor make sense to save the string ' file ' one time
and thereafter refer to its locations as offsets into the paragraph.
Sure this is simple compression, but think of it another way. The list of
saved strings happens to contain all the words (and their locations) for the
file. This is what you are looking at when you use the FIND feature in WinHelp.
Another cool thing I found was that by being a bad speller, I could quickly
find bad spellings. For example I tend to type ...aly instead of ...ally. I
know better, but I often type faster than I think. Guess what... you can
quicly find all instances of 'aly'.
Anyhow, that was way off topic, unless you end up having to impliment a
compressor on a DSP, and that happens more than you might think!
Hope this helps
At 03:58 PM 10/28/03 -0000, you wrote:
I have a TMS320C31 DSK board at hand and do not know what to do with it. Can
anyone give me any pointer as in where do I start?
|Keith Larson |
|Member Group Technical Staff |
|Texas Instruments Incorporated |
| 281-274-3288 |
| www.micro.ti.com/~klarson |
| TMS320C3x/C4x/VC33 Applications |
| TMS320VC33 |
| The lowest cost and lowest power 500 w/Mflop |
| floating point DSP on the planet! |