Init_PRACMP
 
Component Init_PRACMP for HCS08
Programmable Reference Analog Comparator
Device Initialization
(Description of the component parameters.)
  • Device - PRACMP Device module
  • Settings - Common PRACMP module settings
    • PRG Settings - Programmable Reference Generator module settings
      The following items are available only if the group is enabled (the value is "Enabled"):
      • PRG Input Selection - Choose the input voltage of the PRG module.

        There are 2 options:
        • Vin1: Vin1 (Vdd50, external power supply) is set as the reference voltage for PRG module.
        • Vin2: Vin2 (Vdd25, internal regulated power supply) is set as the reference voltage for PRG module.

      • PRG Output Selection - Choose the output voltage of the PRG module.

        There are 32 options:
        • 1/32 Vin: Output voltage for PRG module is 1/32 Vin.
        • 2/32 Vin: Output voltage for PRG module is 2/32 Vin.
        • 3/32 Vin: Output voltage for PRG module is 3/32 Vin.
        • 4/32 Vin: Output voltage for PRG module is 4/32 Vin.
        • 5/32 Vin: Output voltage for PRG module is 5/32 Vin.
        • 6/32 Vin: Output voltage for PRG module is 6/32 Vin.
        • 7/32 Vin: Output voltage for PRG module is 7/32 Vin.
        • 8/32 Vin: Output voltage for PRG module is 8/32 Vin.
        • 9/32 Vin: Output voltage for PRG module is 9/32 Vin.
        • 10/32 Vin: Output voltage for PRG module is 10/32 Vin.
        • 11/32 Vin: Output voltage for PRG module is 11/32 Vin.
        • 12/32 Vin: Output voltage for PRG module is 12/32 Vin.
        • 13/32 Vin: Output voltage for PRG module is 13/32 Vin.
        • 14/32 Vin: Output voltage for PRG module is 14/32 Vin.
        • 15/32 Vin: Output voltage for PRG module is 15/32 Vin.
        • 16/32 Vin: Output voltage for PRG module is 16/32 Vin.
        • 17/32 Vin: Output voltage for PRG module is 17/32 Vin.
        • 18/32 Vin: Output voltage for PRG module is 18/32 Vin.
        • 19/32 Vin: Output voltage for PRG module is 19/32 Vin.
        • 20/32 Vin: Output voltage for PRG module is 20/32 Vin.
        • 21/32 Vin: Output voltage for PRG module is 21/32 Vin.
        • 22/32 Vin: Output voltage for PRG module is 22/32 Vin.
        • 23/32 Vin: Output voltage for PRG module is 23/32 Vin.
        • 24/32 Vin: Output voltage for PRG module is 24/32 Vin.
        • 25/32 Vin: Output voltage for PRG module is 25/32 Vin.
        • 26/32 Vin: Output voltage for PRG module is 26/32 Vin.
        • 27/32 Vin: Output voltage for PRG module is 27/32 Vin.
        • 28/32 Vin: Output voltage for PRG module is 28/32 Vin.
        • 29/32 Vin: Output voltage for PRG module is 29/32 Vin.
        • 30/32 Vin: Output voltage for PRG module is 30/32 Vin.
        • 31/32 Vin: Output voltage for PRG module is 31/32 Vin.
        • Vin: Output voltage for PRG module is Vin.

    • ACMP Settings - Analog Comparator module settings
      • ACMP Mode Selection - Selects the type of compare event.

        There are 3 options:
        • Falling edge: Falling edge on output is flaged, resp. an interrupt occured.
        • Rising edge: Rising edge on output is flaged, resp. an interrupt occured.
        • Rising or falling edge: Both rising and falling edge on output are flaged, resp. an interrupt occured.

  • Pins/Signals - Module pins/signals settings
  • Interrupts - Interrupt settings of the module.
    • Interrupt - Interrupt vector (for information only).
    • Only if priority supported
    • 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.
    • ACMP interrupt - Enable/Disable ACMP interrupt.

      There are 2 options:
      • Enabled: Enabled invocation of the interrupt when compare event selected in the ACMP mode property occured.
      • Disabled: Disabled invocation of the interrupt.

  • Initialization - Initialization options of the module.