Oct 24, 2013 #1 W 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
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
Oct 24, 2013 #2 Vengateswaran Member level 5 Joined Sep 13, 2013 Messages 85 Helped 14 Reputation 30 Reaction score 13 Trophy points 8 Location Coimbatore, India Activity points 427 That is because, the single instruction gets executed in a fraction of milliseconds based on the clock speed and not in seconds...
That is because, the single instruction gets executed in a fraction of milliseconds based on the clock speed and not in seconds...
Oct 24, 2013 #3 N nick703 Advanced Member level 1 Joined Oct 17, 2011 Messages 422 Helped 21 Reputation 44 Reaction score 22 Trophy points 1,298 Location surat Activity points 3,987 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.
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.
Oct 24, 2013 #4 W 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 Vengateswaran and nick703, Thanks for your helps. Regards, YY - - - Updated - - - Hi Vengateswaran and nick703, Thanks for your helps. Regards, YY
Hi Vengateswaran and nick703, Thanks for your helps. Regards, YY - - - Updated - - - Hi Vengateswaran and nick703, Thanks for your helps. Regards, YY
Oct 24, 2013 #5 N nick703 Advanced Member level 1 Joined Oct 17, 2011 Messages 422 Helped 21 Reputation 44 Reaction score 22 Trophy points 1,298 Location surat Activity points 3,987 u also read all thread of saeed blog lots of help for beginner https://saeedsolutions.blogspot.in/2012/05/how-to-write-configuration-bits-for-pic.html
u also read all thread of saeed blog lots of help for beginner https://saeedsolutions.blogspot.in/2012/05/how-to-write-configuration-bits-for-pic.html
Oct 24, 2013 #6 embpic Advanced Member level 3 Joined May 29, 2013 Messages 742 Helped 80 Reputation 160 Reaction score 77 Trophy points 1,308 Location india Activity points 5,213 most of the time delay routines are built in compiler and need to include.