cancel
Showing results for 
Search instead for 
Did you mean: 

Does an ISR violate ongoing I2C communication?

YAkse
Associate III

I am doing i2c reads in my while(1) loop. I do have an external interrupt source. I wonder, if the external interrupt arrives while data is being sent on i2c bus, what will happen? The mcu will enter to interrupt service routine clearly, will i2c peripheral manage to establish the data flow correctly?

p.s: STM32F103C8T6

Thanks.

1 REPLY 1
TDK
Guru

Generally, it'll work just fine unless your ISR takes too long to return.

If you feel a post has answered your question, please click "Accept as Solution".