how to solve overrun problem in serial communication for coldfire-523x processor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to solve overrun problem in serial communication for coldfire-523x processor

903 次查看
admin
Specialist II

Hello,

Iam working on m66k-523x(coldfire) processor, i am getting overrun problem at every 114th byte for receiving continuously, can u please suggest the solution.

 

Regards,

Raju B

标签 (1)
0 项奖励
回复
1 回复

709 次查看
TomE
Specialist II

I assume you're polling the serial port. Fix your code to see what it is doing that stops it from getting back to the UART in time. You as a programmer have to guarantee the minimum service interval for the hardware.

Rewrite your code to use interrupts that receive into a ring buffer.

If you're already using interrupts, watch out for the priority levels. You may need to make the serial port interrupt higher than other interrupts that are taking too long.

Tom

0 项奖励
回复