It is currently Sat Mar 25, 2017 1:47 am

All times are UTC + 10 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Wed Sep 10, 2014 11:57 am 
Offline
I practically live here!
I practically live here!

Joined: Sun Mar 28, 2010 1:36 pm
Posts: 1111
Mixed Voltage Systems: Interfacing 5V and 3.3V Devices

Quote:
Eight methods for interfacing 5V and 3.3V devices will be described.


http://www.savagecircuits.com/content.p ... 3V-Devices


Top
 Profile  
 
 Post subject: Re: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Fri Sep 12, 2014 9:08 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 2544
Fantastic article Chuck. In-fact, I have a circuit right now that has both 3.3V logic and 5V logic circuits!


Top
 Profile  
 
 Post subject: Re: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Tue Sep 16, 2014 2:49 pm 
Offline
I practically live here!
I practically live here!

Joined: Wed Jan 16, 2013 1:17 pm
Posts: 175
Good article. I would add however that passive pull-up or -down resistors make for very slow transitions since the capacitance to charge up on the line is not 0. For example, with a 10K pull-up resistor and 20pF of capacitance on the line, the pull-up time constant is 200ns, which is very, very slow by digital standards. In some of the circuits, a compensating capacitor can be added; for example, in figures 1 & 2, put a 10pF across R1 [Edit: Correction: see my next post below]; in figure 3, you could put it put it across the diode if the trr of the diode isn't already long enough or its capacitance enough; and in figures 4, 7, and 8, putting it across R1 will help turn the transistor off and on faster but will not help raise the collector voltage any faster when the transistor turns off.

I show using an LM339 (quad) or LM393 (dual) comparator for voltage translation at http://wilsonminesco.com/6502primer/pot ... HI_V_LOGIC, but this is not for very high-speed logic. I've used it primarily for 5V-to-12V logic, like 5V to 4000-series which isn't very fast anyway but can go up to 15V. I've used the 4000-series stuff primarily for analog switches, the 4066, 4051, 4052, and 4053, for controlling audio circuits that use a 12V power supply.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources


Last edited by Garth on Thu Sep 18, 2014 5:23 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Wed Sep 17, 2014 12:16 am 
Offline
I practically live here!
I practically live here!

Joined: Sun Mar 28, 2010 1:36 pm
Posts: 1111
Garth,

I wouldn't have known that without an oscilloscope, some kind of test measurement equipment, doing some kind of test or hearing from you.

Thank you.

Chuck


Top
 Profile  
 
 Post subject: Re: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Thu Sep 18, 2014 5:22 am 
Offline
I practically live here!
I practically live here!

Joined: Wed Jan 16, 2013 1:17 pm
Posts: 175
I was in too big of a hurry earlier, and I goofed. With a hypothetical (but realistic) 20pF capacitive load on the 3.3V line, the capacitor across R1 (which drops only half as much voltage) should be more than that, not less. I was thinking less impedance, but that comes from more capacitance. The capacitor across R1 should be twice the 20pF load, not half; so it needs to be 40pF, not 10. Realistically, it might be hard to accurately predict or even measure the load capacitance, but you don't have to be very accurate. In this case I might put in 47pF as it's a lot more common than 39. ICs' data sheets usually specify a maximum input capacitance, not typical; and then you have to add that of the socket (if any), and of PCB traces which may be negligible.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources


Top
 Profile  
 
 Post subject: Re: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Fri Sep 19, 2014 10:02 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 2544
Some very useful info added there Garth.

On a similar note, I had a little bit of a hard time with some analog inputs on a project I was helping a friend with. Basically we were reading the output from a voltage divider consisting of a 10M resistor and a photodiode (this circuit was repeated a number of times and then each circuit was connected to it's own analog input of a PIC micro controller.)

Long story short, the huge resistance resulted in a massive time constant so when we were scanning though each of the analog input pins, each input would have an effect on the other because the internal capacitor used in the ADC circuit did not have anywhere near enough time to discharge before measuring the net input.

So it was time to start looking at adding an opamp in-between then photodiode voltage divider and the analog input pin :)


Top
 Profile  
 
 Post subject: Re: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Sat Sep 20, 2014 7:26 am 
Offline
I practically live here!
I practically live here!

Joined: Wed Jan 16, 2013 1:17 pm
Posts: 175
Brad, is the photodiode a current device? If so, you can use the op amp to convert current to voltage, and there's no real time constant because the inverting input's voltage theoretically does not change, so the minute capacitance on the line is not getting charged and discharged. The non-inverting input goes to a voltage reference, the photodiode goes directly to the inverting input with no resistor, and you'll have a feedback resistor from the op amp's output to the inverting input. The output voltage then is the feedback resistor times the input current, negated. (I might not be telling you anything you don't already know, but maybe it'll be helpful for other readers.)

_________________
http://WilsonMinesCo.com/ lots of 6502 resources


Top
 Profile  
 
 Post subject: Re: Mixed Voltage Systems: Interfacing 5V and 3.3V Devices
PostPosted: Wed Sep 24, 2014 8:48 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 2544
Thanks for the info Garth and I apologise for the late reply.

Your exactly right about the photodiode, as more light strikes the surface, the leakage current increases and vice versa. Although I had been experimenting with op-amps to fix the impedance matching problem, I actually hadn't thought of implementing it in the way that you had suggested. Which now that you mention it, your way would result in the same out come but by using less components!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme made by Keenen Wheeler