Hello everyone,
it is very hard to make a initilaize code using NXP,
I want to make a I2C code.
in IDE, s32k116_Project_LPI2C project shows that I2C example.
but, it is not work. there is no pulse feedback in PTA2 and PTA3 pin(SDA,SDL)
I looking for some code to communicate Master - Slve, easily
I'm already make a code by using ST HAL library.
I using I2C I/O Expander IC TCA9539.
slve address 0x74 because A0, A1 is low.
And I sand 0xE9 to use it only read mode.
I make it follow code.
uint8_t data[16];
HAL_I2C_Master_Transmit(&hi2c1, 0x74, data, 16, 10); //Awake
HAL_Delay(1); // Delay
HAL_I2C_Master_Transmit(&hi2c1, 0xE9, data, 16, 10); // Set data readonly
HAL_Delay(1); // delay
HAL_I2C_Master_Receive(&hi2c1, 0xE9, data, 16, 10); // read data from IC
please,,, I want make code like that.. How can I?