I have a Modbus application running on the TM4C123GH6PM, which uses the debug UART port (UART0) for communication with a Windows-side master. The Modbus application has been tested and works well. Now I would like to add I2C communication with an external ADC (the TI ADS 1110). However, when I enable the I2C module, the Modbus communication (UART) stops working. I have debugged the application, and Modbus only stops working when I2C is enabled. Here is my GPIO configuration:
Here is my UART configuration:
And here is my I2C configuration:
My guess is that it has something to do with the use of the system clock by both modules, but I'm not certain what I can do to fix it. The clock is configured to 50 MHz:
Many thanks,
Ksawery