Skip to main content
YAkse
Associate III
August 26, 2020
Question

Does an ISR violate ongoing I2C communication?

  • August 26, 2020
  • 1 reply
  • 685 views

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.

This topic has been closed for replies.

1 reply

TDK
August 26, 2020

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""."