linhnc308
Joined: 16 Feb 2006 Posts: 9 Location: Viet Nam
|
Connect two PIC via I2C |
Posted: Thu Feb 16, 2006 11:36 am |
|
|
Hello!
Fisrt I sorry about my English, I'm from Viet Nam. About PIC, I'm just a newbie. So i had a problem when using PIC.
I want to connect two PIC: F877A and F876A via I2C bus. PIC16F877A using in Master-Mode and 876A is Slave-mode. Connect via I2C, fisrt i send one byte from 877A to 876 via I2C, and then when 876A recieved this byte, it send this byte return to 877A. All data display on LCD module.
For control LCD module I had the code, but i have some problem with I2C bus. I'm using CCS for program PIC.
Please help me the code for this problem.
Thank!
Mail to:[email protected]
What about code for Multi-Master with this circuit? |
|