Initializing Multisim Live ...

Waiting for awesome

Waiting for data
DQ~QRESETCLKSETDQ~QRESETCLKSETDQ~QRESETCLKSETDQ~QRESETCLKSETABCDEFG10ABCDOAODOEOFOCOBOG~LT~RBI~BI/RBO1010QAQBQDQCINBR01R02INAABCDEFGABCDOAODOEOFOCOBOG~LT~RBI~BI/RBO10101010 U5U6U7U85678U9DG324U1374LS48N3334DG4DG53637U14U2074LS93NU10U2174LS48N123491011121415DG816135V1kHzV30DG918U119U2203832U3172131302928272625U42235S123DG1DG23940

ID:

ID:

x10
x0.1
Sheet:1
V
Analysis and annotation
V
Voltage
Current
Voltage and Current
Voltage Refe­rence
Expression
Data
Text Annotation
Digital
Schematic connectors
Ground
Conn­ector
Junction
Sources
AC Voltage
AC Current
Clock Voltage
Clock Current
Trian­gular Voltage
Trian­gular Current
DC Voltage (VCC)
DC Current
Step Voltage
Step Current
Pulse Voltage
Pulse Current
AM Voltage
FM Voltage
FM Current
Chirp Voltage
Chirp Current
Thermal Noise
Arbitrary Voltage Source
Arbitrary Current Source
Three Phase Delta
Three Phase Wye
More
More
Passive
Resistor
Capa­citor
Inductor
Potent­iometer
Fuse
Trans­formers...
Transformers...
1P1S
1P1S with Center Tap
1P2S
2P1S
2P2S
More
More
Coupled Inductors
Lossy Trans­mission Line
Lossless Trans­mission Line
Resistors...
Resistors...
Voltage Con­trol­led Resistor
Impe­dance Block
Analog
3 Terminal Opamp
5 Terminal Opamp
Ideal Com­par­a­tor
555 Timer
Opamps...
Opamps...
AD8541
ADA4000-1
ADA4077-1
ADTL082A
LF356
LM2904
LM324A
LM358
LMH6645
LMV321
MAX4412
MCP6001
OP27A
OP37E
OP482G
OP484E
THS4051
TL072
TL074
UA741
More
More
Com­par­a­tors...
Comparators...
AD8561A
LM311
LM339
MAX9031
MCP6546
More
More
Timers...
Timers...
LM555CN
ICM7555
TLC555
In­stru­men­ta­tion ampli­fiers...
Instrumentation amplifiers...
AD620A
AD623A
AD8222A
AD8226
INA126
INA333
More
More
Refe­rences...
References...
AD584J
LM336B-2.5
LM336B-5.0
TL431A
More
More
Current sense ampli­fiers...
Current sense amplifiers...
AD8210
MAX4081S
MAX9938T
Audio ampli­fiers...
Audio amplifiers...
LM4871
NCP2890
NCP4894
More
More
Opto­couplers...
Optocouplers...
HCPL-181
MOC8101
SFH6156-3
TCMT1600
VO615A-3
Vacuum tubes...
Vacuum tubes...
12AX7A
More
More
Diodes
Diode
Zener
LED
General purpose diodes...
General purpose diodes...
1N4148
1N4001
1N4005
1N5819
BAS16
BAS316
BAV70
MBRA­340T3
MMBD914
MMBD7000L
MSS2P3
MUR160
PMEG1­020EA
PMEG2­010BER
RB751S40
S1G
Zener diodes...
Zener diodes...
BZB84-B6V2
BZX84-C5V6
MM3Z6V8S
MMBZ5­240BL
NZH11C
SZ1SM­A5913B
More
More
Diode bridges...
Diode bridges...
3N247
DF1510S
G3SBA60
Prote­ction diodes...
Protection diodes...
1.5KE­100CA
1.5KE20A
1.5KE91A
1.5SM­C15CA
1.5SM­C6.8A
1SMB170A
More
More
Photo­diodes...
Photodiodes...
BPW 34 FA
S1227-16BQ
Varactor diodes...
Varactor diodes...
BB545
BB555
BB689-02V
BBY53-03W
MMBV­105GL
PIN diodes...
PIN diodes...
1SV233
BAR63-06W
MMBV­3401L
Thyristors...
Thyristors...
MAC08M
MAC12HCD
MCR08B
MCR716
MCR8SN
MKP3V240
More
More
Transistors
NPN
NPN 4T
PNP
PNP 4T
NMOS
NMOS 4T
PMOS
PMOS 4T
JFET N
JFET P
GaAsFET N
GaAsFET P
NPN...
NPN...
2N2222A
2N3904
BC817
BC847
BF422
MJ15024
MJD122
MMBTA14L
TIP31A
More
More
PNP...
PNP...
2N2907A
2N3906
BC807
BD244
MJL1302A
MMBT2­907AL
MMBTA63L
TIP32A
More
More
NMOS...
NMOS...
2N7000
2N7002
5LN01SP
BSC100­N06LS3 G
BSC123­N08NS3 G
BSS138BK
BSZ123­N08NS3 G
EPC2014
IRF510
IRF540
IRLM­L0060
PMPB20EN
More
More
PMOS...
PMOS...
BSP250
BSS84P
CPH3362
IPD04­2P03L3 G
NTR4101P
More
More
JFET...
JFET...
MMBF­4393L
MMBF­J175L
MMBF­J309L
More
More
IGBT...
IGBT...
AUIRG­DC0250
IRG4B­C30UD
IRG4­PH50U
IRG4P­SC71KD
NGTB15­N60S1EG
More
More
UJT...
UJT...
2N6027
More
More
Indicators
Lamp
LED
A
8 LED Bar
Buzzer
ABCDEFG
7-Segment Display
DCBA
7-Segment HEX Display
ABCDEFGH
7-Segment Display with Decimal
Switches
SPST
SPST Double Break
SPDT
Time Delay Switch
+-
Voltage Con­trol­led SPST
Voltage Con­trol­led SPDT
Voltage Cont­rolled DPDT
Current Con­trol­led SPST
Analog switches...
Analog switches...
ADG779B
MAX4714
Modeling blocks
Voltage Gain Block
Voltage Summer
Multi­plier
Divider
Voltage Differe­ntiator
Voltage Integ­rator
Voltage Con­trol­led Voltage Source
Voltage Con­trol­led Current Source
Current Con­trol­led Voltage Source
Current Con­trol­led Current Source
ABM Voltage
ABM Current
Delay
Voltage Con­trol­led Resistor
Voltage Con­trol­led Capa­citor
Voltage Con­trol­led Inductor
Impe­dance Block
Inductor Coupling
Electromechanical
Normally Open Relay
Normally Closed Relay
Com­bi­na­tion Relay
Machines...
Machines...
DC Machine Perm­anent Magnet
DC Machine Wound Field
Brus­hless DC Machine
Brus­hless DC Machine (Hall)
Stepper 2 Phase
Stepper 2 Phase 2 Winding
Indu­ction Machine Squirrel Cage
Indu­ction Machine Squirrel Cage (E)
Indu­ction Machine Wound
Indu­ction Machine Wound (E)
Syn­chro­nous Perm­anent Magnet
Syn­chro­nous Perm­anent Magnet (E)
Syn­chro­nous Perm­anent Magnet (Hall)
Sensors...
Sensors...
In­cre­men­tal Encoder
Resolver
Me­cha­ni­cal loads...
Mechanical loads...
Inertial Load
Motion con­trol­lers...
Motion controllers...
Angle Wrap
rad/s to RPM
rad to deg
RPM to rad/s
Power
Diode Switch
GTO Switch
SCR Switch
Trans­istor Switch
Trans­istor with Diode Switch
TRIAC Switch
Phase Angle Con­trol­ler
Phase Angle Con­trol­ler (2 Pulse)
Phase Angle Con­trol­ler (6 Pulse)
PWM
PWM Com­ple­men­ta­ry
PWM 3 Phase
PWM Sinus­oidal 3 Phase
Linear regu­lators...
Linear regulators...
LM1084-3.3
LM1084-5.0
LM1084-ADJ
LM317
LM7805
MAX1­5007A
More
More
Swit­ching regu­lators...
Switching regulators...
MC34063A
More
More
MOSFET drivers...
MOSFET drivers...
IR2010
IR2110
MAX1­5024B
TC4427
More
More
Digital
Digital Constant
Digital Clock
AND
AND
2-Input AND
3-Input AND
4-Input AND
5-Input AND
6-Input AND
7-Input AND
8-Input AND
OR
OR
2-Input OR
3-Input OR
4-Input OR
5-Input OR
6-Input OR
7-Input OR
8-Input OR
NAND
NAND
2-Input NAND
3-Input NAND
4-Input NAND
5-Input NAND
6-Input NAND
7-Input NAND
8-Input NAND
NOR
NOR
2-Input NOR
3-Input NOR
4-Input NOR
5-Input NOR
6-Input NOR
7-Input NOR
8-Input NOR
XOR
XOR
2-Input XOR
3-Input XOR
4-Input XOR
5-Input XOR
6-Input XOR
7-Input XOR
8-Input XOR
XNOR
XNOR
2-Input XNOR
3-Input XNOR
4-Input XNOR
5-Input XNOR
6-Input XNOR
7-Input XNOR
8-Input XNOR
Buffer
Inverter
Flip-Flops & Latches
Flip-Flops & Latches
D Flip-Flop
JK Flip-Flop
SR Flip-Flop
T Flip-Flop
D Latch
SR Latch
BCD to 7-Segment Decoders
BCD to 7-Segment Decoders
74LS47N
74LS48N
Binary Counters
Binary Counters
74LS93N
74LS193N
Mux/Demux
Mux/Demux
74LS139D
Adders
Adders
74LS183D
Disable streaming
Details
Netlist
Errors
SPICE
SPICE Netlist

This is a text-based representation of the circuit.
The * symbol indicates a comment.
The + symbol indicates a continuation from the previous line.
Probes do not appear in netlists.

** 3.2.4 Asynchronous Counters Now Serving Display **
*
* Multisim Live SPICE netlist
*
*

* --- Circuit Topology ---

* Component: DG1
aDG1 bridgeDG1!OUT Digital_Source_DG1

xbridgeDG1!OUT bridgeDG1!OUT 39 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

* Component: DG2
aDG2 bridgeDG2!OUT Digital_Source_DG2

xbridgeDG2!OUT bridgeDG2!OUT 40 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

* Component: DG3
aDG3 bridgeDG3!OUT Digital_Source_DG3

xbridgeDG3!OUT bridgeDG3!OUT 24 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

* Component: DG4
aDG4 37 Digital_Source_DG4

* Component: DG5
aDG5 36 Digital_Source_DG5

* Component: DG8
aDG8 16 Digital_Source_DG8

* Component: DG9
aDG9 18 Digital_Source_DG9

* Component: S1
xS1 40 23 39 SPDT_Switch_S1 Params: Ron=0.0001 Roff=100000000 State=1

* Component: U1
aU1 [15 13] 19 Digital_AND2_U1

* Component: U10
xU10 1 2 3 4 9 10 11 24 7_SEGMENT_CC_U10

* Component: U13
xU13 32 33 34 35 37 37 37 bridgeU13!OA bridgeU13!OD bridgeU13!OE bridgeU13!OF bridgeU13!OC bridgeU13!OB bridgeU13!OG 74LS48_U13 PARAMS: Rise_delay=1e-7 Fall_delay=1e-7

xbridgeU13!OA bridgeU13!OA 25 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU13!OD bridgeU13!OD 28 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU13!OE bridgeU13!OE 29 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU13!OF bridgeU13!OF 30 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU13!OC bridgeU13!OC 27 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU13!OB bridgeU13!OB 26 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU13!OG bridgeU13!OG 31 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

* Component: U14
aU14 [35 7 6 32] 38 Digital_NAND4_U14

* Component: U2
aU2 [15 13] 20 Digital_AND2_U2

* Component: U20
xU20 17 12 19 18 15 14 13 12 74LS93_U20

* Component: U21
xU21 12 13 14 15 16 16 16 bridgeU21!OA bridgeU21!OD bridgeU21!OE bridgeU21!OF bridgeU21!OC bridgeU21!OB bridgeU21!OG 74LS48_U21 PARAMS: Rise_delay=1e-7 Fall_delay=1e-7

xbridgeU21!OA bridgeU21!OA 1 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU21!OD bridgeU21!OD 4 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU21!OE bridgeU21!OE 9 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU21!OF bridgeU21!OF 10 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU21!OC bridgeU21!OC 3 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU21!OB bridgeU21!OB 2 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

xbridgeU21!OG bridgeU21!OG 11 REAL_CUSTOM_DAC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

* Component: U3
aU3 [bridgeU3!A 22] 17 Digital_AND2_U3

xbridgeU3!A bridgeU3!A 21 REAL_CUSTOM_ADC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

* Component: U4
aU4 35 22 Digital_Inverter_U4

* Component: U5
xU5 5 20 36 38 32 5 Digital_DFlipFlop_U5 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=1 Rise_delay=1e-9 Fall_delay=1e-9 Clk_delay=1e-9 Set_delay=1e-9 Reset_delay=1e-9 Ic=0

* Component: U6
xU6 6 5 36 38 33 6 Digital_DFlipFlop_U6 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=1 Rise_delay=1e-9 Fall_delay=1e-9 Clk_delay=1e-9 Set_delay=1e-9 Reset_delay=1e-9 Ic=0

* Component: U7
xU7 7 6 36 38 34 7 Digital_DFlipFlop_U7 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=1 Rise_delay=1e-9 Fall_delay=1e-9 Clk_delay=1e-9 Set_delay=1e-9 Reset_delay=1e-9 Ic=0

* Component: U8
xU8 8 7 38 bridgeU8!RESET 35 8 Digital_DFlipFlop_U8 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=1 Rise_delay=1e-9 Fall_delay=1e-9 Clk_delay=1e-9 Set_delay=1e-9 Reset_delay=1e-9 Ic=0

xbridgeU8!RESET bridgeU8!RESET 23 REAL_CUSTOM_ADC PARAMS: lowV=0 maxLowV=0.8 unknownV=1 minHighV=2 highV=3.3 riseT=0 fallT=0

* Component: U9
xU9 25 26 27 28 29 30 31 24 7_SEGMENT_CC_U9

* Component: V3
vV3 21 0
+ pulse( 0 5 0 1e-9 1e-9
+ { 50 * 0.01 / 1000 }
+ { 1/1000 } )


* --- Circuit Models ---

* DG1 model
.model Digital_Source_DG1 d_constsource(State=1)

* DG2 model
.model Digital_Source_DG2 d_constsource(State=0)

* DG3 model
.model Digital_Source_DG3 d_constsource(State=0)

* DG4 model
.model Digital_Source_DG4 d_constsource(State=1)

* DG5 model
.model Digital_Source_DG5 d_constsource(State=1)

* DG8 model
.model Digital_Source_DG8 d_constsource(State=1)

* DG9 model
.model Digital_Source_DG9 d_constsource(State=1)

* U1 model
.model Digital_AND2_U1 d_and (rise_delay=1e-9 fall_delay=1e-9)

* U14 model
.model Digital_NAND4_U14 d_nand (rise_delay=1e-9 fall_delay=1e-9)

* U2 model
.model Digital_AND2_U2 d_and (rise_delay=1e-9 fall_delay=1e-9)

* U3 model
.model Digital_AND2_U3 d_and (rise_delay=1e-9 fall_delay=1e-9)

* U4 model
.model Digital_Inverter_U4 d_inverter (rise_delay=1e-9 fall_delay=1e-9)


* --- Subcircuits ---

* S1 subcircuit
.subckt SPDT_Switch_S1 port1 port2 port3 Params: Ron=1e-8 Roff=1e30 State=0
V2 state 0 DC {State}
R1 state 6 10
V1 6 0 DC 0
W0 port2 port1 V1 NC_contact
W1 port2 port3 V1 NO_contact
.MODEL NO_contact ISWITCH (ION=0.05 IOFF=0.025 RON={Ron} ROFF={Roff})
.MODEL NC_contact ISWITCH (ION=0.05 IOFF=0.025 RON={Roff} ROFF={Ron})
.ends

* U10 subcircuit
.subckt 7_SEGMENT_CC_U10 A1 A2 A3 A4 A5 A6 A7 K

dd1 A1 0vNode1 ledDiodeModel
Vsense1 0vNode1 K DC 0
* Interactive sense node
b1 lit1 0 v = { if (i(Vsense1) < 0, 0, if( i(Vsense1) > 0.02, 1, { i(Vsense1) / 0.02 })) }

dd2 A2 0vNode2 ledDiodeModel
Vsense2 0vNode2 K DC 0
* Interactive sense node
b2 lit2 0 v = { if (i(Vsense2) < 0, 0, if( i(Vsense2) > 0.02, 1, { i(Vsense2) / 0.02 })) }

dd3 A3 0vNode3 ledDiodeModel
Vsense3 0vNode3 K DC 0
* Interactive sense node
b3 lit3 0 v = { if (i(Vsense3) < 0, 0, if( i(Vsense3) > 0.02, 1, { i(Vsense3) / 0.02 })) }

dd4 A4 0vNode4 ledDiodeModel
Vsense4 0vNode4 K DC 0
* Interactive sense node
b4 lit4 0 v = { if (i(Vsense4) < 0, 0, if( i(Vsense4) > 0.02, 1, { i(Vsense4) / 0.02 })) }

dd5 A5 0vNode5 ledDiodeModel
Vsense5 0vNode5 K DC 0
* Interactive sense node
b5 lit5 0 v = { if (i(Vsense5) < 0, 0, if( i(Vsense5) > 0.02, 1, { i(Vsense5) / 0.02 })) }

dd6 A6 0vNode6 ledDiodeModel
Vsense6 0vNode6 K DC 0
* Interactive sense node
b6 lit6 0 v = { if (i(Vsense6) < 0, 0, if( i(Vsense6) > 0.02, 1, { i(Vsense6) / 0.02 })) }

dd7 A7 0vNode7 ledDiodeModel
Vsense7 0vNode7 K DC 0
* Interactive sense node
b7 lit7 0 v = { if (i(Vsense7) < 0, 0, if( i(Vsense7) > 0.02, 1, { i(Vsense7) / 0.02 })) }

.model ledDiodeModel D( IS=1e-14 N=1 RS=0 IBV=1e-10 BV=1e+30 CJO=0 M=0.5 VJ=1 )
.ends

* U13 subcircuit
**********************
*74LS48 DECODER/DRIVER BCD-7 SEGMENT WITH
*2k PULL-UPS OUTPUTS
***
.subckt 74LS48_U13 ina inb inc ind ltb rbib bib/rbob a d e f c b g PARAMS: Rise_delay=100n Fall_delay=100n
*FAMILY TTLin TTLin TTLin TTLin TTLin TTLin TTLin
*TTLout TTLout TTLout TTLout TTLout TTLout TTLout
*pinout N 7 1 2 6 13 10 9 15 11 12 14 3 5 4:VCC=16 GND=8
*pinout J 7 1 2 6 13 10 9 15 11 12 14 3 5 4:VCC=16 GND=8
*pinout D 7 1 2 6 13 10 9 15 11 12 14 3 5 4:VCC=16 GND=8

ainv1 rbib rbi inv

ananda1 [ina ltb] a1 nand
anandb1 [inb ltb] b1 nand
anandc1 [inc ltb] c1 nand
anandd1 [ind ind] d1 nand

ananda2 [a1 bib/rbob] a2 nand
anandb2 [b1 bib/rbob] b2 nand
anandc2 [c1 bib/rbob] c2 nand
anandd2 [d1 bib/rbob] d2 nand

anand6 [ltb rbi d1 c1 b1 a1] nandopenc nand

aopenc1 nandopenc bib/rbob open_c

aand1a [b2 d2] x1 and
aand2a [a1 c2] x2 and
aand3a [a2 b1 c1 d1] x3 and
aor1 [x1 x2 x3] ai or

aand1b [b2 d2] x4 and
aand2b [a2 b1 c2] x5 and
aand3b [a1 b2 c2] x6 and
aor2 [x4 x5 x6] bi or

aand1c [c2 d2] x7 and
aand2c [a1 b2 c1] x8 and
aor3 [x7 x8] ci or

aand1d [a2 b1 c1] x9 and
aand2d [a1 b1 c2] xa and
aand3d [a2 b2 c2] xb and
aor4 [x9 xa xb] di or

aand1e [b1 c2] xc and
aor5 [xc a2] ei or

aand1f [a2 b2] xd and
aand2f [b2 c1] xe and
aand3f [a2 c1 d1] xf and
aor6 [xd xe xf] fi or

aand1g [a2 b2 c2] xg and
aand2g [b1 c1 d1 ltb] xh and
aor7 [xg xh] gi or

ah h high

aand1 [ai h] a nand
aand2 [bi h] b nand
aand3 [ci h] c nand
aand4 [di h] d nand
aand5 [ei h] e nand
aand6 [fi h] f nand
aand7 [gi h] g nand

.model inv d_inverter
.model nand d_nand
.model or d_or(rise_delay={Rise_delay} fall_delay={Fall_delay})
.model and d_and
.model open_c d_open_c
.model high d_pullup(load=2k)

.ends

* U20 subcircuit
**********************
*74LS93 COUNTER BINARY 4-BIT, ASYNCHRONOUS
***
.subckt 74LS93_U20 clka clkb r02 r01 qd qc qb qa
*FAMILY TTLin TTLin TTLin TTLin TTLout
*pinout N 14 1 3 2 11 8 9 12 5:VCC=5 GND=10
*pinout J 11 14 1 3 2 11 8 9 12 5:VCC=5 GND=10
*pinout D 11 14 1 3 2 11 8 9 12 5:VCC=5 GND=10

aand [r01 r02] rst and
ainv1 clka nclka inv
ainv2 clkb nclkb inv

ah high high
al low low

ajkffaqa high high nclka low rst qa nqa jkffaqa
ajkffbqb high high nclkb low rst qb nqb jkffbqb
ajkffbqc high high nqb low rst qc nqc jkffbqc
ajkffbqd high high nqc low rst qd nqd jkffbqd


.model jkffaqa d_jkff
.model jkffbqb d_jkff
.model jkffbqc d_jkff
.model jkffbqd d_jkff
.model inv d_inverter (rise_delay=10p fall_delay=10p)
.model low d_pulldown
.model high d_pullup
.model and d_and


.ends

* U21 subcircuit
**********************
*74LS48 DECODER/DRIVER BCD-7 SEGMENT WITH
*2k PULL-UPS OUTPUTS
***
.subckt 74LS48_U21 ina inb inc ind ltb rbib bib/rbob a d e f c b g PARAMS: Rise_delay=100n Fall_delay=100n
*FAMILY TTLin TTLin TTLin TTLin TTLin TTLin TTLin
*TTLout TTLout TTLout TTLout TTLout TTLout TTLout
*pinout N 7 1 2 6 13 10 9 15 11 12 14 3 5 4:VCC=16 GND=8
*pinout J 7 1 2 6 13 10 9 15 11 12 14 3 5 4:VCC=16 GND=8
*pinout D 7 1 2 6 13 10 9 15 11 12 14 3 5 4:VCC=16 GND=8

ainv1 rbib rbi inv

ananda1 [ina ltb] a1 nand
anandb1 [inb ltb] b1 nand
anandc1 [inc ltb] c1 nand
anandd1 [ind ind] d1 nand

ananda2 [a1 bib/rbob] a2 nand
anandb2 [b1 bib/rbob] b2 nand
anandc2 [c1 bib/rbob] c2 nand
anandd2 [d1 bib/rbob] d2 nand

anand6 [ltb rbi d1 c1 b1 a1] nandopenc nand

aopenc1 nandopenc bib/rbob open_c

aand1a [b2 d2] x1 and
aand2a [a1 c2] x2 and
aand3a [a2 b1 c1 d1] x3 and
aor1 [x1 x2 x3] ai or

aand1b [b2 d2] x4 and
aand2b [a2 b1 c2] x5 and
aand3b [a1 b2 c2] x6 and
aor2 [x4 x5 x6] bi or

aand1c [c2 d2] x7 and
aand2c [a1 b2 c1] x8 and
aor3 [x7 x8] ci or

aand1d [a2 b1 c1] x9 and
aand2d [a1 b1 c2] xa and
aand3d [a2 b2 c2] xb and
aor4 [x9 xa xb] di or

aand1e [b1 c2] xc and
aor5 [xc a2] ei or

aand1f [a2 b2] xd and
aand2f [b2 c1] xe and
aand3f [a2 c1 d1] xf and
aor6 [xd xe xf] fi or

aand1g [a2 b2 c2] xg and
aand2g [b1 c1 d1 ltb] xh and
aor7 [xg xh] gi or

ah h high

aand1 [ai h] a nand
aand2 [bi h] b nand
aand3 [ci h] c nand
aand4 [di h] d nand
aand5 [ei h] e nand
aand6 [fi h] f nand
aand7 [gi h] g nand

.model inv d_inverter
.model nand d_nand
.model or d_or(rise_delay={Rise_delay} fall_delay={Fall_delay})
.model and d_and
.model open_c d_open_c
.model high d_pullup(load=2k)

.ends

* U5 subcircuit
.subckt Digital_DFlipFlop_U5 1 2 3 4 5 6 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=0 Clk_delay=1n Set_delay=1n Reset_delay=1n Ic=0 Rise_delay=1n Fall_delay=1n
*PIN MAPPING: D Q ~Q RESET CLK SET
* 1 5 6 4 2 3
*MODELS USED
aDG1 neg_SR Digital_SourceSR
aDG2 neg_clk Digital_SourceCLK
Axor1 [3 neg_SR] set xor
Axor2 [2 neg_clk] clk xor
Axor3 [4 neg_SR] reset xor
Ajkff 1 clk set reset 5 6 D_FF

.model Digital_SourceCLK d_constsource(State={Negative_Edge_Clock})
.model Digital_SourceSR d_constsource(State={Negative_SET_RESET})
.model xor d_xor
.MODEL D_FF d_dff (clk_delay={Clk_delay} set_delay={Set_delay} reset_delay={Reset_delay} ic={Ic} rise_delay={Rise_delay} fall_delay={Fall_delay})
.ENDS

* U6 subcircuit
.subckt Digital_DFlipFlop_U6 1 2 3 4 5 6 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=0 Clk_delay=1n Set_delay=1n Reset_delay=1n Ic=0 Rise_delay=1n Fall_delay=1n
*PIN MAPPING: D Q ~Q RESET CLK SET
* 1 5 6 4 2 3
*MODELS USED
aDG1 neg_SR Digital_SourceSR
aDG2 neg_clk Digital_SourceCLK
Axor1 [3 neg_SR] set xor
Axor2 [2 neg_clk] clk xor
Axor3 [4 neg_SR] reset xor
Ajkff 1 clk set reset 5 6 D_FF

.model Digital_SourceCLK d_constsource(State={Negative_Edge_Clock})
.model Digital_SourceSR d_constsource(State={Negative_SET_RESET})
.model xor d_xor
.MODEL D_FF d_dff (clk_delay={Clk_delay} set_delay={Set_delay} reset_delay={Reset_delay} ic={Ic} rise_delay={Rise_delay} fall_delay={Fall_delay})
.ENDS

* U7 subcircuit
.subckt Digital_DFlipFlop_U7 1 2 3 4 5 6 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=0 Clk_delay=1n Set_delay=1n Reset_delay=1n Ic=0 Rise_delay=1n Fall_delay=1n
*PIN MAPPING: D Q ~Q RESET CLK SET
* 1 5 6 4 2 3
*MODELS USED
aDG1 neg_SR Digital_SourceSR
aDG2 neg_clk Digital_SourceCLK
Axor1 [3 neg_SR] set xor
Axor2 [2 neg_clk] clk xor
Axor3 [4 neg_SR] reset xor
Ajkff 1 clk set reset 5 6 D_FF

.model Digital_SourceCLK d_constsource(State={Negative_Edge_Clock})
.model Digital_SourceSR d_constsource(State={Negative_SET_RESET})
.model xor d_xor
.MODEL D_FF d_dff (clk_delay={Clk_delay} set_delay={Set_delay} reset_delay={Reset_delay} ic={Ic} rise_delay={Rise_delay} fall_delay={Fall_delay})
.ENDS

* U8 subcircuit
.subckt Digital_DFlipFlop_U8 1 2 3 4 5 6 PARAMS: Negative_Edge_Clock=0 Negative_SET_RESET=0 Clk_delay=1n Set_delay=1n Reset_delay=1n Ic=0 Rise_delay=1n Fall_delay=1n
*PIN MAPPING: D Q ~Q RESET CLK SET
* 1 5 6 4 2 3
*MODELS USED
aDG1 neg_SR Digital_SourceSR
aDG2 neg_clk Digital_SourceCLK
Axor1 [3 neg_SR] set xor
Axor2 [2 neg_clk] clk xor
Axor3 [4 neg_SR] reset xor
Ajkff 1 clk set reset 5 6 D_FF

.model Digital_SourceCLK d_constsource(State={Negative_Edge_Clock})
.model Digital_SourceSR d_constsource(State={Negative_SET_RESET})
.model xor d_xor
.MODEL D_FF d_dff (clk_delay={Clk_delay} set_delay={Set_delay} reset_delay={Reset_delay} ic={Ic} rise_delay={Rise_delay} fall_delay={Fall_delay})
.ENDS

* U9 subcircuit
.subckt 7_SEGMENT_CC_U9 A1 A2 A3 A4 A5 A6 A7 K

dd1 A1 0vNode1 ledDiodeModel
Vsense1 0vNode1 K DC 0
* Interactive sense node
b1 lit1 0 v = { if (i(Vsense1) < 0, 0, if( i(Vsense1) > 0.02, 1, { i(Vsense1) / 0.02 })) }

dd2 A2 0vNode2 ledDiodeModel
Vsense2 0vNode2 K DC 0
* Interactive sense node
b2 lit2 0 v = { if (i(Vsense2) < 0, 0, if( i(Vsense2) > 0.02, 1, { i(Vsense2) / 0.02 })) }

dd3 A3 0vNode3 ledDiodeModel
Vsense3 0vNode3 K DC 0
* Interactive sense node
b3 lit3 0 v = { if (i(Vsense3) < 0, 0, if( i(Vsense3) > 0.02, 1, { i(Vsense3) / 0.02 })) }

dd4 A4 0vNode4 ledDiodeModel
Vsense4 0vNode4 K DC 0
* Interactive sense node
b4 lit4 0 v = { if (i(Vsense4) < 0, 0, if( i(Vsense4) > 0.02, 1, { i(Vsense4) / 0.02 })) }

dd5 A5 0vNode5 ledDiodeModel
Vsense5 0vNode5 K DC 0
* Interactive sense node
b5 lit5 0 v = { if (i(Vsense5) < 0, 0, if( i(Vsense5) > 0.02, 1, { i(Vsense5) / 0.02 })) }

dd6 A6 0vNode6 ledDiodeModel
Vsense6 0vNode6 K DC 0
* Interactive sense node
b6 lit6 0 v = { if (i(Vsense6) < 0, 0, if( i(Vsense6) > 0.02, 1, { i(Vsense6) / 0.02 })) }

dd7 A7 0vNode7 ledDiodeModel
Vsense7 0vNode7 K DC 0
* Interactive sense node
b7 lit7 0 v = { if (i(Vsense7) < 0, 0, if( i(Vsense7) > 0.02, 1, { i(Vsense7) / 0.02 })) }

.model ledDiodeModel D( IS=1e-14 N=1 RS=0 IBV=1e-10 BV=1e+30 CJO=0 M=0.5 VJ=1 )
.ends


* --- Pin bridge models

.SUBCKT REAL_CUSTOM_ADC 1 2 PARAMS: lowV=0 maxLowV=0.8 unknownV=1.0 minHighV=2.0 highV=5.0 riseT=0 fallT=0
* Ideal Receiver Model 1 = input, 2 = A/D out
aADCin1 [2] [1] ADC
.MODEL ADC adc_bridge (in_low = {maxLowV} in_high = {minHighV})
.ENDS

.SUBCKT REAL_CUSTOM_DAC 1 2 PARAMS: lowV=0 maxLowV=0.8 unknownV=1.0 minHighV=2.0 highV=5.0 riseT=0 fallT=0
* Ideal Driver Model 1 = A/D out, 2 = input
aDACin1 [1] [2] aDAC
.MODEL aDAC dac_bridge (out_low = {lowV} out_high = {highV} out_undef = {unknownV} t_rise = {max(riseT,1e-9)} t_fall = {max(fallT,1e-9)})
.ENDS
Errors and Warnings

Any error, warning or information messages appear below.

Item
Document
No items selected.
3.2.4 Asynchronous Counters Now Serving Display
Schematic

The simulation to run. See Simulation types for more information.

Name

Title of graph. Edit as desired.

End time

s

Time at which the simulation stops. Does not include pauses. Simulation does not occur in real time.

Start simulation

Mode

Threshold voltage levels.

Threshold voltage values used in the logic evaluation. See Digital Simulation for more information.

Output low

V

Output low voltage.

Maximum output voltage level to produce a low signal.

Input low threshold

V

Input low threshold voltage.

Maximum input voltage level for the signal to be considered low.

Input high threshold

V

Input high threshold voltage.

Minimum input voltage level for the signal to be considered high.

Output high

V

Output high voltage.

Minimum output voltage level to produce a high signal.

Width

Sheet width in grid squares.

Height

Sheet height in grid squares.

Grid

Toggles grid display.

Net Labels

Toggles all net labels.

Component Labels

Toggles all component labels.