Init_PPI
 
Component Init_PPI for HC08
Programmable Periodic Interrupt (PPI)
Device Initialization
(Description of the component parameters.)
  • Device - Selection of the PPI device module.
  • Settings - Common PPI module settings.
    • Clock settings - Clock/timing settings of the module.
      • Clock source - The property sets clock source of module.
        This item modifies the PPI1CLKS[0:1] bits in the PPI1SCR register.
      • Prescaler - The property sets interrupt rate of module.
        This item modifies the PPI1IE[0:2] bits in the PPI1SCR register.
      • Interrupt timeout - Period of the interrupts generation (for information only).
        This item is influenced by the following properties: Clock source, Prescaler.
  • Pins - Module pins/signals settings.
    • External clock source - External clock source pin.
      This item is influenced by the following properties: Clock source.
      The following items are available only if the group is enabled (the value is "Enabled"):
      • Source pin - Name of the pin used as external clock input.
  • Interrupts - Interrupts settings of the module.
    • Interrupt - Interrupt vector (for information only).
    • Programmable periodic interrupt - Enable/disable PPI interrupt.
      This item modifies the PPI1MSK bit in the PPI1SCR 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.