Hello,
I try implement a I2C routine inside an uart interrupt.
In the main program the microcontroller (TM4C123GH6PZ) wait to a interrupt by UART. In this ISR, the data are identi and call a function with a routine I2C, this routine is used for communicate with a expansor (PCF8575C). My problem is that the slave device (PCF8575C) don't work correctly in this logic. I see the signal of the I2C protocol but the data in the output port is incorrectly.
The routine for communicate with an expansor, works correctly if call in the main program, but if called in the ISR the expansor don't work.
what could be the problem?
Thanks
Juan Carlos