Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

8051MIcrocontroller programming

Status
Not open for further replies.

Hareesh Kumar

Junior Member level 2
Joined
May 17, 2011
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,450
hai,
i work with atmel 89c52 microcontroller.I want to get a 950 microseconds delay in between low and high pulses.Is anybody in here knowing how to calculate the 950 microsecond delay in C lalnguage??.Any sort of help is appreciated.
 

nandhu015

Advanced Member level 5
Joined
Feb 11, 2006
Messages
1,965
Helped
300
Reputation
600
Reaction score
224
Trophy points
1,353
Location
India
Activity points
9,829
Search google using 8051delay calculator, you can find lot of software.
 

navenmou

Full Member level 4
Joined
Sep 25, 2010
Messages
228
Helped
49
Reputation
98
Reaction score
46
Trophy points
1,318
Location
Bangalore, India
Activity points
2,588
can you frequency range you are using??

---------- Post added at 21:27 ---------- Previous post was at 21:27 ----------

can you specify frequency range you are using??
 

kandhu26

Member level 5
Joined
Sep 7, 2009
Messages
93
Helped
13
Reputation
26
Reaction score
12
Trophy points
1,288
Location
chennai / bangalore
Activity points
1,856
Its better to use timer to produce delay... Run timer for 50 micosec and keep one variable then increment that variable in ISR 19 times, Then set one flag....
 

srikanthsamaga

Full Member level 3
Joined
Dec 14, 2008
Messages
179
Helped
12
Reputation
24
Reaction score
2
Trophy points
1,298
Location
12°52′N 74°53′E
Activity points
2,022
You cannot get accurate delay while using C language, but u can reduce error percentage by using timer.
Or if you can somehow get assembly code crosscompiling your C program, you can calculate the error percentage and try to rectify it.
 

Ram Prasadh

Member level 2
Joined
Feb 16, 2011
Messages
51
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,725
What is the Crystal Frequency you are using?
 

Hareesh Kumar

Junior Member level 2
Joined
May 17, 2011
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,450
Thank you For Your reply..I felt it very helpful..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top