Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[General] LED Controller using at89c2051 problem

Status
Not open for further replies.

your1click

Member level 3
Joined
Oct 23, 2012
Messages
65
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Dubai, United Arab Emirates, United Arab Emirates
Activity points
1,689
Hi friends I design simple circuit and programmed and test with Proteus Simulator here it's working properly but I applied programed on IC and test on bread board its not working. here is my circuit which I upload but programmed I will update next time b'coz now I'm at office when I get my laptop I will upload it also. but please check circuit diagram and try to say something about this circuit. Click.png
 

is an internal pull-up working?
measure V at the 3 controller pins if it is low insert pull-up resistor
 

i mean 3 pins
p1.2 , P1.1 and P1.0 ( controller I/P from SW1,2&3)
 

What is the real value of the capacitor, 10u or 10m?

What is the intended purpose of the capacitor? (From the look of the schematic, it pulls pin 1 high briefly on power up.) Did you test to make sure it does its job?

Does the capacitor need to be discharged after each use? Did you add a method to achieve this?
 

So you mean I have to add pull register ??

- - - Updated - - -

that is 10u
What is the real value of the capacitor, 10u or 10m?

What is the intended purpose of the capacitor? (From the look of the schematic, it pulls pin 1 high briefly on power up.) Did you test to make sure it does its job?

Does the capacitor need to be discharged after each use? Did you add a method to achieve this?
 

Here is code for this ckt which I used please check this also


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//For coding
//Let start our coding here
 
#include<AT89x51.h>
sbit LED1 = P1^3;
sbit LED2 = P1^4;
sbit SW1 = P1^0;
sbit SW2 = P1^1;
sbit SW3 = P1^2;
 
void main(void)
{
SW1=1;
SW2=1;
SW3=1;
        {
        if(SW1==0)
        {
        LED1 = 1;
        LED2 = 0;
        }
        {
        if(SW2==0)
        {
        LED1 = 0;
        LED2 = 1;
        }
        {
        if(SW3==0)
        {
        LED1 = 0;
        LED2 = 0;
        }
        }
        }
    }}

 
Last edited by a moderator:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top