Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: TI Battery Charger(BQ24610) and EFuse(TPS26636) ICs
Hi Mahmood,
Registering with TI is not very difficult if you have a business or university email address. You can then download the free version, PSPICE-FOR-TI, from the e-fuse product page. But do you really need to simulate the e-fuse? In the past, we used a few different types of these without simulation or issues. The only tricky thing is the fixed overvoltage protection of some TPS26636 variants (e.g. TPS26632), which prevents use at higher voltages. You could ask specific questions on the TI E2E? forum. The people there are very friendly (as they are on this forum). Sven. |
Re: CD4000 Library Additions
On Tue, May 6, 2025 at 02:13 AM, N4 wrote:
I will upload CD4026B and CD4033B. They will require the CD4000_v.lib library
?
I will also upload demo photo's for each. |
Re: TI Battery Charger(BQ24610) and EFuse(TPS26636) ICs
Thanks, Andy. If I may ask, where do you get access to their PSPICE models, as googling that always directs me to downloading the CADENCE PSPICE for TI software, and you have to apply for some sort of special license or something. Is there any where I can download the PSPICE models discretely? Apologies for the trivial request, but for some reason I can't find any source to these models. I understand the specific IC I want is encrypted, but I want the source to search for other ICs that may be non-encrypted. Thanks. |
Re: Calculate average value of a waveform under specific conditions using .meas command
¿ªÔÆÌåÓýOn 06/05/2025 15:04, ankitk.ace via
groups.io wrote:
Thank you for participating in this thread. If you look at the 2 images that I have posted in this album, I have to identify specific intervals and then do the operation, however, as there's ringing during the DCM stage I am unable to detect the exact time intervals where I have to perform the intended operation. Is there any intelligent way to automate this process?You should be able to figure that out from what I suggested. Assuming you want to calculate the average inductor current: .MEAS Imax max I(L_filter_dc) .MEAS Imin min I(L_filter_dc) .MEAS Imid param (Imax+Imin)/2 .MEAS Tstart when I(L_filter_dc)=Imid rise=2 .MEAS Tstop when I(L_filter_dc)=Imid rise=3 .MEAS Iavg avg I(L_filter_dc) from Tstart to Tstop Note: I haven't actually tested this, but it should work. Just try copy-paste straight into your schematic. If there's an error, you'll know which step failed. -- Regards, Tony |
Re: Calculate average value of a waveform under specific conditions using .meas command
¿ªÔÆÌåÓýWell, the practical principle is whether the
copyright owner would see it worthwhile to take legal action
over a SMALL extract from a copyright document, posted to a
closed forum. It would be quite another matter if the whole
document were put out on the public web. Copyright IS the legal
issue involved: the access fee is for a personal, restricted
licence. I am also not a lawyer, but it pays to know a little
bit about laws that affect you. On 2025-05-06 13:42, Andy I via
groups.io wrote:
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
Re: Calculate average value of a waveform under specific conditions using .meas command
On Tue, May 6, 2025 at 08:44 AM, <ankitk.ace@...> wrote:
That is odd - because I can not find the same figure in the IEEE paper!? Did you copy that figure from a different paper than the one you referred to previously? ?
Not that it matters in the long run.? I am just confused because it was not copied from the same paper.
?
Andy
? |
Re: Calculate average value of a waveform under specific conditions using .meas command
On Tue, May 6, 2025 at 06:25 PM, Tony Casey wrote:
The .MEAS trig? targ? syntax may be elegant and efficient, but it is hard to debug. It's usually simpler, and much easier to debug, to split the trig and targ conditions into two separate meas tests, then add a third that uses the results from those, e.g.:Hello Tony, ?
Thank you for participating in this thread. If you look at the 2 images that I have posted in this album, I have to identify specific intervals and then do the operation, however, as there's ringing during the DCM stage I am unable to detect the exact time intervals where I have to perform the intended operation. Is there any intelligent way to automate this process? With Regards, Ankit |
Re: Calculate average value of a waveform under specific conditions using .meas command
On Tue, May 6, 2025 at 08:49 AM, <ankitk.ace@...> wrote:
No, I am suggesting that you may need to be "creative", and you might need to approximate. ?
If the ringing is the problem, then choose your waveform trigger points to avoid it.
?
Can you describe the trigger points you want by looking at the simulated waveforms?? If you can, then do your best to tell LTspice to do the same thing.
?
If there are other signals that are clean (free from ringing), consider using them instead.
?
Andy
? |
Re: Calculate average value of a waveform under specific conditions using .meas command
¿ªÔÆÌåÓýOn 06/05/2025 14:39, Andy I via
groups.io wrote:
This isn't right. You can only test for exactitudes with .MEAS, not inexactitudes. The .MEAS trig? targ? syntax may be elegant and efficient, but it is hard to debug. It's usually simpler, and much easier to debug, to split the trig and targ conditions into two separate meas tests, then add a third that uses the results from those, e.g.: .MEAS StartTime when V(out)=0 rise=1 td=100n .MEAS StopTime when V(out)=0 rise=2 td=100n .MEAS Vavg avg V(out) from StartTime to StopTime Here's 2 cents. -- Regards, Tony |
Re: TI Battery Charger(BQ24610) and EFuse(TPS26636) ICs
On Tue, May 6, 2025 at 08:20 AM, <mahmood.fares1988@...> wrote:
As you might have noticed, T.I. has an encrypted PSpice model for that part, but it is the only one they have for it.? It would be unusable in LTspice and can not be converted. ?
T.I. does not appear to have any SPICE model for the other part.
?
Maybe someone can come up with an alternative.
?
Andy
? |
Re: Calculate average value of a waveform under specific conditions using .meas command
On Tue, May 6, 2025 at 06:09 PM, Andy I wrote:
Hello Andy, ?
Thank you for replying again. So from your suggestion, does it mean I cannot automate the simulation?
Will I have to rely only on cursor for this? With Regards, Ankit |
Re: Calculate average value of a waveform under specific conditions using .meas command
Hello John,
?
Thank you for replying. I have uploaded a screenshot from the paper here. I just need help in identifying the three different states using .meas command and calculate the average values for a different variable during each state. With Regards, Ankit |
Re: Calculate average value of a waveform under specific conditions using .meas command
Ankit,
?
Comparing a waveform with a precise value can sometimes be tricky, especially when there is ringing or other noise.? I do not know if this helps, but you might need to add guard bands around the signal used to trigger the .MEAS commands.? For example:
?
... TRIG I(L_filter_dc)<50m ...
?
or something like that, rather than testing for I(...)=0.? It might affect the accuracy of the measurement, so choose the values carefully.? Basically you are trying to tell a computer to do something that you can "see" by looking at it, except that the waveforms are not perfect.
?
Andy
? |
Re: Calculate average value of a waveform under specific conditions using .meas command
¿ªÔÆÌåÓýAs I understand it, it is permitted to upload
a diagram or a SHORT piece of text from a copyright paper, but
nothing more. On 2025-05-06 13:29, Andy I via
groups.io wrote:
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
Re: Calculate average value of a waveform under specific conditions using .meas command
On Tue, May 6, 2025 at 05:59 PM, Andy I wrote:
Is there important information from the paper that we need to see, to understand the problem you are trying to solve with your .MEAS commands? Not really, it is just that other waveforms have to be averaged during the corresponding time intervals. For example during switch ON state the capacitor voltage follows one particular equation so it is necessary to calculate the average of the capacitor voltage during ON state. During OFF state the equation is different so I need to calculate a second average. Similarly the third average for DCM mode. |
Re: Calculate average value of a waveform under specific conditions using .meas command
On Tue, May 6, 2025 at 08:18 AM, <ankitk.ace@...> wrote:
I do not think you should upload THAT paper.? If it was also freely available for download from another website, then maybe you could.? But the copy you downloaded from the IEEE website is for your use only. ?
Is there important information from the paper that we need to see, to understand the problem you are trying to solve with your .MEAS commands?
?
Andy
? |
Re: Calculate average value of a waveform under specific conditions using .meas command
On Tue, May 6, 2025 at 05:52 PM, Andy I wrote:
Did you have a .MEAS command that worked, and other commands that failed? Hello Andy,
?
I am sorry. My message was cluttered and that's probably the .MEAS command was overlooked.
?
The command that I have provided worked. However, I am not sure if the command is correct to calculate the average during the first DCM period. Could you compare this command with the screenshot that I have shared here and tell me if it is correct or not? If yes, then can you help me with my other remaining queries: a) How to detect the nth interval of switch being ON and inductor current is building up during this duration?
b) How to detect the kth interval of switch being OFF and inductor current ramps down during this phase?
c) How to detect the mth DCM interval?
With Regards, Ankit
|