This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430F1611:十六进制至十进制转换

Guru**** 2390755 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/653001/msp430f1611-hexadecimal-to-decimal-conversion

器件型号:MSP430F1611

我目前正在使用 TelosB 模块、并可以将其进行通信。

现在、我尝试将这些十六进制打印为十进制、因为这决定了序列号的值。

如果您看一下代码、我真正感兴趣的数字是从 ASN #1到#5、并且每个 ASN 以字节的形式进行选通。

有人可能会帮我解决如何将5字节十六进制转换为十进制并在屏幕上打印的问题吗?

感谢 youe2e.ti.com/.../2110.01bsp_5F00_radio_5F00_rx.ce2e.ti.com/.../0827.uart.c