unsigned char StopTime[6]={0x99,0x04,0x17,0x12,0x20,0x01};//BCD码 时间99-04-17 12-20-01
void PtrStopTimeMin(int m,unsigned char buf[])
{
int i;
char out[2];
for(i=4;i<5;i++)// &acute;ò&Oacute;&iexcl;·&Ouml;
{
char t_H;
char t_L;
out[0]=(buf>>4)+0x30;
out[1]=(buf&0x0f)+0x30;
send_data_uart1(out[0]);
send_data_uart1(out[1]);
}
} |