Hello, first i want to say sorry for my english, i'll try my best
I've been a while using the tm4c123g and tm4c1294 tiva launchpads and some time ago i had the need of use the i2c module (on both) to communicate with eeprom memory but I was never able to do it and I never knew why so I just stoped trying.
But later on the problem came back when i had the need to use a digital accerelometer so i decided I need to fix it this time. I did a lot of research and got into the microcontroller's datasheet and finally found the answer!
The problem was that with the i2c library in tivaware you can only communicate via i2c with a "simple read/write operation", that goes like this:
S_DS_RW_AC_DA_NAC_ST
S: Start bit
DS: Device Select byte
RW: Read or Write bit
AC: Acknowledge bit
DA: Data_to_send or Data_to_read byte
NAC: No Acknowledge bit
ST: Stop bit
But what happen if you have to communicate with a device wich doesn't use this "simple operation"?, you simply can't do it with the tivaware's i2c library, so i did my own to solve that problem.
What i want to know is: ¿How many of you guys have had the same problem with the i2c module? because i wish to share my library but i don't know if will be worth it.
What do you think?
