User`s manual

4-6 Suite56 DSP Tools User’s Manual Motorola
Developing Real-Time Applications
4.2.3 Generating Output with Time-Critical Information
Simulated output can consist of pairs of items, where the first item of each pair is a cycle
number and the second is the actual output datum. The cycle number indicates relative
time, so in this way, a Suite56 simulator produces output with time-critical information.
You can capture this timed output from peripherals, memory, ports, pins, or registers.
To simulate time-critical output, in the File menu, choose Output, and then select Open.
When the dialogue box appears, check the Timed check box, indicate File in the To pane,
indicate Peripheral (or Memory, Port, Pin, or Register, depending on the source of your
time-critical output) in the From pane. Indicate the file name in the File Name pane.
In the text-based interface, use the command
output with the peripheral (or memory,
port, pin, or register) name and file name as parameters followed by the option
T to
indicate timed data.
4.2.4 Simulating Communication between Serial Devices
Certain real-time applications require responses from a target digital signal processor
interleaved with serial input at every cycle. For example, input of complicated wave forms
through a synchronous serial interface may require this interleaving of serial input and
response on a per-cycle basis.
One way to simulate this situation is to use a Suite56 simulator to simulate two devices.
One simulated device represents the real-time target device. The second simulated device
runs a separate program to generate input (such as the complicated wave forms in our
example) for the first simulated device through its synchronous serial interface (i.e., its
SSI). The simulator clock implicitly synchronizes the two simulated devices for you.
More specifically, here are the steps to follow:
1. Configure two devices, device 1 and device 2, in the simulator.
In the Modify menu, choose Device, and then select Configure. A dialogue box
appears for you to configure device 1. Click OK.
Repeat these steps for device 2.
2. Set device 2 as the default device.
In the Modify menu, choose Device, and then select Set Default.
3. Load the program to generate input into device 2.
In the File menu, choose Load, and then select Memory. A dialogue box appears
for you to indicate which file to load into the current device.