Init_RTC
 
Component Init_RTC for HC08
Real Time Clock (RTC)
Device Initialization
(Description of the component parameters.)
  • 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.
  • Initialization - Initialization options of the module.
    • 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.