Difference between revisions of "RTC"
Line 35: | Line 35: | ||
| Return Value|| | | Return Value|| | ||
|- | |- | ||
− | | Description || | + | | Description || This function is used to update the Time(hh,mm,ss) of Ds1307 RTC.<br />The new time is updated into the non volatile memory of Ds1307.<br /> |
+ | Note: The I/P arguments should of BCD,<br />like 0x12,0x39,0x26 for 12hr,39min and 26sec. | ||
|- | |- | ||
− | | Usage || | + | | Usage || RTC_SetTime(0x10,0x40,0x20); //All the arguments should be in BCD format |
|} | |} | ||
− | |||
− | |||
− | |||
==RTC_SetDate== | ==RTC_SetDate== |
Revision as of 10:57, 10 January 2015
Contents
[hide]RTC
RTC_Init
{{#Widget:LibTable}}Defination | This function is used to Initialize the Ds1307 RTC. |
Input Arguments | none |
Return Value | none |
Description | This function is used to Initialize the Ds1307 RTC. |
Usage | RTC_Init(); |
RTC_SetTime
{{#Widget:LibTable}}Defination |
|
Input Arguments |
|
Return Value | |
Description | This function is used to update the Time(hh,mm,ss) of Ds1307 RTC. The new time is updated into the non volatile memory of Ds1307. Note: The I/P arguments should of BCD, |
Usage | RTC_SetTime(0x10,0x40,0x20); //All the arguments should be in BCD format |
RTC_SetDate
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
RTC_GetTime
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
RTC_GetDate
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |