Init_AWT
 
Component Init_AWT for HCS08
AutoWake-up Timer module (AWT)
Device Initialization
(Description of the component parameters.)
  • Device - Selection of the AWT device module.
  • Settings - Common AWT module settings.
    • Clock settings - Clock/timing settings of the module.
      • Prescaler - The property sets clock rate of the module.
        This item modifies the AWTCLKDIV bits in the AWTCON register.
      • Modulo register value - The property sets modulo register.
        This item modifies the AWTCNT register.
      • Period - Period of the interrupts generation (for information only).
        This item is influenced by the following properties: Prescaler, Modulo register value.
    • Auto re-load - Enable/disable counter auto re-load function.
      This item modifies the AWTARL bit in the AWTCON register.
  • Interrupts - Interrupts settings of the module.
    • Interrupt - Interrupt vector (for information only).
    • AWT interrupt - Enable/disable AWT interrupt.
      This item modifies the AWTIE bit in the AWTCON register.
    • Settings only if CPU supports interrupt priority.
    • 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 AWT module - Select yes/no to enable AutoWake-up Timer module.
      This item modifies the AWTEN bit in the AWTCON register.