EventCntr8
 
 
 Bean EventCntr8
 
Event counter 8-bit

Parameters of the bean.

Properties:
  • Bean name - Name of the bean.
  • Counter - Counter register of the timer.
  • 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.
  • Event - Event settings.
    • Counter input pin - Counter external clock pin.
    • Input pin signal - Signal name of input pin.
    • Pull resistor - Setting of pull resistor.

      There are 6 options:

      • no pull resistor: Input without pull resistor is required
      • pull up: Input with pull-up resistor is required
      • pull down: Input with pull-down resistor is required
      • pull up or no pull: Input with pull-up resistor is preferred, but no-pull is acceptable
      • pull down or no pull: Input with pull-down resistor is preferred, but no-pull is acceptable
      • autoselected pull: There are no special requirements for pull resistors

    • Settings no supported for HC08 only.
      • Edge - Type of signal edges that are counted.

        There are 4 options:

        • rising or falling edge: One of the following edge type will be selected: rising or falling
        • rising edge: Rising edge required
        • falling edge: Falling edge required
        • both edges: Both edges (rising and falling) required

  • Initialization - Initial settings (after power-on or reset).
  • The following items are visible only if integration of Processor Expert with Simulink supported.
    • Bean name - Name of the bean.
    • Edge - Type of signal edges that are counted.

      There are 4 options:

      • rising or falling edge: One of the following edge type will be selected: rising or falling
      • rising edge: Rising edge required
      • falling edge: Falling edge required
      • both edges: Both edges (rising and falling) required

    • Mode - Counting mode.
      Simple counter - counter counts up to 256 cycles and then overflows.
      Repetitive - counter counts to a given number of cycles and after that it invokes OnEnd user event.
    • Iterations before action - Number of cycles to invoke the OnEnd event. (Property is only available when the bean is in Repetitive mode)



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