Hello,
I tested the I2C component with a PIC16F1779 MCU and a 47C04 type EERAM.
Writing and reading work correctly, and the operations complete in about 100 µs.
However, the Component Macro continues to run for another 10 ms after a write or read operation.
What do you think could be causing this?
Thank you in advance for your help.
Regards,
Sasi
Slow I2C Component Macro [Solved]
-
- Posts: 134
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 12:11 pm
- Has thanked: 43 times
- Been thanked: 15 times
Slow I2C Component Macro [Solved]
Last edited by Sasi on Sat Oct 04, 2025 11:14 am, edited 1 time in total.
Re: Slow I2C Component Macro
I realized that I had omitted the I2C component initialization command from the test project.
Presumably, without this, the other I2C operations should not function correctly.
I tried placing the I2C initialization block before the main loop, but it made no difference write and read operations still take approximately 10 ms to complete.
In the current project I'm working on, I2C transactions are required to be executed within interrupts triggered every 500 µs.
Currently, the program freezes while executing the first such macro.
Presumably, without this, the other I2C operations should not function correctly.
I tried placing the I2C initialization block before the main loop, but it made no difference write and read operations still take approximately 10 ms to complete.

In the current project I'm working on, I2C transactions are required to be executed within interrupts triggered every 500 µs.
Currently, the program freezes while executing the first such macro.