View previous topic :: View next topic |
Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 19587
|
|
Posted: Fri Jan 14, 2011 4:02 am |
|
|
The SSP interrupt will only trigger if it sees an address that matches it's slave address (or if a general call is seen, with GCA enabled, on chips that support this).
Texas were the people who always used 7bit addressing, so have you tried setting the address in the PIC, to 0xA0, and the address in the Texas unit as 0x50?.
Best Wishes |
|
|
stelios1988
Joined: 10 Jan 2011 Posts: 13
|
|
Posted: Fri Jan 14, 2011 9:14 am |
|
|
That worked, the #INT_SSP works but after a lot of time. I have a timer that sends I2C address and data every 1 second and it takes time for the interrupt to happen. I've tried 1.8K , 2.4K and 10K resistors but with the same result. Late I2C. And if I send one data it doesn't get it right. Only on periodic sends.
The data I send is from 0 to 0xC8. |
|
|
stelios1988
Joined: 10 Jan 2011 Posts: 13
|
|
Posted: Fri Jan 14, 2011 5:47 pm |
|
|
Nothing on that Ttelmah? |
|
|
|