- This topic has 8 replies, 4 voices, and was last updated 13 years, 8 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Delay program
Hello,
Will u please help me to make 10 min dealy programing for 8051??
and if there is any possiblity to make 10 min delay? if yes then help me to make code for that….
do you know how to make 1 second delay???
for (j=0;j<10;j++) // this loop wil provide you 10 min delay
{
for(i=0;i<60;i++) // it will porvide you 1 min delay
// make a dealy for 1 sec (write its code);
}
thanx for reply but i really want programing in asm language.. so please suggest me in asm format,
thank you very much..
MOV TMOD,#10
REPT:MOV RO,#28
BACK:MOV TL1,#0
MOV TH1,#0
SETB TR1
AGAIN: JNB TF1,AGAIN
CLR TR1
CLR TF1
DJNZ RO,BACK
SJMP REPT
THIS WILL BEFORE UC HAVING 22 MHZ FREQUENCY…. U CAN INCREASE THE NUMBER OF REPITION AT REG R0, OT GET UR DESIRED DELAY
Thank you very very much for your response.
I want to ask you can we make delay for 1hour in programing????
And if possible then would you help me to make it ?
I suggest you to make use of timer interrupt instead of using big loops if you want a delay of 1 hour
yes i agree romel with you
just search some tut in the net about timer interrupt. im sure you’ll fine some/..
Okay my friend thanx a lot for ur kind help..