Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Ads

Discussion Groups

Discussion Groups | Analog Devices DSPs | file I/O via SPORTs in SHARC simulator

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

file I/O via SPORTs in SHARC simulator - shan...@hotmail.com - May 13 13:48:56 2008



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.

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



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: file I/O via SPORTs in SHARC simulator - Jaime Andres Aranguren Cardona - May 13 20:22:36 2008

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 simulation until 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és Aranguren Cardona
j...@ieee.org
j...@computer.org

----- Original Message ----
From: "s...@hotmail.com" <s...@hotmail.com>
To: a...@yahoogroups.com
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.



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )