xiffer

MC09S08DZ60 OR and RDRF flag reset

Discussion created by xiffer on May 31, 2016
Latest reply on Jun 1, 2016 by xiffer

Hello,

I'm new to the S08 micros and am trying to receive information per SCI. I got the problem that the OR flag is 1 right after the startup. When trying to clear the flag as described in the Datasheet (first read SCIxS1, then read SCIxD) the OR flag still stays 1. From another question I got the idea to also read the 9th databit, eventhough using 8bit mode, but that didn't make any difference. The mc is working in normal mode and any interrupts are disabled, using polling for the receive data flag. The Does anyone have similar problems or can give me an example code of a working SCI communiction?

 

The second problem is probably caused by the first, so when receiving data the RDRF flag doesn't get set, I checked the information arrives at the rx pin by capturing the voltage on that pin.

 

Thank you!

Outcomes