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.
最近的项目CPU负荷有点高,想把485通信改成FIFO,这样就可以减少很多中断次数。
但问题是:发送、接收的数据长度不定,FIFO的级数怎么确定呢?
比如第一次第一次接收10个字节,那我可以设置中断级位10,接收完就会有匹配中断;但下次上位机也许发送17个字节,这时中断级数就对应不上了,该怎么处理呢?
高手呢,坐等高手