标签:单片机 51单片机 sign int 通过 bsp signed sig temp
/*此代码在 51单片机上验证通过,51为8位单片机,char占1个字节,long占四个字节*/ int main(void) { unsigned long iii; unsigned char temp[4]={0xEC,0xEF,0x45,0x12}; // 把四个 unsigned char 拼成一个 unsigned long. iii=*(unsigned long *)tempTime; SendString(string); // 把一个 unsigned long 分成四个 unsigned char. *(unsigned long *)tempTime = iii; SendString(tempTime); while(1); }
标签:单片机 51单片机 sign int 通过 bsp signed sig temp
原文地址:https://www.cnblogs.com/Luad/p/10661068.html