Difference between revisions of "RTC"
Line 83: | Line 83: | ||
|- | |- | ||
| Usage ||<syntaxhighlight lang = "c"> uint8_t hour,min,sec; | | Usage ||<syntaxhighlight lang = "c"> uint8_t hour,min,sec; | ||
− | RTC_GetTime(&hour,&min&sec); //Now the hour,min,sec | + | RTC_GetTime(&hour,&min&sec); //Now the hour,min,sec will have the time in BCD format.</syntaxhighlight> |
|} | |} | ||
Revision as of 11:25, 10 January 2015
Contents
[hide]RTC
RTC_Init
{{#Widget:LibTable}}Defination |
|
Input Arguments | none |
Return Value | none |
Description | This function is used to Initialize the Ds1307 RTC. |
Usage |
|
RTC_SetTime
{{#Widget:LibTable}}Defination |
|
Input Arguments |
|
Return Value | none |
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_SetDate
{{#Widget:LibTable}}Defination |
|
Input Arguments |
|
Return Value | none |
Description | This function is used to set Date(dd,mm,yy) into the Ds1307 RTC. The new Date is updated into the non volatile memory of Ds1307. Note: The I/P arguments should of BCD. |
Usage |
|
RTC_GetTime
{{#Widget:LibTable}}Defination |
|
Input Arguments |
|
Return Value | none |
Description | This function is used to get the Time(hh,mm,ss) from Ds1307 RTC. Note: The time read from Ds1307 will be of BCD format, |
Usage |
|
RTC_GetDate
{{#Widget:LibTable}}Defination |
|
Input Arguments |
|
Return Value | none |
Description | This function is used to get the Date(d,m,y) from Ds1307 RTC. Note: The date read from Ds1307 will be of BCD format, |
Usage |
|