我用偽中斷方式的批量上傳256的整數(shù)倍個(gè)字節(jié),為什么讀到0個(gè)字節(jié)?請(qǐng)各位老師指點(diǎn)迷津.
另外,我從上位機(jī)將0x03FE賦給unsigned int的變量,然后傳送給MCS-51單片機(jī)的unsigned int類(lèi)型變量length,然后用(unsigned char *)(&length)[0],(unsigned char *)(&length)[1],(unsigned char *)(&length)[2],(unsigned char *)(&length)[3]去訪(fǎng)問(wèn),結(jié)果這幾個(gè)字節(jié)的內(nèi)容依次為:0x00,0xFE,0x03,0x00,而不是0xFE,0x03,0x00,0x00,或是0xFE,0x03?