SCI help needed

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

SCI help needed

742 次查看
ignisuti
Contributor IV

I'm using the SCI3 on a MCF51CN128 processor. It's connected to a CP2102 chip to convert from UART to USB signals. I have my board connected to a PC running HyperTerminal and am trying to talk to the unit. It's working well in most situations.

 

However, it will occasionally get into a state where the Vsci3rx interrupt is being triggered repeatedly by a single keypress.  The interrupt continues indefinitly.

 

What kinds of things should I look for and double-check?

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

595 次查看
ignisuti
Contributor IV

I figured out that I can fix the problem by placing the following line fo code in my interrupt. But why does this work. Help me understand please.

 

while( XMIT_BUF_EMPTY_FLAG3 == 0 ) { ; }

 

0 项奖励
回复