Connect with us

Serial communication between 2 PIC16F877 via I2C or SPI

Discussion in 'General Electronics' started by [email protected], Feb 9, 2004.

Scroll to continue with content
  1. 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

    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
  2. ChronoFish

    ChronoFish Guest

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

    There is also some example code on the website. 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 or just for
    all the info.

    Hope this helps,

Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day