Hi All,
I have a I2C Slave using interrupts.
Now i have the problem that from time to time there is a unexpected "Byte Transfer" Interrupt which is at a strange position (in the middle of a Byte).
Do anybody know this behavior and know a solution? Did i made something wrong?
Best Regards
Hi,Mattias,
Could you tell us the part number you are using? do you use Processor Expert to develop code? what version of CodeWarrior tools are you using? I suggest you paste or attach the code so that we can check it.
BR
XiangJun Rong
Hi XiangJun,
Part Nr.: MC56F84769; I don't use Processor Expert, Code Warrior: Version: 10.3, Build Id:121211
I can not attach or paste the code because i made a library which is maybe a little bit difficult to read (registers are set by enumerations wich can be selected in the application)
But here are the registers after initialisation:
I changed priority level from 0 to 1 which solved my problem. At the moment I2C is robust and there were no more unexpected interrupts. If i have enought time i will ask you again in future but for the moment its ok.
Thank You!
Matthias