例如、我想将整数12345发送到 UART、我就是这样做的:
int integer to _send = 12345;
while (integer to _send){
UCA0TXBUF =整数_发送%10 + 48;
integer to _send /= 10;
}
所有这些都在 USCIAB0TX_ISR 例程中。
我在计算机的 UART 端口中读取了54321。
如何按正确的顺序获取数字?
非常感谢您的观看!
JM
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.
例如、我想将整数12345发送到 UART、我就是这样做的:
int integer to _send = 12345;
while (integer to _send){
UCA0TXBUF =整数_发送%10 + 48;
integer to _send /= 10;
}
所有这些都在 USCIAB0TX_ISR 例程中。
我在计算机的 UART 端口中读取了54321。
如何按正确的顺序获取数字?
非常感谢您的观看!
JM