Setrtctime - Advantech ADAM-5511 Manual

Table of Contents

Advertisement

SetRTCtime

Syntax:
void SetRTCtime(unsigned char Time, unsigned char data)
Description:
Sets date and time of the real-time clock.
Parameter
Time
data
Return value:
None.
Example:
void main()
{
unsigned char sec=0, min=0, hour=12;
//set current time 12:00:00
SetRTCtime(RTC_sec,sec);
SetRTCtime(RTC_min,min);
Description
RTC_sec
the second
RTC_min
the minute
RTC_hour
the hour
RTC_day
the day
RTC_week day of the week
RTC_month
the month
RTC_year
the year
RTC_century the century
New contents.

Advertisement

Table of Contents
loading

Table of Contents