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

T1_CLK_OUT

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



Joined: 16 Sep 2008
Posts: 51

View user's profile Send private message Send e-mail

T1_CLK_OUT
PostPosted: Tue Oct 14, 2008 6:22 am     Reply with quote

Hello !
I have a question : What does "T1_CLK_OUT" do when configuring timer 1 for example Rolling Eyes ...I looked it up on the manual but doesn't seem to be explained there.

Thank you !

P.S. I'm using the latest CCS C version .
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

Re: T1_CLK_OUT
PostPosted: Tue Oct 14, 2008 8:12 am     Reply with quote

This is just speculation, but if you look in the relevant <device>.h header file that defines T1_CLK_OUT and other parameters to setup_timer1(), and compare those bit patterns with the bit definitions for T1CON in the Microchip data sheet, it seems that many of those bit patterns map to each other. And since T1_CLK_OUT is defined as 0x08, that suggests it turns on the Timer 1 oscillator, which, by the way, does enable an output for the Timer 1 clock as a necessary part of the Timer 1 oscillator. Also consider that none of the other setup_timer1() bits defined by CCS seem to have anything to do with enabling the Timer 1 oscillator, I would say that is exactly what T1_CLK_OUT does. Perhaps CCS should have named it better: T1_OSC_EN maybe?
_________________
Robert Scott
Real-Time Specialties
Embedded Systems Consulting
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 14, 2008 11:04 am     Reply with quote

Quote:
What does "T1_CLK_OUT" do when configuring timer 1 ?

This post shows what it does, in terms of affecting the T1CON register
programming:
http://www.ccsinfo.com/forum/viewtopic.php?t=29156&start=7

This post has an example program that uses it:
http://www.ccsinfo.com/forum/viewtopic.php?t=28158&start=8
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