Propeller Sourcing at 30 ma
jgonzo
Posts: 5
I am trying to get 10 ma out of my propeller chip proto board 32212.· I can only sink 3.5 mils at 1000 ohms.· I do I get the 10 that I need?
Thanks for your help
Thanks for your help
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Remember Ohm's law? (V = I * R) Since a propeller I.O. pin isn't going to be able to put out more voltage than the chip is supplied with, V = 3.3v max. You've stated that R = 1000ohm. So what's the maximum 'I' that can flow? My calculator says 3.3 milliamp. If you need more current just lower the resistance.
Marty
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lunch cures all problems! have you had lunch?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 6/4/2008 11:56:19 PM GMT
Here's a model of a MOSFET where we can increase the Vd to 10V to see how channel-length modulation increases the drain current (effectively the Ron).
www-g.eng.cam.ac.uk/mmg/teaching/linearcircuits/mosfet.html
*Peter*
Something which I think should be clearly stated in the manual and datasheet. This is the first time a limitation like this has been mentioned.
The manual clearly states (twice), "can source/sink 30 mA each at 3.3 VDC", the datasheet indicates the absolute maximum is 40mA. I'd be very surprised if anyone had second-guessed that drawing 30mA was potentially damaging their Propeller, especially as everything else seems to have been conservatively rated in the manual and this is an opposite case.
The SpinStamp manual says, "General-purpose I/O pins: each can source and sink 40 mA".
In both cases, when "can" is used I would expect most people to read that as "can without risk of damage", ie "is allowed" rather than "is possible".
You might also want to update your online Store documentation which proudly boasts "Current Source/Sink per I/O = 50 mA" in a number of places. I don't know how it works in the USA but in the UK one could run into all sorts of false advertising, misrepresentation of goods and product liability legal issues.
I do think that parallax have been less than honest in their specs if the propeller will only source/sink a few milliamps.
any PIC datasheet gives V/I curves showing what the pins can deliver. They give 25mA, and I have never had a problem with Microchip.
To talk of not wanting to "stress" your chip is not good enough !!!
give the specs, and then its up to the user.
Mike
Table 18: Absolute Maximum Ratings
Total power dissipation 1 W
Max. current out of Vss pins 300 mA
Max. current into Vdd pins 300 mA
Max. DC current into an input pin with internal protection diode forward biased ±500 µA
Max. allowable current per I/O pin 40 mA
And the data sheet does have the following caveat:
8.1. Absolute Maximum Ratings
Stresses in excess of the absolute maximum ratings can cause permanent damage to the device. These are absolute stress ratings only. Functional operation of the device is not implied at these or any other conditions in excess of those given in the remainder of Section 7.0. Exposure to absolute maximum ratings for extended periods can adversely affect device reliability.
The data sheet is somewhat lacking and should provide more information than just the maximum "stress" values such as already mentioned V/I graphs, typical values etc.
The information at http://www.parallax.com/Default.aspx?tabid=407 is ambiguous:
I/O Pins 32
Current Source/Sink per I/O 40 mA
This can be read to mean the chip can sink source 40mA from 32 pins.
Personally I would never drive more than a LED from a MCU pin.
Cheers
I believe those limits exist to simplify interfacing -- as with the PIC chips, it's awfully nice not to have to add driver chips for EVERY single application.
Having said that, very few people expect you to use an I/O pin to power a relay coil, light a light-bulb, or power a motor. Those applications almost always require some external Darlington driver chip or some other PN transistor or MOSFET transistor device, along with protection diodes or even an H-Bridge for motors.
What the current DOES allow you to do is generate Composite Video with only the addition of a few resistors. In many simple applications, 30 mA on a few pins really IS all you need -- again, as the PIC chips have proven. But it's a processor, not a power-supply.
Still laughing!!
We placed the data on the datasheet to indicate that the chip is perfectly capable of handling these events, but it doesn't mean you should you should deliberately design it to do this all the time.
Praxis I am not talking about imminent failure like most other microcontroller speak of (try shorting your PIC I/O pin and see what happens), I am talking about long term reliability which is something no microchip manufacturer is going to provide you, its very very time consuming and very expensive to test for. What is your PIC's MTBF for a I/O pin @25 mA at 100% and 50% duty cycle? These are the types of statistics I'm speaking of.
Look at any design reference from a reputable engineer and you will never see them attempting to·supply high currents from digital logic, because its bad design practice. You may be laughing but allenlane is completely right: its a microcontroller not a power-supply.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 6/5/2008 5:15:18 PM GMT
I do think that parallax are wrong and untruthful to give indications of 30 or 40mA of source/sink capability on this device.
I get the smell of marketing speak similar to music systems or speakers when some spec their products as "rms power", whilst the less scrupulous use "peak music power"
I/O drive capability of IC's was always specd at TTL output levels, of 2.4volts for VoH, and Vol of 0.4volts
Obviously, we are now using Vcc of 3.3volts, down from 5 volts, so it not strictly TTL
My definition of drive capability is dropping about 0.8 to 1.0 volts either sinking or sourcing.
If we take the case of our short circuit condition of say 30mA current, then the output mosfet (per pin) must dissipate 30mA x 3.3volts ie 90mWatts.
the more realistic value of losing 1 volt across the mosfet, then would give only 30mWatts per pin.
Microchip curves show a source capability of 10mA (typical) and sink 25mA (typical) at 25deg centigrade, but that 25mA drops to 17mA @85C, and 15mA at 125C
I do think you need to spec the output capability of your chips better.
Mike
Regarding your linked "TTL Ratings" -- Did you note that the "source" for a TTL Output pin is 1.6 mA max? This number was used in "fan-out" calculations.
Did you note that the "sink" for a TTL I/O pin was 40 mA, 50 mA, or 100 mA? These were "maximum" ratings (engineer speak for "don't exceed these or you'll burn out the driver").
Did you also note that the "Max current" for a TTL chip was 50 mA?
I'm sorry that you think "parallax is wrong or untruthful". Perhaps at some point in your maturity development you'll be much more reluctant to tell people they're wrong, or that they're untruthful. Most people who develop with PIC, AVR, TTL, or CMOS chips know that 1 to 2 mA on an output pin can do a lot in terms of "signal". 20 mA and above are usually only needed for long-distance (10 feet and above) driver chips, or for a convenience of driving an LED and resistor without further driver chips.
And your specification of "driving a current with only 0.8 or 1 volt of drop" IS a "Power-supply specification" -- in using TTL or CMOS logic, you want as much noise immunity as you can get, which means ANY drop over 0.1 volt is an indication of a problem -- too many recievers on a party line, too much impedance in a long wire, resistance too small in a termination network.
That you are mis-applying power-supply requirements onto a microprocessor chip is NOT Parallax's problem.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
I am 59 years old.
I got my B.SC in 1972, my M.Sc in 1973.
I built my own apple II. I was with Microchip ( then GI ) in Glenrothes in Scotland in 1974 when the first Sinclair calculator chips were being designed for them by GI.
I was involved in the design on the GI Peripheral Interface Controller chip in 1975 when intel was in 4004, 8008 land.
recognise P.... I... C...
I have been in electronics for 38 years. I know a little bit about RTL/DTL/TTL/ECL/GTL MOS and beyond
dont get personal about "maturity development". It is beneath you
I like parallax a lot, I like Microchip a lot
if parallax dont publish the proper specs and graphs then they lay themselves open to criticism.
I have looked at paul's attached graphs, and they do indicate a good driving capability. not sure what "absolute current" means though.
Parallax gives the impression that their output mosfet drivers are as hefty as Microchips, and so can drive LED's at 10 mA's or so. It would seem so.
maybe I should retire
Mike
I really think you should reread my post as I never mentioned PIC chips at all and I also mentioned in that post and I quote "Personally I would never drive more than a LED from a MCU pin".
And as you reread you will notice that my only point of contention was lack of information in the data sheet and the ambiguous information which appears to marketing hype on the product web page.
Allenlane's comment was funny, it's a MCU not a power supply which also happens to support what you are saying.
Cheers
Accusing Parallax of being "less than honest", "wrong", or "untruthful" based on an IC specification indicated to me somebody who's lacking a bit of restraint and politeness -- perhaps I over-reacted. Sorry about that. We get a lot of "newbies" who try things which really are disasterous, and then complain that it's all Parallax's fault when they simply didn't listen, or didn't have the experience (yet) to apply what they'd been told. I was trying to nip that in the bud, and apparently got it wrong.
Note I don't work for Parallax, I've been using their products since 2002 or so.
to get 10mA out or into a pin 3.3v-0.4=2.9v/10ma=290R.
if youre driving an LED, then of course the 2.9Vdrops to 2.9V-Vf of the LED
maybe we should have all read his original question
Mike
I am happy to "chat" with a fellow experienced engineer
the thread went off on a tangent from the first post.
now, here in Spain its 10pm at night, so definitely "time to retire"
Mike
If you have suggestions on how to improve the datasheet, then please share, but please don't ascribe a motive to why it already isn't that way. Thats highly unfair and inaccurate.
I admit I glossed over some of the posts in this thread, so if I missed any mitigating statements of yours, I appologize.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 6/5/2008 7:54:53 PM GMT
do you have any curves of current/voltage vs temperature
see attached, hope they are appropriate
Paul, there is no malice or ulterior motive to any of this.
I just want clarity
Mike
Also by choosing discrete temperatures it will go alot faster. Sweeping temperature is a pain because you have to observe soaking times to be sure the junction temperature is as close to ambient as possible.
Which leads me to another question, at higher current draws there will be some self heating going on. Are you looking to have this compensated for (ie Tj is the measured parameter), or treat this as a real world excercise and acknowledge self heating will occur in high current situations (ie Ta is the measured parameter). The second is straight forward, the first is quite complicated because you have to forward bias an ESD diode with a constant current and measure the forward voltage drop (we're talking about a forward bias of 1uA to prevent self heating of the ESD diode). And for those that really want to get into it you do this twice, 1 ESD bias measurement on an adjacent pin, then another on the next pin, then calculate the gradient to extrapolate the Tj at the point of interest.
Even simple tests like this can get very complicated if you try to nail down everything which is going on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 6/5/2008 9:40:54 PM GMT
Or should I stock up on some intermediate chips? Like what for instance?
And whatever am I to do with my schemes for 100's of Beau and Charlieplexed LEDs, to be driven with pwm signals and no resistors? Besides bringing new meaning to smoketesting?
Seriously, we need another Ed Kit module on PYPFF (Protecting Your Prop From Frying) real soon now. Because the first couple modules have us learning to Just Slap It On·& Make It Work.
Post Edited (Fred Hawkins) : 6/5/2008 10:44:03 PM GMT
Another thing to consider is the high Vf of many of the newer LEDs, driving a 4.0V Vf LED is obviously not going to work. Check the graph I published in the previous post. If your Vf-current point lies outside the line, then it clearly wont work (ie say you have a LED with a forward voltage of 3.0V, and you need to drive it at 20mA, the graph shows that the maximum voltage that can be produced by the I/O pin when drawing 20mA is ~2.7V. This is not enough to drive the LED)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 6/5/2008 10:51:48 PM GMT
What's an application which can open the .EMF file ? Do you have the data in PNG, GIF of JPG format ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
edit: I did not see that there were two pages :-/