- This topic has 5 replies, 3 voices, and was last updated 8 years, 1 month ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › what is 1275 in delay function in the embedded c pgm
hi guys,
I want to know a small clarification in embedded c programming that in delay function u can see that the value 1275 is mentioned. but i dnt know that how its determined, how its coming
pls if u know the answer just share me
Thanx
its just the numer of machine cycles delay loop is wasting..
its a value found out of trial and errors for 1 ms delay. with this value in for loop, the loop rotates for 1 ms with 12 MHz crystal.
how ever it is for 8051 type devices only. not for any other device
It is a delay value like you said but thing is that why we are taking that the particular value(1275) and also i want to know that how they determined. becase you can take assembly programming, we can easy to find the delay value by its machine cylce.
thank you for your great reply but i still didn't get it
you read my answer answer carefully dear
i wrote "trial and error" means it is adjusted to 1 ms during simuation. in KEIL when you simulate it shows how many machine cycle wasted that means how much time is wasted
The delay time is calculated only by during the simulation of the program(i.e.,only by practically). Is it right?