/* Converts a 2 digit decimal to BCD format.  */
u8 RTC_ByteToBcd2(u8 Value)
/* Converts a 2 digit decimal to BCD format.  */
u8 RTC_ByteToBcd2(u8 Value)
{
	u8 bcdhigh = 0;
	while (Value >= 10) {
		bcdhigh++;
		Value -= 10;
	}
	return  ((u8)(bcdhigh << 4) | Value);
}