Init_TBM
 
Component Init_TBM for HC08
Timebase Module (TBM)
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 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. 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.
  • 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
    • Enable TBM module - Select yes/no to enable Timebase module.
      This item modifies the TBON bit in the TBCR register.