Serial Communications S12XEP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Serial Communications S12XEP

1,974 Views
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.
Labels (1)
0 Kudos
Reply
2 Replies

912 Views
Franklin
Contributor I
My hyperterminal window is also only receiving french C's and degree signs.
0 Kudos
Reply

912 Views
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 Kudos
Reply