Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

communication between two PIC 16 F877A by using I2C

Status
Not open for further replies.

cheehow

Newbie level 3
Joined
Aug 4, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,330
hi, everyone... my project is doing the communication between 2 MCU with I2C connection. furthermore, in order to test the communcation between this two MCU, i using the LED and push button to test it. while i push the push button, the other MCU will be lite up the LED.
i m using CCS C compiler to write the code. so, first all of i initialize the I2c as following:

void int_i2c();
{
TRISC3=1;
TRISC4=1;
SSPCON=0X28;
SSPADD=(FOSC/(4*BUAD))-1;
SSPSTAT=80;
}
and i have initialized the port that i used as push button and LED...
so, my problem is how to start writing the code for my project ?

Please Help me ... urgent !!!
do any one know how to write the code ?? or have any sample for me to refer ?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top