FreeCntr
 
 
 Bean FreeCntr
 
Free running counter
Low Level Bean

This bean implements a free running counter for time measurement. The bean doesn't contain SW extension of HW counter. The events are caused by a hardware timer that is set by Processor ExpertTM to generate the events with a specified frequency/period.

The bean can return a content of the counter. Period can be changed too. Refer to the corresponding bean methods.


Version specific information for HCS12 derivatives
The bean occupies the entire timer with all its compares, captures and so on due to the method SetCompare() that makes sharing of timer impossible. Methods Enable() and Disable() are not supported for ECT/TIM/TIMx HW because a part of this HW can be used by pulse accumulator. Method Reset() can be generated only for Modulus counter because ECT/TIM/TIMx HW does not allow to write to the counter register in normal chip mode.


This bean belongs to the category: CPU Internal Peripherals-Timer



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.