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

Question about creating a delay function call

Status
Not open for further replies.

luckyquincy

Newbie level 5
Joined
Oct 7, 2005
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,390
Hi all,

I would like to create a delay function call in ms using the internal RC, 7.373 MHz.

if I inverse the 7.373 MHz --> 1.35 E-7. is that the real time or not??

Thanks for your help.

I appreciated it
 

hamed_sotoudi

Full Member level 3
Joined
Aug 1, 2007
Messages
158
Helped
15
Reputation
30
Reaction score
4
Trophy points
1,298
Location
Germany Hamburg
Activity points
2,207
Re: delay function call

Hi
it is real time but u should look into micro instructions that every instruction u are using how many cycle takes to execute and u should consider everyy compare that is in your loops.but the architecture of your micro is very important(risk and pipeline)
 

selvaraj_iit

Newbie level 5
Joined
Aug 10, 2007
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
delay function call

You can use a timer with overflow interrupt. You can get delay time in any range.
 

segmex

Advanced Member level 4
Joined
Oct 25, 2006
Messages
114
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Activity points
1,828
delay function call

could u please give more infos about this?
 

jayavardhan

Full Member level 2
Joined
Sep 1, 2006
Messages
126
Helped
3
Reputation
6
Reaction score
0
Trophy points
1,296
Location
India
Activity points
1,851
delay function call

check how many cycles per instruciton the controller will take. Then calculate the delay. U can use ram count or NOP instructions or timers for delay.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top