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

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

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

1,510 Views
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
Labels (1)
0 Kudos
Reply
1 Reply

758 Views
passafabio
Contributor I
Error fixed reading SCI1D in Main()...:smileymad:
0 Kudos
Reply