A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
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 |