Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/16/07 19:56
Read: times


 
#148345 - the other way around
Responding to: ???'s previous message
As Andy Neil said above, the "classical" 8051 and the older derivatives of it (including AT89C51/52) is designed so that it is capable to sink several mA, but source only several tens-hundreds of uA (there are newer derivatives which have push-pull outputs, i.e. source and sink the same amount of current).

You need to connect the cathode of LED to the 8051 port and anode via the resistor to VCC.

It is quite good you get caught by this simple thing, as it shows how important is to read - and understand - the datasheet and the "bible" (links again in Andy's post). I know it is not an easy reading, but believe me, that it will pay off in the long run to go through it. You can of course come here with anything you don't understand, we will gladly give you explanation (if we know it :-) )

JW


List of 19 messages in thread
TopicAuthorDate
problem in blinking LED            01/01/70 00:00      
   use a transistor to drive your LED            01/01/70 00:00      
   How did you connect the LED?            01/01/70 00:00      
      RE: How did you connect the LED?            01/01/70 00:00      
         and where goes the other end?            01/01/70 00:00      
            RE: and where goes the other end?            01/01/70 00:00      
               Wrong way up!            01/01/70 00:00      
               the other way around            01/01/70 00:00      
         check anode/cathode of led            01/01/70 00:00      
         What LED?            01/01/70 00:00      
            The LED is a factor!            01/01/70 00:00      
               Built-in resistors?            01/01/70 00:00      
   changing the polarity helps            01/01/70 00:00      
      Need more detail            01/01/70 00:00      
      Help others            01/01/70 00:00      
         solution tht worked            01/01/70 00:00      
            neve drive led directly with an 8051 , always            01/01/70 00:00      
               Wrong - there's nothing wrong with direct drive...            01/01/70 00:00      
            Well done            01/01/70 00:00      

Back to Subject List