Maker Pro
Maker Pro

Serial communication between 2 PIC16F877 via I2C or SPI

Hello out there...

I would like to implement a evry simple serial communicaton between 2
or n Microchip PIC controllers via I2C or SPI. There is no speed
problem. I would like to use the controllers for a simple testing
system.

Does anybody have an example source code or an explantion how to do
it. I already have some applications programmed with other PICs but
now I need to have a serial data excanche - bi-directional.

Thank you for helping me!

Best regards
Hans
 
C

ChronoFish

Jan 1, 1970
0
Hello out there...

I would like to implement a evry simple serial communicaton between 2
or n Microchip PIC controllers via I2C or SPI. There is no speed
problem. I would like to use the controllers for a simple testing
system.

Does anybody have an example source code or an explantion how to do
it. I already have some applications programmed with other PICs but
now I need to have a serial data excanche - bi-directional.

Thank you for helping me!

Best regards
Hans


You might be better off asking this in alt.microcontrollers and alt.microcontrollers.8bit

There is also some example code on the c2c.com website. http://www.emicros.com/pic1.htm might help as well.

Myke Predko's book - "Programming and Customizing the PIC Microcontroller", 1998 pp315-326 has several routines for 3-wire, I2C, and
interrupt driven serial receiver/transmitter. The book comes with a disk with the code on it. You may also be able to find the
code on the web.
He happens to have a chapter on serial comm online at http://www.myke.com/pdfs/0071361723_Ch06.pdf or just http://www.myke.com for
all the info.

Hope this helps,

CF
 
Top