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
Posted: Thu Dec 06, 2007 6:15 pm
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.
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