when the output port of p2.0 is open. its output is 5v. but when i connect led. so it doesnt light very well either i connect resistor 220 ohm or not . and 2.0 v occor at output. why its not giving light very well. and when my led connect directly to power supply with resistor. so its light very well.
plz reply. engr.yasir2011@gmail.com
First of all when you describe a problem you should also define the mcu you are using.
The typical behavior of any mcu output is that the output voltage drops when you source current (or rises when you sink current), the more current you use the more the output voltage changes.
See the typical output drop of high level for AVR, PIC and MCP430
where it you connect wit port 2.0 wit respect ?
i think it may dry or the connection it might be connected properly (may be soldering problem )
other wise the p2.0 or the output may be a noisy pules .please put the code as well as the diagram if you can .
It may help full to clear the problem for the eda experts
Hi,
First check input/output - it should be output.
Brightness depend from current: you can find it in LED data sheet. You should calculate accordant resistor for it(LED forward voltage you can find in data sheet also). Of course you should check if MCU pin is capable to drive this current (data sheet of MCU)
Good luck!
Dear yasir,
This is a small problem but your thread does not have enough information
1 Number of micro controller
2 just draw and publish the way you connected the LED or full cct
3 your code
Thanks
org 0h
mov p3,#00 ; also make output. even its output by default.
mov a,#01
over: rr a
mov p3,a
mov r3,#150
h3: mov r2,#150
h2: mov r1,#255
h1: djnz r1,h1
djnz r2,h2
djnz r3,h3
sjmp over
end
i m using 8052. i connect p3 then resistor 220 ohm in series with led and then led -ve terminal to gnd.so it glow very low.and other p3 termainal is which i make it open. so it give 5v and those is connected so it give 1.8v.