Fabio Passarini

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

Discussion created by Fabio Passarini on May 6, 2009
Latest reply on May 11, 2009 by Fabio Passarini

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

Outcomes