8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  1 2 [3]
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Luqman
Thu Aug 23 2007, 02:59AM
 User Offline
Registered Member #1962
Joined: Wed Jul 04 2007, 03:13AM

Posts: 18
Thanked 0 times in 0 posts
how does the following cunction give 1 second delay?

void sec1()//can be fine tuned by changing the for loop values
{

bit_8 i,j;
TMOD=0x11;
for(i=0;i<230;i++)
_nop_();
for(i=0;i<7;i++)
{
TH1=0;
TH0=1;
TL1=0;
TL0=0;
TR1=1;
for(j=0;j<119;j++)
_nop_();
while(TF1!=1)
{
for(j=0;j<255;j++);
_nop_();
}
TF1=0;
TR0=1;
TR1=0;
while(TF0!=1)
{
for(j=0;j<120;j++)
_nop_();
}
TF0=0;
TR0=0;
}
}

Back to top


Ajay
Thu Aug 23 2007, 03:10AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3303
Thanked 611 times in 578 posts
well i was noob at that time.. when i wrote that function.. try writing a better 1 sec delay yourself take care of the call and jumps etc.

try making 1 sec routine with the help of simple for loops.. i think thats much better..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


Luqman
Wed Sep 05 2007, 11:18PM
 User Offline
Registered Member #1962
Joined: Wed Jul 04 2007, 03:13AM

Posts: 18
Thanked 0 times in 0 posts
well ajay, i would like to request u plz start PIC projects and coding PIC controllers so that we can get skills to program it easily.
Back to top


Ajay
Thu Sep 06 2007, 01:00AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3303
Thanked 611 times in 578 posts
well Luqman, i really want to start by i don't have PIC controller with me.. and i think there is not much difference in controllers..
PIC AVR 8051 everything is same.. there is no difference.. whatever you make in 8051/AVR you can do the same thing in PIC to.. the only difference is features and some registers thats all..
When i get a PIC IC with me... i will start another step by step tutorial for it... Thank you for your input...

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


Luqman
Mon Sep 24 2007, 07:53PM
 User Offline
Registered Member #1962
Joined: Wed Jul 04 2007, 03:13AM

Posts: 18
Thanked 0 times in 0 posts
hi, ajay
plz go thru the schematic and code that i've sent earlier.
Back to top


Ajay
Mon Sep 24 2007, 10:20PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3303
Thanked 611 times in 578 posts
I really don't remember which code/schematic.. must be lost somewhere in 1000 mails
Please post the code and schematic here in forum..

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 buddy 
buddy
Thu Apr 24 2008, 10:19AM
 User Offline
Registered Member #6839
Joined: Tue Mar 25 2008, 06:35PM

Posts: 1
Thanked 0 times in 0 post


[ B U D D Y ]
Back to top


Go to page  1 2 [3]  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems