Init_RTC
 
Component Init_RTC for HC08
Real Time Clock (RTC)
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 RTC device module.
  • Settings - Common RTC module settings.
  • Interrupts - Interrupts settings of the module
    • Interrupt - Interrupt vector (for information only).
    • Alarm interrupt - Enable/disable Alarm interrupt.
      This item modifies the ALMIE bit in the RTCCR1 register.
    • Chronograph interrupt - Enable/disable Chronograph interrupt.
      This item modifies the CHRIE bit in the RTCCR1 register.
    • Day interrupt - Enable/disable Day interrupt.
      This item modifies the DAYIE bit in the RTCCR1 register.
    • Hour interrupt - Enable/disable Hour interrupt.
      This item modifies the HRIE bit in the RTCCR1 register.
    • Minute interrupt - Enable/disable Minute interrupt.
      This item modifies the MINIE bit in the RTCCR1 register.
    • Second interrupt - Enable/disable Second interrupt.
      This item modifies the SECIE bit in the RTCCR1 register.
    • Timebase 1 interrupt - Enable/disable Timebase 1 interrupt.
      This item modifies the TB1IE bit in the RTCCR1 register.
    • Timebase 2 interrupt - Enable/disable Timebase 2 interrupt.
      This item modifies the TB2IE bit in the RTCCR1 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 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 user's code
    • Enable real time clock - Set yes/no to enable RTC module.
      This item modifies the RTCE bit in the RTCCR2 register
    • Enable chronograph - Set yes/no to enable chronograph.
      This item modifies the CHRE bit in the RTCCR2 register.