I'm a newbie with PIC. I need to know how to set a conter, if example i want an event every seconde.
Juste an explanation on how to calculate the prescaler will help. Because i ave no idea how to set it!
What this mean
setup_counters( RTCC_INTERNAL, RTCC_DIV_256)
What is RTCC_INTERNAL and the divisor
Tanks in advance for your help and support
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
Posted: Fri May 21, 2004 4:33 pm
RTCC_INTERNAL defines the source of Timer0 and RTCC_DIV_256 sets the prescaler. You look at the device datasheet under Timer0, it explains everything very clearly.
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