L
Lostgallifreyan
Guest
This is the result of my work mentioned in the previous thread, subject:
'Subcircuit levels', and LTspice...
The first post in that thread has the unedited LOG112 model from Texas
Instruments. (Save it as LOG112.sub if you want it for LTspice, where it
will work as it is).
I decided to make a full diagram (copied from the datasheet and slightly
modified to save space) for the symbol to help me learn how to use the
device. That might help others as much as me, so here's the whole symbol
file. (Save as LOG112.asy for LTspice).
Version 4
SymbolType CELL
LINE Normal 138 28 128 24
LINE Normal 118 36 138 28
LINE Normal 138 44 118 36
LINE Normal 118 52 138 44
LINE Normal 138 60 118 52
LINE Normal 118 68 138 60
LINE Normal 128 72 118 68
LINE Normal 64 -48 64 -96
LINE Normal -76 -56 -88 -80
LINE Normal -88 -56 -40 -56
LINE Normal -52 -56 -40 -80
LINE Normal -64 -56 -64 128
LINE Normal -40 -80 -16 -80
LINE Normal -79 -71 -88 -80
LINE Normal -86 -67 -88 -80
LINE Normal 36 16 36 32
LINE Normal 28 24 44 24
LINE Normal 28 -24 44 -24
LINE Normal 20 -32 -16 -32
LINE Normal 20 32 0 32
LINE Normal 108 0 128 0
LINE Normal 108 0 20 -51
LINE Normal 20 51 108 0
LINE Normal 20 -51 20 51
LINE Normal 84 138 88 128
LINE Normal 76 118 84 138
LINE Normal 68 138 76 118
LINE Normal 60 118 68 138
LINE Normal 52 138 60 118
LINE Normal 44 118 52 138
LINE Normal 40 128 44 118
LINE Normal 128 128 128 72
LINE Normal 88 128 128 128
LINE Normal 228 16 228 32
LINE Normal 220 24 236 24
LINE Normal 220 -24 236 -24
LINE Normal 212 -32 192 -32
LINE Normal 212 32 160 32
LINE Normal 300 0 320 0
LINE Normal 300 0 212 -51
LINE Normal 212 51 300 0
LINE Normal 212 -51 212 51
LINE Normal -148 -56 -136 -80
LINE Normal -136 -56 -184 -56
LINE Normal -172 -56 -184 -80
LINE Normal -160 -56 -160 96
LINE Normal -184 -80 -288 -80
LINE Normal -145 -71 -136 -80
LINE Normal -138 -67 -136 -80
LINE Normal -88 -80 -136 -80
LINE Normal -252 16 -252 32
LINE Normal -260 24 -244 24
LINE Normal -260 -24 -244 -24
LINE Normal -268 -32 -320 -32
LINE Normal -268 32 -288 32
LINE Normal -180 0 -112 0
LINE Normal -180 0 -268 -51
LINE Normal -268 51 -180 0
LINE Normal -268 -51 -268 51
LINE Normal -112 -80 -112 0
LINE Normal -288 -80 -288 -32
LINE Normal -16 -80 -16 64
LINE Normal -288 32 -288 80
LINE Normal 0 32 0 80
LINE Normal -288 80 0 80
LINE Normal -320 64 -16 64
LINE Normal -160 96 128 96
LINE Normal -64 128 40 128
LINE Normal -96 80 -96 160
LINE Normal 128 -96 128 -80
LINE Normal 192 -96 192 -32
LINE Normal 0 128 0 160
LINE Normal -224 128 -192 128
LINE Normal -320 128 -272 128
LINE Normal -192 128 -192 160
LINE Normal 128 24 128 -48
LINE Normal 128 -80 160 -80
LINE Normal 160 -80 160 32
LINE Normal 64 -48 128 -48
RECTANGLE Normal 320 160 -320 -96
RECTANGLE Normal -224 144 -272 112
CIRCLE Normal -286 -30 -290 -34
CIRCLE Normal -110 -78 -114 -82
CIRCLE Normal -94 82 -98 78
CIRCLE Normal -14 -30 -18 -34
CIRCLE Normal 2 130 -2 126
CIRCLE Normal 130 98 126 94
CIRCLE Normal 130 2 126 -2
TEXT 8 152 Left 0 GND
TEXT 200 152 Left 0 V+
TEXT 264 152 Left 0 V-
TEXT -88 152 Left 0 Vcm
TEXT -184 152 Left 0 Vref GND
TEXT -312 120 Left 0 Vref
TEXT -312 56 Left 0 I2
TEXT -312 -40 Left 0 I1
TEXT 72 -88 Left 0 Vlog
TEXT 136 -88 Left 0 +In
TEXT 200 -88 Left 0 -In
TEXT 295 -8 Left 0 Out
TEXT 187 136 Left 0 Power Inputs
WINDOW 0 -208 -112 Center 0
WINDOW 3 -96 32 Center 0
SYMATTR Value LOG112
SYMATTR Prefix X
SYMATTR Description LOG112 Logarithmic Amplifier.
SYMATTR ModelFile LOG112.sub
PIN -320 -32 RIGHT 8
PINATTR SpiceOrder 1
PIN 128 -96 BOTTOM 8
PINATTR SpiceOrder 2
PIN 192 -96 BOTTOM 8
PINATTR SpiceOrder 3
PIN 64 -96 BOTTOM 8
PINATTR SpiceOrder 4
PIN 192 160 BOTTOM 8
PINATTR SpiceOrder 5
PIN 320 0 LEFT 8
PINATTR SpiceOrder 6
PIN -320 128 RIGHT 8
PINATTR SpiceOrder 7
PIN 256 160 BOTTOM 8
PINATTR SpiceOrder 8
PIN 0 160 TOP 8
PINATTR SpiceOrder 9
PIN -192 160 TOP 8
PINATTR SpiceOrder 10
PIN -96 160 TOP 8
PINATTR SpiceOrder 11
PIN -320 64 RIGHT 8
PINATTR SpiceOrder 12
'Subcircuit levels', and LTspice...
The first post in that thread has the unedited LOG112 model from Texas
Instruments. (Save it as LOG112.sub if you want it for LTspice, where it
will work as it is).
I decided to make a full diagram (copied from the datasheet and slightly
modified to save space) for the symbol to help me learn how to use the
device. That might help others as much as me, so here's the whole symbol
file. (Save as LOG112.asy for LTspice).
Version 4
SymbolType CELL
LINE Normal 138 28 128 24
LINE Normal 118 36 138 28
LINE Normal 138 44 118 36
LINE Normal 118 52 138 44
LINE Normal 138 60 118 52
LINE Normal 118 68 138 60
LINE Normal 128 72 118 68
LINE Normal 64 -48 64 -96
LINE Normal -76 -56 -88 -80
LINE Normal -88 -56 -40 -56
LINE Normal -52 -56 -40 -80
LINE Normal -64 -56 -64 128
LINE Normal -40 -80 -16 -80
LINE Normal -79 -71 -88 -80
LINE Normal -86 -67 -88 -80
LINE Normal 36 16 36 32
LINE Normal 28 24 44 24
LINE Normal 28 -24 44 -24
LINE Normal 20 -32 -16 -32
LINE Normal 20 32 0 32
LINE Normal 108 0 128 0
LINE Normal 108 0 20 -51
LINE Normal 20 51 108 0
LINE Normal 20 -51 20 51
LINE Normal 84 138 88 128
LINE Normal 76 118 84 138
LINE Normal 68 138 76 118
LINE Normal 60 118 68 138
LINE Normal 52 138 60 118
LINE Normal 44 118 52 138
LINE Normal 40 128 44 118
LINE Normal 128 128 128 72
LINE Normal 88 128 128 128
LINE Normal 228 16 228 32
LINE Normal 220 24 236 24
LINE Normal 220 -24 236 -24
LINE Normal 212 -32 192 -32
LINE Normal 212 32 160 32
LINE Normal 300 0 320 0
LINE Normal 300 0 212 -51
LINE Normal 212 51 300 0
LINE Normal 212 -51 212 51
LINE Normal -148 -56 -136 -80
LINE Normal -136 -56 -184 -56
LINE Normal -172 -56 -184 -80
LINE Normal -160 -56 -160 96
LINE Normal -184 -80 -288 -80
LINE Normal -145 -71 -136 -80
LINE Normal -138 -67 -136 -80
LINE Normal -88 -80 -136 -80
LINE Normal -252 16 -252 32
LINE Normal -260 24 -244 24
LINE Normal -260 -24 -244 -24
LINE Normal -268 -32 -320 -32
LINE Normal -268 32 -288 32
LINE Normal -180 0 -112 0
LINE Normal -180 0 -268 -51
LINE Normal -268 51 -180 0
LINE Normal -268 -51 -268 51
LINE Normal -112 -80 -112 0
LINE Normal -288 -80 -288 -32
LINE Normal -16 -80 -16 64
LINE Normal -288 32 -288 80
LINE Normal 0 32 0 80
LINE Normal -288 80 0 80
LINE Normal -320 64 -16 64
LINE Normal -160 96 128 96
LINE Normal -64 128 40 128
LINE Normal -96 80 -96 160
LINE Normal 128 -96 128 -80
LINE Normal 192 -96 192 -32
LINE Normal 0 128 0 160
LINE Normal -224 128 -192 128
LINE Normal -320 128 -272 128
LINE Normal -192 128 -192 160
LINE Normal 128 24 128 -48
LINE Normal 128 -80 160 -80
LINE Normal 160 -80 160 32
LINE Normal 64 -48 128 -48
RECTANGLE Normal 320 160 -320 -96
RECTANGLE Normal -224 144 -272 112
CIRCLE Normal -286 -30 -290 -34
CIRCLE Normal -110 -78 -114 -82
CIRCLE Normal -94 82 -98 78
CIRCLE Normal -14 -30 -18 -34
CIRCLE Normal 2 130 -2 126
CIRCLE Normal 130 98 126 94
CIRCLE Normal 130 2 126 -2
TEXT 8 152 Left 0 GND
TEXT 200 152 Left 0 V+
TEXT 264 152 Left 0 V-
TEXT -88 152 Left 0 Vcm
TEXT -184 152 Left 0 Vref GND
TEXT -312 120 Left 0 Vref
TEXT -312 56 Left 0 I2
TEXT -312 -40 Left 0 I1
TEXT 72 -88 Left 0 Vlog
TEXT 136 -88 Left 0 +In
TEXT 200 -88 Left 0 -In
TEXT 295 -8 Left 0 Out
TEXT 187 136 Left 0 Power Inputs
WINDOW 0 -208 -112 Center 0
WINDOW 3 -96 32 Center 0
SYMATTR Value LOG112
SYMATTR Prefix X
SYMATTR Description LOG112 Logarithmic Amplifier.
SYMATTR ModelFile LOG112.sub
PIN -320 -32 RIGHT 8
PINATTR SpiceOrder 1
PIN 128 -96 BOTTOM 8
PINATTR SpiceOrder 2
PIN 192 -96 BOTTOM 8
PINATTR SpiceOrder 3
PIN 64 -96 BOTTOM 8
PINATTR SpiceOrder 4
PIN 192 160 BOTTOM 8
PINATTR SpiceOrder 5
PIN 320 0 LEFT 8
PINATTR SpiceOrder 6
PIN -320 128 RIGHT 8
PINATTR SpiceOrder 7
PIN 256 160 BOTTOM 8
PINATTR SpiceOrder 8
PIN 0 160 TOP 8
PINATTR SpiceOrder 9
PIN -192 160 TOP 8
PINATTR SpiceOrder 10
PIN -96 160 TOP 8
PINATTR SpiceOrder 11
PIN -320 64 RIGHT 8
PINATTR SpiceOrder 12