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

PIC16F873 - Changing CCP1 value but not affecting frequency

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



Joined: 14 Nov 2014
Posts: 2

View user's profile Send private message

PIC16F873 - Changing CCP1 value but not affecting frequency
PostPosted: Fri Nov 14, 2014 5:54 pm     Reply with quote

Hi,
I'm using the Compare function to generate variable frequencies depending to a value read from PortB. I write to CCP1 to establish the default frequency and this works fine. While running I write to CCP1 again to change the freq but no effect. I read the CCP1 reg and output the value to PORTC. The CCP1 value is changing with the PortB reading but the interrupt frequency does not change???

Any ideas why this is possible??

Hopefully,
Jeff
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Fri Nov 14, 2014 6:07 pm     Reply with quote

post your code after reading:

http://www.ccsinfo.com/forum/viewtopic.php?t=26245

until you do that who wants to play 20 questions??

Very Happy Very Happy Very Happy
JeffN



Joined: 14 Nov 2014
Posts: 2

View user's profile Send private message

PostPosted: Mon Nov 17, 2014 11:24 am     Reply with quote

Solved: Faulty regulator not supplying enough supply voltage - erratic behaviour. Thank you.
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