Serial Communications S12XEP

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

Serial Communications S12XEP

1,942 次查看
wldthng842
Contributor I
I am attempting to implement a simple program that sends data to HT from the S12XEP100.  I found this example online and followed the steps and had it working at one point.  Now I am simply getting a bunch of random characters instead of the message I was attempting to send. 

Example:  If I send 'D' i am getting the following three characters in HT {space - french C - degree symbol}

I have no idea what happened to the working code, I left for a few minutes and came back to a frozen HT screen, after closing and restarting it no longer worked.  I have tried sending from 2 micrcontrollers to several computers.  I have verified that the computers can send between them, and I cannot get the two microcontrollers to send between themselves either.

The example I found if from freescale and located here

Any help would be greatly apreciated.
标签 (1)
0 项奖励
回复
2 回复数

880 次查看
Franklin
Contributor I
My hyperterminal window is also only receiving french C's and degree signs.
0 项奖励
回复

880 次查看
wldthng842
Contributor I
We determined that the issue was in the CPU timing of the bean was not matching the actual CPU speed of the processor. This was causing the baud rate to be calculated incorrectly. We ended up taking HT and multiplying/dividing by 2 until we got the correct message.

Hope this helps

Message Edited by wldthng842 on 2008-05-29 04:42 AM
0 项奖励
回复