run spice interactively without nutmeg

pull/3/head
emard 6 years ago
parent 38a2573d18
commit 37ed38c8d6

@ -1,6 +1,6 @@
#all: powersection-v17.plot #all: powersection-v17.plot
#all: powersection-v188.plot #all: powersection-v188.plot
all: powersection-v20.plot all: powersection-v20.plot2
#SPICE=spice3 #SPICE=spice3
#SCOPE=rlwrap nutmeg #SCOPE=rlwrap nutmeg
@ -17,5 +17,8 @@ bin: switch.m
%.plot: %.raw %.plot: %.raw
$(SCOPE) $< $(SCOPE) $<
%.plot2: %.spice
$(SPICE) < $<
clean: clean:
rm -f *.raw *~ DEADJOE rm -f *.raw *~ DEADJOE

@ -124,6 +124,19 @@ CL P3V3 0 1000uF
.MODEL BC857 PNP (BF=150) .MODEL BC857 PNP (BF=150)
.MODEL N7002 NMOS (LEVEL=1, VTO=2.5, KP=40, RS=0.033, RD=0.034) .MODEL N7002 NMOS (LEVEL=1, VTO=2.5, KP=40, RS=0.033, RD=0.034)
* .control card accepts commands like from interactive mode see:
* http://bwrcs.eecs.berkeley.edu/Classes/IcBook/SPICE/UserGuide/interactive_fr.html
.CONTROL
* white background (color0)
*set color0 = white
* black text and grid
*set color1 = black
* run transient analysis
tran 1ms 3.3s
* plot results
plot v(pwrbtn_pulse),v(shutdown_pulse),v(wake_pulse),v(p3v3),v(ftdi_nsleep),v(pwren)
.ENDC
* todo * todo
* [x] delay: switch power 3.3V doesn't start immediately simulated with Rsmps=10 ohm * [x] delay: switch power 3.3V doesn't start immediately simulated with Rsmps=10 ohm
* [ ] control signals should be derived from P3V3 line * [ ] control signals should be derived from P3V3 line

Loading…
Cancel
Save