2021-10-25 04:29 AM
In the STM32f302R8 Reference manual, it is stated for master initialization, I need to Enable Interrupts and/or DMA in I2C_CR1:
Does this mean I need to enable all the bits that is related to interrupts? Example, from bit 1 until bit 8, do I need to enable all of it? Or is it OK to just ignore it?
Solved! Go to Solution.
2021-10-25 06:03 AM
You only need to enable interrupts if you want to service them. If you're using polling mode, you don't need to enable any of them. If you're using interrupt mode, seems like you would want all of them enabled, although it's not strictly required.
2021-10-25 06:03 AM
You only need to enable interrupts if you want to service them. If you're using polling mode, you don't need to enable any of them. If you're using interrupt mode, seems like you would want all of them enabled, although it's not strictly required.