RTC
 
Component RTC
Real Time Clock
Component Level: High
Events:
(Events are call-back functions called when an important event occurrs. Please see the Embedded Components page for more information.)
  • EventModule - Name of the user module (without extension), where the events from this component are placed.
  • OnAlarm - This event is called whenever an actual time is equal to the alarm time. (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent" (event is available only when the property Interrupt service/event is set to - "Enabled")

      ANSIC prototype: void OnAlarm(void)
    • Priority - OnAlarm priority. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.

  • Events for HC08 derivatives.
    • OnChronograph - This event is called each ticks of the chronograph counter (each 1/100 or 1/128 of second) . (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent"

        ANSIC prototype: void OnChronograph(void)
      • Priority - Priority of the event routine. For details see description below of the page.

    • OnDay - This event is called on every increment of the day counter. (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent"

        ANSIC prototype: void OnDay(void)
      • Priority - Priority of the event routine. For details see description below of the page.

    • OnHour - This event is called on every increment of the hour counter. (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent"

        ANSIC prototype: void OnHour(void)
      • Priority - Priority of the event routine. For details see description below of the page.

    • OnMinute - This event is called on every increment of the minute counter. (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent"

        ANSIC prototype: void OnMinute(void)
      • Priority - Priority of the event routine. For details see description below of the page.

  • OnSecond - This event is called on every increment of the second counter. (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent" (event is available only when the property Interrupt service/event is set to - "Enabled")

      ANSIC prototype: void OnSecond(void)
    • Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.

  • Events for HC08 derivatives.
    • OnTimebase1 - This event is called on every increment of the timebase 1 counter (every 0.5 second). (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent"

        ANSIC prototype: void OnTimebase1(void)
      • Priority - Priority of the event routine. For details see description below of the page.

    • OnTimebase2 - This event is called on every increment of the timebase 2 (every 0.25 second). (only when the component is enabled - "Enable" and the events are enabled - "EnableEvent"

        ANSIC prototype: void OnTimebase2(void)
      • Priority - Priority of the event routine. For details see description below of the page.


For each generated event it is possible to set: