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

12F629 Divider Question

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



Joined: 01 Dec 2005
Posts: 3

View user's profile Send private message

12F629 Divider Question
PostPosted: Tue Jan 17, 2006 5:02 pm     Reply with quote

Hi all,
A question? ( I am very new to pic)

I am using a 12F629 as a frequency divider as part of a complete PLL system. I have been looking at some code on these forums that Mark wrote (many thanks)

( http://www.ccsinfo.com/forum/viewtopic.php?t=21241&highlight=12f629 ). He used the count function.

My question is, what is the limit of the count function, can it count up to 8000 times?

Many thanks for any help in advance
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jan 19, 2006 2:49 am     Reply with quote

He doesn't show the variable declaration for the "count" variable.
But if you want it to count up to 8000 (or up to a max of 65535),
then you can declare "count" as a 16-bit unsigned variable. Like this:
Code:
int16 count;
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