Init_ACMP
 
Component Init_ACMP for RS08
Freescale Analog Comparator (ACMP)
Device Initialization
(Description of the component parameters.)
  • Device - Selection of the ACMP device module.
  • Settings - Common ACMP module settings.
    • Comparator mode - Comparator mode select the flag setting mode that controls the type of compare event that sets the ACF bit.
      This item modifies the ACMOD[1:0] bits in the ACMPxSC register.
  • Pins - Module pins/signals settings.
  • Interrupts - Interrupts settings of the module
    • Compare event - Compare event interrupt settings.
      • Settings only if CPU supports interrupts
        • Interrupt - Interrupt vector (for information only)
        • Settings only if CPU supports interrup priority.
          • Priority - Priority of the compare event interrupt.
      • Compare event interrupt - Enable/disable interrupt generated when a compare event occurs. The compare event is defined by the "Comparator mode" property.
        This item modifies the ACIE bit in the ACMPxSC register.
      • Settings only if CPU supports interrupts
        • ISR name - Name of the interrupt service routine (ISR) invoked by this interrupt vector.
          The user code of the routine should handle all respective interrupt flags correctly.
  • Initialization - Initialization options of the module
    • Enable module - This item enables or disables the module.
      This item modifies the ACME bit in the ACMPxSC register.