AnsweredAssumed Answered

I2c problem

Question asked by panduro.soeren.002 on Sep 6, 2011
Latest reply on Sep 8, 2011 by malund.erik
Hi

I have a small problem that I hope you can help me with. My problem I that the I2C communication stops after some time.

I have 2 IRQ, one I2C and one timer 3 update with highest priority, TIM3 interrupt with 20kHz.

The I2C works fine if I disable the TIM3 IRQ.
I am controlling a digital Potentiometer with the I2C.sending address and 2 data byte.

When the I2C works, the event comes as:
I2C_EVENT_MASTER_MODE_SELECT
I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED
I2C_EVENT_MASTER_BYTE_TRANSMITTING
I2C_EVENT_MASTER_BYTE_TRANSMITTING
I2C_EVENT_MASTER_BYTE_TRANSMITTED

but if I enable Timer 3, The I2C stops after: (after some times) 
I2C_EVENT_MASTER_MODE_SELECT

if I look at the signal with a scoop the address is never transmitted to the slave.


Hope you can help me with an idea.. thanks

Ihave attached the code if it will help solving the problem. 


 

Attachments

Outcomes