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

Usage of external crystal for Capture

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



Joined: 21 Feb 2010
Posts: 17

View user's profile Send private message

Usage of external crystal for Capture
PostPosted: Sun Feb 21, 2010 7:13 am     Reply with quote

My compiler version is 4.068. And my pic is 18f452. I want to use external crystal to RC0-RC1 (32.768kHz). But I couldn't understand the usage of these codes shown below. Could you explain what is the difference between these codes? What do you prefer for usage of external crystal?
Code:

setup_timer_1(T1_EXTERNAL | T1_DIV_BY_2);


Code:

setup_timer_1(T1_EXTERNAL | T1_DIV_BY_2 | T1_CLK_OUT);
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Feb 21, 2010 1:16 pm     Reply with quote

I don't think you can use a Timer1 crystal to do a CCP capture.
Read this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=33653&start=3
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