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.

Program Code for at89c2051 and 555

Status
Not open for further replies.

narindia16

Member level 1
Joined
Aug 4, 2009
Messages
32
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Ambala
Activity points
1,523
Hello Friends,

I am doing a small project using AT89c2051. I have done all and project is working fine. Program code is in C. I just want to add a 555 timer ic with it. I googled about its working but unable to get its pulse value. I have used a variable register with 555. I have connected pin 2 of 555 with Txd (P3.1) of 89c2051 and pin 9 (P3.6) of 2051 with pin 3 of 555.

Please send me code in c how to read pulse value of 555. I need this code urgenly.
 

Thanks for your reply. i am having idea of it.. can you tell me how to calculate pulse value in intruppt?? or i will be very thankful to you if you could send me some lines of code
 

No reply??? please reply friends..........i need it urgently....... please
 

can i help u
arun sharma ,india +919829147145
#include<reg51.h>
static bit x;
void delay_1()
{
while(x==0);
x=0;
}
void delay() interrupt 0 using 0//pin no. 3 of 555 falling edg
{
x=1;
}
void main()
{
EA=0;
EX0=1;
PX0=1;
IT0=1;
EA=1;
while(1)
{
int i;
for(i=1;i<=128;i*=2)
{
P2=i;
delay_1();
}
}
}
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top