如果直接将8位数据左移24位或者16位都会警告,程序下载进去后的到的数据有错
|
STM8S003F3U6 请求各位大佬支援,但是遇到如下问题。。。这样就一定是这颗芯片的问题吗?
STVD如何生成库文件
STM8 flash 库函数 startaddress = startaddress + ((uint32_t)BlockNum * FLASH_BLOCK_S
stm 8 flash 在RAM运行代码的问题,是不是库函数有问题 Library call (?sll32_l0_l0_a) from within a
STM 有能替代MCHC912B32CFUE8 / NXP的型号吗?
STM8S的CAN总线使用
STM8L151在使用DAC功能后严重发热
STM8 IIC SLAVE 400K
STM8S 定时器1互补输出pwm
STM8S003F3 NRST电压低,无法开机
因此temp的值等于t4的值。
LZ可以分步进行。
temp = t1;
temp <<= 8;
temp = t2;
temp <<= 8;
temp = t3;
temp <<= 8;
temp = t4;
这样,左移的是temp,就不会溢出了。
temp |= t2?
对!
应该是temp |= t2,temp |= t3,temp |= t4.