SCI1 Not Receiving Data

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

SCI1 Not Receiving Data

1,753 Views
Rabbi13
Contributor I
I'm having problems receiving data from my serial device.  I checked on a scope that the data is there.  When I transmit the 6 byte command, I wait, and then get the 4 byte response.  Problem is the data that I transmit is what is showing up on the receiver.  Does this sound like a problem on the MCU or a problem with the serial device?
Labels (1)
0 Kudos
Reply
2 Replies

633 Views
mke_et
Contributor IV
Well, have you checked the obvious first? That is, have you put the scope on the input pin of the chip to see if you're hardware routing the output right back?

After that, if it were me once I verified the hardware, I'd single step the tx routine through and see that the data goes out, character by character, and that the input holding register stays empty. Then I'd hook up a terminal and transmit single characters, and single step through your routines and watch them appear.

Message Edited by mke_et on 2007-11-20 07:50 AM
0 Kudos
Reply

633 Views
Witztronics
Contributor IV
Which device are you using?
 
We have a demo program on our website using the 9S08AW16.  The serial port is used to transmit and receive data from the computer.
 
0 Kudos
Reply