我用伪中断方式的批量上传256的整数倍个字节,为什么读到0个字节?请各位老师指点迷津.
另外,我从上位机将0x03FE赋给unsigned int的变量,然后传送给MCS-51单片机的unsigned int类型变量length,然后用(unsigned char *)(&length)[0],(unsigned char *)(&length)[1],(unsigned char *)(&length)[2],(unsigned char *)(&length)[3]去访问,结果这几个字节的内容依次为:0x00,0xFE,0x03,0x00,而不是0xFE,0x03,0x00,0x00,或是0xFE,0x03?
热门产品 :
CH585: 集成高速USB和NFC的蓝牙MCU