FreeCntr16
 
Component FreeCntr16
Time measurement counting periodic interrupt ticks in 16-bit SW counter (suitable for longer time periods).
Component Level: High
This component 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 Expert to generate the events with a specified frequency/period.

The component can return the measured time (from the last reset) in the main oscilator ticks or in microseconds, miliseconds or seconds. Refer to the corresponding component methods. If the counter overflows, all these methods return error code and the user must invoke a "Reset" method to clear the counter.