Author Topic: Constant-Voltage/Constant-current (CVCC) supply in SPICE  (Read 6320 times)

0 Members and 1 Guest are viewing this topic.

Offline WarhawkTopic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: 00
    • Personal resume
Constant-Voltage/Constant-current (CVCC) supply in SPICE
« on: August 29, 2019, 01:23:13 pm »
Guys, I completely failed.  :--
Could somebody share his know-how on how to simulate a CV/CC source in SPICE?
I know only the trick with an ideal diode
Code: [Select]
.model mylimit D(Ron=0, Ilim=xxx)in LTspice. However, I can't use LTspice (I am excluded from the license).

This solution does not work in ngspice.
Thanks for any tips.

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15250
  • Country: fr
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #1 on: August 31, 2019, 04:18:14 pm »
What kind of license do you need to use LTSpice? :o
 

Offline WarhawkTopic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: 00
    • Personal resume
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #2 on: September 01, 2019, 06:32:46 pm »
What kind of license do you need to use LTSpice? :o

"This program is specifically not licensed for use by semiconductor manufacturers in the promotion, demonstration or sale of their products. Specific permission must be obtained from Linear Technology for the use of LTspice for these applications."

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7201
  • Country: hr
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #3 on: September 01, 2019, 06:51:50 pm »
What kind of license do you need to use LTSpice? :o

"This program is specifically not licensed for use by semiconductor manufacturers in the promotion, demonstration or sale of their products. Specific permission must be obtained from Linear Technology for the use of LTspice for these applications."

So you are saying that you are working for a company that manufactures semiconductor chips, transistor or diodes, and you are planning to use Ltspice for making marketing materials...?
 

Offline WarhawkTopic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: 00
    • Personal resume
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #4 on: September 01, 2019, 08:49:45 pm »
What kind of license do you need to use LTSpice? :o

"This program is specifically not licensed for use by semiconductor manufacturers in the promotion, demonstration or sale of their products. Specific permission must be obtained from Linear Technology for the use of LTspice for these applications."

So you are saying that you are working for a company that manufactures semiconductor chips, transistor or diodes, and you are planning to use Ltspice for making marketing materials...?

What the hell are you talking about? Did you even read the question?
I clearly wrote that I can't use LTspice and trying to get this running in ngspice or in pSpice. I use LTspice only for hobby.
I already found the solution which is awkwardly simple.

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7201
  • Country: hr
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #5 on: September 01, 2019, 09:36:43 pm »
What kind of license do you need to use LTSpice? :o

"This program is specifically not licensed for use by semiconductor manufacturers in the promotion, demonstration or sale of their products. Specific permission must be obtained from Linear Technology for the use of LTspice for these applications."

So you are saying that you are working for a company that manufactures semiconductor chips, transistor or diodes, and you are planning to use Ltspice for making marketing materials...?

What the hell are you talking about? Did you even read the question?
I clearly wrote that I can't use LTspice and trying to get this running in ngspice or in pSpice. I use LTspice only for hobby.
I already found the solution which is awkwardly simple.
I'm also wondering about "what the hell are you talking about" the license..
Cause that license means what I wrote.. So I'm confused and would like for you, if you're willing to, to please explain..
That is all.
Sorry for confusion, best regards,
Sinisa

P.S. Maybe something like this:
https://www.edn.com/design/other/4351913/EDN-Access--03-03-94-Spice-model-mimics-realistic-current-sourc

https://www.spectrum-soft.com/news/spring2005/ilim.shtm
« Last Edit: September 01, 2019, 09:46:54 pm by 2N3055 »
 
The following users thanked this post: djadeski

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15250
  • Country: fr
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #6 on: September 01, 2019, 10:56:09 pm »
What kind of license do you need to use LTSpice? :o

"This program is specifically not licensed for use by semiconductor manufacturers in the promotion, demonstration or sale of their products. Specific permission must be obtained from Linear Technology for the use of LTspice for these applications."

Oh damn. I've used LTSpice quite a lot, but only for design purposes, so never found myself in that position really. So that didn't even cross my mind.

Anyway, I guess you could do that with an arbitrary behavioral voltage source (B) or something...
 

Online Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2764
  • Country: ca
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #7 on: September 10, 2019, 10:59:49 am »
Hi,

Here is a circuit that I use for cvcc power supplies in LTspice. It should be possible to implement in other versions of SPICE.




And the modelling results:






The .model IdealDiode D(Vfwd=0.1m) statement makes the diode with 100uV forward voltage.

I have attached the model.

Jay_Diddy_B


« Last Edit: September 10, 2019, 11:02:05 am by Jay_Diddy_B »
 
The following users thanked this post: 2N3055

Online Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2764
  • Country: ca
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #8 on: September 10, 2019, 11:26:15 am »
Hi,

If the version of SPICE you are using has trouble with .model statement

.model IdealDiode D(Vfwd=0.1m)

Try

.model IdealDiode D( N=0.001)


This should be understood by all versions of SPICE.

Regards,

Jay_Diddy_B
 

Offline RoGeorge

  • Super Contributor
  • ***
  • Posts: 6691
  • Country: ro
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #9 on: September 10, 2019, 11:43:31 am »
However, I can't use LTspice (I am excluded from the license).

Use QUCS instead, QUCS is GPL licensed
https://en.wikipedia.org/wiki/Quite_Universal_Circuit_Simulator

Offline WarhawkTopic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: 00
    • Personal resume
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #10 on: September 16, 2019, 02:30:55 pm »
Hello Everyone, I am back from holiday. Refreshed and optimistic again.  8)

@2N3055
- I was not sure if you were really asking a question or was just being mean. I apologize for my tone before. I can't use LTspice because I work for ADI's/LTC's competition in the very
mentioned area.

@SiliconWizard
- Yeah, I used to use LTSpice a lot but now only for hobby. KiCad's implementation of ngspice is far from usable :)

@Jay_Diddy_B
- Sweet, I'll try this. I used a similar configuration but with a voltage controlled switch that acts as an ideal diode. It still has some limitations though.

@RoGeorge
- Thanks for the tip. I was able to get a floating pSpice license but I'll check your software too.


Thanks everyone for your contribution.



Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7201
  • Country: hr
Re: Constant-Voltage/Constant-current (CVCC) supply in SPICE
« Reply #11 on: September 16, 2019, 02:57:43 pm »
Hello Everyone, I am back from holiday. Refreshed and optimistic again.  8)

@2N3055
- I was not sure if you were really asking a question or was just being mean. I apologize for my tone before. I can't use LTspice because I work for ADI's/LTC's competition in the very
mentioned area.


Fair enough. You can't know people intentions over ASCII characters. No hard feelings. I just kindly ask for the benefit of the doubt if there is next time ... I'm not native English speaker, so it's hard to express both facts and tone...

All the best,
Sinisa
 
The following users thanked this post: Warhawk


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf