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 CCS Technical Support

really strange thing in pic16f88

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







really strange thing in pic16f88
PostPosted: Wed Oct 15, 2008 3:49 am     Reply with quote

Hi

i have a strange thing.
i programed the chip to blink a led and it works-BUT only if i touch the pins with my finger...or with anything metal...

i tryied in a few circuits- and it blinks only if i touch the PINS.

WHAT IS THAT ?

thanx.
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

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

PostPosted: Wed Oct 15, 2008 5:01 am     Reply with quote

Monica,

Whenever you post a problem please include a concise, but adequate and relevant description of the hardware and code you are using. It sometimes also helps if you mention the version of the compiler and other software tools you are utilizing.

Quote:
it works-BUT only if i touch the pins with my finger...or with anything metal...


There could be several reasons why this is happening. I remember I used to frequently forget to connect the PIC ground pin to circuit ground. Touching the PIC pins (thereby providing some sort of grounding path) used to cause operation, which was, naturally, highly erratic, to say the least!

If you have specified in code that you are using an external crystal, and have not added the crystal to the circuit, touching the OSCx pins on the PIC may cause it to work, again, very erratically. Even if you have used an external crystal, it is possible that you are not using the proper crystal stabilizing capacitors. Refer to the device datasheet for guidelines (Section 4).

Sometimes, if input pins are allowed to float, the device may lock up due to high frequency switching of inputs. Touching the pins 'loads' them, and allows your device to work.

It can also be a case of you getting a piece of not-so-good silicon (though this is highly unlikely).

Rohit
monica
Guest







PostPosted: Wed Oct 15, 2008 9:44 am     Reply with quote

thanx

i used internal osc , and there is no special hardware-only a led goes from pin b0\b1\b2. gnd is connected.
Ttelmah
Guest







PostPosted: Wed Oct 15, 2008 10:25 am     Reply with quote

Have you got the fuse 'NOLVP' set?. Have you got the fuse 'NOMCLR' set?.
If not, signals on B6, B7, or RA5, could stop the chip running.

Best Wishes
MONICA
Guest







PostPosted: Wed Oct 15, 2008 11:28 am     Reply with quote

THANX WORKS !
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