LTSpice, easy uF / uH with UTF16 saved schematic
3
LTspice default will save schematic (*.asc) as ANSI ASCII file. uH or uF, the "u" is extended ASCII "0xB5", "mu" (?) to mean micro, see the glitching and comments, /g/LTspice/topic/opa_square_wave_generator/112608874 https://byte-tools.com/en/ascii/code/0xb5/ LTspice XVII save such schematic, "0xB5" will be saved as ANSI text file, open the file by editor, and/or copy/paste to HTML or translation, the UTF8 capable application will see double bytes as treated as UTF8/UTF16 etc. The solution, to force LTspice to save schematic to be UTF8 or UFT16, just add some local "char" (double bytes) to the schematic, and then LTSpice will be saved files as UTF16 by default. this is example of output of the solution, SYMATTR InstName C2 SYMATTR Value 1?f TEXT 112 160 Left 2 ;1uF = 1Ϥ testing files, /g/LTspice/files/u_ANSI_test.asc /g/LTspice/files/u_UTF16_test.asc
|
90nm CMOS technology
5
Hello guys, Does anyone has 90nm CMOS technology text file or link something like that. Absolutely for LTspice.
|
Help needed on simple examples to build an digital filter in LTspice with Vlad's filter models from the filters manual
Hi folks, I am new in the forum and I think I have done already some real big magic in LTspice but now I struggle how I can add a chip internal digital filters after an ADC to my huge analog model of an automotive battery pack. I am not interested in the involved 2MHz delta-sigma ADC function at all, there is an analog 100kHz AAF in front and the digital output is downsampled to 128us = ~8kHz, so this part is just working fine and flat in my frequency range, I just want to rebuild the two frequency lowpass filterings which are done digital inside an IC afterwards the ADC. We are running them in matlab but I like to keep the huge analog model before that filters in LTSPICE. I found Vlad's filter stuff but I am missing a simple example how to use it with my transfer function as I am beginner for digital filters and the complex examples on the filters manual seem to complex for my simple needs. My needs are to rebuild two chip internal digital filters 1. digital PT1 Filter with 128us samples for LOWPASS 20Hz K=2^(-N) ; N=6 -> K=1/64 Transferfunktion digital k / (1 - (1-k)*Z^(-1) ) AND 2. for a SINC FILTER with OSR=16 and 128us per sample Transferfunktion digital 1/16 * (1-z^(-16)) / (1 - Z^(-1)) Can someone experienced add a model from the filter subs provided to my example simulation so that I can see how this is done and how it works and plot the output over frequency? I started with an example I found via google from Helmut how to create the 128us delayed versions of my input sample (simple AC sinus)....it shows function on his OUT example but it does not execute my wanted transfer function on OUT2. So either someone can fix my trial with the delayed voltages or show me how to use an already designed existing filter just with my simple coefficients? I will uploaded .ASC and .PLT file zipped: "SINC Filter basic example needed.zip" to temp. (The provided filters.sub is not included, everyone should have it, same as for all the nice math.sub stuff I already use and love)
|
TI Battery Charger(BQ24610) and EFuse(TPS26636) ICs
5
Hey there everyone, I have been trying to get my hands on the spice models for a couple of ICs from TI to no avail. They are the BQ24610 battery charging and power management IC and the TPS26636 E-fuse IC. I want to design a battery charger for 4S lithium 18650 batteries, as well as a resettable over current protection module. These are 2 separate projects. Any advice on how to obtain these models, or at least have some way of modelling them on LTSPICE?
|
CD4000 Library Additions
20
We have recently been discussing the CD4000 libraries and adding additional devices to it. I'm sharing a listing of devices I have added to my own "extended" CD4000 library over the last few years. All devices have been designed using, and require use of, the CD4000 library(s). If anyone need one let me know, or, perhaps Andy or Tony can advise. CD40107B CD40110B CD40174B CD40175B CD40192B CD40193B CD40194B CD4026B CD4028B CD4029B CD4033B CD4043B CD4044B CD4051B CD4052B CD4053B CD4060B CD4094B CD4099B CD4502B CD4508B CD4511B CD4514B CD4515B CD4518B CD4520B CD4521B CD4532B
|
OPA square wave generator, single supply OPA is not working
8
LT1006 was a single supply OPA. Trying and gathered no output when single supply was used. welcome any hints or experience would be share, thanks. the code used, [Mod note: schematic code deleted]
|
LTspice24 windows version run on macOS
7
#Mac
Has anyone successfully installed LTspice 24 windows version on macOS with Wine or another tool? Preferably something open source or free to use vs paying for crossover. If so can you help share what you did?
|
Using Op Amp as comparator
12
When I use the Universal Op Amp or Universal Op Amp 1 as a comparator, the output chart changes from V to MV. Here are the parameters: Positive supply 12 V Negative supply -12 V or GND Reference voltage 3 VDC Input Voltage 6 V 1000 Hz sine For the life of me, I can't get the comparator to work. When I try the MAX9095 comparator, the display is not in MV, but the comparator output is a straight DC line. Why does LTspice change the chart to MV using the Universal Op Amps? With the MAX9095, why doesn't the output change at the transitions when the sine wave crosses the fixed voltage? THANKS.
|
Vin vs. Load - YX logarithmic plot
10
Hello, I would like to create a simulation of overcurrent protection circuit ¡ª a graph where the Y-axis shows the current drop (in Amperes), and the X-axis shows a linear increase of voltage in the range of 15¨C50 V. I expect a logarithmic curve of the current decreasing from 1.2 A down to 0 A as the voltage increases. I used the .step param function (.step param Vin 12 50 1), but that¡¯s not what I¡¯m looking for. How should I define such a graph? Thanks Jurek
|
Possible g;itch in stepping parameters
20
Of course, the error is more likely with me, but: I¡¯m experimenting with a simple solar cell/array simulator I can reuse with larger models. It¡¯s working and stable, at a wide range of open circuit voltages and short circuit currnts, and with different Diode models. (A current source across a string of ¡®N¡¯ diodes of known Vfwd) But when I inserted a .step of the Voc parameter, while it seems to simulate correctly, I got a weird .measure result. .param Voc 75 .step param Voc list 32 45 75 .param Vc 0.8921 .param Vc2 0.7451 .param Isc 1.2 .param nCells {Voc/Vc} .param nCells2 {Voc/Vc2} .meas nC PARAM {nCells} ; here to annotate in the log file .meas nC2 PARAM {nCells2} ; here to annotate in the log file From the log file: .step voc=32 .step voc=45 .step voc=75 Measurement: nc step 84.0712924560027 1 84.0713 2 84.0713 3 84.0713 Measurement: nc2 step 100.657629848343 1 100.658 2 100.658 3 100.658 How can nc or nc2 remain the same at all three different values of Voc? The voltages and currents correvtly follow the stepped Voc, but just those two .measures are wrong/ Dave
|
.savestate directive no longer works
3
The .savestate directive was introduced in version 24.1.0. I have existing files that worked with this directive. Now, when I try to run any transient simulation I get this error "argument not found" However .loadstate still works if there was a file previously created with .savestate directive. I am running LTspice V.24.1.7. Example: .savestate file2 time= 10m this directive has stopped working. .loadstate file2 this directive still works if file2 exists.
|
FFT of expression of voltages ?
9
#FFT
Hi all I use currently the FFT of single voltage or current and I would like to do the same with expressions like : V(n001)-V(n007) or other valid numerical expressions for instance in a current instance. I looked at the help and can't find how to ? Thanks four your help. Bernard PS : I am using the last version : 24.1.7
|
Modeling Constant Power Load with AC Source in LTspice
13
Hi all, I'm trying to model a constant power load fed by a single-phase AC source in LTspice. I seem to run into convergence failure when I run transient analysis What I¡¯m doing: I¡¯m using a behavioral current source with this formula: I = P/V(vout) Where P is set dynamically using an if() function: P = if(V(vout)<5,5,500) My goal: Accurately simulate a constant power source behavior under AC voltage But without simulation instability Questions: Has anyone successfully built a robust CPL model under AC excitation in LTspice? Would a smoother soft-transition function (instead of if()) work better? Are there other tricks to avoid convergence failures near zero crossing?
|
Making a PWM a continuous voltage source
4
Is it possible to make a PWM signal a continuous voltage source ? I have these PWL points in a file but simulating this I have transient response and decay behaviour. I would like to do a FFT on the filter output signal and the presence of these spoil the FFT picture. Using a sine as a voltage source it behaves like an infinite signal while the PWL from file is always finite, seems so. I tried the statement: PWL REPEAT FOREVER ( | one_period.txt) ENDREPEAT from the undocumentedcommands section of the wiki to no avail. The "|" (pipe symbol) gives an error. -- Christoph
|
LTspice 24.1.7 program exit
15
The following circuit configuration was unintentional, but caused an LTspice program exit upon simulation run. * Generated by LTspice 24.1.7 for Windows. I1 0 0 1m D1 0 0 D V1 ADJ 0 0 .model D D .lib (path removed)\standard.dio .dc I1 2u 2m 100n .backanno .end
|
Meaning of gshunt
Hi, This topic can be closed. I translated the description incorrectly (conductance vs. resistance)... Thanks. Marco
|
Meaning of gshunt
2
Hi, First of all: Many thanks to all forum members. The group is really very helpful and detailed. I have read several times that gshunt, for example, can be used for convergence problems. According to the description, this is a resistance of a node to ground. Why is it chosen so small? Logically, I would have estimated it to be very large in order to minimise the influence of the ground potential. Thanks in advance, Marco
|
Diode TVS like zener in LTspice??
11
Good morning.... I'd like to know why LTspice simulates a TVS diode as a zener, even though its behavior isn't exactly the same. I'd also like to know where I can find an LTspice library for some TVS diodes, for example, that are 15 volts and others that are around 140 volts, and that are bidirectional. Thanks...for everything.
|
Sine modulated PWM voltage source (PWL file=xxx)
22
I'm again at simulating a PWM. The pulses are generated from a file with the statement: PWL file=pwm_pulses.txt It's a while back I generated that file or in other words, I generated a new dataset for that file and I'm suddenly gettings somthing like "time value pairs for V1 out of chronological order". To narrow down the cause, I'm in need again for the file format of such a pulse input file. Where again can I find the documentation for that? I found the PWL section in the wiki but I blinded what the file format is concerned. Thank you. -- Christoph
|
Locked
Test - please ignore
2
The one from my university account bounced, saying I'm not subscribed with that (physics) address. This one goes through? -- Christoph
|