Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: CIC unstable output
Hello Andy And thank you for the reply. If you're worried about not being in your area of expertise, what can I say? I''' be brave and try to address your notes in the order you posted them. > Why is the Gain of the first VCCS (G1) so very low? The upsampler, as it is now, uses a SW controlled by V(0.3), but I also tried removing SW (replaced by the nearby R17) and using a B-source with the expression V(0.3)*V(108). You probably know that they tend to get slower as the processed values are higher so, given that with a unity gain at the input I could have gotten some hundred volts at the resampler (with the current input) and could have gotten even higher depending on the input levels, I decided to use the (M*R)**-N gain at the input knowing that it would, eventually, have had to be used somewhere along the way. The schematic you see is what is left after testing. After changing the upsampler I was left with the small gain at the input which made no difference to the output so I just left it there. Still, you have a point there with the V <-> nV (MV <-> V in the case of unity gain input), so that may be one of the causes, but I suspect not because I also tried using integrators with 1/M/R gain, each stage, but didn't get any improvement. I haven't fiddled with tolerences, though, I will later today. > Current source I1 looks odd Since .AC through a S&H is not possible and since I try not to use voltage sources otherwise than grounded (convergence issues, as by the book), I used Rout=1 for the S&H (unlike its cousins, it defaults to 1k) and used I1 with only "AC 1" for .AC analysis. However, .AC works just fine (it needs a minor change to the current schematic to work). > V4 and V5 have "zero" fall times Yes, I know about the default times and that's the reason they are there as such: the clock sources are only needed for their rise times; fall times and pulse width have no influence (other than messing with the time-step). So, forcing only tr and period makes the source give the needed rise time while relaxing tf and ton, thus achieving the same results only a bit faster. In more complicated schematics this can be quite the time saver. > The time-delay elements in the lower string are curious They're intended. In order to turn it into an integrator and make it as the simplest approach, I used the tline as inverting output feeding the - input. > Have you considered using B-elements as the delay lines Yes, various combinations, with or without custom functions (like comb(x) {v(x)-delay(v(x),tcomb)}) and they seemed to behave worse. Maybe it's because of the nV <> V difference? I'll have to try this one today, too. > You may need to specify a Maximum Timestep. I even had patience for usec timesteps :-) , no change, though it's true I, too, would've expected a more "detailed" clock output with no timestep imposed. > How did you get the "COUNTER" behavioral element to use a gate-type symbol? You simply rename INV to COUNTER. No, it doesn't matter :-) > The error log has several "singular matrix" flags I don't know why, node q is the output of the first integrator, node o is the output of the last one (the output of the filter). If it complains about them, why not complain about the other 6? Is it only because they're named? Apparently not since deleting q (for example) will make LTspice complain about N025 (as I have it) and o. The simulation runs, though, as you can see... No idea what other meaning it has. At the end, it seems there are two things to try: the nV <> V difference and the reltol, abstol & co. I'll test these later and see what comes out of it. Thank you for the answers. Vlad |
Re: Membership renewal problem ....
John Woodgate
In message
<CALBs-TjCzp09SySczUQwfsmEPJ+Cz3H1nGNxPoho_Y4tT=7L4g@...>, dated Tue, 17 Dec 2013, Andy <Andrew.Ingraham@...> writes: Yahoo has always retired accounts that go unused for just a few months.But do they cancel Yahoo identities? I don't think any other form of 'Yahoo account' is required. -- OOO - Own Opinions Only. With best wishes. See www.jmwa.demon.co.uk Nondum ex silvis sumus John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: FFT Resolution
ronw6wo wrote, "If someone can send me the set-up details to show what is possible for a simple square-wave it would be enormously helpful". I uploaded two examples to the "Temp" folder; one with a 1 kHz square wave and one with a 10 MHz square wave. I played around a bit with the Maximum Timestep but for these square waves it seems to have very little or no effect, so in the end I just left it alone. Andy |
Re: FFT Resolution
Yes? I can appreciate there are various? sources of inaccuracy? Those? I have seen are not even close to a narrow band response.for example 1.5 MHz at 14MHz, similar bandwidth % at 1kHz If someone can send me the set-up details to show what is possible for a simple square-wave it would be enormously helpful? |
Re: Membership renewal problem ....
Jack wrote, "Obvious scam" I wouldn't say obvious. Yahoo has always retired accounts that go unused for just a few months. ?(At most 6.) ?I know this from personal experience. However, you do need to be careful anyway, because the information Peter was given, and required to supply, might have been a scam. Andy |
Re: Membership renewal problem ....
Obvious scam
Sent from my BlackBerry? by Boost Mobile From: Andy <Andrew.Ingraham@...>
Sender: LTspice@...
Date: Tue, 17 Dec 2013 17:14:44 -0500 To: <LTspice@...> ReplyTo: LTspice@...
Subject: Re: [LTspice] Membership renewal problem .... As far as I know, there are two ways to join a YahooGroup:
- Via the web, pressing the "Join Group" button, or - Via e-mail to the 'subscribe' address. The first method used to require a Yahoo account. ?These days they seem to allow Google or Facebook accounts too, but I don't know how that works. ?The first time I joined a YahooGroup, the sign-up effectively gave me a Yahoo account, even though I didn't know it at the time.
The second method (e-mail) does not require a Yahoo account. ?However, unless I'm mistaken or unless it has changed, you don't get access to the group's website via this method, until you later associate a Yahoo (or Google or Facebook?) account to your sign-up. ?Somehow or another, Yahoo needs to know that it's you trying to get to the website and the Files area, since they are not open to the public, and normally it does that by having you logged on to your Yahoo (/Google/Facebook) account at the time.
It's possible Yahoo uses your cellphone number to send you a text message with a verification code. ?Gmail did this when it was very new. ?But it's more likely they want it to make it easier for you to fix if someone hacks your account. ?Gmail/Google does that too, but you can opt out from the cellphone number. ?Check if Yahoo lets you too (it might be a hyperlink in small text).
Contacting Yahoo for help is pretty much impossible these days. ?It used to be possible. ?Now, I can't find any method.
Regards, Andy |
Re: Membership renewal problem ....
As far as I know, there are two ways to join a YahooGroup:
- Via the web, pressing the "Join Group" button, or - Via e-mail to the 'subscribe' address. The first method used to require a Yahoo account. ?These days they seem to allow Google or Facebook accounts too, but I don't know how that works. ?The first time I joined a YahooGroup, the sign-up effectively gave me a Yahoo account, even though I didn't know it at the time.
The second method (e-mail) does not require a Yahoo account. ?However, unless I'm mistaken or unless it has changed, you don't get access to the group's website via this method, until you later associate a Yahoo (or Google or Facebook?) account to your sign-up. ?Somehow or another, Yahoo needs to know that it's you trying to get to the website and the Files area, since they are not open to the public, and normally it does that by having you logged on to your Yahoo (/Google/Facebook) account at the time.
It's possible Yahoo uses your cellphone number to send you a text message with a verification code. ?Gmail did this when it was very new. ?But it's more likely they want it to make it easier for you to fix if someone hacks your account. ?Gmail/Google does that too, but you can opt out from the cellphone number. ?Check if Yahoo lets you too (it might be a hyperlink in small text).
Contacting Yahoo for help is pretty much impossible these days. ?It used to be possible. ?Now, I can't find any method.
Regards, Andy |
Re: CIC unstable output
CIC interpolators are WAY out of my realm of expertise. ?But I am puzzled by a few things. Why is the Gain of the first VCCS (G1) so very low? ?You have volts going in, and nanoamps & nanovolts coming out. ?From there forward the transconductance gains are all 1 with 1 ohm loads, so the rest of the chain is down in the nanovolts range ... but with volts of signal elsewhere in the same circuit. ?Mixing nanovolts and volts in the same simulation, and expecting proportional accuracies (down in the femtovolt range!), does not always work well in analog circuit simulation. ?Maybe that's part of the problem. ?You might need to tighten up the tolerances (abstol, reltol, vntol or volttol, etc.). ?Or scale the amplitudes better.
Current source I1 looks odd. ?Is it there for a reason? ?Does the S/H not have a voltage output?
V4 and V5 have "zero" fall times. ?As you should know, you can't get zero rise or fall times because they are impossible. ?LTspice substitutes much slower values when you specify "zero" (because "zero" is shorthand for "use a default value here"). ?If you want very fast fall time, use a small, non-zero value.
The time-delay elements in the lower string are curious, but I hope you really meant for them to be used that way, as inverting delay elements (taking advantage of the way SPICE implements lossless transmission lines). ?Do they present the right kind of load to the current sources driving them? ?(I haven't used them this way so I don't know.)
Have you considered using B-elements as the delay lines, instead of T-elements? ?I have a suspicion that the results might differ at the microscopic level.
Looking at node 0.4, it appears LTspice isn't using fine enough internal timesteps. ?You may need to specify a Maximum Timestep. How did you get the "COUNTER" behavioral element to use a gate-type symbol? ?I suppose it doesn't matter ... does it?
The error log has several "singular matrix" flags, pointing to nodes 'q' and 'o'. ?Your guess is as good as mine what it means, or whether it is important.
Regards,
Andy |
Re: Membership renewal problem ....
¿ªÔÆÌåÓýOn 17/12/2013 21:12, Peter Kapas wrote:
I thought there was a box you could tick to say you didn't have a cell
Yahoo are doing this to reduce problems with accounts being hacked. They only use it to text you a verification number when you log in on a new device. I was more worried about typing mine when Gmail asked me for it when I was in China. Typing my cell phone into Google on a Chinese computer was worrying... not sure, try the "group Managers Forum":- or the Yahoo help., there is a contact customer care on there:- Dave |
Re: Membership renewal problem ....
John Woodgate
In message <1387314752.48761.YahooMailNeo@...>, dated Tue, 17 Dec 2013, Peter Kapas <pkapas@...> writes:
In last days I faced to a problem to renew my LTspice group's membership. Simply, I amYou are still shown as a member of this list. because Yahoo canceled my account,You mean your Yahoo identity? You don't need any other sort of Yahoo account to use the mailing lists. I just wonder if you've been targeted for a scam. Are you quite sure that the message cancelling your identity was really from Yahoo? If it came with a URL to reinstate your identity, I suggest you ignore it and try to reinstate through Yahoo's web site front page. like inactive (?) and forWhile it's not strictly legal (because you might enter a real number by coincidence), you could enter a plausible but false number, such as one beginning with the code for Russia. I agree that it's unreasonable to demand a cellphone number. I am deaf and while I have a cell phone I can hardly ever use it. -- OOO - Own Opinions Only. With best wishes. See www.jmwa.demon.co.uk Nondum ex silvis sumus John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: Membership renewal problem ....
Peter: You could simply: 1: ?set up a new yahoo account, 2: become a member of the LTspice group, 3: set the group preferences to send email to a different email account
I found this to better for me, as I rarely use my yahoo account anymore. Another key to this is to be sure to keep the user/password of the new account somewhere as to be secure, and accessible (suggest KeyPass).
On Tue, Dec 17, 2013 at 3:12 PM, Peter Kapas <pkapas@...> wrote:
|
Membership renewal problem ....
In last days I faced to a problem to renew my LTspice group's membership. Simply, I am not a member right now, because Yahoo canceled my account, like inactive (?) and for renewal is asking for a cell-phone number (for verification ?) What happens, if some one has no cell-phone, or does not want to by a new one just for that reason. Honestly, I do not want to give out my cell-phone number for the public, for future selling it for advertisement reason, how the companies frequently do it. How to become again a LTspice member? ... Why do I mention it? So, if I read reactions, "see ... this and this letter/folder on the LTspice group's website" I doubt I will be able to do it in future or other with same problem. Is there a different way to enter into this group's website? Thanks, Peter |
CIC unstable output
?Hello I need help in making a stable output from a CIC interpolator in .TRAN. It works well for a few periods of the input signal, but then it goes exponentially noisy. The settings seem to be extremely influenced by the clocks' dely and rising time, but the integrator stages also multiply any bit of error, too. I wanted to make a list of the things I tried but it seems to strech for too long, so I'll just say that I've tried clocks with voltage sources only, A-devices only, combined (to benefit from tripdt), I tried adding a S&H between the 6th and 7th integrator stage (by that stage the samples simply aren't "straight" anymore and it's about there that the spikes get visible), then between other two stages, then between every integrator stage (a pain since the sample clocks need to be delayed for each S&H), I tried an alternative upsampler with B-source [V(upsample)*V(comb8)], w/out S&H, before and after the upsampler, I tried using B-sources as combs and integrators with proper .FUNCS defined, I tried fiddling with td and tr (delay and rise time for clocks), I simply cannot make this any better than its current state. So I'm asking you: do you know any methods for improving the outcome of this? To be able to run it for 100 (or more) periods of the input signal and not have distortions? Before answering, you should probably try and test your solutions, every new idea I had seemed good before it got put to use. I uploaded CIC.asc in Temp. Anticipated thanks, Vlad |
Re: LTspice Install problem under linux
Hello keantoken,
> have never EVER gotten the LTSpice web update to work in Linux, in any distribution. The web update of LTspice is working since many years and practically all Linux distributions with WINE. I have updated LTspice many times with LINUX. The last time was a few weeks ago with Ubuntu. Best regards, Helmut |
Re: LTspice Install problem under linux
¿ªÔÆÌåÓýHi AllI just successfully did the latest upgrade to 4.20g. LTspice on Wine on Ubu 13.10 amd64. So far, ive never had any upgrade difficulties. I wish that every thing went so smoothly. I wish that i had a clue to help you. Al D. On 12/17/2013 02:54 PM,
keantoken@... wrote:
-- AC2CL I do not think there is any thrill that can go through the human heart like that felt by the inventor as he sees some creation of the brain unfolding to success... Such emotions make a man forget food, sleep, friends, love, everything. - Nikola Tesla |
Re: FFT Resolution
?
toggle quoted message
Show quoted text
No it is not useless, because all FFT algorithms
have errors because necessarily the precision of the floating point arithmetic
is finite. There are many such FFT algorithms all based of discrete Fourier
transformation. The computation yielding transformation from time domain to
frequency domain - the spectrum- requires complex number arithmetic thus one has
so tos speak a double limitation?due to?finite precision of floating
point arithmetic. Especially a pure sine has a very narrow Fourier integral thus
requires precision far above the precision of a for ex. double variable
type.
?
?
?
|
Re: LTspice Install problem under linux
Actually, I don't know the developers, but my impression has been that WINE tries its best to merge the Windows window manager with the Linux window manager, so that linux and windows apps will cooperate nicely among each other. There are limitations of course, but it's believable to me that WINE may include linux programs in the list of open windows available to Windows programs. I have never EVER gotten the LTSpice web update to work in Linux, in any distribution. It may have worked a long time ago, but I just download the new .exe when I want to update. |
Re: FFT Resolution
It is also really important to have compression off! Jim Wagner Oregon Research Electronics From: "John Woodgate" To: LTspice@... Sent: Tuesday, December 17, 2013 11:20:02 AM Subject: Re: [LTspice] Re: FFT Resolution In message , dated Tue, 17 Dec 2013, |
Re: FFT Resolution
John Woodgate
In message <l8q4um+1ikvaao@...>, dated Tue, 17 Dec 2013,
ronw6wo@... writes: I am a simple soul? ( BTW maybe we are both Brits )I am, I don't know about you. (;-) The height is just the voltage; not infinite. The width would be zero if the sine-wave started at the Big Bang and went on till the Big Crunch. A sine wave of finite duration doesn't have a precise zero bandwidth. Having said that, if you do a FFT on exactly a whole number of cycles, the result is the same as for the truly infinite-duration signal. But since it is a digital process, the apparent width of the line is limited by the bit-depth. Similarly, the line width in an analogue Fourier analysis is limited by the settling time of the analogue filter. The FFT can give useless results if it's not set up correctly. That's why I spent some time trying to get a clear statement of the process. I've now filed that for future reference: LTspice FFT resolution settings To get x Hz resolution, you should, in practice, simulate for 2/x seconds. You can simulate for longer to get a clearer spectrum display, say N/x seconds. To get a spectrum up to X Hz, you then need more than 2*N*X/x samples, preferably the next higher power of 2. -- OOO - Own Opinions Only. With best wishes. See www.jmwa.demon.co.uk Nondum ex silvis sumus John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK |
Re: FFT Resolution
ronw6wo?wrote, "
It will have finite height, not infinite. ?The finite height is related to the amplitude of the sine wave.
Zero width isn't quite true either because the FFT is discrete in the frequency domain. ?Ideally (when done properly) it will "fill" only one "slot" in the frequency domain and not the adjacent slots. ?In that sense, your intent is probably correct; but it technically isn't zero width.
"What I have seen in LTPSPICE is far off and essentially useless"
Then perhaps you should try Mike Engelhardt's sinewave FFT example in LTspice's Help pages. ?Start Help, go to: ? Waveform Viewer > Waveform Arithmetic and scroll down to the bottom. ?Notice that there is one narrow spike in the FFT's spectrum. ?He uses a SPICE Netlist, but it's almost a no-brainer to replicate that as a schematic. ?Or you could type it in as a Netlist (LTspice accepts those too).
Regards, Andy |