Hello,
I will start by replying to your second question. Yes, you can. Read about
scripting on the VisualDSP++ documentation. Actually you can do scripting in
Tcl, VBasic, Perl, Phyton and other languages. The topic is rather long and
could be complex in some sense, but the time spent in reading and understanding
it will be very useful for what you pretend to achieve.
Now to the first question: There are some operations in VisualDSP++, regarding
memory, which are called Fill and Dump, both can be done from/to files on disk
in the host PC. You can run the system simulationuntil an interrupt occurs (you
can simulate interrupts directly in VDSP++, and can even simulate them with
scripting too!) and using scripting you can fill the memory from a file within
the ISR (Interrupt Servicing Routine), process the data, and (with scripting)
dump the results to a file.
I hope you got the picture. Get yourself a cup of coffee, and have fun reading
the docs and playing with VDSP++.
Regards,
Jaime Andr Aranguren Cardona
j...@ieee.org
j...@computer.org
----- Original Message ----
From: "s...@hotmail.com"
To: a...
Sent: Tuesday, May 13, 2008 12:45:57 PM
Subject: [adsp] file I/O via SPORTs in SHARC simulator
Hello, all. New to the board. Also new to the SHARC simulator.
I'm looking for some code examples that will help me set up the 21062
serial ports for use in the simulator. From what I've been able to gather
from the documentation, the only way to read/write data from/to files when using
the simulator is via the serial ports. I need to establish periodic interrupts,
read several values into the interrupt handler from a file, and write
intermediate results to a file while the interrupt handler runs. My application
doesn't currently use the serial ports for I/O; I'd have to modify the
code to do so.
One related question regarding this: Would I be able to set up one or both
serial ports in an automated way, outside my application? For instance, could I
configure them with a string of commands in the .ini startup file?
Thanks in advance.