D from BC
myrealaddress(at)comic(dot)com
British Columbia
Canada
It looks like the cleanest way to make a quick model of it.
If you have the Q charge and RC that hits the CLR when the voltage
gets to some level, you will have most of it. An ideal switch could
discharge the capacitor between pulses so that history has little
effect on this cycle.
LT Spice has delay lines.
John
Retriggerable or non-retriggerable? A simple one-shot can be made
out of an xor gate and an R-C or a few gates.
--
Keith
So the recipe is:
1 flip flop
1 delay line (instead of an RC)
Neato...
I think retriggerable..
In other words, triggers can keep the circuit output high.
(Assume all digital positive logic.)
Once the triggers stop, the output will zero after a time period.
Using gates sounds good too..
I guess that's about it.
Gates or flip flops..
I wonder why the one-shot doesn't get it's own symbol and parameters.
The delay line can remember more than one event. The RC only
remembers the voltage on the capacitor. If you are after a normal
sort of oneshot, use the RC.
Use the NE555 in the misc directory?
Cheers,
John
Isn't that model full of components?
If so, it'll will run slower than a primitive model.
I'm just looking for function and not to simulate any real parts.
>Is there a tidy way to model an edge triggered monostable (one shot)
>in ltspice..
>All I can think of is using the behavioural flip flop in some fashion.
>afaik that's the only way..
---
Version 4
SHEET 1 1092 680
WIRE 128 -96 80 -96
WIRE 224 -96 192 -96
WIRE 288 -96 224 -96
WIRE 432 -96 288 -96
WIRE 224 -64 224 -96
WIRE 288 -64 288 -96
WIRE 544 -48 496 -48
WIRE 432 -32 400 -32
WIRE 544 -16 544 -48
WIRE 400 0 400 -32
WIRE 224 32 224 0
WIRE 288 32 288 16
WIRE 400 32 544 -16
WIRE 544 48 400 0
WIRE 400 64 400 32
WIRE 432 64 400 64
WIRE 544 80 544 48
WIRE 544 80 496 80
WIRE 432 128 400 128
WIRE 544 144 544 80
WIRE 80 224 80 -96
WIRE 400 240 400 128
WIRE 544 240 544 224
WIRE 544 240 400 240
WIRE 544 256 544 240
WIRE 80 336 80 304
WIRE 544 336 544 320
WIRE 544 336 80 336
WIRE 80 400 80 336
FLAG 80 400 0
FLAG 224 32 0
FLAG 288 32 0
SYMBOL res 560 240 R180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R1
SYMATTR Value 1e6
SYMBOL cap 528 256 R0
WINDOW 0 53 14 Left 0
WINDOW 3 46 47 Left 0
SYMATTR InstName C1
SYMATTR Value 1e-6
SYMBOL Digital\\or 464 -128 R0
WINDOW 0 -33 -17 Left 0
SYMATTR InstName A1
SYMATTR SpiceLine trise 1e-6 tfall 1e-6 vhigh 9v
SYMBOL Digital\\or 464 160 M180
WINDOW 0 -30 14 Left 0
SYMATTR InstName A2
SYMATTR SpiceLine trise 1e-6 tfall 1e-6 vhigh 9v
SYMBOL voltage 80 208 R0
WINDOW 3 24 104 Invisible 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 9 .1 1e-6 1e-6 1e-3 .5 2)
SYMATTR InstName V1
SYMBOL cap 192 -112 R90
WINDOW 0 -30 32 VBottom 0
WINDOW 3 -31 32 VTop 0
SYMATTR InstName C2
SYMATTR Value 1e-7
SYMBOL diode 240 0 R180
WINDOW 0 44 34 Left 0
WINDOW 3 24 0 Left 0
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res 272 -80 R0
SYMATTR InstName R2
SYMATTR Value 100k
TEXT 104 368 Left 0 !.tran 5 uic
TEXT 416 -120 Left 0 ;4001
JF
>On Mon, 10 Nov 2008 20:01:52 -0800, D from BC <myreal...@comic.com>
>wrote:
>
>>Is there a tidy way to model an edge triggered monostable (one shot)
>>in ltspice..
>>All I can think of is using the behavioural flip flop in some fashion.
>>afaik that's the only way..
>
>---
oops I should have wrote that I'm looking for a short cut, not a
schematic.
(Was still interesting to see a NOR cct opposed to a ff cct. )
What I'm really after is a behavioral monostable model in ltspice or
near equivalent so I don't have to make a monostable model with flip
flops or gates.
Some monostable attributes might be:
Retrig or nonretrig
Ton
+ the usual digital parameters.
I wonder if an international symbol for a monostable exists...
Input feeds inverter and RC. Output of inverter and RC feed NOR.
Positive edge causes one input to the NOR to go low (from inverter)
immediately and the other to go high after RC. During the time
both are low the output is high. ...or something like that.
AND/OR gates do the same as XOR, except only trigger the monostable
on one edge.
> What I'm really after is a behavioral monostable model in ltspice or
> near equivalent so I don't have to make a monostable model with flip
> flops or gates.
>
> Some monostable attributes might be:
> Retrig or nonretrig
> Ton
> + the usual digital parameters.
>
> I wonder if an international symbol for a monostable exists...
Sure. I've seen several (Mustart Bible anyone?) That's the nice
thing about standards; there are so many to choose from.
--
Keith