FreeCntr16
 
 
 Bean FreeCntr16
 
Free running 16-bit counter

Parameters of the bean.

Properties:
  • Bean name - Name of the bean.
  • Timer - Periodic interrupt source: compare register, reload register, free running counter, time base counter function, RTI or bean RTIshared (the pull-down menu offers timer types).
    Compare and reload registers generate interrupt on matching their value with the counter, free-running generates interrupt on the counter overflow. RTI and time base modul generate a periodic interrupt by dividing the crystal or system clock frequency.
  • Counter - Name of the counter used by this bean (for information only).
  • Interrupt service/event - Bean uses the interrupt service for the counter function.
    • Interrupt - Interrupt vector invoked from the timer (for information only).
    • Interrupt priority - Priority of the interrupt associated with the timer.
  • Prescaler - Prescaler selected for the timer. There is also a possibility to let Processor Expert decide which prescaler is the best – by selecting Auto selected prescaler.
    • Internal prescaler - Internal prescaler value.
      This item is valid only if the prescaler above is selected internal peripheral (such as for example timer) and this peripheral allows additional settings. This HW feature is supported only for several CPU architectures.
    • Internal compare - Internal compare prescaler value.
      This item is valid only if the prescaler above is selected internal peripheral (such as for example timer) and this peripheral allows additional settings. This HW feature is supported only for several CPU architectures.
  • Resolution - Frequency/period of the time value updates. It is necessary to specify both a value and a unit (see Timing Setting Syntax). The setting can be made with the help of the Timing dialog box that gets open when clicking on the button (...).
  • Same resolution in modes - Period/frequency of the generated interrupts is exactly the same in all speed modes (high, low, slow). If you select 'Yes' the timing will be kept with a tolerance of one tick. If you select 'No' timing will be kept with setting precision only.
  • Bean uses entire timer - If set, the bean occupies the entire timer with all its compares, captures and so on. The advantage is that the compare can reset the timer - a shorter event period can be reached. The disadvantage is that no other bean can use this timer.
  • Initialization - Initial settings (after power-on or reset).
  • CPU clock/speed selection - Settings for the CPU speed modes: identifies whether the bean is supported or not.
    For details about speed modes please refer to page Speed Modes Support.
  • The following items are visible only if integration of Processor Expert with Simulink supported.



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