S32K144 IIC Master

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 IIC Master

1,711 Views
walker_xiao
Contributor II
hello
I have some problems with the SDK example lpi2c_master_s32k144.My IIC address =0xAA, why is the address shown in the waveform not 0xAA?Data structure initialization.jpgread address.jpg
write address.jpg
Tags (1)
0 Kudos
3 Replies

1,456 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

1.

The lpi2c1.c is generated by Processor Expert. Please, do not modify it. 

If you want to change setting click on the lpi2c1:lpi2c component on the right side and after that, you will see the Configuration list.

pastedImage_1.png

2.

The 0xAA cannot be set as slave address in 7-bit address mode. The eighth bit is used for the read/write mode.

pastedImage_3.png

I hope it helps you.

Best Regards,

Diana

0 Kudos

1,456 Views
walker_xiao
Contributor II

Hello Diana,

        thanks for your reply. I would like to know whether the address can be changed by code in this example besides the address setting method you mentioned. For example, write address 0xAA directly.

Best Regards,

Walker

0 Kudos

1,456 Views
razva_tilimpea
NXP Employee
NXP Employee

Hi,

You can change the slave address at run-time with LPI2C_DRV_MasterSetSlaveAddr function.

Best regards,

Razvan

0 Kudos