Single-wire SCI mode

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

Single-wire SCI mode

1,873件の閲覧回数
kosthala
Contributor I
Hello,

In our application we use the MC9S08AW32 and we try to use the single wire mode of SCI.
The code to initialize the SCI is:

      mov    #$A0, SCI1C1
      mov    #$00, SCI1C3
      mov    #$24, SCI1C2    ; enable RECEIVER
      cli

but the SCI is not working. The transmiter is sending data but the
receiver doesn't receive any data at all.
Is there something else we need to know in order to make it work?

Thanks in advance.



ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,011件の閲覧回数
bigmac
Specialist III
Hello,
 
For single wire transmit/receive operation, It would be usual to have both transmitter and receiver sections of the SCI enabled - for this the value for SCI1C2 register would need to be $2C.  Otherwise, there is little point in selecting-single wire mode for a receive only application.
 
Additionally, the TXDIR bit within SCI1C3 would need to be set to 1 whenever a byte is sent, and then returned to 0, once the transmission is complete, ready to receive any incoming data.
 
Regards,
Mac
 

Message Edited by bigmac on 2007-04-0612:09 AM

0 件の賞賛
返信

1,011件の閲覧回数
kosthala
Contributor I
Hello Mac,

Sorry for the delayed answer (i was away from civilization for a few days). Anyway, your solution was
perfect   :smileyhappy:
Thank you very much.
0 件の賞賛
返信