Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #407656
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
| Newsgroups | sci.electronics.design |
| Subject | Re: 1/x function with op amps or multiplier or something else... |
| Date | Fri, 15 Apr 2016 10:12:06 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 82 |
| Message-ID | <5710F6B6.6020406@electrooptical.net> (permalink) |
| References | <fd3b40d7-fc7e-4890-91b7-90fb80be5382@googlegroups.com> <O_KdnUyCifts8Y3KnZ2dnUU7-fMAAAAA@giganews.com> <O_KdnU-Cifvo7o3KnZ2dnUU7-fOdnZ2d@giganews.com> <neqd18$r9q$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mx02.eternal-september.org; posting-host="ba5aa477ac8651cd2e4d4a08b4ae59b3"; logging-data="23053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XRGFW3l5YO8VGBdp+HO//" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 |
| In-Reply-To | <neqd18$r9q$1@dont-email.me> |
| Cancel-Lock | sha1:mWOcya+tE0yBGT0/Pe2tGPAfjmw= |
| Xref | csiph.com sci.electronics.design:407656 |
Show key headers only | View raw
On 04/15/2016 05:45 AM, Tauno Voipio wrote: > On 15.4.16 07:52, Tim Wescott wrote: >> On Thu, 14 Apr 2016 23:24:17 -0500, Tim Wescott wrote: >> >>> On Thu, 14 Apr 2016 20:18:25 -0700, Fibo wrote: >>> >>>> Hello, >>>> >>>> I'm trying to figure out the best way to go about making a -1/x >>>> function in hardware. From googling around I see 2 methods, >>>> >>>> 1. Inverting log -> Anti-log 2. OpAmp with multiplier in the feedback >>>> loop >>>> >>>> I have +/-5V rails available, and my input is from 0.4V to 2V (which >>>> should give me an output of (-2.5 to -0.5). All DC values. >>>> >>>> Can anyone point me in the right direction here, I'm trying to do this >>>> with as few parts (no microcontroller) and as painlessly as possible, >>>> it doesn't have to be very accurate (2-5% error it ok). >>>> >>>> Much Thanks! >>> >>> For a production system that has to work at all temperatures over all >>> possible part variations, a microprocessor may be the most painless >>> thing of all. >>> >>> Either of your proposed methods should work. Beware of temperature >>> variations. Multiplier circuits are compensated. >> >> Oh -- forgot to mention. If you feel compelled to roll your own with >> diodes or whatnot, a transistor with the base shorted to the emitter >> works better than a diode -- I dunno why, and I don't have a lot of >> experience, but it's been mentioned to me here before and my own >> (limited) experience seems to bear it out. > > > A transdiode is a transistor with base shorted to the collector, not > emitter. You'll get a diode even with the emitter connection, but with > worse performance. > A diode-connected transistor is actually the world's simplest feedback amplifier. V_CE adjusts itself to be exactly what V_BE has to be in order to draw the exact amount of collector current applied. That's why they're such accurate logging devices. They work great at low frequency and decent current levels, but even a 5 GHz transistor like the BFT25A will run out of bandwidth when you get down to the nanoamps. (I discovered this experimentally.) ;) For the OP's problem, I'd vote for a log-antilog based on a matched quad NPN such as a MAT14 or LM3046 (which is a quint). Of course the input and output are both in volts, so you're really computing Vref**2/Vin. You need two V_BE's derived from Vref (either two diodes in series or one and a 2x amplifier), subtract the Vin one, and then exponentiate the result. It's best to buffer the Vref side with an op amp, because otherwise the variable current on the output side will cause an error. (Same thing on the output of the subtraction..) The tempco goes away to leading order, I think, because the I_S term varies slowly with collector current, and the eV_BE/kT term cancels since the sum of the V_BEs is the same in both branches. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
1/x function with op amps or multiplier or something else... Fibo <panfilero@gmail.com> - 2016-04-14 20:18 -0700
Re: 1/x function with op amps or multiplier or something else... omnilobe@gmail.com - 2016-04-14 20:44 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:21 -0500
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 10:24 -0400
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:01 -0500
Re: 1/x function with op amps or multiplier or something else... omnilobe@gmail.com - 2016-04-15 08:57 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:03 -0500
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-15 11:08 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-15 12:01 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 14:03 -0500
Re: 1/x function with op amps or multiplier or something else... "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-04-16 16:32 -0500
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-15 19:12 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:24 -0500
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:52 -0500
Re: 1/x function with op amps or multiplier or something else... Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2016-04-15 12:45 +0300
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 10:12 -0400
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-15 00:47 -0700
Re: 1/x function with op amps or multiplier or something else... Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:08 -0500
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-16 00:26 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-18 08:06 +0100
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-18 11:33 +0100
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-23 11:43 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 07:05 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-23 16:42 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 08:57 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-23 17:04 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 09:21 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 13:56 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-24 09:09 +0100
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-24 06:31 -0700
Re: 1/x function with op amps or multiplier or something else... piglet <erichpwagner@hotmail.com> - 2016-04-24 16:46 +0100
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-24 10:09 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-24 12:02 -0700
Re: 1/x function with op amps or multiplier or something else... George Herold <gherold@teachspin.com> - 2016-04-15 07:12 -0700
Re: 1/x function with op amps or multiplier or something else... bill.sloman@ieee.org - 2016-04-15 18:55 -0700
Re: 1/x function with op amps or multiplier or something else... bill.sloman@ieee.org - 2016-04-15 19:54 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:18 -0700
Re: 1/x function with op amps or multiplier or something else... bitrex <bitrex@de.lete.earthlink.net> - 2016-04-16 14:35 -0400
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:43 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:49 -0700
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-16 11:54 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 11:54 -0700
Re: 1/x function with op amps or multiplier or something else... Winfield Hill <hill@rowland.harvard.edu> - 2016-04-16 14:45 -0700
Re: 1/x function with op amps or multiplier or something else... bitrex <bitrex@de.lete.earthlink.net> - 2016-04-16 18:32 -0400
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-16 16:00 -0700
Re: 1/x function with op amps or multiplier or something else... sroberts6328@gmail.com - 2016-04-16 18:07 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 09:06 -0700
Re: 1/x function with op amps or multiplier or something else... Clifford Heath <no.spam@please.net> - 2016-04-23 18:07 +1000
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 08:03 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 09:25 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 10:17 -0700
Re: 1/x function with op amps or multiplier or something else... Fibo <panfilero@gmail.com> - 2016-04-17 12:02 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-17 12:16 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-18 08:49 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-19 09:07 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-23 08:30 -0700
Re: 1/x function with op amps or multiplier or something else... Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2016-04-24 12:01 -0700
Re: 1/x function with op amps or multiplier or something else... whit3rd <whit3rd@gmail.com> - 2016-04-24 14:37 -0700
Re: 1/x function with op amps or multiplier or something else... Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-24 14:43 -0700
csiph-web