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

setup_timer_0 function arguments

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



Joined: 25 Nov 2007
Posts: 48

View user's profile Send private message

setup_timer_0 function arguments
PostPosted: Thu Dec 06, 2007 3:20 pm     Reply with quote

Hello,
we are using "RTCC_EXT_L_TO_H" in the setup_timer_0 function arguments
But, what does this perform ?
anyone knows, please inform me.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Thu Dec 06, 2007 6:15 pm     Reply with quote

RTCC_INTERNAL means you are going to use the internal clock as your timing source and use it as a timer.

RTCC_EXT_L_TO_H mean you are going to use an EXTernal source (an input on the pin, T0CKI, that is assigned to this counter) and it will increment on the Low to High transition.

RTCC_EXT_H_TO_L means the same thing but will increment on the High to Low transition of the input.

Look at the data sheet for your PIC and look at the Timer0 section. There's a block diagram that shows how the hardware is arranged and might make more sense.

Ronald
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