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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…