free 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]
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Arun Kumar V
Thu Jul 31 2008, 03:14AM

 User Offline
Registered Member #426
Joined: Sun Jan 28 2007, 11:50PM

Posts: 427
Thanked 178 times in 149 posts
Hi Freddy,

I recalculate the formula, I still think that my 1 second delay is correct. I'm using 11.0592 MHz


your calculation is based on 12Mhz crystal freq, my guess proved correct that you are using 11.0592Meg xtal.

so here is the calculation for 10mSec delay using 11.0592 meg ( 10mS X 100 times =1sec):

1) 10,000 divided by 1.085uS = 9216 decimal
2) 65536 - 9216 = 56,320 decimal
3) 56,320 d = 0DC00h
4) TH0 = 0DCh , TL0 = 00h

you can cross check by multiplying 9216 X 1.085 = 9999.36 uSec

but your values give a delay of 10,000 X 1.085 = 10,850 uSec a delay


about the variation in reading, i'll find let you where the error is



Arun






[ Edited Thu Jul 31 2008, 03:16AM ]
Back to top



This post has been thanked 1 time
 Freddy 
Freddy
Fri Aug 01 2008, 10:05AM

 User Offline
Registered Member #9399
Joined: Mon Jul 28 2008, 10:01PM

Posts: 37
Thanked 0 times in 0 posts
Yup, got it now. Thank you so much Arun
I think I'll switch to 12 MHz



Build target 'Target 1''
linking...
Program Size: data=8.0 xdata=0 code=709
creating hex file from "Final Year Project"...
"Final Year Project" - 0 Error(s), 0 Warning(s).
Back to top


Go to page  1 [2]  

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