Driving a LED with at89c2051

Status
Not open for further replies.

Charon102

Newbie level 5
Joined
Nov 6, 2004
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
101
Hello folks

Short question:

I building a test circuit for an at89c2051 mcu. I want to drive some LED`s with the I/O pins from the controller. In some schematics on the net, I saw that the LED is connected directly to the I/O pin and with a resistor to VCC.
I was not very concentrated last night an connected all resistors directly to the I/O pins and then to he LED`s. Shit happens.
Do I have to remove the parts now and change it?

Greetings Charon102
 

Don't worry - this is connection in series so the sequence of a resistor and a diode is not important at all.
DrWhoF
 
Don't worry - this is connection in series so the sequence of a resistor and a diode is not important at all.

You are right. That are electronic basics.
THX for the hint.
 

The 2051 is having the port as open drain. So, connect a series resistor & LED together between the Pin & Vdd. That should solve the problem. A resistor value of approximately 1KΩ will do a nice job. But do try with different combinations. Hope this is helpful...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…