TimeDate
 
Component TimeDate
Time and date
Component Level: High
Properties:
(Properties are parameters of the component. Please see the Embedded Components page for more information.)
  • Component name - Name of the component.
  • Periodic interrupt source - Periodic interrupt source: compare register, reload register, free running counter, time base counter function, RTI or component RTIshared (the pull-down menu offers timer types).
    Compare and reload registers generate interrupt on matching their value with the counter, free-running generates interrupt on the counter overflow. RTI and time base module generate a periodic interrupt by dividing the crystal or system clock frequency.
  • Counter - Name of the Counter used by this component (for information only).
  • Interrupt service/event - Component requires the interrupt service for the timer function. The component functionality depends on the interrupt service and will not operate if the CPU interrupts are disabled. For details please refer to chapter "interrupt service in the component's generated code".
    The following items are available only if the group is enabled (the value is "Enabled"):
    • Interrupt - Interrupt vector invoked from the timer (for information only).
    • Interrupt priority - Priority of the interrupt associated with the timer.
  • Resolution - Resolution and precision of a time and date. It is necessary to specify both a value and a unit (see Timing Setting Syntax). The setting can be made with the help of the Timing dialog box that gets open when clicking on button (...).
  • Component uses entire timer - If this property is set to yes, it prevents the used timer peripheral from being shared by other components. If the timer is not shared, the component can use every subsystem of the timer, more actions may be done by the peripheral instead of driver code, e.g. generated code can be more efficient.
  • Initialization - Initial settings (after power-on or reset).
    • Enabled in init. code - The component is enabled after power-on or reset (in initialization code).
    • Time - Time set in initialization code.
    • Date - Date set in initialization code (date is supported only if method SetDate is generated).
  • CPU clock/speed selection - Settings for the CPU speed modes: if the component is supported or not.
    For details about speed modes please refer to page Speed Modes Support.