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

problem with timer1 and external signal

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Dec 12, 2006 9:36 pm     Reply with quote

It does, if you use the correct parameters as shown in the thread
that I linked. If you add the T1_CLK_OUT parameter, then bit 3 of
T1CON is set.

Without T1_CLK_OUT:
Code:
... setup_timer_1(T1_EXTERNAL | T1_DIV_BY_1); 
0048:  MOVLW  87
0049:  MOVWF  T1CON


With it:
Code:

... setup_timer_1(T1_EXTERNAL | T1_DIV_BY_1 | T1_CLK_OUT); 
004A:  MOVLW  8F
004B:  MOVWF  T1CON
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