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.

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.
 

Search google using 8051delay calculator, you can find lot of software.
 

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??
 

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....
 

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.
 

What is the Crystal Frequency you are using?
 

Thank you For Your reply..I felt it very helpful..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top