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] Delay and config question in MPlad coding

Status
Not open for further replies.

WhyWhy

Member level 4
Joined
Mar 18, 2013
Messages
68
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,779
Hi guys,

i just wondering why the delay 1 second is "for(i=0;i<30000;i++)",but not "for(i=0;i<1;i++)". And the config why should be __CONFIG(0X3F38)?

regards,
YY
 

That is because, the single instruction gets executed in a fraction of milliseconds based on the clock speed and not in seconds...
 

i think u must read carefully datasheet because datasheet give u so many solution to just try and put your code to implement . configuration is the more important part of any micro controller mostly in world of PIC.
 
  • Like
Reactions: WhyWhy

    WhyWhy

    Points: 2
    Helpful Answer Positive Rating
Hi Vengateswaran and nick703,

Thanks for your helps.

Regards,
YY

- - - Updated - - -

Hi Vengateswaran and nick703,

Thanks for your helps.

Regards,
YY
 

most of the time delay routines are built in compiler and need to include.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top