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.
Thanks a lot for reponse.
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Fri Feb 18, 2005 9:14 am
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
and then....
Posted: Fri Feb 18, 2005 9:20 am
then i write only:
setup_timer_0(RTCC_EXT_H_TO_L | RTCC_DIV_1);
for setting my timer?
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