I2C: Unexpected transfer complet interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C: Unexpected transfer complet interrupt

879 Views
matthiasuhlmann
Contributor II

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

Labels (1)
0 Kudos
2 Replies

666 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 Kudos

666 Views
matthiasuhlmann
Contributor II

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:

pastedImage_0.png

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

0 Kudos