is there really any need for comments such as this? it helps no one and certainly isnt conducive to a rational debate. rather than trying to deflect the situation i personaly still think you should stick to answering the questions that were put to you from mike.be80be - Learn a little bit about electronics.
Anyone can copy and paste other people's work. Understanding what you are reading is a whole other matter. No one here is trying to say that PWM can't be used to control current. We are trying to say that PWM alone cannot adequately control current through an LED since it has no means of limiting the instantaneous current through it. Do you understand the electrical properties of a diode and why this is important?PWM can be used to adjust the total amount of power delivered to a load without losses normally incurred when a power transfer is limited by resistive means.
This is the kind of thing that get's me we set down and figure with out any real data
A pic18f2550 with a cheap red led from PORTB.0 draws 28.6 mA with the pin set high where is it going to get this dreamed up instantaneous current of 100mA
O and no resistor.
This is the kind of thing that get's me we set down and figure with out any real data
A pic18f2550 with a cheap red led from PORTB.0 draws 28.6 mA with the pin set high where is it going to get this dreamed up instantaneous current of 100mA
O and no resistor.
The limiting factor which determines maximum current at any duty cycle is average power dissipation.
PIC you have exceeds the maximum current rating of the PIC's I/O pin by nearly 15%. Microchip even has a big disclaimer in their datasheets warning of the risk of damage
...while it my not be seen as best pratice, clearly its is possiable to run LEDS in this manner as it has been done! inexperianced members like myself...
The displays are "Charlieplexed" and controlled with modulated pulses, also know as PWM (Pulse width modulation). There are no resistors on most of my projects because I limit the current using the software instead of using resistors. Also, I do use the internal pull-ups from the microcontroller PIC itself. The 1-second routine is similar to the one used by Roman Black but not the same. To keep accuracy, connections to the XTAL and 22pf capacitors must be as short is possible. Read the specifications from the Xtal manufacturer.
Probably so considering 30mA is a common number for bulk LEDs. The PIC I/O pin is not intended to handle current above 25mA.4. The led can easily handle 28mA peaks.
There is plenty of backup even from other posters. You either seem to be ignoring it or you have no idea what we are talking about.And sure any one can Google and paste it at lest I did you have not posted any backup for your reasoning. Looks more like a attack on me then facts.
Yes they can. What gives you the impression that they can't be?Here one more and I'm sure you can Google it Leds can't be figured for instantaneous current.
Where?There datasheets leave a lot out.
Which you are exceeding putting the PIC at risk in the long term.Maximum output current sourced by any I/O pin ........25 mA
Now you are quoting a listed assumption in a person's question as fact. https://electronics.stackexchange.c...her-current-yield-greater-apparent-brightness. This was a boundary constraint for their scenario and isn't correct in your real world application. For example, a cheap LED available through digikey has a max forward voltage of 2.5V and a max current of 30mA for a maximum power of 75mW. The same LED can tolerate a 160mA pulse at 1/10 duty cycle. (2.5V * 160mA)/10 = 40mW. This is nearly half of the rated LED power therefore average power dissipation is not the limiting factor otherwise the pulse duty cycle would be roughly 1/5.The limiting factor which determines maximum current at any duty cycle is average power dissipation. 10mA
It's quite acceptable in design terms to use a FET in PWM mode with much higher peak current than the FET's specified "maximum average current".
The PIC output drivers are FETs, nothing more and nothing less.
Which indicates a PIC pin PFET of about 100 ohms Rds and capable of 100-120mA or more peak and 25mA average.
most small PFET datasheets you will see the peak drain current is usually 4 to 5 times the value for max average drain current.
I'm about at my threshold. It's time for me to enjoy my long weekend out in the woods with no internet access and phone service!Any further comment can be made by phalanx as he seems to be willing to discuss the matter further with someone who is quite devoid of understanding.
No you can't. Only the manufacturer can determine what the rated specs of a device are. All the max ratings of a device are only valid if you are within the range on all of them. Can you guarantee operation at 125°C when an I/O port is out of spec? That is just one thing you have to consider. If you end up with failures down the road, Microchip (or any manufacturer) will see you are out of spec and not help you.Collins i can take a pic and call it Burt's pic and rate it's output as 30mA, But there is room here for under rating a chip because there market is not total a cut and dry industry.
Clearly, that situation could only happen when you attempt to light more than one segment on a single display at the same time. Since Jose is only lighting one segment at a time, Colin's premise and conclusion are incorrect.When the figure-8 is illuminated (or any figure), each of the LEDs requires a few milliamps and this current combines in the common-anode or common-cathode pin. If this current is 80mA, for example, the micro will not be able to supply the current and the display will be very dim.
You can trust the Indians to get things wrong.
Only a moron would create a web site that cannot be copied.
I hope I'm not the only one that finds comments like these to be very disturbing.It's totally ignorant people like this that we don't need on the web.
The schematic for the EDN article being criticized shows a 10F222 with the 8 pin PDIP or DFN package pinout. What kind of "expert" can't find the 8 pin pinouts in the 10F200 series datasheets (they're located on the same page as the 6 pin pinouts)? Unfortunately, I believe statements and comments like these, scattered throughout the column (and web site), tend to diminish the credibility of the author.The circuit states a PIC10F is used but the pinout is incorrect as a PIC10F is a 6-pin chip. See pin-out below and corrected circuit...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?