Error in passing data from SCI1D to PE function AS1_RecvChar().... - HC9S08GT60CFB

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

Error in passing data from SCI1D to PE function AS1_RecvChar().... - HC9S08GT60CFB

1,514件の閲覧回数
passafabio
Contributor I

I face with a very annoying error. Sometimes the value in serial data receiver register SCI1D is not correctly passed to a *Chr variable of AS1_RcvChar() function, created by Processor Expert. The mcu is a HC9S08GT60CFB. If SCI1D receive 0xc2 put on *Chr 0xc2, but if the data on SCI1D is 0xca put on *Chr0xc2.

Attached the real time debugger immage with the error just made with 0xdc passed as 0xd4.

 

 

 

 

Added p/n to subject.

Message Edited by NLFSJ on 2009-05-06 06:58 PM


TroubleHCS08.jpg
Message Edited by dkindler on 2009-08-20 04:59 PM
ラベル(1)
0 件の賞賛
返信
1 返信

762件の閲覧回数
passafabio
Contributor I
Error fixed reading SCI1D in Main()...:smileymad:
0 件の賞賛
返信