Maker Pro
Maker Pro

Brushing up on theory: Butterworth LCR filter design?

K

krw

Not to change the subject (who, me?) but we just bought a heap of
samples of 0805-size integrated passive lowpass filters, TDK and some
others, and they are very impressive so far. Some are 3-pole, L-C-L
for some reason, and some are more.
We're using some of those (don't believer they're TDK) to isolate RF
buzz (from frequency hopping) from the power supply on some
replacement[*] headphone drivers. They've been known to cause as many
problems as they solve. The footprint isn't exactly an 0805 (center
ground stripe) so bridging across them can be a problem.

[*] Replacement part required because of ROHS, of course.
 
Yeesh, Jim, I haven't looked at this newsgroup since roadrunner
dropped NNTP support. I've missed the chaos and ignorance... You need
to thump some of the empty heads.

Anyway, about charge conservation in circuit simulation: The problem
was always with MOSFETs. BJTs and diodes were fine from the original
SPICE1 code -- if you start with a q(v) equation and differentiate it
to get capacitance, things are surprisingly good. Path integrals work
out... The problem was the Meyer model for channel capacitance, used
in the MOS level 1, 2, 3 models (and others). The model described the
capacitances and did a numerical estimation of charge based on them.
This was just plain wrong, since they're trying to estimate, e.g., qg
(vd,vg,vs,vb) without an integrable function. A good exposition of the
problem and first practical fix was in Ping Yang's 1983 paper.

So, MOS levels 1, 2, 3 are probably still wrong in SPICE -- I haven't
looked lately. Any of the more recent models, BSIM3, BSIM4, EKV, PSP,
all start with q(v) and differentiate to get the (non-reciprocal)
capacitances, so they're more-or-less correctly set up for charge
conservation by construction. For transient analysis, even if they
get the differentiation wrong, as long as q(v) is correct the model
will conserve charge -- if it converges.

For the picky, yes there will be some error on each cycle due to
convergence tolerances. If the simulator you're using properly
implements truncation error timestep control, the loss will be minimal
and controllable by tightening reltol and chgtol. If you're using
certain 'gold standard' simulators, you'll probably have trouble
unless you're some kind of prescient in figuring the right model
switches and options. My simulator does quite well.:)

--Steve
 
Yeesh, Jim, I haven't looked at this newsgroup since roadrunner
dropped NNTP support. I've missed the chaos and ignorance... You need
to thump some of the empty heads.

Anyway, about charge conservation in circuit simulation:  The problem
was always with MOSFETs. BJTs and diodes were fine from the original
SPICE1 code -- if you start with a q(v) equation and differentiate it
to get capacitance, things are surprisingly good. Path integrals work
out...  The problem was the Meyer model for channel capacitance, used
in the MOS level 1, 2, 3 models (and others). The model described the
capacitances and did a numerical estimation of charge based on them.
This was just plain wrong, since they're trying to estimate, e.g., qg
(vd,vg,vs,vb) without an integrable function. A good exposition of the
problem and first practical fix was in Ping Yang's 1983 paper.

So, MOS levels 1, 2, 3 are probably still wrong in SPICE -- I haven't
looked lately. Any of the more recent models, BSIM3, BSIM4, EKV, PSP,
all start with q(v) and differentiate to get the (non-reciprocal)
capacitances, so they're more-or-less correctly set up for charge
conservation by construction.  For transient analysis, even if they
get the differentiation wrong, as long as q(v) is correct the model
will conserve charge -- if it converges.

For the picky, yes there will be some error on each cycle due to
convergence tolerances.  If the simulator you're using properly
implements truncation error timestep control, the loss will be minimal
and controllable by tightening reltol and chgtol. If you're using
certain 'gold standard' simulators, you'll probably have trouble
unless you're some kind of prescient in figuring the right model
switches and options.  My simulator does quite well.:)

--Steve

But my point was you couldn't use spice for high accuracy, such as
SCFs, which is why switcap was invented in the first place.

I really don't understand Jim negative comments about me, but trust
me, I've delivered silicon. Then again, when it comes to Jim, you have
to look at the source and just shrug it off as some jerk.
 
That's being awfully severe on a mere digital computer. In addition to
the obvious floating-point limits, Spice must do discrete-time-chunk
extrapolations if it's not to take forever to get anything done. I'd
imagine cases, like a steep curvy rise or fall, where discrete block
calcs will miss high or low for a while, and accumulate small charge
errors. Setting dt smaller may help, at the annoyance of slow results.

What matters to me is whether Spice can conserve charge to, say, 10's
of PPM accuracy over a sim run, and how I'd have to set it up to make
it do that.

Some circuits, with a real wide mix of taus, like crystal oscillators
in the extreme, really stress the accuracy/user patience tradeoff.

John

Charge redistribution circuits go through many cycles, so the error
can accumulate. Like a said many posts ago, you would see this is
cyclic converters.

In the NMOS days (yeah, I'm that old), there was great effort into
studying this charge error since you didn't have complimentary
switches. Dummy switch schemes were tried in spice and silicon with
little correlation.
 
J

Jeroen Belleman

[...]
In the NMOS days (yeah, I'm that old), there was great effort into
studying this charge error since you didn't have complimentary
switches. [...] ^^^^^^^^^^^^^

"complementary"
 
K

krw

Not to change the subject (who, me?) but we just bought a heap of
samples of 0805-size integrated passive lowpass filters, TDK and some
others, and they are very impressive so far. Some are 3-pole, L-C-L
for some reason, and some are more.
We're using some of those (don't believer they're TDK) to isolate RF
buzz (from frequency hopping) from the power supply on some
replacement[*] headphone drivers. They've been known to cause as many
problems as they solve. The footprint isn't exactly an 0805 (center
ground stripe) so bridging across them can be a problem.

[*] Replacement part required because of ROHS, of course.

The Brat is just now creating the footprint; we'll be careful about
the bridging situation. The TDK recommended footprint uses weird outer
pads, sort of pointy towards the middle.

The ones we use are from MuRata (NFL18ST).
Two of our frequency synthesizer boards are leaking strange rf things.
An FPGA is clocked at 128 MHz, and we're seeing lines coming out at
all sorts of bizarre frequencies, with no obvious numerical relation
to any clocks, from around 130 MHz up to a GHz maybe (160.34,
175.89...) They seem to be coming from inside the FPGA, and are dead
stable in frequency so aren't analog oscillations. The 0805 filters,
right at our output connectors, whack things very nicely. Our max
signal frequency is 32 MHz, so they don't affect normal operation.

When you say it's coming "out of" the FPGA... How? Power? Signal
pins? Air? In any case it is weird. Did you ask Xilinx about it?

The filters were making my output driver (LM7171 DSL driver used in
a Howland current pump) oscillate at 160MHz and suck gobs of power.
Bridging them with a zero ohm resistor eliminated the problem, but
as I said, it can be tricky with the ground stripe in the middle.
 
On Jan 21, 8:02 pm, [email protected] wrote: [snip]
 My simulator does quite well.:)
--Steve
But my point was you couldn't use spice for high accuracy, such as
SCFs, which is why switcap was invented in the first place.

No.  SWITCAP is much faster.


I really don't understand Jim negative comments about me, but trust
me, I've delivered silicon.

I guarantee I've delivered _far_more_ WORKING silicon than you.
Then again, when it comes to Jim, you have
to look at the source and just shrug it off as some jerk.

You said the simulator didn't conserve charge.  You were wrong.  I
know you have a lot of trouble admitting you're wrong.  Get over it,
JERK!

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|    1962     |

     It's what you learn, after you know it all, that counts.

You certainly deliver more bullshit than I do.
 
J

JosephKK

Not to change the subject (who, me?) but we just bought a heap of
samples of 0805-size integrated passive lowpass filters, TDK and some
others, and they are very impressive so far. Some are 3-pole, L-C-L
for some reason, and some are more.
We're using some of those (don't believer they're TDK) to isolate RF
buzz (from frequency hopping) from the power supply on some
replacement[*] headphone drivers. They've been known to cause as many
problems as they solve. The footprint isn't exactly an 0805 (center
ground stripe) so bridging across them can be a problem.

[*] Replacement part required because of ROHS, of course.

The Brat is just now creating the footprint; we'll be careful about
the bridging situation. The TDK recommended footprint uses weird outer
pads, sort of pointy towards the middle.

Two of our frequency synthesizer boards are leaking strange rf things.
An FPGA is clocked at 128 MHz, and we're seeing lines coming out at
all sorts of bizarre frequencies, with no obvious numerical relation
to any clocks, from around 130 MHz up to a GHz maybe (160.34,
175.89...) They seem to be coming from inside the FPGA, and are dead
stable in frequency so aren't analog oscillations. The 0805 filters,
right at our output connectors, whack things very nicely. Our max
signal frequency is 32 MHz, so they don't affect normal operation.

John

Makes me wonder about internal frequency multipliers leaking somehow.
 
K

krw

On Wed, 21 Jan 2009 12:39:43 -0800, John Larkin



Not to change the subject (who, me?) but we just bought a heap of
samples of 0805-size integrated passive lowpass filters, TDK and some
others, and they are very impressive so far. Some are 3-pole, L-C-L
for some reason, and some are more.

We're using some of those (don't believer they're TDK) to isolate RF
buzz (from frequency hopping) from the power supply on some
replacement[*] headphone drivers. They've been known to cause as many
problems as they solve. The footprint isn't exactly an 0805 (center
ground stripe) so bridging across them can be a problem.

[*] Replacement part required because of ROHS, of course.

The Brat is just now creating the footprint; we'll be careful about
the bridging situation. The TDK recommended footprint uses weird outer
pads, sort of pointy towards the middle.

Two of our frequency synthesizer boards are leaking strange rf things.
An FPGA is clocked at 128 MHz, and we're seeing lines coming out at
all sorts of bizarre frequencies, with no obvious numerical relation
to any clocks, from around 130 MHz up to a GHz maybe (160.34,
175.89...) They seem to be coming from inside the FPGA, and are dead
stable in frequency so aren't analog oscillations. The 0805 filters,
right at our output connectors, whack things very nicely. Our max
signal frequency is 32 MHz, so they don't affect normal operation.

John

Makes me wonder about internal frequency multipliers leaking somehow.

If the frequency multipliers were leaking it would have to be at a
multiple of the input clock. John indicated there is no (obvious)
numerical relation.
 
J

JosephKK

On Wed, 21 Jan 2009 12:39:43 -0800, John Larkin



Not to change the subject (who, me?) but we just bought a heap of
samples of 0805-size integrated passive lowpass filters, TDK and some
others, and they are very impressive so far. Some are 3-pole, L-C-L
for some reason, and some are more.

We're using some of those (don't believer they're TDK) to isolate RF
buzz (from frequency hopping) from the power supply on some
replacement[*] headphone drivers. They've been known to cause as many
problems as they solve. The footprint isn't exactly an 0805 (center
ground stripe) so bridging across them can be a problem.

[*] Replacement part required because of ROHS, of course.

The Brat is just now creating the footprint; we'll be careful about
the bridging situation. The TDK recommended footprint uses weird outer
pads, sort of pointy towards the middle.

Two of our frequency synthesizer boards are leaking strange rf things.
An FPGA is clocked at 128 MHz, and we're seeing lines coming out at
all sorts of bizarre frequencies, with no obvious numerical relation
to any clocks, from around 130 MHz up to a GHz maybe (160.34,
175.89...) They seem to be coming from inside the FPGA, and are dead
stable in frequency so aren't analog oscillations. The 0805 filters,
right at our output connectors, whack things very nicely. Our max
signal frequency is 32 MHz, so they don't affect normal operation.

John

Makes me wonder about internal frequency multipliers leaking somehow.

If the frequency multipliers were leaking it would have to be at a
multiple of the input clock. John indicated there is no (obvious)
numerical relation.

Who constrained the frequency ratios to integer? Not i. Any rational
ratio is reasonable. Alternatively there would have to be free
running oscillations, with whatever causes they may have. The
frequencies were noted for being stable were they not?
 
K

krw

On Wed, 21 Jan 2009 18:27:56 -0800, John Larkin


On Wed, 21 Jan 2009 12:39:43 -0800, John Larkin



Not to change the subject (who, me?) but we just bought a heap of
samples of 0805-size integrated passive lowpass filters, TDK and some
others, and they are very impressive so far. Some are 3-pole, L-C-L
for some reason, and some are more.

We're using some of those (don't believer they're TDK) to isolate RF
buzz (from frequency hopping) from the power supply on some
replacement[*] headphone drivers. They've been known to cause as many
problems as they solve. The footprint isn't exactly an 0805 (center
ground stripe) so bridging across them can be a problem.

[*] Replacement part required because of ROHS, of course.

The Brat is just now creating the footprint; we'll be careful about
the bridging situation. The TDK recommended footprint uses weird outer
pads, sort of pointy towards the middle.

Two of our frequency synthesizer boards are leaking strange rf things.
An FPGA is clocked at 128 MHz, and we're seeing lines coming out at
all sorts of bizarre frequencies, with no obvious numerical relation
to any clocks, from around 130 MHz up to a GHz maybe (160.34,
175.89...) They seem to be coming from inside the FPGA, and are dead
stable in frequency so aren't analog oscillations. The 0805 filters,
right at our output connectors, whack things very nicely. Our max
signal frequency is 32 MHz, so they don't affect normal operation.

John

Makes me wonder about internal frequency multipliers leaking somehow.

If the frequency multipliers were leaking it would have to be at a
multiple of the input clock. John indicated there is no (obvious)
numerical relation.

Who constrained the frequency ratios to integer? Not i. Any rational
ratio is reasonable. Alternatively there would have to be free
running oscillations, with whatever causes they may have. The
frequencies were noted for being stable were they not?

The frequencies bear no resemblance to the output either. Do you
think there is a random rogue multiplier with an antenna on it? Note
that John said there is "no obvious numerical relation to ANY clocks".
 
Top