Serial Communications S12XEP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Serial Communications S12XEP

1,990件の閲覧回数
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 返答(返信)

928件の閲覧回数
Franklin
Contributor I
My hyperterminal window is also only receiving french C's and degree signs.
0 件の賞賛
返信

928件の閲覧回数
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 件の賞賛
返信