Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Please help me with Pspice A/D STIM

Status
Not open for further replies.

indu15

Member level 1
Joined
Nov 23, 2005
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,574
To produce digital signal in Pspice A/D I am using STIM1 stimulus part. The signal that I want to generate is having lot of transitions so for that reason I want to use repetitive commands in the edit properties of the STIM1. I have set the following properties:
COMMAND0 - 0s 0
COMMAND1 - LABEL=LOOP1
COMMAND2 - +1m 1
COMMAND3 - +1m 0
COMMAND4 - +1ms GOTO LOOP1 3 TIMES
COMMAND5 - LABEL=LOOP2
COMMAND6 - +2m 1
COMMAND7 - +2m 0
COMMAND8 - +2m GOTO LOOP2 –1 TIMES


the problem that I am facing is I am not getting output signal (check the figure) same as input. You can notice in the figure that the signal is low from 8ms to 11ms but as for the settings it should be low from 8ms to 10ms. Please anyone can help me with it.

Thank you!
 

Attachments


abhajn

Junior Member level 3
Joined
Mar 25, 2008
Messages
26
Helped
10
Reputation
20
Reaction score
7
Trophy points
1,283
Activity points
1,420
The following works:

+ 0s 0
+ LABEL=LOOP1
+ +1ms 1
+ +1ms 0
+ +1ms GOTO LOOP1 3 TIMES
+ +1ms 1
+ LABEL=LOOP2
+ +2ms 0
+ +2ms 1
+ +2ms GOTO LOOP2 -1 TIMES

In the statement right after LABEL, the time delay is ignored.
i.e. +1m in COMMAND2 is ignored during looping, while the +1ms in COMMAND4 is executed.
So, after running the GOTO LOOP1 3 times, the delay of +1m in COMMAND4 gets added to COMMAND6 and creates a delay of 3ms.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top