Discussion in "General help Guidance and Discussion" started by    ASLANPETER    Sep 6, 2010.
Mon Sep 06 2010, 08:05 PM
#1
Hi Guys,
forgive me, it is surely a silly question but i am stuck. i need to control a led with an output pin of an 8051 micrcontroller. basically the micrcontroller is running a code and when a condition is verified ,an output pin is cleared. this ouput is linked to the anode of a led which should be wired to the VCC via a resisitor. the resistor and LED should be placed on a dedicated bread board which hence should be connected to 5v voltage. what should I do with the GND section on the broadboard?? should i leave it unconnected? will the VCC wire make any sense on its own without GND? or should i rather not to power up the breadboard and connect a resistor leg to the VCC output of the power supply? which is the correct way and why?
thank you


[ Edited Tue Sep 07 2010, 12:53 AM ]
Tue Sep 07 2010, 02:13 AM
#2
the 'gnd' to the LED's cathode is provided by the 8051's port pin,hence you needn't provide gnd on the breadboard...simply Vcc to the anode through the resistor and a port pin connection to the cathode.
But this is assuming you are using the same supply for both the mico and the LED bb.If not you'll have to connect the gnd terminals of both the supplies at some point.
Tue Sep 07 2010, 02:18 PM
#3
There are two ways you can connect LEDs to controller port.

1. Active High Logic
2. Active Low Logic.

1. Active high logic means LED will be on when port pin is 1 and LED will be off when pin is 0. In this type of arrangement, LED is driver from port pin of controller if port pin does not have enough current then a pullup is used on.

      VCC
       |
       \
       / Resistor
       \
       /
       |   LED
Port -----|>
|---GND
Pin


2. Active low is other way around, when port pin is 0, LED is on and when port pin is 1 LED is off. In this type of arrangement port pin is used as current sinking device, when LED is on current will sink from VCC through resistor and LED then into microcontroller pin. typical connections are like this.

         LED       R
Port -----|<|----/\/\/\---VCC
Pin

Tags interfacing LED to controlleractive low led circuitactive high led circuitled interfacing with microcontroller

Get Social

Information

Powered by e107 Forum System

Conversation

Fri Jul 19 2019, 10:33 AM
charmdatedhd
cooking
ExperimenterUK
Thu Jul 11 2019, 07:55 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html
ExperimenterUK
Thu Jul 11 2019, 07:44 PM
@praveen123. Can you give a link to the project ?
Thu Jul 11 2019, 04:47 PM
ramos
buenos dias alguien podria ayudarme necesito saber como descargar la libreria del l298n para proteus
Thu Jul 11 2019, 11:11 AM
praveen123
anyone can help me
Thu Jul 11 2019, 11:11 AM
praveen123
i need source code for 8051 -smart trolley rfid
Thu Jul 11 2019, 11:10 AM
praveen123
hii
ExperimenterUK
Thu Jun 27 2019, 09:14 PM
Hi.. good to see you again
۞ TPS ۞
Thu Jun 27 2019, 07:31 AM
Hello
AdiGhazi
Tue Jun 18 2019, 11:21 AM
Hlo Dear , I've to program AT89C51AC3 RT-LUM using flip but I'm getting time out error for RS232. Will you please suggest me which programmer will be supportable to program this Chip.

Downloads

Comments

rpels7707
Fri Jul 19 2019, 11:31 AM
ameya123
Fri Jul 19 2019, 07:36 AM
anhsieuno
Thu Jul 18 2019, 11:39 AM
zxcvbnm1234
Sat Jul 13 2019, 07:09 AM
surajghayal
Wed Jul 10 2019, 01:17 PM
figureyang
Fri Jul 05 2019, 04:25 AM
mousompal
Sat Jun 29 2019, 05:02 PM
AdiGhazi
Tue Jun 18 2019, 11:15 AM

Online

Guests: 46, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38080
Newest member: rpels7707
Forum Activity
ameya123 Avatar
Posted By ameya123
Fri Jul 19 2019, 07:42 AM
Hello,Please share 8051 Assembly language code for...
figureyang Avatar
Posted By figureyang
Fri Jul 05 2019, 04:37 AM
here is the source code prepared for you download ...
figureyang Avatar
Posted By figureyang
Fri Jul 05 2019, 04:30 AM
Cheap_Flash_FS(Normal Version)--Embedded FAT16/32 ...
wimac Avatar
Posted By wimac
Sat Jun 22 2019, 01:26 PM
I’ve use the AT89C51ED2 which has a similar progra...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Jun 20 2019, 10:08 PM
baud rate is 9600 at stop bits of 2. AdiGhaziThe u...
AdiGhazi Avatar
Posted By AdiGhazi
Thu Jun 20 2019, 05:24 AM
Dear,I'm using RS232 serial port cable to use flip...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jun 18 2019, 10:19 PM
Okay.. I have never programmed the AT89C51AC3 or ...
AdiGhazi Avatar
Posted By AdiGhazi
Tue Jun 18 2019, 11:20 AM
Hlo Dear ,I've to program AT89C51AC3 RT-LUM using ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu May 30 2019, 08:32 PM
It occurs to me that although the P89LPC921 and P8...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed May 29 2019, 09:05 PM
I would suggest a fresh approach.The Keil compile...