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.