Using uC-Clk

Using uC-Clk

µC/Clk is a fairly easy module to use:

  • Your application must first configure µC/Clk parameters (see uC-Clk Configuration).

  • Your application must then initialize the µC/Clk module by calling Clk_Init.

  • Set the current date/time. You can do this in a number of ways:

  • Have an end-user enter the current date and time from a user interface that your application provides;

  • Read the current date/time from a real-time clock chip;

  • Obtain the current date/time from a NTP (Network Time Protocol) server if you use µC/TCP-IP in conjunction with µC/SNTPc.

  • Your application can now get the current date/time using a variety of µC/Clk API functions.