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

(newbie): how setting timer0?

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



Joined: 18 Feb 2005
Posts: 4

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

(newbie): how setting timer0?
PostPosted: Fri Feb 18, 2005 4:59 am     Reply with quote

I use PIC16F54.
I must setting :
T0CS = 1 (transition on T0CKI pin)
T0SE = low-to-high
No pprescaler division and not WDT then:
Prescaler WDT 1:1

It 's exatc:
setup_timer_0(RTCC_EXT_H_TO_L | RTCC_DIV_1);
setup_counters(RTCC_EXT_H_TO_L| ?????? );

Sorry for stupid question. Embarassed
Thanks a lot for reponse. Laughing
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Feb 18, 2005 9:14 am     Reply with quote

setup_counters() was used in older versions of the compiler. It is still available for backward compatibility but it is recommended to use setup_timer_0() now.

Ronald
ciccio



Joined: 18 Feb 2005
Posts: 4

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

and then....
PostPosted: Fri Feb 18, 2005 9:20 am     Reply with quote

then i write only:
setup_timer_0(RTCC_EXT_H_TO_L | RTCC_DIV_1);
for setting my timer?

Thanks thanks thanks...
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