我用的是starterware 提供的uart例程,想把一个int型变量用串口发送,写了一个把int转为4个char的子函数,传回来的数总是不对!转换子函数如下:
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.
可以通过CCS 的MEMORY BROWser来查看内存的内容来分析转换是否正确。
查看了,转换出来的数据不对........但是我在用MCU的时候也是这样写的转换代码,不知道问题出在哪里