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)
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
Posted: Thu Jan 19, 2006 2:49 am
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:
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