/* this function write time to SLCD DATA register  */
void slcd_seg_time_display(uint8_t hour, uint8_t minute, uint8_t second)
/* this function write time to SLCD DATA register  */
void slcd_seg_time_display(uint8_t hour, uint8_t minute, uint8_t second)
{
    uint8_t i = 0x00 , ch[6];
    ch[0] = hour/10;
    ch[1] = hour%10;
    ch[2] = minute/10;
    ch[3] = minute%10;
    ch[4] = second/10;
    ch[5] = second%10;
    while(slcd_flag_get(SLCD_FLAG_UPRF));
    while (i < 6){
        slcd_seg_digit_write(ch[i], i+1 , TIME);
        i++;
    }
    slcd_data_update_request();
}