| Deutsch English Français Italiano |
|
<mu75ijtakpr25p7iu23a8lln3vc14r25iq@4ax.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: john larkin <jl@glen--canyon.com> Newsgroups: sci.electronics.design Subject: Re: irrational Spicing Date: Wed, 30 Oct 2024 14:11:40 -0700 Organization: A noiseless patient Spider Lines: 47 Message-ID: <mu75ijtakpr25p7iu23a8lln3vc14r25iq@4ax.com> References: <s235ijtgigajtlkef252jj38k0s0elvusj@4ax.com> <6722982e$0$17$882e4bbb@reader.netnews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Wed, 30 Oct 2024 22:09:43 +0100 (CET) Injection-Info: dont-email.me; posting-host="1bb1d580f1cd4bb10660ef815737fdf1"; logging-data="2443648"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18R1Ao1wKW2VYPy5Ss+4aTS" User-Agent: ForteAgent/8.00.32.1272 Cancel-Lock: sha1:OMytvlb/oVHcPF1tyXAIEanpQO8= Bytes: 2754 On Wed, 30 Oct 2024 16:33:49 -0400, bitrex <user@example.net> wrote: >On 10/30/2024 4:07 PM, john larkin wrote: >> Things I've seen, and even done, in Spice sims... >> >> Bypassing voltage sources (not me!) >> >> Worrying about resistor power dissipation >> >> Using standard parts values, like 4.7K ohms or 33nF, when the control >> loop will be mostly code anyhow >> >> Using +-12 or some such opamp supply voltages, and scaling signal >> levels to fit. The LT Spice universal opamps will work with hundreds, >> or thousands, of volt supplies. >> >> Drawing hideously ugly schematics without a title, author, date, or >> named nodes. >> >> >> So I'm rescaling a power supply sim (I'm waiting for a run to finish >> now) to have everything in actual 1:1 units. Then we will write the >> control loop code to work in those same real engineering units, not >> some goofy scaled integers or anything like that. >> >> Keeping everything in true units as floats is ideal, but the RP2040 >> floating point ops are kinda slow, so we may express things as 32-bit >> values, 16 bits of signed integer and 16 bits of fraction, as a sort >> of fast and cheap float. But 12.5 volts is still visibly 12.5, just >> as if it were a float. That will be handy for debugging. >> >> S16.16 is plenty good to express voltages and currents in a power >> supply. >> > > >Floating point kind of sucks for low frequency systems with relatively >long time constants, anyway. There are applications that need 1800 dB of >dynamic range, audio isn't really one of them What has that much dynamic range? Most real systems, especially my power supply, will have lots of free noise dithering. That makes the variables have essentially infinite resolution.