Init_AWT
 
Component Init_AWT for HCS08
AutoWake-up Timer module (AWT)
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 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. 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 AWT module - Select yes/no to enable AutoWake-up Timer module.
      This item modifies the AWTEN bit in the AWTCON register.