Init_HSCMP
 
Component Init_HSCMP for COLDFIREV1
High Speed Comparator Init Component
Component Level: Peripheral Initialization
Properties:
(Properties are parameters of the component. Please see the Embedded Components page for more information.)
  • Component name - Name of the component.
  • Device - HSCMP Device module
  • Settings - Common HSCMP module settings.
    • Sample - Enable/Disable sampling mode.

      There are 2 options:
      • Disabled: Sampling mode NOT selected.
      • Enabled: Sampling mode selected.

    • Windowing - Enable/Disable window mode on ACO signal.

      There are 2 options:
      • Disabled: Windowing Mode NOT Selected.
      • Enabled: Windowing Mode Selected.

    • Filter sample count - This item represents the number of consecutive samples that must agree prior to the comparator output filter accepting a new output state.
      0 = Filter is disabled.
      1 = Comparator output is simply sampled.
    • Filter sample period - This item specifies the sampling period, in peripheral clock cycles, of the comparator output filter. If Sample mode is enabled this item has no effect on Sampling period. If Sample mode is disabled setting this item to value 0 disables the filter.
    • Sampling period - Shows sampling period of the comparator output filter (for information only).
      If sample mode is enabled filter clock is fed from external signal.
      This item is influenced by the Filter sample period and the Bus clock(CPU), if Sample is disabled.
    • Invert control - Enable/Disable inversion of the differential comparator output. It is also driven to the COUT output (on both the device pin and as SCR[COUT]) when Output Pin is Disabled.

      There are 2 options:
      • Do NOT invert: Do NOT invert the comparator output
      • Invert: Invert the output of the analog comparator.

    • Comparator output select - Selects filtered/unfiltered comparator output of HSCMP.

      There are 2 options:
      • Filtered: Set CMPO equal to COUT (filtered comparator output)
      • Unfiltered: Set CMPO equal to COUTA (unfiltered comparator output)

    • Power mode - This item sets speed and power consummation of analog comparator.

      There are 2 options:
      • Power Saving: Power Savings Mode Selected.
      • High Speed: High Speed Comparison Mode Selected.

    • Interrupt in Stop mode asserted by - This item sets CFR and CFF flags sensitivity in stop mode.

      There are 2 options:
      • Level: CFR/CFF are Level Sensitive in STOP mode. CFR will be asserted when COUT is high. CFF CFR/CFF are Level Sensitive in STOP mode. CFR will be asserted when COUT is high. CFF will be asserted when COUT is LOW.
      • Edge: CFR/CFF are Edge Sensitive in STOP mode. An active low-to-high transition must be seen on COUT to assert CFR, and an active high-to-low transition must be seen on COUT to assert CFF.

  • Pins/Signals - Module pins/signals settings.
  • Interrupts - Interrupts settings of the module.
    • Rising or Falling compare - Rising/Falling compare interrupt.
      • Interrupt - Interrupt vector (for information only).
      • Only if priority supported
      • Rising compare interrupt - Enable/Disable the rising edge detected interrupt.

        There are 2 options:
        • Disabled: Comparator rising interrupt disabled.
        • Enabled: Comparator rising interrupt enabled.

      • Falling compare interrupt - Enable/Disable the falling edge detected interrupt.

        There are 2 options:
        • Disabled: Comparator falling interrupt disabled.
        • Enabled: Comparator falling interrupt enabled.

      • Setting supported for MCF51AG128_64 MCF51AG128_80 only
        • DMA on compare - Enable/Disable the DMA request on compare.

          There are 2 options:
          • Disabled: DMA request on compare disabled.
          • Enabled: DMA request on compare enabled.

      • ISR Name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
        Note: The routine must handle all interrupt flags correctly. The routine must be implemented in the user code, it is not generated by Processor Expert. Find external prototypes of the ISRs in the component module header file.
  • Initialization - Initialization options of the module
    • Comparator module - Enables the Analog Comparator Module. When the module is not enabled, it remains in the off state, and consumes no power.

      There are 2 options:
      • Disabled: Analog comparator disabled.
      • Enabled: Analog comparator enabled.

    • Initial Positive Input - Selects the initial positive input to the HSCMP module.

      There are 4 options:
      • P1: Positive Input1
      • P2: Positive Input2
      • P3: Positive Input3
      • P4: Positive Input4

    • Initial Negative Input - Selects the initial negative input to the HSCMP module.

      There are 4 options:
      • M1: Negative Input1
      • M2: Negative Input2
      • M3: Negative Input3
      • M4: Negative Input4

    • Call Init method - The Init method of the component may be called after a power-on or reset (in initialization code) by PE.
      yes - The Init method is called by PE.
      no - The Init method is not called by PE, it should be called in the user's code.