 |
 |
| View previous topic :: View next topic |
| Author |
Message |
Ttelmah Guest
|
|
Posted: Thu Aug 11, 2005 4:59 am |
|
|
First comment, is to say, why not just use a level shifter IC?. Maxim does a little bi-directional one, and Texas do some nice ones as well, and these are much more reliable. This is the better, and simpler solution. The MAX3370, is a 'classic' example of the devices available. Just has five pins, GND, one connection to each supply rail, and two I/O pins. The MA3372, puts two of these in one package.
Now on the down shifter, you can clamp a resistively 'fed' line, from going more than about 0.6v above a particular voltage using a diode. If the low voltage chip is 'normal', it won't mind a voltage going this far above it's supply. So you just put a clamp diode to the low voltage supply, and feed this from the PIC output via a resistor.
Remember though that if you want a fast edges, the resistor must be a low value, and this raises the possibility that the signal may tend to raise the low voltage rail. Also on the falling edge, the recovery time of the diode becomes critical. Using a zener, has the problem that these have a fairly 'soft' edge, so you get significant rounding of the signal edge into the low voltage device...
On the up shift, you say you are using 'BC547 pull-ups'. I don't understand this at all. The BC547, is a simple NPN transistor, and has no 'pull up' function. If you are using this driven from the low voltage device, with a pull up on the collector, then you will be introducing a signal inversion, which will cause problems, since the signal will now be the opposite logic to what is expected.
Check the data sheet on your device. Many 3.3v devices, have 5v 'tolerant' inputs. If so, then you don't have to worry about 'down' converting at all. For the up conversion, some of the 5v logic families, have inputs that switch at a lower voltage than the one used on the SPI line on the PIC, and a gate from such a family, can be used as an 'up' converter.
Best Wishes |
|
 |
John Travolta Guest
|
| Memory Device Problem |
Posted: Thu Aug 11, 2005 7:51 am |
|
|
Hello Ttelmah,
First of all thanks for spending time to write.
First, regarding the level shifter IC, i was a bit sceptical about using these because of the apparent cost and complexity this brings to the product. But I consider that as the last option though. If then I may go for the LVDS, SN65LVDS31D from TI (Because MAXIM is a bit difficult for me to source right now).
Now regarding the 'down' shifters, tried putting the diode as you said, using low resistances and of course the voltage was raised above the intended low voltage rail. My flash device does not accept more than 3.6v(specified value) beyond which i do not wish to go. I'll try with other high speed diodes and see if they can do. But at high frequencies with the lowest resistances, i do not know whether it can work.
And regarding the 'up' converters, what you say is exactly right. The BC547 hasno pull-up function. But like what you say, i do that 'driving that from the low voltage device with a pull-up on the collector', and i get an inverted signal which i pass through one more similar setup. That is, two BC547 driven by the low voltage device. Is that a potential problem ??? Since the datasheet of BC547 says it can operate at high frequencies(transition frequency=100Mhz).
So for the flash device that i am using, the 'down' copnversion is necessary. Okay, for 'up' conversion i also can use some 5v logic gates. Thanks(It never came up on my mind!). I think using schmitt trigger nand gates or something similar will do(i am not using PIC's built-in SPI ports).
Once again thanks for your support and hope it continues.
tHanKs iN adVAncE  |
|
 |
Guest
|
| Re: Memory Device Problem |
Posted: Fri Mar 24, 2006 12:59 pm |
|
|
| John Travolta wrote: | | Thanks Ttelmah for that, I'll try the diode-resistor pair for down converters and use pull-up transistors for up converters and hope things become more reliable. Thanks. |
|
|
 |
|
|
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 vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|