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

PWM and 16F88 Issue

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



Joined: 12 Jul 2007
Posts: 1

View user's profile Send private message

PWM and 16F88 Issue
PostPosted: Fri Jul 13, 2007 12:00 am     Reply with quote

I have a strange issue that's driving me nuts!

I'm using a PIC16F88 with and LED connected to B3 which I have set to PWM. I can verify functionality of this pin via o-scope. I have an input that is pulled high on B0 and ever since I enabled the PWM on B3, I get noise on B0! Is this because PWM can be configured to either B3 or B0? My Fuse setting is CCPB3. Ideally I had an optical detector on B0, but even disconnected I'm getting noise.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 13, 2007 12:07 am     Reply with quote

Because pin B3 is also the PGM pin, I have to ask this question:

Do you have the NOLVP fuse set ? If not, you need to set it.
Add it to your #fuses statement.
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