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.

[参考译文] MSP430F5528:MSP430G2ET + TRF7970A ser.write ()如何清除发送和接收缓冲区并在主循环中重新启动

Guru**** 2482105 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1263483/msp430f5528-msp430g2et-trf7970a-ser-write-how-to-clear-the-transmit-and-receive-buffers-and-restart-in-main-loop

器件型号:MSP430F5528

电路板:MSP430G2ET + TRF7090A RFID BoosterPack
系统:Windows 10 Enterprise x64

Im 在希望通过串行连接读出 UID 的 Windows 上编写 Python 脚本。  
我想不停地循环这个、但我的程序会在大约23 ser.read 处停止。  
我猜的是某种传输或接收缓冲区正在填满每个调用、并且它需要在每次成功读取后进行复位。
程序停止的调用量是一致的。 因此,我认为这不是一个问题与一些时间。睡眠问题。



提前感谢您的帮助。 regards.e2e.ti.com/.../Get-UID.txte2e.ti.com/.../2870.main.txt