Michal Pochna

[MC9S08] uart + RS485 problem

Discussion created by Michal Pochna on May 9, 2010
Latest reply on May 18, 2010 by Daniel Lundin
Hi everyone, i've been trying to set up communication between my board and laptop using sci, max481 and usb<->rs485 converter. I set in terminal, converter and component in PE like this: 9600 baud, none parity checking, one stop bit. I enabled interrupts from errors, tx and rx. Starting the program in debugger i checked that when data is received, RDRF bit is set (data is in SCIxD register), but immediately Interrupt on Error is requested and Framing Error bit is set. While this interrupt is being services also bit OR in SCIxS1 is set. Then all of them are cleared. And that's what happen all the time. I've got no idea what is going on. Maybe it must by done in other way, I not really familiar with CW an hc9s08 uCs. If any code or details needed, write please. I'd appreciate any help, Best regards Mishup