SCI/UART Loopback problem with QE32

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

SCI/UART Loopback problem with QE32

跳至解决方案
2,458 次查看
Exelsus
Contributor II

Dear Friends,

 

 

I wrote some SCI/UART interrupt driven routines to handle Tx and Rx of data and place them into circular buffers, the problem is that every character I send is received back. The LOOPS bit in the SCI1C1 register is not set, and there is no physical connection between the pins.

 

I can see all this in debug time, the Rx buffer is getting filled inmediatly after the Tx sends any character, i think someway the Tx is raising the Rx interrupt flag.

 

I'll attach the source code in hope some of you can help me pointing me in the right direction, I have 2 days trying different things but nothing has worked yet, I don't know what to do.

 

Thanks

 

(I'm not currently using getQuery() as I've not managed to get the Tx working without have the loopbacks)

标签 (1)
0 项奖励
回复
1 解答
1,130 次查看
Exelsus
Contributor II

I think i solved it for now...

 

Recomendations:

 

1) Pullups/Pulldowns are your friends (Even when the outputs are NOT open drain kind)

2) Homemade PCB sucks to some degree, try to get OCD while working with them.

3) Flux can be a bitch after soldering, especially when pins are so close to each other.

 

This was more like a blog, I just hope it can be useful for someone.

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,131 次查看
Exelsus
Contributor II

I think i solved it for now...

 

Recomendations:

 

1) Pullups/Pulldowns are your friends (Even when the outputs are NOT open drain kind)

2) Homemade PCB sucks to some degree, try to get OCD while working with them.

3) Flux can be a bitch after soldering, especially when pins are so close to each other.

 

This was more like a blog, I just hope it can be useful for someone.

 

0 项奖励
回复
1,130 次查看
Exelsus
Contributor II

Updates:

 

I implemented the same code into a QG8 (with a little translation of course) guess what, exact same problem...

 

Now the question is: What am I doing wrong?

 

I'll attach the sources and whole project in the QG8 as it is only dedicated to that problem.

 

Thanks

 

Whole_Project.zip

Just_the_Sources.zip

Message Edited by t.dowe on 2009-10-27 11:42 AM
0 项奖励
回复