SCI1 Not Receiving Data

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

SCI1 Not Receiving Data

2,099件の閲覧回数
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?
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

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

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