Hi,
I have a TMS570LS20216 USB stick and the TMS570 Safety MCU Demo Software running on it.
I am compiling and debugging the TMS570 Safety MCU Demo Software using Code Composer.
I am trying to communicate with the TMS570 via the SCI using hyper-terminal. SCI initialisation is unchanged from the demo and I have hyper terminal set to:
Baud 9600
data bits 7
parity none
stop bits 1
flow control hardware
However, I seem to be having a problem:
I am receiving data sine I can break at point where data is copied from the buffer:
case 11:
/* receive */
{ unsigned byte = sciREG1->RD;
However, when sending from hyper-terminal and observing the receiveCommand buffer I see:
Sent Received
* (42) Ö (214)
1 (49) á(225)
2 (50) æ(230)
3 (51) ç(231)
4 (52) è(232)
5 (53) é(233)
6 (54) î(238)
! (33) Á(193)
I have tried bit shifting the received data (since it is 7-bits) as stated in the manual p441
Also I would be expecting to receive at hyper-terminal WHO R U? From the following code:
/** - Acknowledge once the InValid Command is received */
sciSend (sciREG1, 8, (unsigned char *) "WHO R U?");
but receive nothing.
Has anyone any ideas, what's happening?
Regard Steve.