82
K
A
DAK
AMX Timing Control
5.5 Time/Date Manager
Most real-time systems require the maintenance of a calendar clock. The AMX
Time/Date Manager provides this facility.
The Y2K compliant calendar clock maintained by the Time/Date Manager includes
second, minute, hour, day, month and year. Leap year is accounted for. The day of the
week (Mon to Sun) is also maintained.
An application Scheduling Procedure can be connected to the calendar clock to provide
activity scheduling based on the time of day.
The Time/Date Manager includes a set of service procedures for use by application tasks,
Timer Procedures, Interrupt Service Procedures and Restart Procedures. These include:
ajtdg AATDG Get Time and Date
ajtds AATDS Set Time and Date
ajtdf AATDF Format Time and Date as an ASCII string
Several conflicts always arise with the maintenance of time and date. These conflicts
arise when:
1) the clock is trying to update the time and date while
2) a task is trying to read the time and date and
3) another task is trying to set the time and date.
The conflicts are even more pronounced if separate calls are required to get both time and
date. The Time/Date Manager resolves these conflicts.