<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Coldfire, driving LED's direct, good or bad? in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193114#M8474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen in the MCF51JM docs the drive strength registers for the outputs. The data sheet says each pin can sink 25mA. Ignoring the max current the MCU should draw overall for now, is it really a good idea to drive an LED directly from the port?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've often used a digital FET for ease of use to control LED's off a micro, I'd be interested to hear some opinions with regards to the parts/real estate savings made in driving the LED's directly is worth the risk (if there is one).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 11:35:24 GMT</pubDate>
    <dc:creator>Bloodhound</dc:creator>
    <dc:date>2009-06-23T11:35:24Z</dc:date>
    <item>
      <title>Coldfire, driving LED's direct, good or bad?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193114#M8474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen in the MCF51JM docs the drive strength registers for the outputs. The data sheet says each pin can sink 25mA. Ignoring the max current the MCU should draw overall for now, is it really a good idea to drive an LED directly from the port?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've often used a digital FET for ease of use to control LED's off a micro, I'd be interested to hear some opinions with regards to the parts/real estate savings made in driving the LED's directly is worth the risk (if there is one).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:35:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193114#M8474</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2009-06-23T11:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire, driving LED's direct, good or bad?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193115#M8475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have make this several times. And it works right.&lt;/P&gt;&lt;P&gt;You must connect a resistor in series with led.&lt;/P&gt;&lt;P&gt;It would be the next assembly:&lt;/P&gt;&lt;P&gt;pin------&amp;gt;resistor------&amp;gt;led-------&amp;gt;ground.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must calculate the resistor proper value according to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R=Vout(hight)/I(led)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don´t know the current of led, you consider 0,01 A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193115#M8475</guid>
      <dc:creator>d_vara</dc:creator>
      <dc:date>2009-06-23T12:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire, driving LED's direct, good or bad?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193116#M8476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I understand you also need the series resistor. The question was more along the lines of driving the LED directly from the micro being a good or bad idea as opposed to the micro switching a transistor (very low current) and then the transistor turns on the LED (20mA or so).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I remember reading an AVR datasheet years ago that said it is best to get the micro to sink the current if driving an LED directly, so the opposite what you have: pin-----&amp;gt;resistor-----&amp;gt;led------&amp;gt;Vcc , pin grounds to turn on LED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Ross&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 13:01:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193116#M8476</guid>
      <dc:creator>Bloodhound</dc:creator>
      <dc:date>2009-06-23T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire, driving LED's direct, good or bad?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193117#M8477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your idea is right, and it is better than my idea for the chip. It´s better sink current.&lt;/P&gt;&lt;P&gt;But, you look at that, when you output "1" logic, you are going to view the led turns off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is recommended&amp;nbsp; to use a transistor because it increase safety. The chip suffer less stress.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:32:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193117#M8477</guid>
      <dc:creator>d_vara</dc:creator>
      <dc:date>2009-06-23T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire, driving LED's direct, good or bad?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193118#M8478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; The data sheet says each pin can sink 25mA.&lt;/P&gt;&lt;P&gt;See the datasheet of your LED.&lt;/P&gt;&lt;P&gt;The typical LED needs 5..10 mA&amp;nbsp;to be bright enough. The brightness is also depends upon % of lit time vs total time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer the chain:&lt;/P&gt;&lt;P&gt;pin-----&amp;gt;led-----&amp;gt;resistor------&amp;gt;Vcc&lt;/P&gt;&lt;P&gt;I use 390 Ohm resistor for 3.3 V Vcc and my LED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 14:51:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193118#M8478</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-06-23T14:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire, driving LED's direct, good or bad?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193119#M8479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the other words,&amp;nbsp; load current, which&amp;nbsp;is less than the specified 25 mA, doesn't damage the microcontroller pin driver.&lt;/P&gt;&lt;P&gt;Note, that a datasheet usually limits the total current of all pin due to overheating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of calculation of the needed resistor:&lt;/P&gt;&lt;P&gt;R = (Vcc - Vol - Vled) / I&lt;/P&gt;&lt;P&gt;With the supply voltage Vcc=3.3 V, output low pin voltage Vol=0.3 V, LED saturation voltage&amp;nbsp; Vled=1.5 V, and the desired LED current&amp;nbsp;5 mA:&lt;/P&gt;&lt;P&gt;R = (3.3 V - 0.3 V - 1.5 V) /&amp;nbsp;5 mA = 0.3 kOhm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 15:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193119#M8479</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-06-23T15:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coldfire, driving LED's direct, good or bad?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193120#M8480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This is a technique I use from time to time. It depends on how many LEDs you need, the odd 1 or 2 should be fine, but an entire bank would probably be very bad.&lt;BR /&gt;If you really need this route, the high brightness LEDs can run on miniscule current - but watch out for leakage currents.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 19:22:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Coldfire-driving-LED-s-direct-good-or-bad/m-p/193120#M8480</guid>
      <dc:creator>paulm</dc:creator>
      <dc:date>2009-07-20T19:22:21Z</dc:date>
    </item>
  </channel>
</rss>

