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.

Delay routine of in-built library is not working properly

Status
Not open for further replies.

thangaduraibeece

Junior Member level 2
Joined
Jul 4, 2008
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,419
Hi,
I have written a c program which use an in-built delay loop for having a delay of 150ms.When i check the timing, the delay routne doesn't produce 150 milliseconds delay always it wasonly 50, 60, 70 milliseconds sometimes.
I am surprise on seeing this.Because i expected a delay of more than 150 milliseconds since i am running this turbo c application in windows OS where a process based scheduling is running.Contradictoru to my expectation, the time delay is less than 150 milliseonds.

/************** My Code ************/

delay(150);

/************** End of my Code *****/

Could anyone help me on this?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top