RS232/i2c on a 877

Started by stdf23173 November 13, 2003
Hello all,

I try to receive rs232 data on my 877 and send it again via i2c.
What i found out is that they do not work nicely together :(

I tried to solve it by clearing and setting sspen and spen when using
the uart/mssp module.

init_uart();
init_i2c();
enable_uart();
while(1){
/*receive some data via uart*/
disable_uart();
enable_i2c();
/*send data via i2c*/
disable_i2c();
enable_uart();
}

init of the uart and i2c is well known. (i2c at 400k and uart at 9600)

any one an idea why th i2c stalls ? grtz

Simon