PICoHolic
Joined: 04 Jan 2005 Posts: 224
|
|
Posted: Sun Sep 02, 2007 2:16 am |
|
|
Hey Tim,
unfortunately i dont have a simple working code.. i've integrated it into a complex one.
But here it is:
state = SSPSTAT & 0B00101101;
Then do a switch case on the above mentioned table:
| Code: |
State Incoming (i2c_read)
09 E0 (expected) slave Address
29 00 (expected) data sent from master
29 42 ('B') (expected) " "
09 E0 (expected) slave address
29 00 (expected) data sent from master
0D E1 (here is the unexpected state 0D it should be 0C !!) master sends address with READ
2C FF (master reads) (expected)
|
By the way revision B3 has no errata in i2c as mentioned on the microchip website!
GOOD LUCK |
|