Contents
RTC
RTC_Init
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
Defination | void RTC_SetTime(uint8_t var_hour_u8, uint8_t var_min_u8, uint8_t var_sec_u8) |
Input Arguments | uint8_t: Hour (0x00-0x23) BCD format uint8_t: Minute (0x00-0x59) BCD format uint8_t: Second (0x00-0x59) BCD format |
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
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
RTC_GetTime
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
RTC_GetDate
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |