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.

[SOLVED] Delays routine in PIC18F1230

Status
Not open for further replies.

panos_papajohn

Member level 2
Joined
Mar 18, 2011
Messages
46
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,640
Hi,

I want to make a delay with PIC18F1230.I am using MCC18 compiler. How can I calculate the time that each machine cycle lasts? I want to use the library delays.h and have a delay of 1000ms. Oscillator frequency is 20MHz.

Thank you in advance
Panos
 

you can generate delay using software by just counting the number instructions but its inaccurate and require the program to wait for the completion of delay period or you can use timers interrupt based which is accurate and doesn't require waiting for.....
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top