viod BcdHex(viod)
{
unsigned short int *OutAdd
unsigned char *SrcAdd,i
unsigned short int dat,x
SrcAdd=0x30
OutAdd=0x40
x=1
*OutAdd =0
*OutAdd += (SrcAdd[0]&0x0F)*xx *= 10
*OutAdd += (SrcAdd[0]>>4)*x x *= 10
*OutAdd += (SrcAdd[1]&0x0F)*xx *= 10
*OutAdd += (SrcAdd[1]>>4)*x x *= 10
*OutAdd += (SrcAdd[2]&0x0F)*xx *= 10
}
给单片机写程序的步骤至少有以下几点:
熟悉或熟练掌握一门编程语言。
准备、配置好一种编译软件。
准备、配置好目标单片机的烧录装置。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)