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

Weird problem with pic

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







Weird problem with pic
PostPosted: Wed Jun 07, 2006 8:18 pm     Reply with quote

My pic seems to stop working whenever I move my hand next to it (not touching the pic). I programmed an LED to blinks and it stopped blinking whenever my hand is close to the pic. It seems like i have this problem when i'm using pic+max232.

Some kind of capacitance problem?? Question
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 07, 2006 8:29 pm     Reply with quote

See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=13001
David21
Guest







PostPosted: Wed Jun 07, 2006 8:53 pm     Reply with quote

thank you. Ur so helpful. I thought I was the only one with the problem Smile

now I can get close and personal with my pic Razz
David21
Guest







PostPosted: Wed Jun 07, 2006 8:54 pm     Reply with quote

Why does moving my hand close to the pic cause it to reset?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 07, 2006 8:59 pm     Reply with quote

1. Add the NOLVP fuse (assuming your PIC supports that fuse).

2. Make sure you have a pullup resistor on the MCLR pin.
Use a 10K resistor. (If you use CCS ICD, then use 47K).

3. Check all power and ground connections to the PIC.
Guest








PostPosted: Thu Jun 08, 2006 3:37 am     Reply with quote

why does adding NOLVP fix the problem?
Ttelmah
Guest







PostPosted: Thu Jun 08, 2006 4:23 am     Reply with quote

When 'LVP' is selected, the chip is in a mode, where _any_ signal activity seen on the PGM pin, can put it into programming mode.
If you are using LVP, and have this fuse enabled, then ensure that you have a resistor pulling the PGM pin to 0v, or erratic behaviour may result.
The chips _default_ to this mode (this is because otherwise boards that require this feature, cannot switch to this mode, once the chip is soldered in place).
You should always disable this mode (NOLVP), _unless_ you specifically want the feature, and have wired your board to support it.

Best Wishes
Guest








PostPosted: Fri Jun 09, 2006 3:01 am     Reply with quote

thanks. I've learned something new 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