Interfacing 5V to the Propeller
Vega256
Posts: 197
Hey guys,
In my setup, VDD with respect to VSS is 3.3V, so according the datasheet, the maximum voltage with respect to VSS that I can apply to any of the IO pins is -0.3V to 3.6V, but I wanted to get a 5V signal to an I/O pin, so I put down a 510 ohm for every 5V to the Propeller.
I have had it this way for a long time now: about 6 months. It seems that the Prop has been working fine.
Is this doing internal harm to the Prop? Should I get a higher rated resistor or just avoid interfacing 5V with the Propeller all together?
In my setup, VDD with respect to VSS is 3.3V, so according the datasheet, the maximum voltage with respect to VSS that I can apply to any of the IO pins is -0.3V to 3.6V, but I wanted to get a 5V signal to an I/O pin, so I put down a 510 ohm for every 5V to the Propeller.
I have had it this way for a long time now: about 6 months. It seems that the Prop has been working fine.
Is this doing internal harm to the Prop? Should I get a higher rated resistor or just avoid interfacing 5V with the Propeller all together?
Comments
Maybe. According to the datasheet, the maximum current allowed through the internal protection diodes is 500 uA, and
-Phil
The rule of thumb is to use 4.7K or so.
(5.5V - 2.7V - 0.6V) / 0.5mA = 4.4K
Duane J
In your formula, where did the 5.5 and 2.7 come from? Using my constants, 2.2K is borderline, so 2.7K or 3.3K ought to be big enough -- at least where regulated supplies are used.
-Phil
Of course, if your only making and testing a single unit you could use the smaller values but I wouldn't do it.
Duane J
-Phil
One nice way to get safe low impedance's is to use a form of the circuit used to buffet I2C signals.
This circuit assumes a 5V, or higher even 12V, logic gate on the left and a Prop Input pin on the right.
The resister can be even smaller depending on the low drive capabilities of the gate on the left,
Duane J
Phil,
is there any reason why we can't use a small capacitor in parallel with each limiting resistor?
I've only tried simulating this, but once I nailed the cap value, it looks like rise time is greatly improved, while leaving full protection at DC.
(the specific application I had in mind was soldering capacitors to the pads on the underside of the Propeller ASC+ board, since the pads are already there! )
Maybe there's something obvious that I'm missing?
The speedup cap is essentially in series with the pin cap.
This forms a kind of voltage divider to the fast rise time of the signal.
Lets assume the pin capacitance is 6pF and the input is 5V.
The speedup cap should be:
( Vout / ( Vin - Vout ) * CpF
( 3.3V / ( 5V - 3.3V )) * 6pF = 12pF
However, I suspect the capacitance at the pin is more than the 6pF in the spec.
The extra capacitance is is in the PC board and other components.
Maybe as high as 20pF or more, depending on the layout. so in this case the speedup would be about 39pF.
Some of this capacitance is is already in the series 4.7KΩ resister.
Caution, don't assume you can use a large capacitor as this can inject a fairly large current into the pin's protection diodes.
Duane J
Thanks for the tips Duane!
so something in 22pF-33pF range, like the ones used to compensate crystals.
Without a fast scope, I guess it might be tested before/after insertion using an high speed protocol, for example reading an SD card.