Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | RS232/i2c on a 877


Advertise Here

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.

RS232/i2c on a 877 - stdf23173 - Nov 13 15:06:00 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


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )