C51: CONVERTING BIG ENDIAN TO LITTLE ENDIAN

C51: CONVERTING BIG ENDIAN TO LITTLE ENDIAN

瀏覽:1000
日期:2025-12-19
QUESTION: I have a memory mapped 16 bit peripheral that is Little Endian in format. How do I swap the order of the bytes in the word that I write out to the peripheral? ANSWER: There are numerous ways to swap bytes in a 16-bit value. The following example...看更多