I2C: Unexpected transfer complet interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2C: Unexpected transfer complet interrupt

1,580件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,367件の閲覧回数
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 件の賞賛
返信

1,367件の閲覧回数
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 件の賞賛
返信