Init_ACMP
 
Component Init_ACMP for HCS08
Freescale Analog Comparator (ACMP)
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 - 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. 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
    • Call Init method - The Init method of the component may be called after 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 user s code
    • Enable module - This item enables or disables the module.
      This item modifies the ACME bit in the ACMPxSC register.