2024-01-22 06:40 PM
Hi, here I am facing the problem on I2C interrupt if USART enabled IT, my I2C IT does not work but it work correct if USART does not enable it interrupt. Any setting i missed out?
Solved! Go to Solution.
2024-01-22 07:29 PM
USART and I2C are independent peripherals and can have interrupts enabled at the same time. Perhaps debug your code and look for issues as to why it's not working.
2024-01-22 07:29 PM
USART and I2C are independent peripherals and can have interrupts enabled at the same time. Perhaps debug your code and look for issues as to why it's not working.
2024-01-22 08:42 PM
Hi @TDK, I noticed that interrupt when LL_USART_EnableIT_RXNE and LL_USART_EnableIT_TXE, it will cause I2C unable trigger its interrupt although I tried send data to I2C. May I know why it happen?
But, I have solved my issues because I only require Transmit complete in my program, just wondering why enable TXE and RXNE will lead these problems.
Anyway, thanks.
2024-01-23 07:02 AM
> Hi @TDK, I noticed that interrupt when LL_USART_EnableIT_RXNE and LL_USART_EnableIT_TXE, it will cause I2C unable trigger its interrupt although I tried send data to I2C. May I know why it happen?
Probably your code has a bug.