Searching \ for 'Stimulus files ? Trace memory files ?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/mems.htm?key=memory
Search entire site for: 'Stimulus files ? Trace memory files ?'.

Truncated match.
PICList Thread
'Stimulus files ? Trace memory files ?'
1997\01\03@052224 by pavelk

flavicon
face
Hello friends,

I am a bit new in PIC programming and I have one question.

I am using the MPLAB software (Windows version). The environment and simulator
is OK, but I would like to ask you, if anybody have the description of the
stimulus file formats and the description of Trace memory output format. I
looked at the PDF documentation for MPLAB, but I am not able to find any example
of stimulus input file.

Is it possible to find some stimulus file editor and "trace memory" file
preprocessor somewhere ?

Than you for any info

PavelK


--
****************************************************************************
*                    Pavel Korensky (spam_OUTpavelkTakeThisOuTspamdator3.anet.cz)                *
*     DATOR3 Ltd., Modranska 1895/17, 143 00 Prague 4, Czech Republic      *
*  PGP key fingerprint: 00 65 5A B3 70 20 F1 54  D3 B3 E4 3E F8 A3 5E 7C   *
****************************************************************************

1997\01\04@103938 by Darrel Johansen

picon face
Pavel Korensky wrote:
>
> Hello friends,
>
> I am a bit new in PIC programming and I have one question.
>
> I am using the MPLAB software (Windows version). The environment and simulator
> is OK, but I would like to ask you, if anybody have the description of the
> stimulus file formats and the description of Trace memory output format. I
> looked at the PDF documentation for MPLAB, but I am not able to find any
example
> of stimulus input file.

As for the trace memory, it's just an ASCII text file: what you see is
what's in the file and you can load it with any editor.  The stimulus
files were not as well documented in the MPLAB literature, but here is
text from the README.LAB document that accompanies the latest MPLAB:

------------------------------------------------------------
Using Stimulus files for MPLAB-SIM
------------------------------------------------------------
Stimulus files for MPLAB-SIM are ASCII text files that have two
formats, one for the Pin Stimulus function, and one for the
Register Stimulus function.

PIN STIMULUS Files
A Pin Stimulus file consists of columns of input ones and zeroes
that will be applied to pins when the "Cycle" value in the
Stopwatch matches the STEP column.

Example:
STEP    RB1    RB0
20      0       0
41      1       0   ; apply high to port b bit 1
52      0       1   ; apply high to port b bit 0, set bit 1 low
55      1       1
60      0       0
65      1       0   ; toggle bit 1, then...
76      0       1   ! ...toggle bit 0.

For backward compatibility with earlier versions of MPSIM, the
first line must always start with the word "STEP."  This column
specifies the CYCLE (as determined by MPLAB's Stopwatch Window)
where the values in the other columns will be applied.

After the word STEP in the first line of the file are the pin
names for the PIC16/17 pins that will receive the high and low
stimulus values.  In this example file RB1 and RB0, two inputs
on port B will receive stimulus inputs.

In this file the second column contains values that will be applied
to RB1 (Port B bit 1) and the third column has values for RB0
(Port B bit 0).  These names must match the Microchip PIC16/17 pin
names for the processor being simulated.  You can see a list of all
supported pins by looking at the pin assignment pull down for the
Asynchronous Stimulus (right click on a stimulus button).

Comments can be put on a line using the ";" or "!" character preceded
and followed by at least one space.

The Stopwatch Window will also show the elapsed time at each
instruction,
as determined from the CYCLE value and the clock frequency.  If the
Stopwatch is reset to 0, the pin stimulus file will also be effectively
reset.

REGISTER STIMULUS Files
A Register Stimulus file consists of a single column of values
that will be applied to a register when the Program Memory
Address reaches the location set in the Register Stimulus Dialog.

Example:
10
2E
38
41
50
7A
99
A0
FD

If this is saved as an ASCII file named INPUT.REG, and selected from
the Debug>Simulator Stimulus>Register Stimulus Dialog, this list of
values will be sequentially injected into the selected file register.

Values of 0x10, 0x2E, etc. will be injected into the register
selected in the Debug>Simulator Stimulus>Register Stimulus Dialog
every time the Program Memory Counter reaches the address set in
that dialog.

After the last value is injected (0xFD in this list), the first value
will be used again (0x10).  The list will cycle as long as MPLAB-SIM
executes.

More... (looser matching)
- Last day of these posts
- In 1997 , 1998 only
- Today
- New search...