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.

Help me communicate two PICs with i2c (problem with slave)

Status
Not open for further replies.

qpasatio

Newbie level 5
Joined
Nov 8, 2003
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
97
slave i2c

I can´t communicate two PICs with i2c.
I have enabled interrupts in the slave
SSPIE = 1;
SSPIF = 0;
PEIE = 1;
GIE = 1;
and monitored all the registers of the slave PIC in one LCD: SSPSTAT, SSPCON1, SSPCON2, INTCON, INTCON2, INTCON3, PIR1, PIR2, PIE1, PIE2, IPR1, IPR2, RCON to see if something chages and then I send a byte from the master PIC and there's no change.
In conclusion: I can´t generate an interrupt in the slave.
Does anyone have C functions to establish a correct communication slave-master in I2C?
What am I doing wrong?
Any suggest?
Thanks a lot.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top