Directory Contents
==================

staticdsp.exe		the compiler
*.nsm			demo/example programs (non-FSM)
*.fsm			demo/example programs (FSM)
*.chl			ConTEXT highlighter files for StatiC
*.doc			StatiC Language Guide for the DSP


Compiling for the DSP
=====================

General format (from a command prompt)

staticdsp filename switches

Examples

staticdsp dspled.nsm -l -t -a568

staticdsp dsptest2.fsm -l -a568cw -f


Switches

-l			list pcodes in output
-t			create compiler trace file
-a			identify the assembler
			(568cw = CodeWarrior, 568 = a568)
-f			compile in FSM mode

Notes
-----

Assembly output is placed in clist.asm, and this can be pasted directly
into CodeWarrior, or used as the input to the a568 assembler.


See the StatiC Language Reference Guide for further details.


To compile/assemble/flash/run the demo programs
===============================================

Open a hyperterm session, and connect it to the COM port connected to the microcontroller. Make sure the session is 9600, 8 bit, no parity.

Next, open a Command Prompt (DOS box) and navigate to the directory containing the unzipped folder.


Non-FSM Example
===============

staticdsp dspled.nsm -a568

a568 vec805.asm clist.asm

flash



FSM Example
===========

staticdsp dsptest1.fsm -f -a568

a568 vec805.asm clist.asm

flash




Note:

These example programs have been coded to run on NMI's PlugaPod.
You'll need to change the GPIO lines for the LED example to work
on any other board.

test1.fsm is a simple terminal echo program. testled.nsm sets the LEDs according to what's typed at the keyboard.
