FreeCntr16
 
 
 Bean FreeCntr16
 
Free running 16-bit counter
High Level Bean

This bean implements a free running counter for time measurement. The 16-bit software counter counts events that occur at regular time intervals. 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 the measured time (from the last reset) in the main oscilator ticks or in microseconds, miliseconds or seconds. Refer to the corresponding bean methods. If the counter overflows, all these methods return error code and the user must invoke a "Reset" method to clear the counter.


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.