hello,dear
I have a problem and need your help.
When I use the IIC module, it is set to master mode, and the slave address is set to 0X1A through configuration, but the address is found to be 0x34 through the logic analyzer. Moved one place to the left. How can I solve this?
Hello Simon,
The address consists of the Slave address (0x1A) at address[7:1] + the W/R bit at address[0].
Write address 0x34 = 0b0011_0100
Read address 0x35 = 0b0011_0101
Regards,
Daniel
Very happy to receive a reply. I want to add that the slave address that needs to communicate is 0x1A. And there are other devices that can communicate normally, and the slave address I collected through the logic analyzer is also 0X1A. But when I switch to S32K144, the configuration is also 0X1A, but the address collected by the logic analyzer is 0x34. Why is this? And because the address is wrong, the slave does not respond to the command.
Hi Simon,
As I said already, the configuration tool sets the address[7:1] bits.
Use 0x0D instead.
address[7:0] = 0x1A = 0b00011010 where address[4:1] is 0xD.
Regards,
Daniel