Serial Voltage levels

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

Serial Voltage levels

跳至解决方案
2,607 次查看
karthick1987
Contributor II

Hi guys,

 

I am having trouble with the serial voltage levels. I hooked up the CRO to the Tx pin and found that the low-level goes to about 1.8V and the high goes all the way to 3.3V, what do you think is the problem with the serial ?

 

I checked the ground and it seems to go to 0V

 

Cheers

Karthick

标签 (1)
0 项奖励
回复
1 解答
1,882 次查看
peg
Senior Contributor IV

Hello Karthick,

 

Set the direction of both SCI pins to input.

It should not matter as enabling the SCI should override this but I have seen strange similar problems.

When I went to test it again latter it seemed to work OK and I could not duplicate the problem so took it no further.

Please come back and report here if doing the above fixes your problem or not.

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,882 次查看
karthick1987
Contributor II

The settings that I am using on the  GT16A are 

 

loop - disabled

TxD pin direction - ouput

Data format - 8 bits

Parity - none

Send break - disabled

baud rate - 9615.385 bps

 

Transmitter - enabled

 

But the output low I am getting is about 1.7V ! Is this a hardware fault? Could this mean that the chip is damaged?

 

Because the TPM and ADC and everything else works fine. I am a little confused.

 

Someone please help me out.

 

Cheers

Karthick

0 项奖励
回复
1,883 次查看
peg
Senior Contributor IV

Hello Karthick,

 

Set the direction of both SCI pins to input.

It should not matter as enabling the SCI should override this but I have seen strange similar problems.

When I went to test it again latter it seemed to work OK and I could not duplicate the problem so took it no further.

Please come back and report here if doing the above fixes your problem or not.

 

0 项奖励
回复
1,882 次查看
karthick1987
Contributor II

This problem is weird but what you said worked! :smileyhappy:

 

Thank you very much Peg, Just out of curiosity why does this happen?

0 项奖励
回复
1,882 次查看
peg
Senior Contributor IV

Hi,

 

It seems that under some condition you can have the general purpose i/o and the SCI controlling the pin at the same time. So generally the  GPIO is stuck at its initialised level and the SCI TDO pin tries its best to pull it the other way. I have had this happen twice with the GT16A. But when I experiment later to try to see what is going on I can't get the problem to occur again. Once you set it to input I have never seen any problem.

 

I was intending to bit bang a strange protocol first in order to reconfigure an attached piece of equipment to a more normal protocol that the SCI could handle. That is why I was deliberately setting the TDO pin to output.

0 项奖励
回复
1,882 次查看
karthick1987
Contributor II

Hi guys,

 

Just noticed that the problem was not fixed after following what peg said. It is pretty erratic, very very weird.

 

Cheers

0 项奖励
回复
1,882 次查看
bigmac
Specialist III

Hello K,

 

What do you have externally connected to the TxD pin?  Try disconnecting the external load and see if the problem persists.

 

Regards,

Mac

 

 

 

0 项奖励
回复