CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

MCLR required before code runs

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jerry R



Joined: 25 Apr 2007
Posts: 23

View user's profile Send private message

MCLR required before code runs
PostPosted: Wed Dec 05, 2007 6:12 am     Reply with quote

I am working with a 18F452 and am having a problem with the code not running before a "hard" /MCLR is issued after power-up. I don't think Vdd voltage rise is an issue since I've tried powering-up with a "cold" switch from Vdd. When connected, an ICS U40 debugger starts code fine.

The target hardware is the same as with other older project completed successfully.

Any help is much appreciated.
Ttelmah
Guest







PostPosted: Wed Dec 05, 2007 6:21 am     Reply with quote

Have you got the 'PUT' fuse in the new code?. If not, try adding this. You say the hardware is 'the same', is it actually the same hardware, or a dulicate?. If the latter, double check the capacitors used on the crystal. You can get this behaviour if these are too large, it prevents the oscillator starting properly, with the supply rising. Even if the hardware is the same, check these, since chips do differ, and the one you now have, may be slightly more fussy.

Best Wishes
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Wed Dec 05, 2007 8:55 am     Reply with quote

Also the PLL will require a power off before it works. but only after the first time the fuse h4 is set.
.... edited ....
after seeing that you tried a cold power up. PLL would not be the problem.
......
perhaps you only think that it is not running. ((but it is)) if you don't see the
proper serial data,.. except when the icd-u40 is connected, then i would think that the issue is that the icd-u40 is providing the ground for serial com.
without the ground, you don't see the data.
Guest








PUT Fixed it! Thanks
PostPosted: Wed Dec 05, 2007 9:59 am     Reply with quote

Thanks for all the replies! I should have looked more closely at the fuses!
Regards Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group