Understanding the I2C interrupts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-10-03 6:24 AM
Posted on October 03, 2012 at 15:24
So I have a good familiarity with I2C, having written interrupt driven drivers for several other processors. Notwithstanding I am puzzled by the I2C implementation on the STM32.
I have my serial EEPROM I2C driver working, but there is a significantly greater overhead due to the sheer number of interrupts occurring. The issues seems to come down to that fact that there seems to be no way for software to clear the BTF interrupt. What I am seeing is the following. I finish sending the EEPROM address and then from the time I issue the repeated start command to the time I get the I2C_EVENT_MASTER_MODE_SELECT interrupt, I receive around 14 I2C_EVENT_MASTER_BYTE_TRANSMITTED interrupts, all telling me that the transmitter is empty.My question is how do I suppress these extra interrupts? And why did ST not see fit to have a way in software to clear it? #i2c-interrupts-stm32
Labels:
- Labels:
-
I2C
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
