Init_TBM
 
Component Init_TBM for HC08
Timebase Module (TBM)
Device Initialization
(Description of the component parameters.)
  • Device - Selection of the TBM device module.
  • Settings - Common TBM module settings.
    • Clock settings - Clock/timing settings of the module.
      • Prescaler - The property sets interrupt rate of module.
        This item modifies the TBR0, TBR1 and TBR2 bits in the TBCR register.
      • Interrupt frequency - Frequency of the interrupts generation (for information only).
        This item is influenced by the following properties: Rate Selection, Timebase Clock Select.
      • Interrupt period - Period of the interrupts generation (for information only).
        This item is influenced by the following properties: Rate Selection, Timebase Clock Select.
  • Interrupts - Interrupts settings of the module.
    • Interrupt - Interrupt vector (for information only).
    • Timebase Interrupt - Enable/disable TBM interrupt.
      This item modifies the TBIE bit in the TBCR 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.
  • Initialization - Initialization options of the module.
    • Enable TBM module - Select yes/no to enable Timebase module.
      This item modifies the TBON bit in the TBCR register.