|
|
|
Component
Init_IRQ for HC08
External Interrupt Module (IRQ)
Device Initialization
(Description of the component parameters.)
-
Device - Selection of the IRQ device module.
-
Settings supported for HC08 JB,JG,JT derivatives only.
-
Settings - Common IRQ module settings.
-
Trigger interrupt - Enable/disable the interrupt function on the PTE4 pin to trigger the IRQ interrupt. If set to enable (and if the USB module is disabled) then PTE4 pin is configured for interrupt function to the IRQ interrupt. Enable setting also enables the internal pullup on PTE4 pin.
This item modifies the PTE4IE bit in the IOCR register.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Pin - Trigger pin used as interrupt input to trigger the IRQ interrupt.
-
Pull resistor - Setting of the pull resistor of the trigger pin.
This item modifies the PTE4P bit in the POCR 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 up: Internal pull-up resistor.
-
Pins - Module pins/signals settings.
One Item of the list looks like:
Pin IRQ1 - Group of external interrupt pin. Item enables settings and allocation of the IRQ pin.
-
Pin - External interrupt pin
-
Settings supported for QB, QC, QL, QT, QY and LB8 derivatives only.
-
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 IRQEN bit in the CONFIG2 register.
-
Pull resistor - Setting of the pull resistor of the external interrupt pin.
AP derivatives: This item modifies the PUC0ENB bit in the INTSCR2 register. SR derivatives: This item modifies PTBPUE6 bit in the INTSRC2 register. QB, QC, QL, QT, QY, JK, JL and LB8 derivatives: This item modifies the IRQPUD bit in the CONFIG2 register. JB, JR, JT derivatives: This item modifies the IRQPD bit in the IOCR register. Other HC08 derivatives does not have configurable pull resistor.
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 up: Internal pull-up resistor.
-
Triggering sensitivity - Select triggering sensitivity of the external interrupt pin.
AP, SR derivatives: This item modifies the MODEx bit in the INTSCRx register. RF2, RK2 derivatives: This item modifies the MODEI bit in the INTKBSCR register. AB, AS, AZ, JB, JG, JT, JR, KX, MR and EY16 derivatives: This item modifies the MODE bit in the ISCR register. Other HC08 derivatives: This item modifies the MODE bit in the INTSCR register.
There are 2 options:
- falling edge: External interrupt requests on falling edges only.
- falling edge and low level: External interrupt requests on falling edges and low levels.
-
IRQ interrupt - IRQ interrupt settings
-
Interrupt - Interrupt vector (for information only)
-
IRQ interrupt - Enable/disable IRQ interrupt requests.
AP, SR derivatives: This item modifies the IMASKx bit in the INTSCRx register.
RF2, RK2 derivatives: This item modifies the IMASKI bit in the INTKBSCR register.
AB, AS, JB, JG, JT, JR, KX, MR and EY16 derivatives: This item modifies the IMASK bit in the ISCR register.
Other HC08 derivatives: This item modifies the IMASK bit in the INTSCR 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.
|