Init_IRQ
 
Component Init_IRQ for HCS08
External Interrupt Module (IRQ)
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 IRQ device module.
  • Pins - Module pins/signals settings.
    One Item of the list looks like:
    Pin IRQ1 - Settings of external interrupt pin.
    • Pin - External interrupt pin
    • Pin signal - Signal name of the external interrupt pin
    • Pin enable - Enable IRQ pin function. If is set to yes the IRQ pin can be used as an interrupt request.
      This item modifies the IRQPE bit in the IRQSC register.
    • Pull resistor - Setting of the pull resistor of the external interrupt pin.
      If the IRQ pin is shared with IO pin, this item modifies the respective bits in the respective port pull enable register and the IRQPDD bit in the IRQSC register.
      If the IRQ pin is not shared with IO pin, this item modifies the IRQPDD bit in the IRQSC register.
      MC9S08RCx, MC9S08RDx, MC9S08REx, MC9S08RGx derivatives: This item modifies only the respective bits in the respective port pull enable register.
      MC13214 derivatives, MC9S08AWxx and MC9S08Gx family: This derivatives does not have configurable pull resistor and this item has no influence.
      MC9S08JR12 derivatives: This item modifies the IRQPEB bit in the SOPT1 register.

      There are 3 options:
      • no initialization: No initialization of the pull-up resistor or setting not available.
      • no pull resistor: No internal pull-up resistor.
      • pull enable: Internal pull up or pull down resistor present.

    • Detection mode - Select either edge-only or edge-and-level detection mode on the external interrupt pin.
      This item modifies the IRQMOD bit in the IRQSC register.

      There are 2 options:
      • edge only: Interrupt event on falling/rising edges only.
      • edge and level: Interrupt event on falling/rising edges and low/high levels.

    • Settings not supported for derivatives.
      • Edge select - Select the polarity of edges or levels on the external interrupt pin.
        This item modifies the IRQEDG bit in the IRQSC register.

        There are 2 options:
        • falling edge and/or low level: Interrupt is falling edge or falling edge/low-level sensitive.
        • rising edge and/or high level: Interrupt is rising edge or rising edge/high-level sensitive.

    • Interrupts - IRQ interrupt settings
      • Interrupt - Interrupt vector (for information only)
      • Settings only if "CPU" support "Interrupt priority"
      • IRQ interrupt - Enable/disable IRQ events to generate an interrupt request.
        This item modifies the IRQIE bit in the IRQSC register.
      • 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 bean module header file.
  • Initialization - Initialization options of the module.
    • 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